From 14d46d6a2dfa1e8e63c620896200039dc437c4c4 Mon Sep 17 00:00:00 2001 From: oliveregger Date: Sun, 28 Apr 2024 08:21:13 +0000 Subject: [PATCH] server: rebuild the Angular GUI resources --- matchbox-server/src/main/resources/static/index.html | 2 +- .../src/main/resources/static/main.092b52a088a8358f.js | 1 - .../src/main/resources/static/main.2c9de0c043158889.js | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 matchbox-server/src/main/resources/static/main.092b52a088a8358f.js create mode 100644 matchbox-server/src/main/resources/static/main.2c9de0c043158889.js diff --git a/matchbox-server/src/main/resources/static/index.html b/matchbox-server/src/main/resources/static/index.html index 1c8fd99ea9f..f19c63580ed 100644 --- a/matchbox-server/src/main/resources/static/index.html +++ b/matchbox-server/src/main/resources/static/index.html @@ -11,5 +11,5 @@ - + diff --git a/matchbox-server/src/main/resources/static/main.092b52a088a8358f.js b/matchbox-server/src/main/resources/static/main.092b52a088a8358f.js deleted file mode 100644 index 5875a54ed13..00000000000 --- a/matchbox-server/src/main/resources/static/main.092b52a088a8358f.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmatchbox_formfiller=self.webpackChunkmatchbox_formfiller||[]).push([[792],{2614:(Ie,ne)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.Ucum=void 0,ne.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"}}},434:(Ie,ne,g)=>{"use strict";ne.f=void 0;var _=g(2614),C=g(6971);class E{constructor(b){if(0===_.Ucum.dimLen_)throw new Error("Dimension.setDimensionLen must be called before Dimension constructor");if(null==b)this.assignZero();else if(b instanceof Array){if(b.length!==_.Ucum.dimLen_)throw new Error(`Parameter error, incorrect length of vector passed to Dimension constructor, vector = ${JSON.stringify(b)}`);this.dimVec_=[];for(let s=0;s<_.Ucum.dimLen_;s++)this.dimVec_.push(b[s])}else if(C(b)){if(b<0||b>=_.Ucum.dimLen_)throw new Error("Parameter error, invalid element number specified for Dimension constructor");this.assignZero(),this.dimVec_[b]=1}}setElementAt(b,s){if(!C(b)||b<0||b>=_.Ucum.dimLen_)throw new Error(`Dimension.setElementAt called with an invalid index position (${b})`);this.dimVec_||this.assignZero(),null==s&&(s=1),this.dimVec_[b]=s}getElementAt(b){if(!C(b)||b<0||b>=_.Ucum.dimLen_)throw new Error(`Dimension.getElementAt called with an invalid index position (${b})`);let s=null;return this.dimVec_&&(s=this.dimVec_[b]),s}getProperty(b){return this["_"===b.charAt(b.length-1)?b:b+"_"]}toString(){let b=null;return this.dimVec_&&(b="["+this.dimVec_.join(", ")+"]"),b}add(b){if(!b instanceof E)throw new Error(`Dimension.add called with an invalid parameter - ${typeof b} instead of a Dimension object`);if(this.dimVec_&&b.dimVec_)for(let s=0;s<_.Ucum.dimLen_;s++)this.dimVec_[s]+=b.dimVec_[s];return this}sub(b){if(!b instanceof E)throw new Error(`Dimension.sub called with an invalid parameter - ${typeof b} instead of a Dimension object`);if(this.dimVec_&&b.dimVec_)for(let s=0;s<_.Ucum.dimLen_;s++)this.dimVec_[s]-=b.dimVec_[s];return this}minus(){if(this.dimVec_)for(let b=0;b<_.Ucum.dimLen_;b++)this.dimVec_[b]=-this.dimVec_[b];return this}mul(b){if(!C(b))throw new Error(`Dimension.sub called with an invalid parameter - ${typeof dim2} instead of a number`);if(this.dimVec_)for(let s=0;s<_.Ucum.dimLen_;s++)this.dimVec_[s]*=b;return this}equals(b){if(!b instanceof E)throw new Error(`Dimension.equals called with an invalid parameter - ${typeof b} instead of a Dimension object`);let s=!0,f=b.dimVec_;if(this.dimVec_&&f)for(let d=0;s&&d<_.Ucum.dimLen_;d++)s=this.dimVec_[d]===f[d];else s=null===this.dimVec_&&null===f;return s}assignDim(b){if(!b instanceof E)throw new Error(`Dimension.assignDim called with an invalid parameter - ${typeof b} instead of a Dimension object`);if(null===b.dimVec_)this.dimVec_=null;else{null===this.dimVec_&&(this.dimVec_=[]);for(let s=0;s<_.Ucum.dimLen_;s++)this.dimVec_[s]=b.dimVec_[s]}return this}assignZero(){null==this.dimVec_&&(this.dimVec_=[]);for(let b=0;b<_.Ucum.dimLen_;b++)this.dimVec_.push(0);return this}isZero(){let b=null!==this.dimVec_;if(this.dimVec_)for(let s=0;b&&s<_.Ucum.dimLen_;s++)b=0===this.dimVec_[s];return b}isNull(){return null===this.dimVec_}clone(){let b=new E;return b.assignDim(this),b}}ne.f=E},6996:(Ie,ne)=>{"use strict";ne.YH=function f(d){const a=d&&d.config;if(a){if(a.length&&d.data){const l=E(a);return d.data.map(b.bind(null,l))}return d.data}return d};function E(d){return d.map(a=>Array.isArray(a)?a:[a])}function b(d,a){let l={};return d.forEach((r,u)=>{let h=l;for(let p=0;p{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.Prefix=void 0,g(2614),ne.Prefix=class _{constructor(E){if(null==E.code_||null==E.name_||null==E.value_||void 0===E.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_=E.code_,this.ciCode_=E.ciCode_,this.name_=E.name_,this.printSymbol_=E.printSymbol_,this.value_="string"==typeof E.value_?parseFloat(E.value_):E.value_,this.exp_=E.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(E){return this.code_===E.code_&&this.ciCode_===E.ciCode_&&this.name_===E.name_&&this.printSymbol_===E.printSymbol_&&this.value_===E.value_&&this.exp_===E.exp_}}},5557:(Ie,ne)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.PrefixTables=ne.PrefixTablesFactory=void 0;class g{constructor(){this.byCode_={},this.byValue_={}}prefixCount(){return Object.keys(this.byCode_).length}allPrefixesByValue(){let E="",c=Object.keys(this.byValue_),b=c.length;for(let s=0;s{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.default=void 0;var t=new class g{constructor(){this.funcs={},this.funcs.cel={cnvTo:function(C){return C-273.15},cnvFrom:function(C){return C+273.15}},this.funcs.degf={cnvTo:function(C){return C-459.67},cnvFrom:function(C){return C+459.67}},this.funcs.degre={cnvTo:function(C){return C-273.15},cnvFrom:function(C){return C+273.15}},this.funcs.ph={cnvTo:function(C){return-Math.log(C)/Math.LN10},cnvFrom:function(C){return Math.pow(10,-C)}},this.funcs.ln={cnvTo:function(C){return Math.log(C)},cnvFrom:function(C){return Math.exp(C)}},this.funcs["2ln"]={cnvTo:function(C){return 2*Math.log(C)},cnvFrom:function(C){return Math.exp(C/2)}},this.funcs.lg={cnvTo:function(C){return Math.log(C)/Math.LN10},cnvFrom:function(C){return Math.pow(10,C)}},this.funcs["10lg"]={cnvTo:function(C){return 10*Math.log(C)/Math.LN10},cnvFrom:function(C){return Math.pow(10,C/10)}},this.funcs["20lg"]={cnvTo:function(C){return 20*Math.log(C)/Math.LN10},cnvFrom:function(C){return Math.pow(10,C/20)}},this.funcs["2lg"]={cnvTo:function(C){return 2*Math.log(C)/Math.LN10},cnvFrom:function(C){return Math.pow(10,C/2)}},this.funcs.lgtimes2=this.funcs["2lg"],this.funcs.ld={cnvTo:function(C){return Math.log(C)/Math.LN2},cnvFrom:function(C){return Math.pow(2,C)}},this.funcs["100tan"]={cnvTo:function(C){return 100*Math.tan(C)},cnvFrom:function(C){return Math.atan(C/100)}},this.funcs.tanTimes100=this.funcs["100tan"],this.funcs.sqrt={cnvTo:function(C){return Math.sqrt(C)},cnvFrom:function(C){return C*C}},this.funcs.inv={cnvTo:function(C){return 1/C},cnvFrom:function(C){return 1/C}},this.funcs.hpX={cnvTo:function(C){return-this.funcs.lg(C)},cnvFrom:function(C){return Math.pow(10,-C)}},this.funcs.hpC={cnvTo:function(C){return-this.func.ln(C)/this.funcs.ln(100)},cnvFrom:function(C){return Math.pow(100,-C)}},this.funcs.hpM={cnvTo:function(C){return-this.funcs.ln(C)/this.funcs.ln(1e3)},cnvFrom:function(C){return Math.pow(1e3,-C)}},this.funcs.hpQ={cnvTo:function(C){return-this.funcs.ln(C)/this.funcs.ln(5e4)},cnvFrom:function(C){return Math.pow(5e4,-C)}}}forName(C){C=C.toLowerCase();let E=this.funcs[C];if(null===E)throw new Error(`Requested function ${C} is not defined`);return E}isDefined(C){return C=C.toLowerCase(),null!==this.funcs[C]}};ne.default=t},9362:(Ie,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.isNumericString=function _(c){let b=""+c;return!isNaN(b)&&!isNaN(parseFloat(b))},ne.isIntegerUnit=function C(c){return/^\d+$/.test(c)},ne.getSynonyms=function E(c){let b={},f={};if(f=t.getInstance().getUnitBySynonym(c),f.units){b.status="succeeded";let d=f.units.length;b.units=[];for(let a=0;a{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.ucumJsonDefs=ne.UcumJsonDefs=void 0;var t=g(5712),_=g(5557),C=g(4718),E=g(2043),c=g(6996).YH;class b{loadJsonDefs(){const d=g(3380);if(d.prefixes=c(d.prefixes),d.units=c(d.units),0===E.UnitTables.getInstance().unitsCount()){let a=_.PrefixTables.getInstance(),l=d.prefixes,r=l.length;for(let v=0;v{"use strict";ne.l=void 0;var _=g(6556),C=function c(a){if(a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var l=E();if(l&&l.has(a))return l.get(a);var r={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in a)if(Object.prototype.hasOwnProperty.call(a,h)){var p=u?Object.getOwnPropertyDescriptor(a,h):null;p&&(p.get||p.set)?Object.defineProperty(r,h,p):r[h]=a[h]}return r.default=a,l&&l.set(a,r),r}(g(9362));function E(){if("function"!=typeof WeakMap)return null;var a=new WeakMap;return E=function(){return a},a}var b=g(2614).Ucum,s=g(2043).UnitTables,f=g(4247).o;class d{constructor(){0===s.getInstance().unitsCount()&&_.ucumJsonDefs.loadJsonDefs(),this.uStrParser_=f.getInstance()}useHTMLInMessages(l){void 0===l&&(l=!0),this.uStrParser_.useHTMLInMessages(l)}useBraceMsgForEachString(l){void 0===l&&(l=!0),this.uStrParser_.useBraceMsgForEachString(l)}validateUnitString(l,r,u){void 0===r&&(r=!1),void 0===u&&(u="validate");let h=this.getSpecifiedUnit(l,u,r),p=h.unit,v=p?{ucumCode:h.origString,unit:{code:p.csCode_,name:p.name_,guidance:p.guidance_}}:{ucumCode:null};return v.status=h.status,h.suggestions&&(v.suggestions=h.suggestions),v.msg=h.retMsg,v}convertUnitTo(l,r,u,h,p){void 0===h&&(h=!1),void 0===p&&(p=null);let v={status:"failed",toVal:null,msg:[]};if(l&&(l=l.trim()),(!l||""==l)&&(v.status="error",v.msg.push('No "from" unit expression specified.')),this._checkFromVal(r,v),u&&(u=u.trim()),(!u||""==u)&&(v.status="error",v.msg.push('No "to" unit expression specified.')),"error"!==v.status)try{let y=null,M=this.getSpecifiedUnit(l,"convert",h);y=M.unit,M.retMsg&&(v.msg=v.msg.concat(M.retMsg)),M.suggestions&&(v.suggestions={},v.suggestions.from=M.suggestions),y||v.msg.push(`Unable to find a unit for ${l}, so no conversion could be performed.`);let w=null;if(M=this.getSpecifiedUnit(u,"convert",h),w=M.unit,M.retMsg&&(v.msg=v.msg.concat(M.retMsg)),M.suggestions&&(v.suggestions||(v.suggestions={}),v.suggestions.to=M.suggestions),w||v.msg.push(`Unable to find a unit for ${u}, so no conversion could be performed.`),y&&w)try{if(p){if(0!==y.moleExp_&&0!==w.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===y.moleExp_&&0===w.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(!y.isMoleMassCommensurable(w))throw new Error(`Sorry. ${l} cannot be converted to ${u}.`);v.toVal=0!==y.moleExp_?y.convertMolToMass(r,w,p):y.convertMassToMol(r,w,p)}else v.toVal=w.convertFrom(r,y);v.status="succeeded",v.fromUnit=y,v.toUnit=w}catch(k){v.status="failed",v.msg.push(k.message)}}catch(y){v.status=y.message==b.needMoleWeightMsg_?"failed":"error",v.msg.push(y.message)}return v}convertToBaseUnits(l,r){let u={};if(this._checkFromVal(r,u),!u.status){let h=this.getSpecifiedUnit(l,"validate");u={status:"valid"==h.status?"succeeded":h.status};let p=h.unit;if(u.msg=h.retMsg||[],p){if(p.isArbitrary_)u.msg.push("Arbitrary units cannot be converted to base units or other units."),u.status="failed";else if("succeeded"==u.status){let v={},y=p.dim_?.dimVec_,M="1";if(y){let I=s.getInstance().dimVecIndexToBaseUnit_;for(let D=0,O=y.length;D0&&(r=h.retMsg),p){let v=null,y=p.getProperty("dim_");if(y){try{v=y.getProperty("dimVec_")}catch(M){r.push(M.message),"Dimension does not have requested property(dimVec_)"===M.message&&(v=null)}v&&(u=s.getInstance().getUnitsByDimension(v))}else r.push("No commensurable units were found for "+l)}else r.push(`Could not find unit ${l}.`);return[u,r]}}ne.l=d,d.getInstance=function(){return new d}},9070:(Ie,ne,g)=>{"use strict";ne.lG=void 0,g(2614);var C=g(5476).l;ne.lG=C,g(2043)},4718:(Ie,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.Unit=void 0;var t=function c(l){return l&&l.__esModule?l:{default:l}}(g(8573)),_=function E(l){if(l&&l.__esModule)return l;if(null===l||"object"!=typeof l&&"function"!=typeof l)return{default:l};var r=C();if(r&&r.has(l))return r.get(l);var u={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in l)if(Object.prototype.hasOwnProperty.call(l,p)){var v=h?Object.getOwnPropertyDescriptor(l,p):null;v&&(v.get||v.set)?Object.defineProperty(u,p,v):u[p]=l[p]}return u.default=l,r&&r.set(l,u),u}(g(9362));function C(){if("function"!=typeof WeakMap)return null;var l=new WeakMap;return C=function(){return l},l}var f,b=g(2614).Ucum,s=g(434).f,d=g(6971);class a{constructor(r={}){this.isBase_=r.isBase_||!1,this.name_=r.name_||"",this.csCode_=r.csCode_||"",this.ciCode_=r.ciCode_||"",this.property_=r.property_||"",this.magnitude_=r.magnitude_||1,this.dim_=null==r.dim_?new s:void 0!==r.dim_.dimVec_?new s(r.dim_.dimVec_):r.dim_ instanceof s?r.dim_:r.dim_ instanceof Array||d(r.dim_)?new s(r.dim_):new s,this.printSymbol_=r.printSymbol_||null,this.class_=r.class_||null,this.isMetric_=r.isMetric_||!1,this.variable_=r.variable_||null,this.cnv_=r.cnv_||null,this.cnvPfx_=r.cnvPfx_||1,this.isSpecial_=r.isSpecial_||!1,this.isArbitrary_=r.isArbitrary_||!1,this.moleExp_=r.moleExp_||0,this.synonyms_=r.synonyms_||null,this.source_=r.source_||null,this.loincProperty_=r.loincProperty_||null,this.category_=r.category_||null,this.guidance_=r.guidance_||null,this.csUnitString_=r.csUnitString_||null,this.ciUnitString_=r.ciUnitString_||null,this.baseFactorStr_=r.baseFactorStr_||null,this.baseFactor_=r.baseFactor_||null,this.defError_=r.defError_||!1}assignUnity(){return this.name_="",this.magnitude_=1,this.dim_||(this.dim_=new s),this.dim_.assignZero(),this.cnv_=null,this.cnvPfx_=1,this}assignVals(r){for(let u in r){let h="_"===!u.charAt(u.length-1)?u+"_":u;if(!this.hasOwnProperty(h))throw new Error(`Parameter error; ${u} is not a property of a Unit`);this[h]=r[u]}}clone(){let r=new a;return Object.getOwnPropertyNames(this).forEach(u=>{"dim_"===u?r.dim_=this.dim_?this.dim_.clone():null:r[u]=this[u]}),r}assign(r){Object.getOwnPropertyNames(r).forEach(u=>{"dim_"===u?this.dim_=r.dim_?r.dim_.clone():null:this[u]=r[u]})}equals(r){return this.magnitude_===r.magnitude_&&this.cnv_===r.cnv_&&this.cnvPfx_===r.cnvPfx_&&(null===this.dim_&&null===r.dim_||this.dim_.equals(r.dim_))}fullEquals(r){let u=Object.keys(this).sort(),h=Object.keys(r).sort(),p=u.length,v=p===h.length;for(let y=0;y0){let u=r.replace("/","!").replace(".","/").replace("=0;k--){let I=parseInt(y[k]);if(!d(I)){if(("-"===y[k]||"+"===y[k])&&k--,k{"use strict";ne.o=void 0;var _=function E(l){if(l&&l.__esModule)return l;if(null===l||"object"!=typeof l&&"function"!=typeof l)return{default:l};var r=C();if(r&&r.has(l))return r.get(l);var u={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in l)if(Object.prototype.hasOwnProperty.call(l,p)){var v=h?Object.getOwnPropertyDescriptor(l,p):null;v&&(v.get||v.set)?Object.defineProperty(u,p,v):u[p]=l[p]}return u.default=l,r&&r.set(l,u),u}(g(9362));function C(){if("function"!=typeof WeakMap)return null;var l=new WeakMap;return C=function(){return l},l}function c(l,r,u){return r in l?Object.defineProperty(l,r,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[r]=u,l}var b=g(2614).Ucum,s=g(4718).Unit,f=g(2043).UnitTables,d=g(5557).PrefixTables;class a{constructor(){this.utabs_=f.getInstance(),this.pfxTabs_=d.getInstance(),this.openEmph_=b.openEmph_,this.closeEmph_=b.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(r){void 0===r||r?(this.openEmph_=b.openEmphHTML_,this.closeEmph_=b.closeEmphHTML_):(this.openEmph_=b.openEmph_,this.closeEmph_=b.closeEmph_)}useBraceMsgForEachString(r){this.bracesMsg_=void 0===r||r?b.bracesMsg_:""}parseString(r,u,h){if(""===(r=r.trim())||null===r)throw new Error("Please specify a unit expression to be validated.");"validate"===u?(this.vcMsgStart_=b.valMsgStart_,this.vcMsgEnd_=b.valMsgEnd_):(this.vcMsgStart_=b.cnvMsgStart_,this.vcMsgEnd_=b.cnvMsgEnd_),this.suggestions_=void 0===h||!1===h?null:[],this.retMsg_=[],this.parensUnits_=[],this.annotations_=[];let p=r,v=[];if(r=this._getAnnotations(r),this.retMsg_.length>0)v[0]=null,v[1]=null;else{let M=null;for(M in b.specUnits_)for(;-1!==r.indexOf(M);)r=r.replace(M,b.specUnits_[M]);if(r.indexOf(" ")>-1)throw new Error("Blank spaces are not allowed in unit expressions.");v=this._parseTheString(r,p);let w=v[0];(_.isIntegerUnit(w)||"number"==typeof w)&&(w=new s({csCode_:p,ciCode_:p,magnitude_:w,name_:p}),v[0]=w)}return v[2]=this.retMsg_,this.suggestions_&&this.suggestions_.length>0&&(v[3]=this.suggestions_),v}_parseTheString(r,u){let h=null,p=this.retMsg_.length>0,v=this._processParens(r,u);p=v[2];let y=[];if(!p){let M=this._makeUnitsArray(r=v[0],u=v[1]);if(p=M[2],!p){y=M[0],u=M[1];let w=y.length;for(let k=0;k=0){let D=this._getParensUnit(I,u);p||(p=D[1]),p||(y[k].un=D[0])}else{let D=this._makeUnit(I,u);null===D[0]?p=!0:(y[k].un=D[0],u=D[1])}}}}return p||(null===y[0]||" "===y[0]||null==y[0].un)&&0===this.retMsg_.length&&(this.retMsg_.push(`Unit string (${u}) did not contain anything that could be used to create a unit, or else something that is not handled yet by this package. Sorry`),p=!0),p||(h=this._performUnitArithmetic(y,u)),[h,u]}_getAnnotations(r){let u=r.indexOf("{");for(;u>=0;){let h=r.indexOf("}");if(h<0)this.retMsg_.push("Missing closing brace for annotation starting at "+this.openEmph_+r.substr(u)+this.closeEmph_),u=-1;else{let p=r.substring(u,h+1);if(a.VALID_ANNOTATION_REGEX.test(p)){let v=this.annotations_.length.toString();r=r.replace(p,this.braceFlag_+v+this.braceFlag_),this.annotations_.push(p),u=r.indexOf("{")}else this.retMsg_.push(a.INVALID_ANNOTATION_CHAR_MSG+this.openEmph_+p+this.closeEmph_),u=-1}}if(0==this.retMsg_.length){let h=r.indexOf("}");h>=0&&this.retMsg_.push("Missing opening brace for closing brace found at "+this.openEmph_+r.substring(0,h+1)+this.closeEmph_)}return r}_processParens(r,u){let h=[],p=0,v=!1,y=this.parensUnits_.length,M=0;for(;""!==r&&!v;){let w=0,k=0,I=r.indexOf("(");if(I<0){let D=r.indexOf(")");if(D>=0){let O=`Missing open parenthesis for close parenthesis at ${r.substring(0,D+M)}${this.openEmph_}${r.substr(D,1)}${this.closeEmph_}`;D0&&(h[p++]=r.substr(0,I));let O=0,T=I+1;for(;T0&&(k=r.substr(0,w-1));let I=r.lastIndexOf(this.parensFlag_),D=null;I+this.pFlagLen_=0){let T=this._getAnnoText(k,u);if(T[1]||T[2])throw new Error(`Text found before the parentheses (${k}) included an annotation along with other text for parenthetical unit ${v.csCode_}`);this.retMsg_.push(`The annotation ${T[0]} before the unit code is invalid.\n`+this.vcMsgStart_+(r+=T[0])+this.vcMsgEnd_)}else this.suggestions_?h="succeeded"!==this._getSuggestions(k):(this.retMsg_.push(`${k} preceding the unit code ${r} is invalid. Unable to make a substitution.`),h=!0);if(D)if(D.indexOf(this.braceFlag_)>=0){let T=this._getAnnoText(D,u);if(T[1]||T[2])throw new Error(`Text found after the parentheses (${D}) included an annotation along with other text for parenthetical unit ${v.csCode_}`);r+=T[0]}else if(_.isNumericString(D)){v=null;let T=`An exponent (${D}) following a parenthesis is invalid as of revision 1.9 of the UCUM Specification.`;r.match(/\d$/)||(T+="\n "+this.vcMsgStart_+(r+=D)+this.vcMsgEnd_),this.retMsg_.push(T),h=!0}else this.suggestions_?h="succeeded"!==this._getSuggestions(k):(this.retMsg_.push(`Text ${D} following the unit code ${r} is invalid. Unable to make a substitution.`),h=!0);return h||(v?_.isIntegerUnit(v)?v=new s({csCode_:v,magnitude_:v,name_:v}):v.csCode_=r:v=new s({csCode_:r,magnitude_:1,name_:r})),[v,h]}_getAnnoText(r,u){let h=r.indexOf(this.braceFlag_),p=h>0?r.substring(0,h):null;0!==h&&(r=r.substr(h));let v=r.indexOf(this.braceFlag_,1),y=v+this.bFlagLen_=this.annotations_.length)throw new Error(`Processing Error - invalid annotation index ${M} found in ${r} that was created from ${u}`);return[r=this.annotations_[w],p,y]}_getSuggestions(r){let u=_.getSynonyms(r);if("succeeded"===u.status){let h={};h.msg=`${r} is not a valid UCUM code. We found possible units that might be what was meant:`,h.invalidUnit=r;let p=u.units.length;h.units=[];for(let v=0;v=0){let p=this._getUnitWithAnnotation(r,u);h=p[0],h&&(u=p[1])}else{if(r.indexOf("^")>-1){let p=r.replace("^","*");h=this.utabs_.getUnitByCode(p),h&&(h=h.clone(),h.csCode_=h.csCode_.replace("*","^"),h.ciCode_=h.ciCode_.replace("*","^"))}if(!h){let p="["+r+"]";h=this.utabs_.getUnitByCode(p),h&&(h=h.clone(),u=u.replace(r,p),this.retMsg_.push(`${r} is not a valid unit expression, but ${p} is.\n`+this.vcMsgStart_+`${p} (${h.name_})${this.vcMsgEnd_}`))}if(!h){let p=this.utabs_.getUnitByName(r);if(p&&p.length>0){h=p[0].clone();let v="The UCUM code for "+r+" is "+h.csCode_+".\n"+this.vcMsgStart_+h.csCode_+this.vcMsgEnd_,y=!1;for(let k=0;k"+A+"",csCode_:N+A,ciCode_:S+A,printSymbol_:R+""+A+""})}}else h=null,this.suggestions_?this._getSuggestions(p):this.retMsg_.push(`${p} is not a valid UCUM code.`)}}return[h,u]}_getUnitWithAnnotation(r,u){let h=null,p=this._getAnnoText(r,u),v=p[0],y=p[1],M=p[2];this.bracesMsg_&&-1===this.retMsg_.indexOf(this.bracesMsg_)&&this.retMsg_.push(this.bracesMsg_);let w=this.retMsg_.length;if(y||M)if(y&&!M)if(_.isIntegerUnit(y))h=y;else{let k=this._makeUnit(y,u);k[0]?(h=k[0],h.csCode_+=v,u=k[1]):this.retMsg_.push(`Unable to find a unit for ${y} that precedes the annotation ${v}.`)}else if(!y&&M)if(_.isIntegerUnit(M))h=M+v,this.retMsg_.push(`The annotation ${v} before the ``${M} is invalid.\n`+this.vcMsgStart_+h+this.vcMsgEnd_);else{let k=this._makeUnit(M,u);k[0]?(h=k[0],h.csCode_+=v,u=h.csCode_,this.retMsg_.push(`The annotation ${v} before the unit code is invalid.\n`+this.vcMsgStart_+h.csCode_+this.vcMsgEnd_)):this.retMsg_.push(`Unable to find a unit for ${y} that follows the annotation ${v}.`)}else this.retMsg_.push(`Unable to find a unit for ${y}${v}${M}.\nWe are not sure how to interpret text both before and after the annotation. Sorry`);else{let k="["+v.substring(1,v.length-1)+"]",I=this._makeUnit(k,u);I[0]?(h=r,this.retMsg_.push(`${v} is a valid unit expression, but did you mean ${k} (${I[0].name_})?`)):this.retMsg_.length>w&&this.retMsg_.pop(),h=new s({csCode_:v,ciCode_:v,magnitude_:1,name_:v})}return[h,u]}_performUnitArithmetic(r,u){let h=r[0].un;_.isIntegerUnit(h)&&(h=new s({csCode_:h,ciCode_:h,magnitude_:Number(h),name_:h}));let p=r.length,v=!1;for(let y=1;y{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.UnitTables=void 0;var t=g(2614).Ucum,C=new class _{constructor(){this.unitNames_={},this.unitCodes_={},this.codeOrder_=[],this.unitStrings_={},this.unitDimensions_={},this.unitSynonyms_={},this.massDimIndex_=0,this.dimVecIndexToBaseUnit_={}}unitsCount(){return Object.keys(this.unitCodes_).length}addUnit(b){b.name_&&this.addUnitName(b),this.addUnitCode(b),this.addUnitString(b);try{b.dim_.getProperty("dimVec_")&&this.addUnitDimension(b)}catch{}if(b.isBase_){const f=b.dim_.dimVec_;let d;for(let a=0,l=f.length;null==d&&a=1&&(f=b.substr(s+t.codeSep_.length),b=b.substr(0,s));let d=this.unitNames_[b];if(d){let a=d.length;if(f&&a>1){let l=0;for(;d[l].csCode_!==f&&l0&&(f+=s),"dim_"===b[v])f+=null!=p.dim_&&p.dim_.dimVec_ instanceof Array?"["+p.dim_.dimVec_.join(",")+"]":"";else{let y=p[b[v]];f+="string"==typeof y?y.replace(/[\n\r]/g," "):y}f+="\r\n"}}return f}printUnits(b,s){void 0===b&&(b=!1),void 0===s&&(s="|");let f="",d=this.codeOrder_.length,a="csCode"+s;b&&(a+="ciCode"+s),a+="name"+s,b&&(a+="isBase"+s),a+="magnitude"+s+"dimension"+s+"from unit(s)"+s+"value"+s+"function"+s,b&&(a+="property"+s+"printSymbol"+s+"synonyms"+s+"source"+s+"class"+s+"isMetric"+s+"variable"+s+"isSpecial"+s+"isAbitrary"+s),a+="comment",f=a+"\n";for(let l=0;l{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.AppComponent=void 0;const t=g(5215),E=(g(8414),g(3955),t.__importDefault(g(8330))),c=t.__importStar(g(4438)),b=t.__importStar(g(3955)),s=t.__importStar(g(8414)),f=t.__importStar(g(9213)),d=t.__importStar(g(7901));ne.AppComponent=(()=>{class l{constructor(u,h){this.version=E.default.version,u.setDefaultLang("de"),u.use(u.getBrowserLang());let p=location.origin;if("http://localhost:4200"===p)console.log("note: using local dev mag system for"+location.origin),h.changeFhirMicroService("http://localhost:8080/matchboxv3/fhir");else{let v=p+location.pathname+"fhir";h.changeFhirMicroService(v),console.log("fhir endpoint "+v)}}static#e=this.\u0275fac=function(h){return new(h||l)(c.\u0275\u0275directiveInject(b.TranslateService),c.\u0275\u0275directiveInject(s.FhirConfigService))};static#t=this.\u0275cmp=c.\u0275\u0275defineComponent({type:l,selectors:[["app-root"]],decls:43,vars:1,consts:[["routerLink","/",1,"logo-container"],["alt","Matchbox logo","height","40","src","assets/matchbox_logo_color.png","width","95"],[1,"version"],["routerLink","/"],["routerLink","/CapabilityStatement"],["routerLink","/igs"],["routerLink","/mappinglanguage"],["routerLink","/transform"],["routerLink","/validate"],["routerLink","/settings"],[1,"mat-typography"]],template:function(h,p){1&h&&(c.\u0275\u0275elementStart(0,"header")(1,"div",0),c.\u0275\u0275element(2,"img",1),c.\u0275\u0275elementStart(3,"span",2),c.\u0275\u0275text(4),c.\u0275\u0275elementEnd()(),c.\u0275\u0275elementStart(5,"nav")(6,"div",3)(7,"mat-icon"),c.\u0275\u0275text(8,"home"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(9,"span"),c.\u0275\u0275text(10,"Home"),c.\u0275\u0275elementEnd()(),c.\u0275\u0275elementStart(11,"div",4)(12,"mat-icon"),c.\u0275\u0275text(13,"info"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(14,"span"),c.\u0275\u0275text(15,"CapabilityStatement"),c.\u0275\u0275elementEnd()(),c.\u0275\u0275elementStart(16,"div",5)(17,"mat-icon"),c.\u0275\u0275text(18,"info"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(19,"span"),c.\u0275\u0275text(20,"IGs"),c.\u0275\u0275elementEnd()(),c.\u0275\u0275elementStart(21,"div",6)(22,"mat-icon"),c.\u0275\u0275text(23,"search"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(24,"span"),c.\u0275\u0275text(25,"FHIR Mapping"),c.\u0275\u0275elementEnd()(),c.\u0275\u0275elementStart(26,"div",7)(27,"mat-icon"),c.\u0275\u0275text(28,"transform"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(29,"span"),c.\u0275\u0275text(30,"Transform"),c.\u0275\u0275elementEnd()(),c.\u0275\u0275elementStart(31,"div",8)(32,"mat-icon"),c.\u0275\u0275text(33,"rule"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(34,"span"),c.\u0275\u0275text(35,"Validate"),c.\u0275\u0275elementEnd()(),c.\u0275\u0275elementStart(36,"div",9)(37,"mat-icon"),c.\u0275\u0275text(38,"settings"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(39,"span"),c.\u0275\u0275text(40,"Settings"),c.\u0275\u0275elementEnd()()()(),c.\u0275\u0275elementStart(41,"main",10),c.\u0275\u0275element(42,"router-outlet"),c.\u0275\u0275elementEnd()),2&h&&(c.\u0275\u0275advance(4),c.\u0275\u0275textInterpolate1("v",p.version,""))},dependencies:[f.MatIcon,d.RouterOutlet,d.RouterLink],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)}header[_ngcontent-%COMP%]{background:#97d6ba;display:flex;flex-wrap:wrap;flex:0 1 auto;padding:10px 2em;justify-content:space-between}header[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%]{display:inline-block}header[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%] .version[_ngcontent-%COMP%]{color:#2e7d73;font-size:.9em;display:inline-block;margin:4px 0 0 10px;vertical-align:top}header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{display:flex;margin-top:10px}header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:inline-block;margin:0 1rem;cursor:pointer;color:#3d5c73}header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] div[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;vertical-align:middle;color:#d2eade}main[_ngcontent-%COMP%]{width:100%;margin:0 auto}@media (max-width: 1140px){header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:0 7px}header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] div[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px;font-size:18px;width:18px;height:18px}}"]})}return l})()},635:(Ie,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.AppModule=ne.createTranslateLoader=void 0;const t=g(5215),_=g(1626),C=g(7901),E=g(3955),c=g(5635),b=g(92),s=g(4010),f=g(7824),d=g(1536),a=g(728),l=g(3887),r=g(5928),u=g(2774),h=g(2808),p=g(5442),v=g(1244),y=g(4110),M=t.__importStar(g(4438)),D=(t.__importStar(g(7901)),t.__importStar(g(3955)),t.__importStar(g(1244)),[{path:"",component:f.HomeComponent},{path:"mappinglanguage",component:d.MappingLanguageComponent},{path:"CapabilityStatement",component:s.CapabilityStatementComponent},{path:"igs",component:r.IgsComponent},{path:"settings",component:a.SettingsComponent},{path:"transform",component:h.TransformComponent},{path:"validate",component:p.ValidateComponent}]);function O(U){return new c.TranslateHttpLoader(U,"./assets/i18n/",".json")}ne.createTranslateLoader=O,ne.AppModule=(()=>{class U{static#e=this.\u0275fac=function(N){return new(N||U)};static#t=this.\u0275mod=M.\u0275\u0275defineNgModule({type:U,bootstrap:[b.AppComponent]});static#n=this.\u0275inj=M.\u0275\u0275defineInjector({providers:[{provide:u.HIGHLIGHT_OPTIONS,useValue:{coreLibraryLoader:()=>Promise.resolve().then(()=>t.__importStar(g(6653))),lineNumbersLoader:()=>Promise.resolve().then(()=>t.__importStar(g(2806))),languages:{json:()=>Promise.resolve().then(()=>t.__importStar(g(8028))),xml:()=>Promise.resolve().then(()=>t.__importStar(g(8133)))}}}],imports:[l.SharedModule,_.HttpClientModule,u.HighlightModule,C.RouterModule.forRoot(D,{useHash:!0}),E.TranslateModule.forRoot({loader:{provide:E.TranslateLoader,useFactory:O,deps:[_.HttpClient]}}),v.OAuthModule.forRoot(),y.NgxMatSelectSearchModule]})}return U})()},4010:(Ie,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.CapabilityStatementComponent=void 0;const t=g(5215),C=(g(8414),t.__importDefault(g(6507)));g(740),g(9748);const E=g(6974),c=t.__importStar(g(4438)),b=t.__importStar(g(8414)),s=t.__importStar(g(177)),f=t.__importStar(g(9183)),d=t.__importStar(g(968));function a(h,p){1&h&&c.\u0275\u0275element(0,"mat-spinner")}function l(h,p){if(1&h&&c.\u0275\u0275element(0,"app-operation-result",4),2&h){const v=c.\u0275\u0275nextContext();c.\u0275\u0275property("operationResult",v.operationResult)}}ne.CapabilityStatementComponent=(()=>{class h{constructor(v){this.data=v,this.capabilityStatement=null,this.operationResult=null,this.loading=!0,this.client=v.getFhirClient()}ngAfterViewInit(){this.client.capabilityStatement().then(v=>{this.loading=!1,this.operationResult=null,this.editor=C.default.edit("code"),this.editor.setReadOnly(!0),this.editor.setValue(JSON.stringify(v,null,4),-1),this.editor.getSession().setMode("ace/mode/json"),this.editor.setTheme("ace/theme/textmate"),this.editor.setOptions({maxLines:1e4,tabSize:4,wrap:!0,useWorker:!1}),this.editor.resize(!0)}).catch(v=>{console.error(v),this.loading=!1,this.capabilityStatement=null,this.editor&&(this.editor.destroy(),this.editor.container.remove()),this.editor=null,this.operationResult=v.response?.data?E.OperationResult.fromOperationOutcome(v.response.data):E.OperationResult.fromMatchboxError(v.message)})}static#e=this.\u0275fac=function(y){return new(y||h)(c.\u0275\u0275directiveInject(b.FhirConfigService))};static#t=this.\u0275cmp=c.\u0275\u0275defineComponent({type:h,selectors:[["app-capability-statement"]],decls:10,vars:3,consts:[["id","capability-statement",1,"white-block"],[4,"ngIf"],["id","code"],[3,"operationResult",4,"ngIf"],[3,"operationResult"]],template:function(y,M){1&y&&(c.\u0275\u0275elementStart(0,"div",0)(1,"h2"),c.\u0275\u0275text(2,"CapabilityStatement"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(3,"p"),c.\u0275\u0275text(4," CapabilityStatement of the server: "),c.\u0275\u0275elementStart(5,"code"),c.\u0275\u0275text(6),c.\u0275\u0275elementEnd()(),c.\u0275\u0275template(7,a,1,0,"mat-spinner",1),c.\u0275\u0275element(8,"div",2),c.\u0275\u0275template(9,l,1,1,"app-operation-result",3),c.\u0275\u0275elementEnd()),2&y&&(c.\u0275\u0275advance(6),c.\u0275\u0275textInterpolate(M.client.baseUrl),c.\u0275\u0275advance(),c.\u0275\u0275property("ngIf",M.loading),c.\u0275\u0275advance(2),c.\u0275\u0275property("ngIf",M.operationResult))},dependencies:[s.NgIf,f.MatProgressSpinner,d.OperationResultComponent]})}return h})()},8414:(Ie,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.FhirConfigService=void 0;const t=g(5215),_=t.__importDefault(g(3833)),C=t.__importStar(g(4438));ne.FhirConfigService=(()=>{class c{constructor(){}changeFhirMicroService(s){localStorage.setItem("fhirMicroServer",s)}getFhirMicroService(){return localStorage.getItem("fhirMicroServer")}getFhirClient(){return new _.default({baseUrl:this.getFhirMicroService()})}static#e=this.\u0275fac=function(f){return new(f||c)};static#t=this.\u0275prov=C.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})()},7171:(Ie,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.FhirPathService=void 0;const t=g(5215),_=g(7273),C=t.__importStar(g(4438));ne.FhirPathService=(()=>{class c{evaluate(s,f){return(0,_.evaluate)(s,f,null)}evaluateToString(s,f){const d=this.evaluate(s,f);return d&&d instanceof Array&&1===d.length?d[0]:null}getOauthUriToken(s){return this.evaluateToString(s,"rest.security.extension.where(url='http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris').extension.where(url='token').valueUri")}getOauthUriAuthorize(s){return this.evaluateToString(s,"rest.security.extension.where(url='http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris').extension.where(url='authorize').valueUri")}static#e=this.\u0275fac=function(f){return new(f||c)};static#t=this.\u0275prov=C.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})()},7824:(Ie,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.HomeComponent=void 0;const t=g(5215),_=t.__importDefault(g(8330)),C=t.__importStar(g(4438)),E=t.__importStar(g(5596)),c=t.__importStar(g(9213)),b=t.__importStar(g(9115)),s=t.__importStar(g(7901));ne.HomeComponent=(()=>{class d{constructor(){this.version=_.default.version}static#e=this.\u0275fac=function(r){return new(r||d)};static#t=this.\u0275cmp=C.\u0275\u0275defineComponent({type:d,selectors:[["app-home"]],decls:31,vars:1,consts:[[1,"primary"],["mat-menu-item","","routerLink","/validate"],["mat-menu-item","","routerLink","/igs"],["mat-menu-item","","routerLink","/settings"],["href","https://fhirpath-lab.com/FhirPath","target","_blank"],["href","https://fhirpath-lab.com/FhirMapper2","target","_blank"],["href","https://www.ahdis.ch","rel","external nofollow noopener","target","_blank"]],template:function(r,u){1&r&&(C.\u0275\u0275elementStart(0,"mat-card",0)(1,"mat-card-content")(2,"button",1)(3,"mat-icon"),C.\u0275\u0275text(4,"rule"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(5,"span"),C.\u0275\u0275text(6,"Validate resource"),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(7,"button",2)(8,"mat-icon"),C.\u0275\u0275text(9,"info"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(10,"span"),C.\u0275\u0275text(11,"Installed IGs"),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(12,"button",3)(13,"mat-icon"),C.\u0275\u0275text(14,"settings"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(15,"span"),C.\u0275\u0275text(16,"Settings"),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(17,"p"),C.\u0275\u0275text(18,"Other tools:"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(19,"ul")(20,"li")(21,"a",4),C.\u0275\u0275text(22,"FHIRPath tester"),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(23,"li")(24,"a",5),C.\u0275\u0275text(25,"FHIR Mapper"),C.\u0275\u0275elementEnd()()()(),C.\u0275\u0275elementStart(26,"mat-card-footer")(27,"p"),C.\u0275\u0275text(28),C.\u0275\u0275elementStart(29,"a",6),C.\u0275\u0275text(30," contact"),C.\u0275\u0275elementEnd()()()()),2&r&&(C.\u0275\u0275advance(28),C.\u0275\u0275textInterpolate1(" matchbox version: ",u.version," | "))},dependencies:[E.MatCard,E.MatCardContent,E.MatCardFooter,c.MatIcon,b.MatMenuItem,s.RouterLink],styles:["mat-card.primary[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:20px}mat-card.primary[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;vertical-align:middle;color:#68c39a}mat-card.primary[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:30px 0 15px}mat-card.primary[_ngcontent-%COMP%] mat-card-footer[_ngcontent-%COMP%]{padding:0 1.5rem 1.5rem}"]})}return d})()},5928:(Ie,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.IgsComponent=void 0;const t=g(5215),C=(g(8414),g(9417)),c=(g(7171),g(6974)),b=t.__importStar(g(4438)),s=t.__importStar(g(8414)),f=t.__importStar(g(7171)),d=t.__importStar(g(177)),a=t.__importStar(g(9417)),l=t.__importStar(g(2102)),r=t.__importStar(g(9631)),u=t.__importStar(g(9183)),h=t.__importStar(g(968));function p(D,O){if(1&D){const T=b.\u0275\u0275getCurrentView();b.\u0275\u0275elementStart(0,"tr",9),b.\u0275\u0275listener("click",function(){const S=b.\u0275\u0275restoreView(T).$implicit,R=b.\u0275\u0275nextContext();return b.\u0275\u0275resetView(R.selectRow(S))}),b.\u0275\u0275elementStart(1,"td"),b.\u0275\u0275text(2),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(3,"td",10),b.\u0275\u0275text(4),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(5,"td",10),b.\u0275\u0275text(6),b.\u0275\u0275elementEnd()()}if(2&D){const T=O.$implicit;b.\u0275\u0275advance(2),b.\u0275\u0275textInterpolate(T.packageId),b.\u0275\u0275advance(2),b.\u0275\u0275textInterpolate(T.version),b.\u0275\u0275advance(2),b.\u0275\u0275textInterpolate(T.title)}}function v(D,O){if(1&D){const T=b.\u0275\u0275getCurrentView();b.\u0275\u0275elementContainerStart(0),b.\u0275\u0275text(1,"\xa0 "),b.\u0275\u0275elementStart(2,"button",6),b.\u0275\u0275listener("click",function(){b.\u0275\u0275restoreView(T);const S=b.\u0275\u0275nextContext();return b.\u0275\u0275resetView(S.onUpdate())}),b.\u0275\u0275text(3,"Update"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementContainerEnd()}}function y(D,O){if(1&D){const T=b.\u0275\u0275getCurrentView();b.\u0275\u0275elementContainerStart(0),b.\u0275\u0275text(1,"\xa0 "),b.\u0275\u0275elementStart(2,"button",6),b.\u0275\u0275listener("click",function(){b.\u0275\u0275restoreView(T);const S=b.\u0275\u0275nextContext();return b.\u0275\u0275resetView(S.onDelete())}),b.\u0275\u0275text(3,"Delete"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementContainerEnd()}}function M(D,O){1&D&&(b.\u0275\u0275elementContainerStart(0),b.\u0275\u0275element(1,"mat-progress-spinner",11),b.\u0275\u0275elementContainerEnd())}function w(D,O){if(1&D&&b.\u0275\u0275element(0,"app-operation-result",14),2&D){const T=b.\u0275\u0275nextContext(2);b.\u0275\u0275property("operationResult",T.operationResult)}}function k(D,O){if(1&D&&(b.\u0275\u0275elementStart(0,"div",12)(1,"h2"),b.\u0275\u0275text(2,"Result of the last operation"),b.\u0275\u0275elementEnd(),b.\u0275\u0275template(3,w,1,1,"app-operation-result",13),b.\u0275\u0275elementEnd()),2&D){const T=b.\u0275\u0275nextContext();b.\u0275\u0275advance(3),b.\u0275\u0275property("ngIf",T.operationResult)}}ne.IgsComponent=(()=>{class D{constructor(T,U){this.data=T,this.fhirPathService=U,this.update=!1,this.operationResult=null,this.query={_sort:"title",_count:1e4},this.client=T.getFhirClient(),this.addPackageId=new C.UntypedFormControl("",[C.Validators.required,C.Validators.minLength(1)]),this.addVersion=new C.UntypedFormControl("current",[C.Validators.required,C.Validators.minLength(1)]),this.addUrl=new C.UntypedFormControl("url"),this.search()}search(){this.client.search({resourceType:"ImplementationGuide",searchParams:this.query}).then(T=>{this.igs=T.entry.map(S=>S.resource),this.selection=void 0,this.addPackageId.setValue(""),this.addVersion.setValue(""),this.addUrl.setValue("")}).catch(T=>{this.errorMessage="Error accessing FHIR server",this.operationResult=T.response?.data?c.OperationResult.fromOperationOutcome(T.response.data):c.OperationResult.fromMatchboxError(T.message)}),this.update=!1}getPackageUrl(T){return this.fhirPathService.evaluateToString(T,"extension.where(url='http://ahdis.ch/fhir/extension/packageUrl').valueUri")}selectRow(T){this.selection=T,this.addPackageId.setValue(this.selection.packageId),this.addUrl.setValue(this.getPackageUrl(T));let U=this.selection.version;U&&U.endsWith(" (last)")&&(U=U.substring(0,U.length-7)),this.addVersion.setValue(U)}onSubmit(){if(this.errorMessage=null,this.addPackageId.invalid||this.addVersion.invalid)return void(this.errorMessage="Please provide package name");let T=this.addPackageId.value.trim();T.indexOf("#")>0&&(T.substring(0,T.indexOf("#")-1),this.addVersion.setValue(T.substring(0,T.indexOf("#")+1))),this.addPackageId.setValue(T);const U=this.addVersion.value.trim();this.addVersion.setValue(U),this.update=!0,this.client.create({resourceType:"ImplementationGuide",body:{resourceType:"ImplementationGuide",name:T,version:U,packageId:T,url:this.addUrl.value},options:{headers:{Prefer:"return=OperationOutcome"}}}).then(S=>{this.errorMessage="Created Implementation Guide "+this.addPackageId.value,this.operationResult=c.OperationResult.fromOperationOutcome(S),this.search()}).catch(S=>{this.errorMessage="Error creating Implementation Guide "+this.addPackageId.value,this.operationResult=S.response?.data?c.OperationResult.fromOperationOutcome(S.response.data):c.OperationResult.fromMatchboxError(S.message),this.update=!1})}onUpdate(){this.errorMessage=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(T=>{this.errorMessage="Updated Implementation Guide "+this.selection.packageId,this.operationResult=c.OperationResult.fromOperationOutcome(T),this.search()}).catch(T=>{this.errorMessage="Error updating Implementation Guide "+this.selection.packageId,this.operationResult=T.response?.data?c.OperationResult.fromOperationOutcome(T.response.data):c.OperationResult.fromMatchboxError(T.message),this.update=!1})}onDelete(){this.errorMessage=null,this.update=!0,this.client.delete({resourceType:this.selection.resourceType,id:this.selection.id,options:{headers:{Prefer:"return=OperationOutcome","X-Cascade":"delete"}}}).then(T=>{this.errorMessage="Deleted Implementation Guide Resource "+this.selection.packageId,this.operationResult=c.OperationResult.fromOperationOutcome(T),this.search()}).catch(T=>{this.errorMessage="Error deleting Implementation Guide "+this.selection.packageId,this.operationResult=T.response?.data?c.OperationResult.fromOperationOutcome(T.response.data):c.OperationResult.fromMatchboxError(T.message),this.update=!1})}static#e=this.\u0275fac=function(U){return new(U||D)(b.\u0275\u0275directiveInject(s.FhirConfigService),b.\u0275\u0275directiveInject(f.FhirPathService))};static#t=this.\u0275cmp=b.\u0275\u0275defineComponent({type:D,selectors:[["app-igs"]],decls:40,vars:8,consts:[[1,"white-block","card-igs"],[3,"click",4,"ngFor","ngForOf"],[1,"white-block","Search","card-igs"],["matInput","",3,"formControl"],[2,"width","50vw"],["href","https://packages.fhir.org"],["type","submit",3,"click"],[4,"ngIf"],["class","white-block logs",4,"ngIf"],[3,"click"],[1,"secondary"],["mode","indeterminate"],[1,"white-block","logs"],[3,"operationResult",4,"ngIf"],[3,"operationResult"]],template:function(U,S){1&U&&(b.\u0275\u0275elementStart(0,"div",0)(1,"h2"),b.\u0275\u0275text(2,"ImplementationGuides installed on the server"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(3,"table")(4,"thead")(5,"tr")(6,"th"),b.\u0275\u0275text(7,"Package"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(8,"th"),b.\u0275\u0275text(9,"Version"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(10,"th"),b.\u0275\u0275text(11,"Title"),b.\u0275\u0275elementEnd()()(),b.\u0275\u0275elementStart(12,"tbody"),b.\u0275\u0275template(13,p,7,3,"tr",1),b.\u0275\u0275elementEnd()()(),b.\u0275\u0275elementStart(14,"div",2)(15,"h3"),b.\u0275\u0275text(16,"Install an ImplementationGuide"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(17,"mat-form-field")(18,"mat-label"),b.\u0275\u0275text(19,"PackageId"),b.\u0275\u0275elementEnd(),b.\u0275\u0275element(20,"input",3),b.\u0275\u0275elementEnd(),b.\u0275\u0275text(21," \xa0 "),b.\u0275\u0275elementStart(22,"mat-form-field")(23,"mat-label"),b.\u0275\u0275text(24,"Version"),b.\u0275\u0275elementEnd(),b.\u0275\u0275element(25,"input",3),b.\u0275\u0275elementEnd(),b.\u0275\u0275text(26," \xa0 "),b.\u0275\u0275elementStart(27,"mat-form-field",4)(28,"mat-label"),b.\u0275\u0275text(29,"Package url (optional, use only if not available through "),b.\u0275\u0275elementStart(30,"a",5),b.\u0275\u0275text(31,"packages.fhir.org"),b.\u0275\u0275elementEnd(),b.\u0275\u0275text(32,") "),b.\u0275\u0275elementEnd(),b.\u0275\u0275element(33,"input",3),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(34,"button",6),b.\u0275\u0275listener("click",function(){return S.onSubmit()}),b.\u0275\u0275text(35,"Upload"),b.\u0275\u0275elementEnd(),b.\u0275\u0275template(36,v,4,0,"ng-container",7)(37,y,4,0,"ng-container",7),b.\u0275\u0275elementEnd(),b.\u0275\u0275template(38,M,2,0,"ng-container",7)(39,k,4,1,"div",8)),2&U&&(b.\u0275\u0275advance(13),b.\u0275\u0275property("ngForOf",S.igs),b.\u0275\u0275advance(7),b.\u0275\u0275property("formControl",S.addPackageId),b.\u0275\u0275advance(5),b.\u0275\u0275property("formControl",S.addVersion),b.\u0275\u0275advance(8),b.\u0275\u0275property("formControl",S.addUrl),b.\u0275\u0275advance(3),b.\u0275\u0275property("ngIf",S.selection),b.\u0275\u0275advance(),b.\u0275\u0275property("ngIf",S.selection),b.\u0275\u0275advance(),b.\u0275\u0275property("ngIf",S.update),b.\u0275\u0275advance(),b.\u0275\u0275property("ngIf",S.errorMessage))},dependencies:[d.NgForOf,d.NgIf,a.DefaultValueAccessor,a.NgControlStatus,a.FormControlDirective,l.MatFormField,l.MatLabel,r.MatInput,u.MatProgressSpinner,h.OperationResultComponent],styles:[".secondary[_ngcontent-%COMP%]{color:#6b7280}table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:1px solid rgb(209,213,219);padding-bottom:1rem}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:1px solid rgb(229,231,235);padding-top:1rem;padding-bottom:1rem}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:hover{background:#eee}.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}"]})}return D})()},1536:(Ie,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.MappingLanguageComponent=void 0;const t=g(5215),E=(g(4438),g(8414),g(9417)),c=g(2326),b=t.__importDefault(g(282)),s=t.__importStar(g(4438)),f=t.__importStar(g(8414)),d=t.__importStar(g(177)),a=t.__importStar(g(9417)),l=t.__importStar(g(5596)),r=t.__importStar(g(2102)),u=t.__importStar(g(9631));function h(k,I){if(1&k&&(s.\u0275\u0275elementStart(0,"li"),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&k){const D=I.$implicit;s.\u0275\u0275advance(),s.\u0275\u0275textInterpolate1(" ",D.diagnostics," ")}}function p(k,I){if(1&k&&(s.\u0275\u0275elementStart(0,"mat-error")(1,"ul"),s.\u0275\u0275template(2,h,2,1,"li",7),s.\u0275\u0275elementEnd()()),2&k){const D=s.\u0275\u0275nextContext();s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",D.operationOutcome.issue)}}function v(k,I){if(1&k&&(s.\u0275\u0275elementStart(0,"mat-hint"),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&k){const D=s.\u0275\u0275nextContext();s.\u0275\u0275advance(),s.\u0275\u0275textInterpolate1("Successfully created on server: ",D.structureMap.url," ")}}function y(k,I){if(1&k&&(s.\u0275\u0275elementStart(0,"li"),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&k){const D=I.$implicit;s.\u0275\u0275advance(),s.\u0275\u0275textInterpolate1(" ",D.diagnostics," ")}}function M(k,I){if(1&k&&(s.\u0275\u0275elementStart(0,"mat-error")(1,"ul"),s.\u0275\u0275template(2,y,2,1,"li",7),s.\u0275\u0275elementEnd()()),2&k){const D=s.\u0275\u0275nextContext();s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",D.operationOutcomeTransformed.issue)}}class w{static#e=this.log=(0,b.default)("app:");constructor(I,D){this.cd=I,this.data=D,this.client=D.getFhirClient(),this.source=new E.UntypedFormControl,this.map=new E.UntypedFormControl,this.structureMap=null,this.map.valueChanges.pipe((0,c.debounceTime)(1e3),(0,c.distinctUntilChanged)()).subscribe(O=>{w.log("create StructureMap"),this.client.create({resourceType:"StructureMap",body:O,headers:{accept:"application/fhir+json","content-type":"text/fhir-mapping"}}).then(T=>{this.operationOutcome=null,this.structureMap=T,this.transform()}).catch(T=>{this.structureMap=null,this.operationOutcome=T.response.data})}),this.source.valueChanges.pipe((0,c.debounceTime)(1e3),(0,c.distinctUntilChanged)()).subscribe(O=>this.transform())}transform(){w.log("transform Source");let I=JSON.parse(this.source.value);null!=this.structureMap&&this.client.operation({name:"transform?source="+encodeURIComponent(this.structureMap.url),resourceType:"StructureMap",input:I}).then(D=>{this.operationOutcomeTransformed=null,this.transformed=D}).catch(D=>{this.transformed=null,this.operationOutcomeTransformed=D.response.data})}ngOnInit(){}fileSource(I){const D=new FileReader;if(I.target.files&&I.target.files.length){const[O]=I.target.files;D.readAsText(O),D.onload=()=>{this.source.setValue(D.result),this.cd.markForCheck()}}}fileChange(I){const D=new FileReader;if(I.target.files&&I.target.files.length){const[O]=I.target.files;D.readAsText(O),D.onload=()=>{this.map.setValue(D.result),this.cd.markForCheck()}}}static#t=this.\u0275fac=function(D){return new(D||w)(s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(f.FhirConfigService))};static#n=this.\u0275cmp=s.\u0275\u0275defineComponent({type:w,selectors:[["app-mapping-language"]],decls:31,vars:8,consts:[[1,"card-maps"],[1,"fixtextarea"],["accept",".json","placeholder","Upload source","type","file",3,"change"],["cols","400","matNativeControl","","rows","15",3,"formControl"],["accept",".map","placeholder","Upload map","type","file",3,"change"],["cols","400","matNativeControl","","rows","20",3,"formControl"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(D,O){1&D&&(s.\u0275\u0275elementStart(0,"mat-card",0)(1,"mat-card-content")(2,"mat-card-header")(3,"mat-card-title"),s.\u0275\u0275text(4,"Source"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(5,"mat-form-field",1)(6,"mat-card-actions")(7,"input",2),s.\u0275\u0275listener("change",function(U){return O.fileSource(U)}),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(8,"textarea",3),s.\u0275\u0275text(9," "),s.\u0275\u0275elementEnd()()()(),s.\u0275\u0275elementStart(10,"mat-card",0)(11,"mat-card-content")(12,"mat-card-header")(13,"mat-card-title"),s.\u0275\u0275text(14,"FHIR Mapping Language map"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(15,"mat-form-field",1)(16,"mat-card-actions")(17,"input",4),s.\u0275\u0275listener("change",function(U){return O.fileChange(U)}),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(18,"textarea",5),s.\u0275\u0275text(19," "),s.\u0275\u0275elementEnd()(),s.\u0275\u0275template(20,p,3,1,"mat-error",6)(21,v,2,1,"mat-hint",6),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(22,"mat-card",0)(23,"mat-card-content")(24,"mat-card-header")(25,"mat-card-title"),s.\u0275\u0275text(26,"Transformed"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275template(27,M,3,1,"mat-error",6),s.\u0275\u0275elementStart(28,"pre"),s.\u0275\u0275text(29),s.\u0275\u0275pipe(30,"json"),s.\u0275\u0275elementEnd()()()),2&D&&(s.\u0275\u0275advance(8),s.\u0275\u0275property("formControl",O.source),s.\u0275\u0275advance(10),s.\u0275\u0275property("formControl",O.map),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngIf",O.operationOutcome),s.\u0275\u0275advance(),s.\u0275\u0275property("ngIf",O.structureMap),s.\u0275\u0275advance(6),s.\u0275\u0275property("ngIf",O.operationOutcomeTransformed),s.\u0275\u0275advance(2),s.\u0275\u0275textInterpolate(s.\u0275\u0275pipeBind1(30,6,O.transformed)))},dependencies:[d.NgForOf,d.NgIf,a.DefaultValueAccessor,a.NgControlStatus,a.FormControlDirective,l.MatCard,l.MatCardActions,l.MatCardContent,l.MatCardHeader,l.MatCardTitle,r.MatFormField,r.MatHint,r.MatError,u.MatInput,d.JsonPipe],styles:[".fixtextarea[_ngcontent-%COMP%]{display:inline}.card-maps[_ngcontent-%COMP%]{margin-bottom:10px}"]})}ne.MappingLanguageComponent=w},968:(Ie,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.OperationResultComponent=void 0;const t=g(5215),_=g(4438),c=(g(345),g(6974),t.__importStar(g(4438))),b=t.__importStar(g(345)),s=t.__importStar(g(177)),f=p=>({clickable:p});function d(p,v){if(1&p&&(c.\u0275\u0275elementStart(0,"li",8),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()),2&p){const y=v.$implicit;c.\u0275\u0275advance(),c.\u0275\u0275textInterpolate1(" ",y," ")}}function a(p,v){if(1&p&&(c.\u0275\u0275elementStart(0,"ol"),c.\u0275\u0275template(1,d,2,1,"li",7),c.\u0275\u0275elementEnd()),2&p){const y=c.\u0275\u0275nextContext().$implicit;c.\u0275\u0275advance(),c.\u0275\u0275property("ngForOf",y.sliceInfo)}}function l(p,v){if(1&p){const y=c.\u0275\u0275getCurrentView();c.\u0275\u0275elementStart(0,"li",3),c.\u0275\u0275listener("click",function(){const w=c.\u0275\u0275restoreView(y).$implicit,k=c.\u0275\u0275nextContext(2);return c.\u0275\u0275resetView(k.select.emit(w))}),c.\u0275\u0275elementStart(1,"span",4),c.\u0275\u0275text(2),c.\u0275\u0275elementEnd(),c.\u0275\u0275element(3,"span",5)(4,"br"),c.\u0275\u0275elementStart(5,"p"),c.\u0275\u0275text(6),c.\u0275\u0275elementEnd(),c.\u0275\u0275template(7,a,2,1,"ol",6),c.\u0275\u0275elementEnd()}if(2&p){const y=v.$implicit,M=c.\u0275\u0275nextContext(2);c.\u0275\u0275classMapInterpolate1("issue ",y.severity,""),c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate(y.severity),c.\u0275\u0275advance(),c.\u0275\u0275property("innerHtml",M.getTemplateHeaderLine(y),c.\u0275\u0275sanitizeHtml),c.\u0275\u0275advance(3),c.\u0275\u0275textInterpolate(y.text),c.\u0275\u0275advance(),c.\u0275\u0275property("ngIf",y.sliceInfo.length)}}function r(p,v){if(1&p&&(c.\u0275\u0275elementStart(0,"ul",1),c.\u0275\u0275template(1,l,8,7,"li",2),c.\u0275\u0275elementEnd()),2&p){const y=c.\u0275\u0275nextContext();c.\u0275\u0275property("ngClass",c.\u0275\u0275pureFunction1(2,f,y.reactsToClick)),c.\u0275\u0275advance(),c.\u0275\u0275property("ngForOf",y.result.issues)}}const u=["fatal","error","warning","information"];ne.OperationResultComponent=(()=>{class p{set operationResult(y){this.result=y,this.result&&this.result.issues.length&&this.result.issues.sort(p.sortIssues)}constructor(y){this.sanitized=y,this.select=new _.EventEmitter,this.reactsToClick=!1}ngOnInit(){this.reactsToClick=this.select.observed}static sortIssues(y,M){const w=u.indexOf(y.severity)-u.indexOf(M.severity);return 0!==w?w:(y.line??0)-(M.line??0)}getTemplateHeaderLine(y){let M="";y.code&&(M+=` [${y.code}]`),M+=": ";const w=[];return y.line&&w.push(`line ${y.line}`),y.col&&w.push(`column ${y.col}`),y.expression&&w.push(`in ${y.expression}`),w.length&&(M+=w.join(", ")+":"),this.sanitized.bypassSecurityTrustHtml(M)}static#e=this.\u0275fac=function(M){return new(M||p)(c.\u0275\u0275directiveInject(b.DomSanitizer))};static#t=this.\u0275cmp=c.\u0275\u0275defineComponent({type:p,selectors:[["app-operation-result"]],inputs:{operationResult:"operationResult"},outputs:{select:"select"},decls:1,vars:1,consts:[[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"class","click",4,"ngFor","ngForOf"],[3,"click"],[1,"severity"],[3,"innerHtml"],[4,"ngIf"],["class","slice",4,"ngFor","ngForOf"],[1,"slice"]],template:function(M,w){1&M&&c.\u0275\u0275template(0,r,2,4,"ul",0),2&M&&c.\u0275\u0275property("ngIf",w.result)},dependencies:[s.NgClass,s.NgForOf,s.NgIf],styles:[".card-maps[_ngcontent-%COMP%]{margin-bottom:10px}.app-ace-editor[_ngcontent-%COMP%]{border:2px solid #f8f9fa;box-shadow:0 .5rem 1rem #00000026}ul[_ngcontent-%COMP%]{list-style:none;padding:0}.clickable[_ngcontent-%COMP%] .issue[_ngcontent-%COMP%]{cursor:pointer}.issue[_ngcontent-%COMP%]{border:1px solid #e1e1e1;background:#fbfbfb;border-radius:5px;padding:5px 8px;--color: #000;border-left:4px solid var(--color);margin-bottom:4px}.issue[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:2px 0 0}.issue[_ngcontent-%COMP%] .severity[_ngcontent-%COMP%]{color:var(--color);font-weight:600}.issue.fatal[_ngcontent-%COMP%], .issue.error[_ngcontent-%COMP%]{--color: #d9534f}.issue.warning[_ngcontent-%COMP%]{--color: #f0ad4e}.issue.information[_ngcontent-%COMP%]{--color: #4ca8de}[_nghost-%COMP%] .issue .code{font-size:.9em;color:#636363}[_nghost-%COMP%] .issue>span>code{background:#e1e1e1;border-radius:4px;padding:2px 4px;font-family:courier,monospace} .ace-highlight-fatal{position:absolute;background:#c30;opacity:.4} .ace-highlight-error{position:absolute;background:#f96;opacity:.4} .ace-highlight-warning{position:absolute;background:#fc0;opacity:.4} .ace-highlight-information{position:absolute;background:#9c3;opacity:.4}"]})}return p})()},728:(Ie,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.SettingsComponent=void 0;const t=g(5215),_=t.__importDefault(g(8330)),C=t.__importStar(g(4438));ne.SettingsComponent=(()=>{class c{constructor(){this.version=_.default.version}static#e=this.\u0275fac=function(f){return new(f||c)};static#t=this.\u0275cmp=C.\u0275\u0275defineComponent({type:c,selectors:[["app-settings"]],decls:12,vars:1,consts:[["id","settings",1,"white-block"],["href","https://github.com/ahdis/matchbox","rel","external nofollow noopener","target","_blank"]],template:function(f,d){1&f&&(C.\u0275\u0275elementStart(0,"div",0)(1,"h2"),C.\u0275\u0275text(2,"Matchbox settings"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(3,"h5"),C.\u0275\u0275text(4),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(5,"p")(6,"em"),C.\u0275\u0275text(7,"There are no configurable settings here right now"),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(8,"p"),C.\u0275\u0275text(9," Source code: "),C.\u0275\u0275elementStart(10,"a",1),C.\u0275\u0275text(11,"github.com/ahdis/matchbox"),C.\u0275\u0275elementEnd()()()),2&f&&(C.\u0275\u0275advance(4),C.\u0275\u0275textInterpolate1("Version ",d.version,""))}})}return c})()},3887:(Ie,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.SharedModule=void 0;const t=g(5215),_=g(177),C=g(9417),E=g(345),c=g(850),b=g(8834),s=g(5596),f=g(2765),d=g(6600),a=g(5084),l=g(1997),r=g(2102),u=g(9213),h=g(9631),p=g(9115),v=g(6695),y=g(5951),M=g(2798),w=g(450),k=g(3881),I=g(9159),D=g(6850),O=g(5911),T=g(3955),U=g(9183),S=t.__importStar(g(4438)),R=[_.CommonModule,E.BrowserModule,C.FormsModule,C.ReactiveFormsModule,T.TranslateModule,c.MatAutocompleteModule,b.MatButtonModule,s.MatCardModule,f.MatCheckboxModule,l.MatDividerModule,r.MatFormFieldModule,u.MatIconModule,h.MatInputModule,p.MatMenuModule,v.MatPaginatorModule,M.MatSelectModule,k.MatSliderModule,w.MatSlideToggleModule,I.MatTableModule,O.MatToolbarModule,D.MatTabsModule,a.MatDatepickerModule,d.MatNativeDateModule,y.MatRadioModule,U.MatProgressSpinnerModule];ne.SharedModule=(()=>{class F{static#e=this.\u0275fac=function(ie){return new(ie||F)};static#t=this.\u0275mod=S.\u0275\u0275defineNgModule({type:F});static#n=this.\u0275inj=S.\u0275\u0275defineInjector({imports:[R,_.CommonModule,E.BrowserModule,C.FormsModule,C.ReactiveFormsModule,T.TranslateModule,c.MatAutocompleteModule,b.MatButtonModule,s.MatCardModule,f.MatCheckboxModule,l.MatDividerModule,r.MatFormFieldModule,u.MatIconModule,h.MatInputModule,p.MatMenuModule,v.MatPaginatorModule,M.MatSelectModule,k.MatSliderModule,w.MatSlideToggleModule,I.MatTableModule,O.MatToolbarModule,D.MatTabsModule,a.MatDatepickerModule,d.MatNativeDateModule,y.MatRadioModule,U.MatProgressSpinnerModule]})}return F})()},2808:(Ie,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.TransformComponent=void 0;const t=g(5215),E=(g(4438),g(8414),g(9417)),c=g(2326),b=t.__importStar(g(4438)),s=t.__importStar(g(8414)),f=t.__importStar(g(177)),d=t.__importStar(g(9417)),a=t.__importStar(g(6600)),l=t.__importStar(g(5596)),r=t.__importStar(g(2102)),u=t.__importStar(g(2798)),h=t.__importStar(g(2774)),p=t.__importStar(g(1808));function v(k,I){if(1&k&&(b.\u0275\u0275elementStart(0,"mat-option",7),b.\u0275\u0275text(1),b.\u0275\u0275elementEnd()),2&k){const D=I.$implicit;b.\u0275\u0275propertyInterpolate("value",D.url),b.\u0275\u0275advance(),b.\u0275\u0275textInterpolate1("",D.name," ")}}function y(k,I){if(1&k&&(b.\u0275\u0275elementStart(0,"li"),b.\u0275\u0275text(1),b.\u0275\u0275elementEnd()),2&k){const D=I.$implicit;b.\u0275\u0275advance(),b.\u0275\u0275textInterpolate1(" ",D.diagnostics," ")}}function M(k,I){if(1&k&&(b.\u0275\u0275elementStart(0,"mat-error")(1,"ul"),b.\u0275\u0275template(2,y,2,1,"li",8),b.\u0275\u0275elementEnd()()),2&k){const D=b.\u0275\u0275nextContext();b.\u0275\u0275advance(2),b.\u0275\u0275property("ngForOf",D.operationOutcomeTransformed.issue)}}ne.TransformComponent=(()=>{class k{constructor(D,O){this.data=D,this.cd=O,this.query={_summary:"true",_sort:"name"},this.panelOpenState=!1,this.client=D.getFhirClient(),this.client.search({resourceType:"StructureMap",searchParams:this.query}).then(T=>(this.setMaps(T),T)),this.selectedMap=new E.UntypedFormControl,this.selectedMap.valueChanges.pipe((0,c.debounceTime)(400),(0,c.distinctUntilChanged)()).subscribe(T=>{this.selectedUrl=T,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(D=>{this.operationOutcomeTransformed=null,this.transformed=D}).catch(D=>{this.transformed=null,this.operationOutcomeTransformed=D.response.data})}getSource(){return this.source}getMapped(){return JSON.stringify(this.transformed,null,2)}setMaps(D){this.structureMaps=D.entry.map(O=>O.resource)}ngOnInit(){}addFile(D){this.transformed=null,("application/json"===D.contentType||D.name.endsWith(".json"))&&(this.mimeType="application/fhir+json"),("application/xml"===D.contentType||D.name.endsWith(".xml"))&&(this.mimeType="application/fhir+xml");const O=new FileReader;O.readAsText(D.blob),O.onload=()=>{this.source=O.result}}static#e=this.\u0275fac=function(O){return new(O||k)(b.\u0275\u0275directiveInject(s.FhirConfigService),b.\u0275\u0275directiveInject(b.ChangeDetectorRef))};static#t=this.\u0275cmp=b.\u0275\u0275defineComponent({type:k,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(O,T){1&O&&(b.\u0275\u0275elementStart(0,"mat-card",0)(1,"mat-card-content")(2,"mat-card-header")(3,"mat-card-title"),b.\u0275\u0275text(4),b.\u0275\u0275elementEnd()(),b.\u0275\u0275elementStart(5,"div"),b.\u0275\u0275text(6,"Resource"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(7,"app-upload",1),b.\u0275\u0275listener("addFiles",function(S){return T.addFile(S)}),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(8,"pre"),b.\u0275\u0275element(9,"code",2),b.\u0275\u0275elementEnd()()(),b.\u0275\u0275elementStart(10,"mat-card",0)(11,"mat-form-field",3)(12,"mat-label"),b.\u0275\u0275text(13,"Map for transforming"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(14,"mat-select",4),b.\u0275\u0275template(15,v,2,2,"mat-option",5),b.\u0275\u0275elementEnd()()(),b.\u0275\u0275elementStart(16,"mat-card",0)(17,"mat-card-content")(18,"mat-card-header")(19,"mat-card-title"),b.\u0275\u0275text(20,"Transformed"),b.\u0275\u0275elementEnd()(),b.\u0275\u0275template(21,M,3,1,"mat-error",6),b.\u0275\u0275elementStart(22,"pre"),b.\u0275\u0275element(23,"code",2),b.\u0275\u0275elementEnd()()()),2&O&&(b.\u0275\u0275advance(4),b.\u0275\u0275textInterpolate(T.client.baseUrl),b.\u0275\u0275advance(5),b.\u0275\u0275property("highlight",T.getSource())("lineNumbers",!0),b.\u0275\u0275advance(5),b.\u0275\u0275property("formControl",T.selectedMap),b.\u0275\u0275advance(),b.\u0275\u0275property("ngForOf",T.structureMaps),b.\u0275\u0275advance(6),b.\u0275\u0275property("ngIf",T.operationOutcomeTransformed),b.\u0275\u0275advance(2),b.\u0275\u0275property("highlight",T.getMapped())("lineNumbers",!0))},dependencies:[f.NgForOf,f.NgIf,d.NgControlStatus,d.FormControlDirective,a.MatOption,l.MatCard,l.MatCardContent,l.MatCardHeader,l.MatCardTitle,r.MatFormField,r.MatLabel,r.MatError,u.MatSelect,h.Highlight,p.UploadComponent],styles:[".card-maps[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return k})()},1808:(Ie,ne,g)=>{"use strict";var t=g(9293).default;Object.defineProperty(ne,"__esModule",{value:!0}),ne.UploadComponent=void 0;const _=g(5215),C=g(4438),E=_.__importStar(g(4438)),c=_.__importStar(g(8834)),b=_.__importStar(g(9213));ne.UploadComponent=(()=>{class f{constructor(){this.addFiles=new C.EventEmitter,this.dragCounter=0}checkStatus(a){if(!a.ok)throw new Error(`HTTP ${a.status} - ${a.statusText}`);return a}onDrop(a){a.preventDefault(),this.dragCounter=0;const l=a.target.files||a.dataTransfer.items;if(l)for(let u=0;u0))},dependencies:[c.MatButton,b.MatIcon],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})}return f})()},6974:(Ie,ne)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.Issue=ne.OperationResult=void 0;class g{constructor(C,E){this.operationOutcome=E,this.issues=C??[]}static fromOperationOutcome(C){const E=C.issue?.map(c=>t.fromOoIssue(c));return new g(E,C)}static fromMatchboxError(C){const E=new g;return E.issues.push(new t("fatal","matchbox",C,void 0,void 0,void 0,void 0)),E}}ne.OperationResult=g;class t{constructor(C,E,c,b,s,f,d){this.sliceInfo=[],this.severity=C,this.code=E,this.text=c,this.expression=b,this.line=s,this.col=f,this.sliceInfo=d??[]}static fromOoIssue(C){let E;C.expression&&C.expression.length?E=C.expression[0]:C.location&&C.location.length&&(E=C.location[0]);const c=C.diagnostics?.indexOf("Slice info: 1.)");let b,s=null;return c>=0?(b=C.diagnostics.substring(0,c).trimEnd(),s=C.diagnostics.substring(c+15).trimStart().split(/\d+[.][)]/)):b=C.diagnostics,new t(C.severity,C.code,b,E,t.getLineNo(C),t.getColNo(C),s)}static getLineNo(C){const E=t.getExtensionIntValue(C,"http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-line");return E&&E>0?E:void 0}static getColNo(C){const E=t.getExtensionIntValue(C,"http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-col");return E&&E>0?E:void 0}static getExtensionIntValue(C,E){if(C.extension)for(const c of C.extension)if(c.url===E)return c.valueInteger}}ne.Issue=t},5442:(Ie,ne,g)=>{"use strict";var t=g(9293).default;Object.defineProperty(ne,"__esModule",{value:!0}),ne.ValidateComponent=void 0;const _=g(5215),c=(g(4438),g(8414),_.__importDefault(g(994))),b=_.__importDefault(g(882)),s=_.__importDefault(g(6507)),f=g(8087),d=g(2248),a=g(6974),l=g(9417),r=_.__importStar(g(4438)),u=_.__importStar(g(8414)),h=_.__importStar(g(177)),p=_.__importStar(g(9417)),v=_.__importStar(g(6600)),y=_.__importStar(g(8834)),M=_.__importStar(g(5596)),w=_.__importStar(g(2102)),k=_.__importStar(g(9213)),I=_.__importStar(g(9631)),D=_.__importStar(g(9115)),O=_.__importStar(g(2798)),T=_.__importStar(g(9183)),U=_.__importStar(g(4110)),S=_.__importStar(g(968)),R=_.__importStar(g(1808)),N=Ne=>({selected:Ne});function A(Ne,Ae){if(1&Ne&&(r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275elementStart(1,"span"),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(3," (from "),r.\u0275\u0275elementStart(4,"em"),r.\u0275\u0275text(5),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(6,") "),r.\u0275\u0275elementContainerEnd()),2&Ne){const fe=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate(fe.currentResource.resourceType),r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate(fe.currentResource.filename)}}function F(Ne,Ae){1&Ne&&(r.\u0275\u0275elementStart(0,"em"),r.\u0275\u0275text(1,"none"),r.\u0275\u0275elementEnd())}function Y(Ne,Ae){if(1&Ne&&(r.\u0275\u0275elementStart(0,"mat-option",23),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Ne){const fe=Ae.$implicit;r.\u0275\u0275property("value",fe.key),r.\u0275\u0275advance(),r.\u0275\u0275textInterpolate1(" ",fe.value," ")}}function ee(Ne,Ae){1&Ne&&(r.\u0275\u0275elementStart(0,"mat-error"),r.\u0275\u0275text(1,"Please choose a profile"),r.\u0275\u0275elementEnd())}function ie(Ne,Ae){if(1&Ne&&(r.\u0275\u0275elementStart(0,"mat-option",23),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Ne){const fe=Ae.$implicit;r.\u0275\u0275property("value",fe),r.\u0275\u0275advance(),r.\u0275\u0275textInterpolate1(" ",fe," ")}}function $(Ne,Ae){if(1&Ne&&(r.\u0275\u0275elementStart(0,"p",24)(1,"mat-icon"),r.\u0275\u0275text(2,"report"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(3),r.\u0275\u0275elementEnd()),2&Ne){const fe=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate1(" Error: ",fe.errorMessage,"")}}function j(Ne,Ae){if(1&Ne){const fe=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275elementStart(1,"app-upload",13),r.\u0275\u0275listener("addFiles",function(Pe){r.\u0275\u0275restoreView(fe);const Me=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(Me.addFile(Pe))}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(2,"p",14),r.\u0275\u0275text(3," Current resource loaded: "),r.\u0275\u0275template(4,A,7,2,"ng-container",3)(5,F,2,0,"em",3),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div",15)(7,"mat-form-field")(8,"mat-label"),r.\u0275\u0275text(9,"Validation profile (required)"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(10,"mat-select",16),r.\u0275\u0275twoWayListener("ngModelChange",function(Pe){r.\u0275\u0275restoreView(fe);const Me=r.\u0275\u0275nextContext();return r.\u0275\u0275twoWayBindingSet(Me.selectedProfile,Pe)||(Me.selectedProfile=Pe),r.\u0275\u0275resetView(Pe)}),r.\u0275\u0275elementStart(11,"mat-option")(12,"ngx-mat-select-search",17),r.\u0275\u0275twoWayListener("ngModelChange",function(Pe){r.\u0275\u0275restoreView(fe);const Me=r.\u0275\u0275nextContext();return r.\u0275\u0275twoWayBindingSet(Me.profileFilter,Pe)||(Me.profileFilter=Pe),r.\u0275\u0275resetView(Pe)}),r.\u0275\u0275listener("ngModelChange",function(){r.\u0275\u0275restoreView(fe);const Pe=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(Pe.updateProfileFilter())}),r.\u0275\u0275elementEnd()(),r.\u0275\u0275template(13,Y,2,2,"mat-option",18),r.\u0275\u0275pipe(14,"keyvalue"),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(15,ee,2,0,"mat-error",3),r.\u0275\u0275elementStart(16,"mat-hint"),r.\u0275\u0275text(17,"A profile is required to validate against."),r.\u0275\u0275elementEnd()()(),r.\u0275\u0275elementStart(18,"div",15)(19,"mat-form-field")(20,"mat-label"),r.\u0275\u0275text(21,"Validation IG"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(22,"mat-select",19),r.\u0275\u0275twoWayListener("ngModelChange",function(Pe){r.\u0275\u0275restoreView(fe);const Me=r.\u0275\u0275nextContext();return r.\u0275\u0275twoWayBindingSet(Me.selectedIg,Pe)||(Me.selectedIg=Pe),r.\u0275\u0275resetView(Pe)}),r.\u0275\u0275elementStart(23,"mat-option",20)(24,"em"),r.\u0275\u0275text(25,"Automatic selection"),r.\u0275\u0275elementEnd()(),r.\u0275\u0275template(26,ie,2,2,"mat-option",18),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(27,"mat-hint"),r.\u0275\u0275text(28,"A specific IG version may be specified."),r.\u0275\u0275elementEnd()()(),r.\u0275\u0275elementStart(29,"button",21),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(fe);const Pe=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(Pe.onValidate())}),r.\u0275\u0275text(30,"Validate"),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(31,$,4,1,"p",22),r.\u0275\u0275elementContainerEnd()}if(2&Ne){const fe=r.\u0275\u0275nextContext();r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",fe.currentResource),r.\u0275\u0275advance(),r.\u0275\u0275property("ngIf",!fe.currentResource),r.\u0275\u0275advance(5),r.\u0275\u0275twoWayProperty("ngModel",fe.selectedProfile),r.\u0275\u0275advance(2),r.\u0275\u0275twoWayProperty("ngModel",fe.profileFilter),r.\u0275\u0275advance(),r.\u0275\u0275property("ngForOf",r.\u0275\u0275pipeBind1(14,9,fe.filteredProfiles)),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngIf",fe.profileControl.hasError("required")),r.\u0275\u0275advance(7),r.\u0275\u0275twoWayProperty("ngModel",fe.selectedIg),r.\u0275\u0275advance(4),r.\u0275\u0275property("ngForOf",fe.installedIgs),r.\u0275\u0275advance(5),r.\u0275\u0275property("ngIf",fe.errorMessage)}}function G(Ne,Ae){if(1&Ne&&(r.\u0275\u0275elementStart(0,"div",15)(1,"mat-form-field",26)(2,"mat-label"),r.\u0275\u0275text(3),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(4,"input",27),r.\u0275\u0275elementEnd()()),2&Ne){const fe=Ae.$implicit;r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate(fe.param.name),r.\u0275\u0275advance(),r.\u0275\u0275property("formControl",fe.formControl)}}function V(Ne,Ae){if(1&Ne&&(r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275template(1,G,5,2,"div",25),r.\u0275\u0275elementContainerEnd()),2&Ne){const fe=r.\u0275\u0275nextContext();r.\u0275\u0275advance(),r.\u0275\u0275property("ngForOf",fe.validatorSettings)}}function W(Ne,Ae){1&Ne&&r.\u0275\u0275element(0,"mat-spinner",33)}function K(Ne,Ae){if(1&Ne&&(r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275elementStart(1,"mat-icon",34),r.\u0275\u0275text(2,"error"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(3),r.\u0275\u0275element(4,"br"),r.\u0275\u0275elementStart(5,"mat-icon",35),r.\u0275\u0275text(6,"warning"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(7),r.\u0275\u0275element(8,"br"),r.\u0275\u0275elementStart(9,"mat-icon",36),r.\u0275\u0275text(10,"info"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(11),r.\u0275\u0275elementContainerEnd()),2&Ne){const fe=r.\u0275\u0275nextContext().$implicit;r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate(fe.result?fe.getErrors():"-"),r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate(fe.result?fe.getWarnings():"-"),r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate1("",fe.result?fe.getInfos():"-"," ")}}function ce(Ne,Ae){if(1&Ne){const fe=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"tr",28),r.\u0275\u0275listener("click",function(){const Pe=r.\u0275\u0275restoreView(fe).$implicit,Me=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(Me.show(Pe))}),r.\u0275\u0275elementStart(1,"td",29),r.\u0275\u0275text(2),r.\u0275\u0275element(3,"br"),r.\u0275\u0275elementStart(4,"time"),r.\u0275\u0275text(5),r.\u0275\u0275pipe(6,"date"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(7,"at"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"td",29),r.\u0275\u0275text(9),r.\u0275\u0275element(10,"br"),r.\u0275\u0275text(11),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(12,"td",30),r.\u0275\u0275template(13,W,1,0,"mat-spinner",11)(14,K,12,3,"ng-container",3),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(15,"td",31)(16,"mat-icon",32),r.\u0275\u0275listener("click",function(){const Pe=r.\u0275\u0275restoreView(fe).$implicit,Me=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(Me.removeEntryFromHistory(Pe))}),r.\u0275\u0275text(17,"delete"),r.\u0275\u0275elementEnd()()()}if(2&Ne){const fe=Ae.$implicit,We=r.\u0275\u0275nextContext();r.\u0275\u0275property("ngClass",r.\u0275\u0275pureFunction1(10,N,fe===We.selectedEntry)),r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate1(" ",fe.filename,""),r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate(r.\u0275\u0275pipeBind2(6,7,fe.date,"HH:mm:ss")),r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate1(" ",fe.selectedProfile,""),r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate1(" ",fe.ig," "),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngIf",fe.loading),r.\u0275\u0275advance(),r.\u0275\u0275property("ngIf",!fe.loading)}}function ue(Ne,Ae){if(1&Ne&&(r.\u0275\u0275elementStart(0,"dl")(1,"dt"),r.\u0275\u0275text(2,"Filename"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(3,"dd"),r.\u0275\u0275text(4),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(5,"dt"),r.\u0275\u0275text(6,"Profile"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(7,"dd"),r.\u0275\u0275text(8),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(9,"dt"),r.\u0275\u0275text(10,"IG"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(11,"dd"),r.\u0275\u0275text(12),r.\u0275\u0275elementEnd()()),2&Ne){const fe=r.\u0275\u0275nextContext();r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate(fe.selectedEntry.filename),r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate(fe.selectedEntry.selectedProfile),r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate(fe.selectedEntry.ig)}}function be(Ne,Ae){if(1&Ne){const fe=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"app-operation-result",37),r.\u0275\u0275listener("select",function(Pe){r.\u0275\u0275restoreView(fe);const Me=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(Me.highlightIssue(Pe))}),r.\u0275\u0275elementEnd()}if(2&Ne){const fe=r.\u0275\u0275nextContext();r.\u0275\u0275property("operationResult",fe.selectedEntry.result)}}function Ze(Ne,Ae){1&Ne&&r.\u0275\u0275element(0,"mat-spinner",33)}ne.ValidateComponent=(()=>{class Ne{constructor(fe,We){this.cd=We,this.validationEntries=new Array,this.selectedEntry=null,this.capabilityStatement=null,this.installedIgs=new Set,this.supportedProfiles=new Map,this.validatorSettings=new Array,this.filteredProfiles=new Map,this.profileFilter="",this.selectedIg=null,this.profileControl=new l.FormControl(null,l.Validators.required),this.showSettings=!1,this.currentResource=null,this.errorMessage=null,this.client=fe.getFhirClient(),this.client.capabilityStatement().then(Pe=>{this.capabilityStatement=Pe,this.client.read({resourceType:"OperationDefinition",id:"-s-validate"}).then(Me=>{Me.parameter?.forEach($e=>{"profile"==$e.name&&($e._targetProfile.forEach(q=>{let _e=this.getExtensionStringValue(q,"sd-canonical");const Oe=this.getExtensionStringValue(q,"sd-title"),vt=this.getExtensionStringValue(q,"ig-id"),rt=this.getExtensionStringValue(q,"ig-version");let we="";this.getExtensionBoolValue(q,"ig-current")?we=" (last)":_e+=`|${rt}`,this.supportedProfiles.set(_e,`${Oe} \u2014 ${vt}#${rt}${we}`)}),this.updateProfileFilter())}),Me.parameter.filter($e=>"in"==$e.use&&"resource"!=$e.name&&"profile"!=$e.name&&"ig"!=$e.name).forEach($e=>{this.validatorSettings.push(new d.ValidationParameter($e))})})}).catch(Pe=>{this.errorMessage="Error accessing FHIR server"}),this.client.search({resourceType:"ImplementationGuide",searchParams:{_sort:"title",_count:1e3}}).then(Pe=>{Pe.entry.map(Me=>Me.resource).map(Me=>`${Me.packageId}#${Me.version}`).sort().forEach(Me=>this.installedIgs.add(Me))}).catch(Pe=>{this.errorMessage="Error accessing FHIR server"})}ngAfterViewInit(){this.editor=s.default.edit("editor"),this.editor.setReadOnly(!0),this.editor.setTheme("ace/theme/textmate"),this.editor.setOptions({tabSize:4,wrap:!0,useWorker:!1,useSvgGutterIcons:!1})}addFile(fe){if(fe.name.endsWith(".tgz"))try{this.addPackage(fe.blob)}catch(We){console.error(We)}else{let We=null;try{this.selectedProfile=null,this.selectedIg=null;const Pe=new FileReader;Pe.readAsText(fe.blob),Pe.onload=()=>{this.cd.markForCheck(),We=new f.ValidationEntry(fe.blob.name,Pe.result,fe.contentType,null),this.currentResource=new Ct(fe.name,fe.contentType,Pe.result,We.resourceType),We.selectedProfile&&(this.selectedProfile=We.selectedProfile),this.validationEntries.unshift(We),this.show(We),this.validate(We)}}catch(Pe){console.error(Pe),We&&(We.result=a.OperationResult.fromMatchboxError("Error while processing the resource for validation: "+Pe.message))}}}onValidateIg(){let fe="";null!=this.selectedIg&&(fe=this.selectedIg.endsWith(" (last)")?this.selectedIg.substring(0,this.selectedIg.length-7):this.selectedIg,fe=fe.replace("#","-"),this.fetchData(this.client.baseUrl+"/ImplementationGuide/"+fe))}fetchData(fe){var We=this;return t(function*(){const Me=yield(yield fetch(fe,{cache:"no-store",headers:{Accept:"application/gzip"}})).blob();We.addPackage(Me)})()}addPackage(fe){this.selectedProfile=null,this.selectedIg=null;const We=new FileReader;We.readAsArrayBuffer(fe),We.onload=()=>{if(this.package=We.result,this.cd.markForCheck(),null!=this.package){const Pe=c.default.inflate(new Uint8Array(this.package)),Me=new Array;let $e=null,q=null;const _e=this;(0,b.default)(Pe.buffer).then(function(Oe){Me.forEach(vt=>{_e.validationEntries.unshift(vt),_e.validate(vt)})},function(Oe){},function(Oe){if(Oe.name?.indexOf("package.json")>=0){let vt=new TextDecoder("utf-8"),rt=JSON.parse(vt.decode(Oe.buffer));$e=rt.fhirVersions[0],q=rt.name+"#"+rt.version}if(Oe.name?.indexOf("example")>=0&&-1==Oe.name?.indexOf(".index.json")){let vt=Oe.name;vt.startsWith("package/example/")&&(vt=vt.substring(16)),vt.startsWith("example/")&&(vt=vt.substring(8));let rt=new TextDecoder("utf-8"),we=JSON.parse(rt.decode(Oe.buffer)),Ge=we.meta?.profile,De=new f.ValidationEntry(vt,JSON.stringify(we,null,2),"application/fhir+json",Ge);Me.push(De)}})}}}onClear(){this.selectedProfile=null,this.selectedIg=null,this.show(void 0),this.validationEntries.splice(0,this.validationEntries.length)}validate(fe){if(null!=this.selectedProfile&&(fe.profiles.includes(this.selectedProfile)||fe.profiles.push(this.selectedProfile),fe.selectedProfile=this.selectedProfile),null!=this.selectedIg&&(fe.ig=this.selectedIg.endsWith(" (last)")?this.selectedIg.substring(0,this.selectedIg.length-7):this.selectedIg),!fe.selectedProfile)return void console.error("No profile selected, won't run validation");const We=new URLSearchParams;We.set("profile",fe.selectedProfile),fe.ig&&We.set("ig",fe.ig);for(const Pe of this.validatorSettings)null!=Pe.formControl.value&&Pe.formControl.value.length>0&&We.set(Pe.param.name,Pe.formControl.value);fe.loading=!0,this.client.operation({name:"validate?"+We.toString(),resourceType:void 0,input:fe.resource,options:{headers:{accept:"application/fhir+json","content-type":fe.mimetype}}}).then(Pe=>{fe.loading=!1,fe.setOperationOutcome(Pe),fe===this.selectedEntry&&this.updateEditorIssues()}).catch(Pe=>{fe.loading=!1,fe.result=a.OperationResult.fromMatchboxError("Error while sending the validation request: "+Pe.message),console.error(Pe)})}show(fe){if(this.errorMessage=null,this.selectedEntry=fe,!fe)return this.editor.setValue("",-1),void this.updateEditorIssues();this.currentResource=new Ct(fe.filename,fe.mimetype,fe.resource,fe.resourceType),this.editor.setValue(fe.resource,-1),"application/fhir+json"===fe.mimetype?this.editor.getSession().setMode("ace/mode/json"):"application/fhir+xml"===fe.mimetype&&this.editor.getSession().setMode("ace/mode/xml"),this.updateEditorIssues()}removeEntryFromHistory(fe){fe===this.selectedEntry&&this.show(null);const We=this.validationEntries.indexOf(fe);this.validationEntries.splice(We,1)}onValidate(){let fe=new f.ValidationEntry(this.currentResource.filename,this.currentResource.content,this.currentResource.contentType,[this.selectedProfile]);fe.ig=this.selectedIg,this.validationEntries.unshift(fe),this.show(fe),this.validate(fe)}toggleSettings(){this.showSettings=!this.showSettings}updateEditorIssues(){if(this.editor.session.clearAnnotations(),!this.selectedEntry?.result)return;const fe=this.selectedEntry.result.issues.filter(We=>We.line).map(We=>{let Pe;switch(We.severity){case"fatal":case"error":Pe="error";break;case"warning":Pe="warning";break;case"information":Pe="info"}return{row:We.line-1,column:We.col,text:We.text,type:Pe}});this.editor.session.setAnnotations(fe)}highlightIssue(fe){fe.line&&(this.editor.gotoLine(fe.line,fe.col,!0),this.editor.scrollToLine(fe.line,!1,!0,()=>{}))}updateProfileFilter(){this.filteredProfiles=new Map([...this.supportedProfiles].filter(([fe,We])=>We.includes(this.profileFilter)))}getExtensionStringValue(fe,We){return this.getExtension(fe,We)?.valueString??""}getExtensionBoolValue(fe,We){return this.getExtension(fe,We)?.valueBoolean??!1}getExtension(fe,We){for(let Pe=0;Pe div[_ngcontent-%COMP%]{width:46%}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{background:#d8f1e6}table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{cursor:pointer}table[_ngcontent-%COMP%] td.issues[_ngcontent-%COMP%]{font-size:12px;line-height:12px;color:#818181}table[_ngcontent-%COMP%] td.issues[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:12px;height:12px;margin-right:2px;vertical-align:bottom}table[_ngcontent-%COMP%] td.issues[_ngcontent-%COMP%] mat-icon.error[_ngcontent-%COMP%]{color:#d9534f}table[_ngcontent-%COMP%] td.issues[_ngcontent-%COMP%] mat-icon.warning[_ngcontent-%COMP%]{color:#f0ad4e}table[_ngcontent-%COMP%] td.issues[_ngcontent-%COMP%] mat-icon.info[_ngcontent-%COMP%]{color:#4ca8de}table[_ngcontent-%COMP%] td.actions[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:24px;color:#d9534f}.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%]{padding:8px 16px}.row-full-height[_ngcontent-%COMP%] .card-maps[_ngcontent-%COMP%]{height:96vh;max-height:96vh;overflow-y:auto}#editor[_ngcontent-%COMP%]{height:calc(100% - 50px)}.column50[_ngcontent-%COMP%]{width:40%}"]})}return Ne})();class Ct{constructor(Ae,fe,We,Pe){this.filename=Ae,this.contentType=fe,this.content=We,this.resourceType=Pe}}},8087:(Ie,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.ValidationEntry=void 0;const t=g(6974);ne.ValidationEntry=class _{constructor(E,c,b,s){this.profiles=[],this.loading=!1,this.filename=E,this.resource=c,this.mimetype=b||(E.endsWith(".json")?"application/fhir+json":"application/fhir+xml"),s&&(this.profiles=s),this.date=new Date,"application/fhir+json"===this.mimetype?this.extractJsonInfo():this.extractXmlInfo(),this.profiles&&this.profiles.length?this.selectedProfile=this.profiles[0]:this.resourceType&&(this.selectedProfile="http://hl7.org/fhir/StructureDefinition/"+this.resourceType)}getErrors(){if(this.result)return this.result.issues.filter(E=>"error"===E.severity||"fatal"===E.severity).length}getWarnings(){if(this.result)return this.result.issues.filter(E=>"warning"===E.severity).length}getInfos(){if(this.result)return this.result.issues.filter(E=>"information"===E.severity).length}setOperationOutcome(E){this.result=t.OperationResult.fromOperationOutcome(E)}extractJsonInfo(){const E=JSON.parse(this.resource);E?.resourceType&&(this.resourceType=E.resourceType,this.resourceId=E.id),E.meta?.profile&&this.profiles.push(...E.meta.profile)}extractXmlInfo(){let E=this.resource.indexOf("",c);if(c0&&(s=s.substring(0,f)),f=s.indexOf(":"),f>0&&(s=s.substring(f+1)),this.resourceType=s;let d=this.resource.indexOf("profile",b);if(d>0){let a=this.resource.indexOf('value="',d)+7,l=this.resource.indexOf('"',a);a{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.ValidationParameter=void 0;const t=g(9417);ne.ValidationParameter=class _{constructor(E){this.param=E,this.formControl=new t.UntypedFormControl}isValueSet(){return null!=this.valueBoolean||null!=this.valueString}}},5312:(Ie,ne)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.environment=void 0,ne.environment={production:!0}},4429:(Ie,ne,g)=>{"use strict";const C=g(5215).__importStar(g(345)),E=g(4438),c=g(635);g(5312).environment.production&&(0,E.enableProdMode)(),C.platformBrowser().bootstrapModule(c.AppModule).catch(s=>console.log(s))},6507:(Ie,ne,g)=>{Ie=g.nmd(Ie),function(){var _=function(){return this}();!_&&typeof window<"u"&&(_=window);var C=function(d,a,l){"string"==typeof d?(2==arguments.length&&(l=a),C.modules[d]||(C.payloads[d]=l,C.modules[d]=null)):C.original?C.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};C.modules={},C.payloads={};var E=function(d,a,l){if("string"==typeof a){var r=s(d,a);if(null!=r)return l&&l(),r}else if("[object Array]"===Object.prototype.toString.call(a)){for(var u=[],h=0,p=a.length;hs.length)&&(b=s.length);var f=s.indexOf(c,b-=c.length);return-1!==f&&f===b}),String.prototype.repeat||E(String.prototype,"repeat",function(c){for(var b="",s=this;c>0;)1&c&&(b+=s),(c>>=1)&&(s+=s);return b}),String.prototype.includes||E(String.prototype,"includes",function(c,b){return-1!=this.indexOf(c,b)}),Object.assign||(Object.assign=function(c){if(null==c)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(c),s=1;s>>0,d=0|arguments[1],a=d<0?Math.max(s+d,0):Math.min(d,s),l=arguments[2],r=void 0===l?s:0|l,u=r<0?Math.max(s+r,0):Math.min(r,s);a0;)1&s&&(f+=b),(s>>=1)&&(b+=b);return f};var E=/^\s\s*/,c=/\s\s*$/;_.stringTrimLeft=function(b){return b.replace(E,"")},_.stringTrimRight=function(b){return b.replace(c,"")},_.copyObject=function(b){var s={};for(var f in b)s[f]=b[f];return s},_.copyArray=function(b){for(var s=[],f=0,d=b.length;f65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(t,_,C){"use strict";_.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},_.getOS=function(){return _.isMac?_.OS.MAC:_.isLinux?_.OS.LINUX:_.OS.WINDOWS};var E="object"==typeof navigator?navigator:{},c=(/mac|win|linux/i.exec(E.platform)||["other"])[0].toLowerCase(),b=E.userAgent||"",s=E.appName||"";_.isWin="win"==c,_.isMac="mac"==c,_.isLinux="linux"==c,_.isIE="Microsoft Internet Explorer"==s||s.indexOf("MSAppHost")>=0?parseFloat((b.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((b.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),_.isOldIE=_.isIE&&_.isIE<9,_.isGecko=_.isMozilla=b.match(/ Gecko\/\d+/),_.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),_.isWebKit=parseFloat(b.split("WebKit/")[1])||void 0,_.isChrome=parseFloat(b.split(" Chrome/")[1])||void 0,_.isSafari=parseFloat(b.split(" Safari/")[1])&&!_.isChrome||void 0,_.isEdge=parseFloat(b.split(" Edge/")[1])||void 0,_.isAIR=b.indexOf("AdobeAIR")>=0,_.isAndroid=b.indexOf("Android")>=0,_.isChromeOS=b.indexOf(" CrOS ")>=0,_.isIOS=/iPad|iPhone|iPod/.test(b)&&!window.MSStream,_.isIOS&&(_.isMac=!0),_.isMobile=_.isIOS||_.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(t,_,C){"use strict";var E=t("./useragent");_.buildDom=function l(r,u,h){if("string"==typeof r&&r){var p=document.createTextNode(r);return u&&u.appendChild(p),p}if(!Array.isArray(r))return r&&r.appendChild&&u&&u.appendChild(r),r;if("string"!=typeof r[0]||!r[0]){for(var v=[],y=0;y"u")){if(s)if(u)f();else if(!1===u)return s.push([l,r]);if(!b){var h=u;u&&u.getRootNode?(!(h=u.getRootNode())||h==u)&&(h=document):h=document;var p=h.ownerDocument||h;if(r&&_.hasCssString(r,h))return null;r&&(l+="\n/*# sourceURL=ace/css/"+r+" */");var v=_.createElement("style");v.appendChild(p.createTextNode(l)),r&&(v.id=r),h==p&&(h=_.getDocumentHead(p)),h.insertBefore(v,h.firstChild)}}}if(_.useStrictCSP=function(l){b=l,0==l?f():s||(s=[])},_.importCssString=d,_.importCssStylsheet=function(l,r){_.buildDom(["link",{rel:"stylesheet",href:l}],_.getDocumentHead(r))},_.scrollbarWidth=function(l){var r=_.createElement("ace_inner");r.style.width="100%",r.style.minWidth="0px",r.style.height="200px",r.style.display="block";var u=_.createElement("ace_outer"),h=u.style;h.position="absolute",h.left="-10000px",h.overflow="hidden",h.width="200px",h.minWidth="0px",h.height="150px",h.display="block",u.appendChild(r);var p=l&&l.documentElement||document&&document.documentElement;if(!p)return 0;p.appendChild(u);var v=r.offsetWidth;h.overflow="scroll";var y=r.offsetWidth;return v===y&&(y=u.clientWidth),p.removeChild(u),v-y},_.computedStyle=function(l,r){return window.getComputedStyle(l,"")||{}},_.setStyle=function(l,r,u){l[r]!==u&&(l[r]=u)},_.HAS_CSS_ANIMATION=!1,_.HAS_CSS_TRANSFORMS=!1,_.HI_DPI=!E.isWin||typeof window<"u"&&window.devicePixelRatio>=1.5,E.isChromeOS&&(_.HI_DPI=!1),typeof document<"u"){var a=document.createElement("div");_.HI_DPI&&void 0!==a.style.transform&&(_.HAS_CSS_TRANSFORMS=!0),!E.isEdge&&typeof a.style.animationName<"u"&&(_.HAS_CSS_ANIMATION=!0),a=null}_.translate=_.HAS_CSS_TRANSFORMS?function(l,r,u){l.style.transform="translate("+Math.round(r)+"px, "+Math.round(u)+"px)"}:function(l,r,u){l.style.top=Math.round(u)+"px",l.style.left=Math.round(r)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(t,_,C){"use strict";var E=t("./dom");_.get=function(c,b){var s=new XMLHttpRequest;s.open("GET",c,!0),s.onreadystatechange=function(){4===s.readyState&&b(s.responseText)},s.send(null)},_.loadScript=function(c,b){var s=E.getDocumentHead(),f=document.createElement("script");f.src=c,s.appendChild(f),f.onload=f.onreadystatechange=function(d,a){(a||!f.readyState||"loaded"==f.readyState||"complete"==f.readyState)&&(f=f.onload=f.onreadystatechange=null,a||b())}},_.qualifyURL=function(c){var b=document.createElement("a");return b.href=c,b.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(t,_,C){"use strict";_.inherits=function(E,c){E.super_=c,E.prototype=Object.create(c.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}})},_.mixin=function(E,c){for(var b in c)E[b]=c[b];return E},_.implement=function(E,c){_.mixin(E,c)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(t,_,C){"use strict";var E={},c=function(){this.propagationStopped=!0},b=function(){this.defaultPrevented=!0};E._emit=E._dispatchEvent=function(s,f){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var d=this._eventRegistry[s]||[],a=this._defaultHandlers[s];if(d.length||a){("object"!=typeof f||!f)&&(f={}),f.type||(f.type=s),f.stopPropagation||(f.stopPropagation=c),f.preventDefault||(f.preventDefault=b),d=d.slice();for(var l=0;l1&&(v=h[h.length-2]);var M=f[u+"Path"];return null==M?M=f.basePath:"/"==p&&(u=p=""),M&&"/"!=M.slice(-1)&&(M+="/"),M+u+p+v+this.get("suffix")},_.setModuleUrl=function(r,u){return f.$moduleUrls[r]=u},_.setLoader=function(r){a=r},_.dynamicModules=Object.create(null),_.$loading={},_.$loaded={},_.loadModule=function(r,u){var h;if(Array.isArray(r))var p=r[0],v=r[1];else"string"==typeof r&&(v=r);var y=function(M){if(M&&!_.$loading[v])return u&&u(M);if(_.$loading[v]||(_.$loading[v]=[]),_.$loading[v].push(u),!(_.$loading[v].length>1)){var w=function(){!function(r,u){"ace/theme/textmate"===r||"./theme/textmate"===r?u(0,t("./theme/textmate")):a?a(r,u):console.error("loader is not configured")}(v,function(k,I){I&&(_.$loaded[v]=I),_._emit("load.module",{name:v,module:I});var D=_.$loading[v];_.$loading[v]=null,D.forEach(function(O){O&&O(I)})})};if(!_.get("packaged"))return w();c.loadScript(_.moduleUrl(v,p),w),l()}};if(_.dynamicModules[v])_.dynamicModules[v]().then(function(M){y(M.default?M.default:M)});else{try{h=this.$require(v)}catch{}y(h||_.$loaded[v])}},_.$require=function(r){if("function"==typeof C.require)return C.require(r)},_.setModuleLoader=function(r,u){_.dynamicModules[r]=u};var l=function(){!f.basePath&&!f.workerPath&&!f.modePath&&!f.themePath&&!Object.keys(f.$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"),l=function(){})};_.version="1.32.9"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(t,_,C){"use strict";t("./lib/fixoldbrowsers");var E=t("./config");E.setLoader(function(f,d){t([f],function(a){d(null,a)})});var c=function(){return this||typeof window<"u"&&window}();function b(f){if(c&&c.document){E.set("packaged",f||t.packaged||C.packaged||c.define&&g.amdD.packaged);var d={},a="",l=document.currentScript||document._currentScript,r=l&&l.ownerDocument||document;l&&l.src&&(a=l.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var u=r.getElementsByTagName("script"),h=0;h ["+this.end.row+"/"+this.end.column+"]"},c.prototype.contains=function(b,s){return 0==this.compare(b,s)},c.prototype.compareRange=function(b){var s,f=b.end,d=b.start;return 1==(s=this.compare(f.row,f.column))?1==(s=this.compare(d.row,d.column))?2:0==s?1:0:-1==s?-2:-1==(s=this.compare(d.row,d.column))?-1:1==s?42:0},c.prototype.comparePoint=function(b){return this.compare(b.row,b.column)},c.prototype.containsRange=function(b){return 0==this.comparePoint(b.start)&&0==this.comparePoint(b.end)},c.prototype.intersects=function(b){var s=this.compareRange(b);return-1==s||0==s||1==s},c.prototype.isEnd=function(b,s){return this.end.row==b&&this.end.column==s},c.prototype.isStart=function(b,s){return this.start.row==b&&this.start.column==s},c.prototype.setStart=function(b,s){"object"==typeof b?(this.start.column=b.column,this.start.row=b.row):(this.start.row=b,this.start.column=s)},c.prototype.setEnd=function(b,s){"object"==typeof b?(this.end.column=b.column,this.end.row=b.row):(this.end.row=b,this.end.column=s)},c.prototype.inside=function(b,s){return 0==this.compare(b,s)&&!(this.isEnd(b,s)||this.isStart(b,s))},c.prototype.insideStart=function(b,s){return 0==this.compare(b,s)&&!this.isEnd(b,s)},c.prototype.insideEnd=function(b,s){return 0==this.compare(b,s)&&!this.isStart(b,s)},c.prototype.compare=function(b,s){return this.isMultiLine()||b!==this.start.row?bthis.end.row?1:this.start.row===b?s>=this.start.column?0:-1:this.end.row===b?s<=this.end.column?0:1:0:sthis.end.column?1:0},c.prototype.compareStart=function(b,s){return this.start.row==b&&this.start.column==s?-1:this.compare(b,s)},c.prototype.compareEnd=function(b,s){return this.end.row==b&&this.end.column==s?1:this.compare(b,s)},c.prototype.compareInside=function(b,s){return this.end.row==b&&this.end.column==s?1:this.start.row==b&&this.start.column==s?-1:this.compare(b,s)},c.prototype.clipRows=function(b,s){if(this.end.row>s)var f={row:s+1,column:0};else this.end.rows)var d={row:s+1,column:0};else this.start.row1?++O>4&&(O=1):O=1,c.isIE){var F=Math.abs(A.clientX-T)>5||Math.abs(A.clientY-U)>5;(!S||F)&&(O=1),S&&clearTimeout(S),S=setTimeout(function(){S=null},w[O-1]||600),1==O&&(T=A.clientX,U=A.clientY)}if(A._clicks=O,k[I]("mousedown",A),O>4)O=0;else if(O>1)return k[I](R[O],A)}Array.isArray(M)||(M=[M]),M.forEach(function(A){r(A,"mousedown",N,D)})},_.getModifierString=function(M){return E.KEY_MODS[h(M)]},_.addCommandKeyListener=function(M,w,k){var I=null;r(M,"keydown",function(D){b[D.keyCode]=(b[D.keyCode]||0)+1;var O=function p(M,w,k){var I=h(w);if(!c.isMac&&b){if(w.getModifierState&&(w.getModifierState("OS")||w.getModifierState("Win"))&&(I|=8),b.altGr){if(!(3&~I))return;b.altGr=0}if(18===k||17===k){var D=w.location;17===k&&1===D?1==b[k]&&(s=w.timeStamp):18===k&&3===I&&2===D&&w.timeStamp-s<50&&(b.altGr=!0)}}if(k in E.MODIFIER_KEYS&&(k=-1),I||13!==k||3!==w.location||(M(w,I,-k),!w.defaultPrevented)){if(c.isChromeOS&&8&I){if(M(w,I,k),w.defaultPrevented)return;I&=-9}return!!(I||k in E.FUNCTION_KEYS||k in E.PRINTABLE_KEYS)&&M(w,I,k)}}(w,D,D.keyCode);return I=D.defaultPrevented,O},k),r(M,"keypress",function(D){I&&(D.ctrlKey||D.altKey||D.shiftKey||D.metaKey)&&(_.stopEvent(D),I=null)},k),r(M,"keyup",function(D){b[D.keyCode]=null},k),b||(v(),r(window,"focus",v))},"object"==typeof window&&window.postMessage&&!c.isOldIE){var y=1;_.nextTick=function(M,w){w=w||window;var k="zero-timeout-message-"+y++,I=function(D){D.data==k&&(_.stopPropagation(D),u(w,"message",I),M())};r(w,"message",I),w.postMessage(k,"*")}}_.$idleBlocked=!1,_.onIdle=function(M,w){return setTimeout(function k(){_.$idleBlocked?setTimeout(k,100):M()},w)},_.$idleBlockId=null,_.blockIdle=function(M){_.$idleBlockId&&clearTimeout(_.$idleBlockId),_.$idleBlocked=!0,_.$idleBlockId=setTimeout(function(){_.$idleBlocked=!1},M||100)},_.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),_.nextFrame=_.nextFrame?_.nextFrame.bind(window):function(M){setTimeout(M,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(t,_,C){"use strict";var E;C.exports={lineMode:!1,pasteCancelled:function(){return!!(E&&E>Date.now()-50)||(E=!1)},cancel:function(){E=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(t,_,C){"use strict";var E=t("../lib/event"),c=t("../config").nls,b=t("../lib/useragent"),s=t("../lib/dom"),f=t("../lib/lang"),d=t("../clipboard"),a=b.isChrome<18,l=b.isIE,r=b.isChrome>63,u=400,h=t("../lib/keys"),p=h.KEY_MODS,v=b.isIOS,y=v?/\s/:/\n/,M=b.isMobile;_.TextInput=function(k,I){var D=s.createElement("textarea");D.className="ace_text-input",D.setAttribute("wrap","off"),D.setAttribute("autocorrect","off"),D.setAttribute("autocapitalize","off"),D.setAttribute("spellcheck","false"),D.style.opacity="0",k.insertBefore(D,k.firstChild);var O=!1,T=!1,U=!1,S=!1,R="";M||(D.style.fontSize="1px");var N=!1,A=!1,F="",Y=0,ee=0,ie=0,$=Number.MAX_SAFE_INTEGER,j=Number.MIN_SAFE_INTEGER,G=0;try{var V=document.activeElement===D}catch{}this.setNumberOfExtraLines=function(De){$=Number.MAX_SAFE_INTEGER,j=Number.MIN_SAFE_INTEGER,G=De<0?0:De},this.setAriaOptions=function(De){De.activeDescendant?(D.setAttribute("aria-haspopup","true"),D.setAttribute("aria-autocomplete",De.inline?"both":"list"),D.setAttribute("aria-activedescendant",De.activeDescendant)):(D.setAttribute("aria-haspopup","false"),D.setAttribute("aria-autocomplete","both"),D.removeAttribute("aria-activedescendant")),De.role&&D.setAttribute("role",De.role),De.setLabel&&(D.setAttribute("aria-roledescription",c("editor")),I.session)&&D.setAttribute("aria-label",c("Cursor at row $0",[I.session.selection.cursor.row+1]))},this.setAriaOptions({role:"textbox"}),E.addListener(D,"blur",function(De){A||(I.onBlur(De),V=!1)},I),E.addListener(D,"focus",function(De){if(!A){if(V=!0,b.isEdge)try{if(!document.hasFocus())return}catch{}I.onFocus(De),b.isEdge?setTimeout(K):K()}},I),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:I.renderer.enableKeyboardAccessibility}),R||r||"browser"==this.$focusScroll)return D.focus({preventScroll:!0});var De=D.style.top;D.style.position="fixed",D.style.top="0px";try{var ot=0!=D.getBoundingClientRect().top}catch{return}var xt=[];if(ot)for(var jt=D.parentElement;jt&&1==jt.nodeType;)xt.push(jt),jt.setAttribute("ace_nocontext","true"),jt=!jt.parentElement&&jt.getRootNode?jt.getRootNode().host:jt.parentElement;D.focus({preventScroll:!0}),ot&&xt.forEach(function(Xt){Xt.removeAttribute("ace_nocontext")}),setTimeout(function(){D.style.position="","0px"==D.style.top&&(D.style.top=De)},0)},this.blur=function(){D.blur()},this.isFocused=function(){return V},I.on("beforeEndOperation",function(){var De=I.curOp,ot=De&&De.command&&De.command.name;"insertstring"!=ot&&(U&&ot&&(De.docChanged||De.selectionChanged)&&(F=D.value="",$e()),K())});var W=function(De,ot){for(var xt=ot,jt=1;jt<=De-$&&jt<2*G+1;jt++)xt+=I.session.getLine(De-jt).length+1;return xt},K=v?function(De){if(V&&(!O||De)&&!S){De||(De="");var ot="\n ab"+De+"cde fg\n";ot!=D.value&&(D.value=F=ot);var jt=4+(De.length||(I.selection.isEmpty()?0:1));(4!=Y||ee!=jt)&&D.setSelectionRange(4,jt),Y=4,ee=jt}}:function(){if(!U&&!S&&(V||Ze)){U=!0;var De=0,ot=0,xt="";if(I.session){var jt=I.selection,Xt=jt.getRange(),un=jt.cursor.row;un===j+1?j=($=j+1)+2*G:un===$-1?$=(j=$-1)-2*G:(un<$-1||un>j+1)&&($=un>G?un-G:0,j=un>G?un+G:2*G);for(var dn=[],cn=$;cn<=j;cn++)dn.push(I.session.getLine(cn));if(xt=dn.join("\n"),De=W(Xt.start.row,Xt.start.column),ot=W(Xt.end.row,Xt.end.column),Xt.start.row<$){var rn=I.session.getLine($-1);De=Xt.start.row<$-1?0:De,ot+=rn.length+1,xt=rn+"\n"+xt}else if(Xt.end.row>j){var hn=I.session.getLine(j+1);ot=Xt.end.row>j+1?hn.length:Xt.end.column,ot+=xt.length+1,xt=xt+"\n"+hn}else M&&un>0&&(xt="\n"+xt,ot+=1,De+=1);xt.length>u&&(De0&&F[hn]==De[hn];)hn++,Xt--;for(dn=dn.slice(hn),hn=1;un>0&&F.length-hn>Y-1&&F[F.length-hn]==De[De.length-hn];)hn++,un--;cn-=hn-1,rn-=hn-1;var Nt=dn.length-hn+1;if(Nt<0&&(Xt=-Nt,Nt=0),dn=dn.slice(0,Nt),!(ot||dn||cn||Xt||un||rn))return"";S=!0;var Bt=!1;return b.isAndroid&&". "==dn&&(dn=" ",Bt=!0),dn&&!Xt&&!un&&!cn&&!rn||N?I.onTextInput(dn):I.onTextInput(dn,{extendLeft:Xt,extendRight:un,restoreStart:cn,restoreEnd:rn}),S=!1,F=De,Y=xt,ee=jt,ie=rn,Bt?"\n":dn},ct=function(De){if(U)return Me();if(De&&De.inputType){if("historyUndo"==De.inputType)return I.execCommand("undo");if("historyRedo"==De.inputType)return I.execCommand("redo")}var ot=D.value,xt=pt(ot,!0);(ot.length>500||y.test(xt)||M&&Y<1&&Y==ee)&&K()},Ct=function(De,ot,xt){var jt=De.clipboardData||window.clipboardData;if(jt&&!a){var Xt=l||xt?"Text":"text/plain";try{return ot?!1!==jt.setData(Xt,ot):jt.getData(Xt)}catch(un){if(!xt)return Ct(un,ot,!0)}}},Ne=function(De,ot){var xt=I.getCopyText();if(!xt)return E.preventDefault(De);Ct(De,xt)?(v&&(K(xt),O=xt,setTimeout(function(){O=!1},10)),ot?I.onCut():I.onCopy(),E.preventDefault(De)):(O=!0,D.value=xt,D.select(),setTimeout(function(){O=!1,K(),ot?I.onCut():I.onCopy()}))},Ae=function(De){Ne(De,!0)},fe=function(De){Ne(De,!1)},We=function(De){var ot=Ct(De);d.pasteCancelled()||("string"==typeof ot?(ot&&I.onPaste(ot,De),b.isIE&&setTimeout(K),E.preventDefault(De)):(D.value="",T=!0))};E.addCommandKeyListener(D,function(De,ot,xt){if(!U)return I.onCommandKey(De,ot,xt)},I),E.addListener(D,"select",function(De){U||(O?O=!1:function(De){return 0===De.selectionStart&&De.selectionEnd>=F.length&&De.value===F&&F&&De.selectionEnd!==ee}(D)?(I.selectAll(),K()):M&&D.selectionStart!=Y&&K())},I),E.addListener(D,"input",ct,I),E.addListener(D,"cut",Ae,I),E.addListener(D,"copy",fe,I),E.addListener(D,"paste",We,I),(!("oncut"in D)||!("oncopy"in D)||!("onpaste"in D))&&E.addListener(k,"keydown",function(De){if((!b.isMac||De.metaKey)&&De.ctrlKey)switch(De.keyCode){case 67:fe(De);break;case 86:We(De);break;case 88:Ae(De)}},I);var Me=function(){if(U&&I.onCompositionUpdate&&!I.$readOnly){if(N)return q();U.useTextareaForIME?I.onCompositionUpdate(D.value):(pt(D.value),U.markerRange&&(U.context&&(U.markerRange.start.column=U.selectionStart=U.context.compositionStartOffset),U.markerRange.end.column=U.markerRange.start.column+ee-U.selectionStart+ie))}},$e=function(De){!I.onCompositionEnd||I.$readOnly||(U=!1,I.onCompositionEnd(),I.off("mousedown",q),De&&ct())};function q(){A=!0,D.blur(),D.focus(),A=!1}var vt,_e=f.delayedCall(Me,50).schedule.bind(null,null);function rt(){clearTimeout(vt),vt=setTimeout(function(){R&&(D.style.cssText=R,R=""),I.renderer.$isMousePressed=!1,I.renderer.$keepTextAreaAtCursor&&I.renderer.$moveTextAreaToCursor()},0)}E.addListener(D,"compositionstart",function(De){if(!U&&I.onCompositionStart&&!I.$readOnly&&(U={},!N)){De.data&&(U.useTextareaForIME=!1),setTimeout(Me,0),I._signal("compositionStart"),I.on("mousedown",q);var ot=I.getSelectionRange();ot.end.row=ot.start.row,ot.end.column=ot.start.column,U.markerRange=ot,U.selectionStart=Y,I.onCompositionStart(U),U.useTextareaForIME?(F=D.value="",Y=0,ee=0):(D.msGetInputContext&&(U.context=D.msGetInputContext()),D.getInputContext&&(U.context=D.getInputContext()))}},I),E.addListener(D,"compositionupdate",Me,I),E.addListener(D,"keyup",function Oe(De){27==De.keyCode&&D.value.lengthee&&"\n"==F[rn]?hn=h.end:cnee&&F.slice(0,rn).split("\n").length>2?hn=h.down:rn>ee&&" "==F[rn-1]?(hn=h.right,Nt=p.option):(rn>ee||rn==ee&&ee!=Y&&cn==rn)&&(hn=h.right),cn!==rn&&(Nt|=p.shift),hn){if(!ot.onCommandKey({},Nt,hn)&&ot.commands){hn=h.keyCodeToString(hn);var ve=ot.commands.findKeyCommand(Nt,hn);ve&&ot.execCommand(ve)}Y=cn,ee=rn,K("")}}};document.addEventListener("selectionchange",un),ot.on("destroy",function(){document.removeEventListener("selectionchange",un)})}(0,I,D),this.destroy=function(){D.parentElement&&D.parentElement.removeChild(D)}},_.$setUserAgentForTests=function(k,I){M=k,v=I}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(t,_,C){"use strict";var E=t("../lib/useragent"),s=function(){function a(l){l.$clickSelection=null;var r=l.editor;r.setDefaultHandler("mousedown",this.onMouseDown.bind(l)),r.setDefaultHandler("dblclick",this.onDoubleClick.bind(l)),r.setDefaultHandler("tripleclick",this.onTripleClick.bind(l)),r.setDefaultHandler("quadclick",this.onQuadClick.bind(l)),r.setDefaultHandler("mousewheel",this.onMouseWheel.bind(l)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach(function(h){l[h]=this[h]},this),l.selectByLines=this.extendSelectionBy.bind(l,"getLineRange"),l.selectByWords=this.extendSelectionBy.bind(l,"getWordRange")}return a.prototype.onMouseDown=function(l){var r=l.inSelection(),u=l.getDocumentPosition();this.mousedownEvent=l;var h=this.editor,p=l.getButton();return 0!==p?((h.getSelectionRange().isEmpty()||1==p)&&h.selection.moveToPosition(u),void(2==p&&(h.textInput.onContextMenu(l.domEvent),E.isMozilla||l.preventDefault()))):(this.mousedownEvent.time=Date.now(),!r||h.isFocused()||(h.focus(),!this.$focusTimeout||this.$clickSelection||h.inMultiSelectMode)?(this.captureMouse(l),this.startSelect(u,l.domEvent._clicks>1),l.preventDefault()):(this.setState("focusWait"),void this.captureMouse(l)))},a.prototype.startSelect=function(l,r){l=l||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var u=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?u.selection.selectToPosition(l):r||u.selection.moveToPosition(l),r||this.select(),u.setStyle("ace_selecting"),this.setState("select"))},a.prototype.select=function(){var l,r=this.editor,u=r.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var h=this.$clickSelection.comparePoint(u);if(-1==h)l=this.$clickSelection.end;else if(1==h)l=this.$clickSelection.start;else{var p=d(this.$clickSelection,u);u=p.cursor,l=p.anchor}r.selection.setSelectionAnchor(l.row,l.column)}r.selection.selectToPosition(u),r.renderer.scrollCursorIntoView()},a.prototype.extendSelectionBy=function(l){var r,u=this.editor,h=u.renderer.screenToTextCoordinates(this.x,this.y),p=u.selection[l](h.row,h.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(p.start),y=this.$clickSelection.comparePoint(p.end);if(-1==v&&y<=0)r=this.$clickSelection.end,(p.end.row!=h.row||p.end.column!=h.column)&&(h=p.start);else if(1==y&&v>=0)r=this.$clickSelection.start,(p.start.row!=h.row||p.start.column!=h.column)&&(h=p.end);else if(-1==v&&1==y)h=p.end,r=p.start;else{var M=d(this.$clickSelection,h);h=M.cursor,r=M.anchor}u.selection.setSelectionAnchor(r.row,r.column)}u.selection.selectToPosition(h),u.renderer.scrollCursorIntoView()},a.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},a.prototype.focusWait=function(){var l=function f(a,l,r,u){return Math.sqrt(Math.pow(r-a,2)+Math.pow(u-l,2))}(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),r=Date.now();(l>0||r-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},a.prototype.onDoubleClick=function(l){var r=l.getDocumentPosition(),u=this.editor,p=u.session.getBracketRange(r);p?(p.isEmpty()&&(p.start.column--,p.end.column++),this.setState("select")):(p=u.selection.getWordRange(r.row,r.column),this.setState("selectByWords")),this.$clickSelection=p,this.select()},a.prototype.onTripleClick=function(l){var r=l.getDocumentPosition(),u=this.editor;this.setState("selectByLines");var h=u.getSelectionRange();h.isMultiLine()&&h.contains(r.row,r.column)?(this.$clickSelection=u.selection.getLineRange(h.start.row),this.$clickSelection.end=u.selection.getLineRange(h.end.row).end):this.$clickSelection=u.selection.getLineRange(r.row),this.select()},a.prototype.onQuadClick=function(l){var r=this.editor;r.selectAll(),this.$clickSelection=r.getSelectionRange(),this.setState("selectAll")},a.prototype.onMouseWheel=function(l){if(!l.getAccelKey()){l.getShiftKey()&&l.wheelY&&!l.wheelX&&(l.wheelX=l.wheelY,l.wheelY=0);var r=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var u=this.$lastScroll,h=l.domEvent.timeStamp,p=h-u.t,v=p?l.wheelX/p:u.vx,y=p?l.wheelY/p:u.vy;p<550&&(v=(v+u.vx)/2,y=(y+u.vy)/2);var M=Math.abs(v/y),w=!1;if(M>=1&&r.renderer.isScrollableBy(l.wheelX*l.speed,0)&&(w=!0),M<=1&&r.renderer.isScrollableBy(0,l.wheelY*l.speed)&&(w=!0),w?u.allowed=h:h-u.allowed<550&&(Math.abs(v)<=1.5*Math.abs(u.vx)&&Math.abs(y)<=1.5*Math.abs(u.vy)?(w=!0,u.allowed=h):u.allowed=0),u.t=h,u.vx=v,u.vy=y,w)return r.renderer.scrollBy(l.wheelX*l.speed,l.wheelY*l.speed),l.stop()}},a}();function d(a,l){if(a.start.row==a.end.row)var r=2*l.column-a.start.column-a.end.column;else if(a.start.row!=a.end.row-1||a.start.column||a.end.column)r=2*l.row-a.start.row-a.end.row;else r=l.column-4;return r<0?{cursor:a.start,anchor:a.end}:{cursor:a.end,anchor:a.start}}s.prototype.selectEnd=s.prototype.selectByLinesEnd,s.prototype.selectAllEnd=s.prototype.selectByLinesEnd,s.prototype.selectByWordsEnd=s.prototype.selectByLinesEnd,_.DefaultHandlers=s}),ace.define("ace/lib/scroll",["require","exports","module"],function(t,_,C){_.preventParentScroll=function(c){c.stopPropagation();var b=c.currentTarget;b.scrollHeight>b.clientHeight||c.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(t,_,C){"use strict";var E=this&&this.__extends||function(){var p=function(v,y){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,w){M.__proto__=w}||function(M,w){for(var k in w)Object.prototype.hasOwnProperty.call(w,k)&&(M[k]=w[k])})(v,y)};return function(v,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function M(){this.constructor=v}p(v,y),v.prototype=null===y?Object.create(y):(M.prototype=y.prototype,new M)}}(),c=this&&this.__values||function(p){var v="function"==typeof Symbol&&Symbol.iterator,y=v&&p[v],M=0;if(y)return y.call(p);if(p&&"number"==typeof p.length)return{next:function(){return p&&M>=p.length&&(p=void 0),{value:p&&p[M++],done:!p}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")},b=t("./lib/dom"),f=(t("./lib/event"),t("./range").Range),d=t("./lib/scroll").preventParentScroll,a="ace_tooltip",l=function(){function p(v){this.isOpen=!1,this.$element=null,this.$parentNode=v}return p.prototype.$init=function(){return this.$element=b.createElement("div"),this.$element.className=a,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},p.prototype.getElement=function(){return this.$element||this.$init()},p.prototype.setText=function(v){this.getElement().textContent=v},p.prototype.setHtml=function(v){this.getElement().innerHTML=v},p.prototype.setPosition=function(v,y){this.getElement().style.left=v+"px",this.getElement().style.top=y+"px"},p.prototype.setClassName=function(v){b.addCssClass(this.getElement(),v)},p.prototype.setTheme=function(v){this.$element.className=a+" "+(v.isDark?"ace_dark ":"")+(v.cssClass||"")},p.prototype.show=function(v,y,M){null!=v&&this.setText(v),null!=y&&null!=M&&this.setPosition(y,M),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},p.prototype.hide=function(v){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=a,this.isOpen=!1)},p.prototype.getHeight=function(){return this.getElement().offsetHeight},p.prototype.getWidth=function(){return this.getElement().offsetWidth},p.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},p}(),u=new(function(){function p(){this.popups=[]}return p.prototype.addPopup=function(v){this.popups.push(v),this.updatePopups()},p.prototype.removePopup=function(v){var y=this.popups.indexOf(v);-1!==y&&(this.popups.splice(y,1),this.updatePopups())},p.prototype.updatePopups=function(){var v,y,M,w;this.popups.sort(function(N,A){return A.priority-N.priority});var k=[];try{for(var I=c(this.popups),D=I.next();!D.done;D=I.next()){var O=D.value,T=!0;try{for(var U=(M=void 0,c(k)),S=U.next();!S.done;S=U.next())if(this.doPopupsOverlap(S.value,O)){T=!1;break}}catch(N){M={error:N}}finally{try{S&&!S.done&&(w=U.return)&&w.call(U)}finally{if(M)throw M.error}}T?k.push(O):O.hide()}}catch(N){v={error:N}}finally{try{D&&!D.done&&(y=I.return)&&y.call(I)}finally{if(v)throw v.error}}},p.prototype.doPopupsOverlap=function(v,y){var M=v.getElement().getBoundingClientRect(),w=y.getElement().getBoundingClientRect();return M.leftw.left&&M.topw.top},p}());_.popupManager=u,_.Tooltip=l;var h=function(p){function v(y){void 0===y&&(y=document.body);var M=p.call(this,y)||this;M.timeout=void 0,M.lastT=0,M.idleTime=350,M.lastEvent=void 0,M.onMouseOut=M.onMouseOut.bind(M),M.onMouseMove=M.onMouseMove.bind(M),M.waitForHover=M.waitForHover.bind(M),M.hide=M.hide.bind(M);var w=M.getElement();return w.style.whiteSpace="pre-wrap",w.style.pointerEvents="auto",w.addEventListener("mouseout",M.onMouseOut),w.tabIndex=-1,w.addEventListener("blur",function(){w.contains(document.activeElement)||this.hide()}.bind(M)),w.addEventListener("wheel",d),M}return E(v,p),v.prototype.addToEditor=function(y){y.on("mousemove",this.onMouseMove),y.on("mousedown",this.hide),y.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},v.prototype.removeFromEditor=function(y){y.off("mousemove",this.onMouseMove),y.off("mousedown",this.hide),y.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},v.prototype.onMouseMove=function(y,M){this.lastEvent=y,this.lastT=Date.now();var w=M.$mouseHandler.isMousePressed;if(this.isOpen){var k=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(k.row,k.column)||w||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||w||(this.lastEvent=y,this.timeout=setTimeout(this.waitForHover,this.idleTime))},v.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var y=Date.now()-this.lastT;this.idleTime-y>10?this.timeout=setTimeout(this.waitForHover,this.idleTime-y):(this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor))},v.prototype.isOutsideOfText=function(y){var M=y.editor,w=y.getDocumentPosition(),k=M.session.getLine(w.row);if(w.column==k.length){var I=M.renderer.pixelToScreenCoordinates(y.clientX,y.clientY),D=M.session.documentToScreenPosition(w.row,w.column);if(D.column!=I.column||D.row!=I.row)return!0}return!1},v.prototype.setDataProvider=function(y){this.$gatherData=y},v.prototype.showForRange=function(y,M,w,k){if(!(k&&k!=this.lastEvent||this.isOpen&&document.activeElement==this.getElement())){var D=y.renderer;this.isOpen||(u.addPopup(this),this.$registerCloseEvents(),this.setTheme(D.theme)),this.isOpen=!0,this.addMarker(M,y.session),this.range=f.fromPoints(M.start,M.end);var O=D.textToScreenCoordinates(M.start.row,M.start.column),T=D.scroller.getBoundingClientRect();O.pageX=r.length&&(r=void 0),{value:r&&r[p++],done:!r}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")},b=t("../lib/dom"),s=t("../lib/event"),f=t("../tooltip").Tooltip,d=t("../config").nls;_.GutterHandler=function a(r){var v,y,u=r.editor,h=u.renderer.$gutterLayer,p=new l(u);function w(){v&&(v=clearTimeout(v)),p.isOpen&&(p.hideTooltip(),u.off("mousewheel",w))}function k(I){p.setPosition(I.x,I.y)}r.editor.setDefaultHandler("guttermousedown",function(I){if(u.isFocused()&&0==I.getButton()&&"foldWidgets"!=h.getRegion(I)){var O=I.getDocumentPosition().row,T=u.session.selection;if(I.getShiftKey())T.selectTo(O,0);else{if(2==I.domEvent.detail)return u.selectAll(),I.preventDefault();r.$clickSelection=u.selection.getLineRange(O)}return r.setState("selectByLines"),r.captureMouse(I),I.preventDefault()}}),r.editor.setDefaultHandler("guttermousemove",function(I){if(b.hasCssClass(I.domEvent.target||I.domEvent.srcElement,"ace_fold-widget"))return w();p.isOpen&&r.$tooltipFollowsMouse&&k(I),y=I,!v&&(v=setTimeout(function(){v=null,y&&!r.isMousePressed?function M(){var I=y.getDocumentPosition().row;if(I==u.session.getLength()){var O=u.renderer.pixelToScreenCoordinates(0,y.y).row,T=y.$pos;if(O>u.session.documentToScreenRow(T.row,T.column))return w()}if(p.showTooltip(I),p.isOpen)if(u.on("mousewheel",w),r.$tooltipFollowsMouse)k(y);else{var U=y.getGutterRow(),S=h.$lines.get(U);if(S){var N=S.element.querySelector(".ace_gutter_annotation").getBoundingClientRect(),A=p.getElement().style;A.left=N.right+"px",A.top=N.bottom+"px"}else k(y)}}():w()},50))}),s.addListener(u.renderer.$gutter,"mouseout",function(I){y=null,p.isOpen&&!v&&(v=setTimeout(function(){v=null,w()},50))},u),u.on("changeSession",w),u.on("input",w)};var l=function(r){function u(h){var p=r.call(this,h.container)||this;return p.editor=h,p}return E(u,r),u.prototype.setPosition=function(h,p){var v=window.innerWidth||document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight,M=this.getWidth(),w=this.getHeight();(h+=15)+M>v&&(h-=h+M-v),(p+=15)+w>y&&(p-=20+w),f.prototype.setPosition.call(this,h,p)},Object.defineProperty(u,"annotationLabels",{get:function(){return{error:{singular:d("error"),plural:d("errors")},warning:{singular:d("warning"),plural:d("warnings")},info:{singular:d("information message"),plural:d("information messages")}}},enumerable:!1,configurable:!0}),u.prototype.showTooltip=function(h){var y,p=this.editor.renderer.$gutterLayer,v=p.$annotations[h];y=v?{text:Array.from(v.text),type:Array.from(v.type)}:{text:[],type:[]};var M=p.session.getFoldLine(h);if(M&&p.$showFoldedAnnotations){for(var k,w={error:[],warning:[],info:[]},I=h+1;I<=M.end.row;I++)if(p.$annotations[I])for(var D=0;D ").concat(y.text[I]);U[y.type[I].replace("_fold","")].push(R)}var N=[].concat(U.error,U.warning,U.info).join("
");this.setHtml(N),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},u.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},u.annotationsToSummaryString=function(h){var p,v,y=[];try{for(var w=c(["error","warning","info"]),k=w.next();!k.done;k=w.next()){var I=k.value;if(h[I].length){var D=1===h[I].length?u.annotationLabels[I].singular:u.annotationLabels[I].plural;y.push("".concat(h[I].length," ").concat(D))}}}catch(O){p={error:O}}finally{try{k&&!k.done&&(v=w.return)&&v.call(w)}finally{if(p)throw p.error}}return y.join(", ")},u}(f);_.GutterTooltip=l}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(t,_,C){"use strict";var E=t("../lib/event"),c=t("../lib/useragent"),b=function(){function s(f,d){this.domEvent=f,this.editor=d,this.x=this.clientX=f.clientX,this.y=this.clientY=f.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return s.prototype.stopPropagation=function(){E.stopPropagation(this.domEvent),this.propagationStopped=!0},s.prototype.preventDefault=function(){E.preventDefault(this.domEvent),this.defaultPrevented=!0},s.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},s.prototype.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},s.prototype.getGutterRow=function(){var f=this.getDocumentPosition().row;return this.editor.session.documentToScreenRow(f,0)-this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0)},s.prototype.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var d=this.editor.getSelectionRange();if(d.isEmpty())this.$inSelection=!1;else{var a=this.getDocumentPosition();this.$inSelection=d.contains(a.row,a.column)}return this.$inSelection},s.prototype.getButton=function(){return E.getButton(this.domEvent)},s.prototype.getShiftKey=function(){return this.domEvent.shiftKey},s.prototype.getAccelKey=function(){return c.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},s}();_.MouseEvent=b}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(t,_,C){"use strict";var E=t("../lib/dom"),c=t("../lib/event"),b=t("../lib/useragent");function a(r){var u=r.editor,h=E.createElement("div");h.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",h.textContent="\xa0",["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(W){r[W]=this[W]},this),u.on("mousedown",this.onMouseDown.bind(r));var y,M,w,k,I,D,T,U,S,R,N,v=u.container,O=0;function Y(){var W=D;(function A(W,K){var ce=Date.now();R&&K&&W.row==K.row&&K&&W.column==K.column?l(N.x,N.y,M,w)>5?R=null:ce-R>=200&&(u.renderer.scrollCursorIntoView(),R=null):(u.moveCursorToPosition(W),R=ce,N={x:M,y:w})})(D=u.renderer.screenToTextCoordinates(M,w),W),function F(W,K){var ce=Date.now(),ue=u.renderer.layerConfig.lineHeight,be=u.renderer.layerConfig.characterWidth,Ze=u.renderer.scroller.getBoundingClientRect(),pt={x:{left:M-Ze.left,right:Ze.right-M},y:{top:w-Ze.top,bottom:Ze.bottom-w}},ct=Math.min(pt.x.left,pt.x.right),Ct=Math.min(pt.y.top,pt.y.bottom),Ne={row:W.row,column:W.column};ct/be<=2&&(Ne.column+=pt.x.left=200&&u.renderer.scrollCursorIntoView(Ne):S=ce:S=null}(D,W)}function ee(){I=u.selection.toOrientedRange(),y=u.session.addMarker(I,"ace_selection",u.getSelectionStyle()),u.clearSelection(),u.isFocused()&&u.renderer.$cursorLayer.setBlinking(!1),clearInterval(k),Y(),k=setInterval(Y,20),O=0,c.addListener(document,"mousemove",j)}function ie(){clearInterval(k),u.session.removeMarker(y),y=null,u.selection.fromOrientedRange(I),u.isFocused()&&!U&&u.$resetCursorStyle(),I=null,D=null,O=0,S=null,R=null,c.removeListener(document,"mousemove",j)}this.onDragStart=function(W){if(this.cancelDrag||!v.draggable){var K=this;return setTimeout(function(){K.startSelect(),K.captureMouse(W)},0),W.preventDefault()}I=u.getSelectionRange();var ce=W.dataTransfer;ce.effectAllowed=u.getReadOnly()?"copy":"copyMove",u.container.appendChild(h),ce.setDragImage&&ce.setDragImage(h,0,0),setTimeout(function(){u.container.removeChild(h)}),ce.clearData(),ce.setData("Text",u.session.getTextRange()),U=!0,this.setState("drag")},this.onDragEnd=function(W){v.draggable=!1,U=!1,this.setState(null),u.getReadOnly()||(!T&&"move"==W.dataTransfer.dropEffect&&u.session.remove(u.getSelectionRange()),u.$resetCursorStyle()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(W){if(!u.getReadOnly()&&G(W.dataTransfer))return M=W.clientX,w=W.clientY,y||ee(),O++,W.dataTransfer.dropEffect=T=V(W),c.preventDefault(W)},this.onDragOver=function(W){if(!u.getReadOnly()&&G(W.dataTransfer))return M=W.clientX,w=W.clientY,y||(ee(),O++),null!==$&&($=null),W.dataTransfer.dropEffect=T=V(W),c.preventDefault(W)},this.onDragLeave=function(W){if(--O<=0&&y)return ie(),T=null,c.preventDefault(W)},this.onDrop=function(W){if(D){var K=W.dataTransfer;if(U)switch(T){case"move":I=I.contains(D.row,D.column)?{start:D,end:D}:u.moveText(I,D);break;case"copy":I=u.moveText(I,D,!0)}else{var ce=K.getData("Text");I={start:D,end:u.session.insert(D,ce)},u.focus(),T=null}return ie(),c.preventDefault(W)}},c.addListener(v,"dragstart",this.onDragStart.bind(r),u),c.addListener(v,"dragend",this.onDragEnd.bind(r),u),c.addListener(v,"dragenter",this.onDragEnter.bind(r),u),c.addListener(v,"dragover",this.onDragOver.bind(r),u),c.addListener(v,"dragleave",this.onDragLeave.bind(r),u),c.addListener(v,"drop",this.onDrop.bind(r),u);var $=null;function j(){null==$&&($=setTimeout(function(){null!=$&&y&&ie()},20))}function G(W){var K=W.types;return!K||Array.prototype.some.call(K,function(ce){return"text/plain"==ce||"Text"==ce})}function V(W){var K=["copy","copymove","all","uninitialized"],ue=b.isMac?W.altKey:W.ctrlKey,be="uninitialized";try{be=W.dataTransfer.effectAllowed.toLowerCase()}catch{}var Ze="none";return ue&&K.indexOf(be)>=0?Ze="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(be)>=0?Ze="move":K.indexOf(be)>=0&&(Ze="copy"),Ze}}function l(r,u,h,p){return Math.sqrt(Math.pow(h-r,2)+Math.pow(p-u,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(r){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var r=this.editor;r.container.draggable=!0,r.renderer.$cursorLayer.setBlinking(!1),r.setStyle("ace_dragging"),r.renderer.setCursorStyle(b.isWin?"default":"move"),this.setState("dragReady")},this.onMouseDrag=function(r){var u=this.editor.container;b.isIE&&"dragReady"==this.state&&l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&u.dragDrop(),"dragWait"===this.state&&l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(u.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))},this.onMouseDown=function(r){if(this.$dragEnabled){this.mousedownEvent=r;var u=this.editor,h=r.inSelection(),p=r.getButton();if(1===(r.domEvent.detail||1)&&0===p&&h){if(r.editor.inMultiSelectMode&&(r.getAccelKey()||r.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=r.domEvent.target||r.domEvent.srcElement;"unselectable"in y&&(y.unselectable="on"),u.getDragDelay()?(b.isWebKit&&(this.cancelDrag=!0,u.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(r,this.onMouseDrag.bind(this)),r.defaultPrevented=!0}}}}).call(a.prototype),_.DragdropHandler=a}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(t,_,C){"use strict";var E=t("./mouse_event").MouseEvent,c=t("../lib/event"),b=t("../lib/dom");_.addTouchListeners=function(s,f){var a,l,r,u,h,p,y,I,D,d="scroll",v=0,M=0,w=0,k=0;function T(){D||function O(){var A=window.navigator&&window.navigator.clipboard,F=!1,ee=function(ie){var $=ie.target.getAttribute("action");if("more"==$||!F)return F=!F,function(){var ie=f.getCopyText(),$=f.session.getUndoManager().hasUndo();D.replaceChild(b.buildDom(F?["span",!ie&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],ie&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],ie&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],A&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],$&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),D.firstChild)}();"paste"==$?A.readText().then(function(j){f.execCommand($,j)}):$&&(("cut"==$||"copy"==$)&&(A?A.writeText(f.getCopyText()):document.execCommand("copy")),f.execCommand($)),D.firstChild.style.display="none",F=!1,"openCommandPalette"!=$&&f.focus()};D=b.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(ie){d="menu",ie.stopPropagation(),ie.preventDefault(),f.textInput.focus()},ontouchend:function(ie){ie.stopPropagation(),ie.preventDefault(),ee(ie)},onclick:ee},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],f.container)}();var A=f.selection.cursor,F=f.renderer.textToScreenCoordinates(A.row,A.column),Y=f.renderer.textToScreenCoordinates(0,0).pageX,ee=f.renderer.scrollLeft,ie=f.container.getBoundingClientRect();D.style.top=F.pageY-ie.top-3+"px",F.pageX-ie.left1)return clearTimeout(h),h=null,r=-1,void(d="zoom");I=f.$mouseHandler.isMousePressed=!0;var Y=f.renderer.layerConfig.lineHeight,ee=f.renderer.layerConfig.lineHeight,ie=A.timeStamp;u=ie;var $=F[0],j=$.clientX,G=$.clientY;Math.abs(a-j)+Math.abs(l-G)>Y&&(r=-1),a=A.clientX=j,l=A.clientY=G,w=k=0;var V=new E(A,f);if(y=V.getDocumentPosition(),ie-r<500&&1==F.length&&!v)M++,A.preventDefault(),A.button=0,function R(){h=null,clearTimeout(h),f.selection.moveToPosition(y);var A=M>=2?f.selection.getLineRange(y.row):f.session.getBracketRange(y);A&&!A.isEmpty()?f.selection.setRange(A):f.selection.selectWord(),d="wait"}();else{M=0;var W=f.selection.cursor,K=f.selection.isEmpty()?W:f.selection.anchor,ce=f.renderer.$cursorLayer.getPixelPosition(W,!0),ue=f.renderer.$cursorLayer.getPixelPosition(K,!0),be=f.renderer.scroller.getBoundingClientRect(),Ze=f.renderer.layerConfig.offset,pt=f.renderer.scrollLeft,ct=function(Ae,fe){return(Ae/=ee)*Ae+(fe=fe/Y-.75)*fe};if(A.clientXNe?"cursor":"anchor"),d=Ne<3.5?"anchor":Ct<3.5?"cursor":"scroll",h=setTimeout(S,450)}r=ie},f),c.addListener(s,"touchend",function(A){I=f.$mouseHandler.isMousePressed=!1,p&&clearInterval(p),"zoom"==d?(d="",v=0):h?(f.selection.moveToPosition(y),v=0,T()):"scroll"==d?(function N(){v+=60,p=setInterval(function(){v--<=0&&(clearInterval(p),p=null),Math.abs(w)<.01&&(w=0),Math.abs(k)<.01&&(k=0),v<20&&(w*=.9),v<20&&(k*=.9);var A=f.session.getScrollTop();f.renderer.scrollBy(10*w,10*k),A==f.session.getScrollTop()&&(v=0)},10)}(),U()):T(),clearTimeout(h),h=null},f),c.addListener(s,"touchmove",function(A){h&&(clearTimeout(h),h=null);var F=A.touches;if(!(F.length>1||"zoom"==d)){var Y=F[0],ee=a-Y.clientX,ie=l-Y.clientY;if("wait"==d){if(!(ee*ee+ie*ie>4))return A.preventDefault();d="cursor"}a=Y.clientX,l=Y.clientY,A.clientX=Y.clientX,A.clientY=Y.clientY;var $=A.timeStamp,j=$-u;if(u=$,"scroll"==d){var G=new E(A,f);G.speed=1,G.wheelX=ee,G.wheelY=ie,10*Math.abs(ee)=pt){for(fe=Ae+1;fe=pt;)fe++;for(We=Ae,Pe=fe-1;We=ct.length||2!=(fe=Ct[Ne-1])&&3!=fe||2!=(We=ct[Ne+1])&&3!=We?4:(f&&(We=3),We==fe?We:4);case 10:return 2==(fe=Ne>0?Ct[Ne-1]:5)&&Ne+10&&2==Ct[Ne-1])return 2;if(f)return 4;for(Me=Ne+1,Pe=ct.length;Me=1425&&$e<=2303||64286==$e)&&(1==fe||7==fe))return 1}return Ne<1||5==(fe=ct[Ne-1])?4:Ct[Ne-1];case 5:return f=!1,a=!0,b;case 6:return l=!0,4;case 13:case 14:case 16:case 17:case 15:f=!1;case G:return 4}}function be(pt){var ct=pt.charCodeAt(0),Ct=ct>>8;return 0==Ct?ct>191?0:V[ct]:5==Ct?/[\u0591-\u05f4]/.test(pt)?1:0:6==Ct?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(pt)?12:/[\u0660-\u0669\u066b-\u066c]/.test(pt)?3:1642==ct?A:/[\u06f0-\u06f9]/.test(pt)?2:7:32==Ct&&ct<=8287?W[255&ct]:254==Ct&&ct>=65136?7:4}_.L=0,_.R=1,_.EN=2,_.ON_R=3,_.AN=4,_.R_H=5,_.B=6,_.RLE=7,_.DOT="\xb7",_.doBidiReorder=function(pt,ct,Ct){if(pt.length<2)return{};var Ne=pt.split(""),Ae=new Array(Ne.length),fe=new Array(Ne.length),We=[];b=Ct?1:0,function K(pt,ct,Ct,Ne){var Ae=b?p:h,fe=null,We=null,Pe=null,Me=0,$e=null,_e=-1,Oe=null,vt=null,rt=[];if(!Ne)for(Oe=0,Ne=[];Oe0)if(16==$e){for(Oe=_e;Oe-1){for(Oe=_e;Oe=0&&8==Ne[we];we--)ct[we]=b}}(Ne,We,Ne.length,ct);for(var Pe=0;Pe7&&ct[Pe]<13||4===ct[Pe]||ct[Pe]===G)?We[Pe]=_.ON_R:Pe>0&&"\u0644"===Ne[Pe-1]&&/\u0622|\u0623|\u0625|\u0627/.test(Ne[Pe])&&(We[Pe-1]=We[Pe]=_.R_H,Pe++);for(Ne[Ne.length-1]===_.DOT&&(We[Ne.length-1]=_.B),"\u202b"===Ne[0]&&(We[0]=_.RLE),Pe=0;Pe=0&&(d=this.session.$docRowCache[l])}return d},f.prototype.getSplitIndex=function(){var d=0,a=this.session.$screenRowCache;if(a.length)for(var l,r=this.session.$getRowCacheIndex(a,this.currentRow);this.currentRow-d>0&&(l=this.session.$getRowCacheIndex(a,this.currentRow-d-1))===r;)r=l,d++;else d=this.currentRow;return d},f.prototype.updateRowLine=function(d,a){void 0===d&&(d=this.getDocumentRow());var r=d===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(d),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var u=this.session.$wrapData[d];u&&(void 0===a&&(a=this.getSplitIndex()),a>0&&u.length?(this.wrapIndent=u.indent,this.wrapOffset=this.wrapIndent*this.charWidths[E.L],this.line=aa?this.session.getOverwrite()?d:d-1:a,r=E.getVisualFromLogicalIdx(l,this.bidiMap),u=this.bidiMap.bidiLevels,h=0;!this.session.getOverwrite()&&d<=a&&u[r]%2!=0&&r++;for(var p=0;pa&&u[r]%2==0&&(h+=this.charWidths[u[r]]),this.wrapIndent&&(h+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(h+=this.rtlLineOffset),h},f.prototype.getSelections=function(d,a){var u,l=this.bidiMap,r=l.bidiLevels,h=[],p=0,v=Math.min(d,a)-this.wrapIndent,y=Math.max(d,a)-this.wrapIndent,M=!1,w=!1,k=0;this.wrapIndent&&(p+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var I,D=0;D=v&&Ir+p/2;){if(r+=p,u===h.length-1){p=0;break}p=this.charWidths[h[++u]]}return u>0&&h[u-1]%2!=0&&h[u]%2==0?(l0&&h[u-1]%2==0&&h[u]%2!=0?a=1+(l>r?this.bidiMap.logicalFromVisual[u]:this.bidiMap.logicalFromVisual[u-1]):this.isRtlDir&&u===h.length-1&&0===p&&h[u-1]%2==0||!this.isRtlDir&&0===u&&h[u]%2!=0?a=1+this.bidiMap.logicalFromVisual[u]:(u>0&&h[u-1]%2!=0&&0!==p&&u--,a=this.bidiMap.logicalFromVisual[u]),0===a&&this.isRtlDir&&a++,a+this.wrapIndent},f}();_.BidiHandler=s}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(t,_,C){"use strict";var E=t("./lib/oop"),c=t("./lib/lang"),b=t("./lib/event_emitter").EventEmitter,s=t("./range").Range,f=function(){function d(a){this.session=a,this.doc=a.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var l=this;this.cursor.on("change",function(r){l.$cursorChanged=!0,l.$silent||l._emit("changeCursor"),!l.$isEmpty&&!l.$silent&&l._emit("changeSelection"),!l.$keepDesiredColumnOnChange&&r.old.column!=r.value.column&&(l.$desiredColumn=null)}),this.anchor.on("change",function(){l.$anchorChanged=!0,!l.$isEmpty&&!l.$silent&&l._emit("changeSelection")})}return d.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},d.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},d.prototype.getCursor=function(){return this.lead.getPosition()},d.prototype.setAnchor=function(a,l){this.$isEmpty=!1,this.anchor.setPosition(a,l)},d.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},d.prototype.getSelectionLead=function(){return this.lead.getPosition()},d.prototype.isBackwards=function(){var a=this.anchor,l=this.lead;return a.row>l.row||a.row==l.row&&a.column>l.column},d.prototype.getRange=function(){var a=this.anchor,l=this.lead;return this.$isEmpty?s.fromPoints(l,l):this.isBackwards()?s.fromPoints(l,a):s.fromPoints(a,l)},d.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},d.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},d.prototype.setRange=function(a,l){var r=l?a.end:a.start,u=l?a.start:a.end;this.$setSelection(r.row,r.column,u.row,u.column)},d.prototype.$setSelection=function(a,l,r,u){if(!this.$silent){var h=this.$isEmpty,p=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(a,l),this.cursor.setPosition(r,u),this.$isEmpty=!s.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||h!=this.$isEmpty||p)&&this._emit("changeSelection")}},d.prototype.$moveSelection=function(a){var l=this.lead;this.$isEmpty&&this.setSelectionAnchor(l.row,l.column),a.call(this)},d.prototype.selectTo=function(a,l){this.$moveSelection(function(){this.moveCursorTo(a,l)})},d.prototype.selectToPosition=function(a){this.$moveSelection(function(){this.moveCursorToPosition(a)})},d.prototype.moveTo=function(a,l){this.clearSelection(),this.moveCursorTo(a,l)},d.prototype.moveToPosition=function(a){this.clearSelection(),this.moveCursorToPosition(a)},d.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},d.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},d.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},d.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},d.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},d.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},d.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},d.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},d.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},d.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},d.prototype.getWordRange=function(a,l){if(typeof l>"u"){var r=a||this.lead;a=r.row,l=r.column}return this.session.getWordRange(a,l)},d.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},d.prototype.selectAWord=function(){var a=this.getCursor(),l=this.session.getAWordRange(a.row,a.column);this.setSelectionRange(l)},d.prototype.getLineRange=function(a,l){var u,r="number"==typeof a?a:this.lead.row,h=this.session.getFoldLine(r);return h?(r=h.start.row,u=h.end.row):u=r,!0===l?new s(r,0,u,this.session.getLine(u).length):new s(r,0,u+1,0)},d.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},d.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},d.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},d.prototype.wouldMoveIntoSoftTab=function(a,l,r){var u=a.column,h=a.column+l;return r<0&&(u=a.column-l,h=a.column),this.session.isTabStop(a)&&this.doc.getLine(a.row).slice(u,h).split(" ").length-1==l},d.prototype.moveCursorLeft=function(){var l,a=this.lead.getPosition();if(l=this.session.getFoldAt(a.row,a.column,-1))this.moveCursorTo(l.start.row,l.start.column);else if(0===a.column)a.row>0&&this.moveCursorTo(a.row-1,this.doc.getLine(a.row-1).length);else{var r=this.session.getTabSize();this.wouldMoveIntoSoftTab(a,r,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-r):this.moveCursorBy(0,-1)}},d.prototype.moveCursorRight=function(){var l,a=this.lead.getPosition();if(l=this.session.getFoldAt(a.row,a.column,1))this.moveCursorTo(l.end.row,l.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(l.column=u)}}this.moveCursorTo(l.row,l.column)},d.prototype.moveCursorFileEnd=function(){var a=this.doc.getLength()-1,l=this.doc.getLine(a).length;this.moveCursorTo(a,l)},d.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},d.prototype.moveCursorLongWordRight=function(){var a=this.lead.row,l=this.lead.column,r=this.doc.getLine(a),u=r.substring(l);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var h=this.session.getFoldAt(a,l,1);if(!h)return this.session.nonTokenRe.exec(u)&&(l+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,u=r.substring(l)),l>=r.length?(this.moveCursorTo(a,r.length),this.moveCursorRight(),void(a0&&this.moveCursorWordLeft());this.session.tokenRe.exec(h)&&(l-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(a,l)}},d.prototype.$shortWordEndIndex=function(a){var r,l=0,u=/\s/,h=this.session.tokenRe;if(h.lastIndex=0,this.session.tokenRe.exec(a))l=this.session.tokenRe.lastIndex;else{for(;(r=a[l])&&u.test(r);)l++;if(l<1)for(h.lastIndex=0;(r=a[l])&&!h.test(r);)if(h.lastIndex=0,l++,u.test(r)){if(l>2){l--;break}for(;(r=a[l])&&u.test(r);)l++;if(l>2)break}}return h.lastIndex=0,l},d.prototype.moveCursorShortWordRight=function(){var a=this.lead.row,l=this.lead.column,r=this.doc.getLine(a),u=r.substring(l),h=this.session.getFoldAt(a,l,1);if(h)return this.moveCursorTo(h.end.row,h.end.column);if(l==r.length){var p=this.doc.getLength();do{a++,u=this.doc.getLine(a)}while(a0&&/^\s*$/.test(u));l=u.length,/\s+$/.test(u)||(u="")}var h=c.stringReverse(u),p=this.$shortWordEndIndex(h);return this.moveCursorTo(a,l-p)},d.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},d.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},d.prototype.moveCursorBy=function(a,l){var u,r=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===l&&(0!==a&&(this.session.$bidiHandler.isBidiRow(r.row,this.lead.row)?(u=this.session.$bidiHandler.getPosLeft(r.column),r.column=Math.round(u/this.session.$bidiHandler.charWidths[0])):u=r.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?r.column=this.$desiredColumn:this.$desiredColumn=r.column),0!=a&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var h=this.session.lineWidgets[this.lead.row];a<0?a-=h.rowsAbove||0:a>0&&(a+=h.rowCount-(h.rowsAbove||0))}var p=this.session.screenToDocumentPosition(r.row+a,r.column,u);this.moveCursorTo(p.row,p.column+l,0===l)},d.prototype.moveCursorToPosition=function(a){this.moveCursorTo(a.row,a.column)},d.prototype.moveCursorTo=function(a,l,r){var u=this.session.getFoldAt(a,l,1);u&&(a=u.start.row,l=u.start.column),this.$keepDesiredColumnOnChange=!0;var h=this.session.getLine(a);/[\uDC00-\uDFFF]/.test(h.charAt(l))&&h.charAt(l-1)&&(this.lead.row==a&&this.lead.column==l+1?l-=1:l+=1),this.lead.setPosition(a,l),this.$keepDesiredColumnOnChange=!1,r||(this.$desiredColumn=null)},d.prototype.moveCursorToScreen=function(a,l,r){var u=this.session.screenToDocumentPosition(a,l);this.moveCursorTo(u.row,u.column,r)},d.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},d.prototype.fromOrientedRange=function(a){this.setSelectionRange(a,a.cursor==a.start),this.$desiredColumn=a.desiredColumn||this.$desiredColumn},d.prototype.toOrientedRange=function(a){var l=this.getRange();return a?(a.start.column=l.start.column,a.start.row=l.start.row,a.end.column=l.end.column,a.end.row=l.end.row):a=l,a.cursor=this.isBackwards()?a.start:a.end,a.desiredColumn=this.$desiredColumn,a},d.prototype.getRangeOfMovements=function(a){var l=this.getCursor();try{a(this);var r=this.getCursor();return s.fromPoints(l,r)}catch{return s.fromPoints(l,l)}finally{this.moveCursorToPosition(l)}},d.prototype.toJSON=function(){if(this.rangeCount)var a=this.ranges.map(function(l){var r=l.clone();return r.isBackwards=l.cursor==l.start,r});else(a=this.getRange()).isBackwards=this.isBackwards();return a},d.prototype.fromJSON=function(a){if(null==a.start){if(this.rangeList&&a.length>1){this.toSingleRange(a[0]);for(var l=a.length;l--;){var r=s.fromPoints(a[l].start,a[l].end);a[l].isBackwards&&(r.cursor=r.start),this.addRange(r,!0)}return}a=a[0]}this.rangeList&&this.toSingleRange(a),this.setSelectionRange(a,a.isBackwards)},d.prototype.isEqual=function(a){if((a.length||this.rangeCount)&&a.length!=this.rangeCount)return!1;if(!a.length||!this.ranges)return this.getRange().isEqual(a);for(var l=this.ranges.length;l--;)if(!this.ranges[l].isEqual(a[l]))return!1;return!0},d}();f.prototype.setSelectionAnchor=f.prototype.setAnchor,f.prototype.getSelectionAnchor=f.prototype.getAnchor,f.prototype.setSelectionRange=f.prototype.setRange,E.implement(f.prototype,b),_.Selection=f}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(t,_,C){"use strict";var E=t("./lib/report_error").reportError,c=2e3,b=function(){function s(f){for(var d in this.states=f,this.regExps={},this.matchMappings={},this.states){for(var a=this.states[d],l=[],r=0,u=this.matchMappings[d]={defaultToken:"text"},h="g",p=[],v=0;v1?this.$applyToken:y.token),w>1&&(/\\\d/.test(y.regex)?M=y.regex.replace(/\\([0-9]+)/g,function(k,I){return"\\"+(parseInt(I,10)+r+1)}):(w=1,M=this.removeCapturingGroups(y.regex)),!y.splitRegex&&"string"!=typeof y.token&&p.push(y)),u[r]=v,r+=w,l.push(M),y.onMatch||(y.onMatch=null)}}l.length||(u[0]=0,l.push("$")),p.forEach(function(k){k.splitRegex=this.createSplitterRegexp(k.regex,h)},this),this.regExps[d]=new RegExp("("+l.join(")|(")+")|($)",h)}}return s.prototype.$setMaxTokenCount=function(f){c=0|f},s.prototype.$applyToken=function(f){var d=this.splitRegex.exec(f).slice(1),a=this.token.apply(this,d);if("string"==typeof a)return[{type:a,value:f}];for(var l=[],r=0,u=a.length;ry){var T=f.substring(y,O-D.length);w.type==k?w.value+=T:(w.type&&v.push(w),w={type:k,value:T})}for(var U=0;Uc){for(M>2*f.length&&this.reportError("infinite loop with in ace tokenizer",{startState:d,line:f});y1&&a[0]!==l&&a.unshift("#tmp",l),{tokens:v,state:a.length?a:l}},s}();b.prototype.reportError=E,_.Tokenizer=b}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(t,_,C){"use strict";var c,E=t("../lib/deep_copy").deepCopy;(function(){this.addRules=function(f,d){if(d)for(var a in f){for(var l=f[a],r=0;r=this.$rowTokens.length;){if(this.$row+=1,s||(s=this.$session.getLength()),this.$row>=s)return this.$row=s-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},b.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},b.prototype.getCurrentTokenRow=function(){return this.$row},b.prototype.getCurrentTokenColumn=function(){var s=this.$rowTokens,f=this.$tokenIndex,d=s[f].start;if(void 0!==d)return d;for(d=0;f>0;)d+=s[f-=1].value.length;return d},b.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},b.prototype.getCurrentTokenRange=function(){var s=this.$rowTokens[this.$tokenIndex],f=this.getCurrentTokenColumn();return new E(this.$row,f,this.$row,f+s.value.length)},b}();_.TokenIterator=c}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(t,_,C){"use strict";var a,p,E=t("../../lib/oop"),c=t("../behaviour").Behaviour,b=t("../../token_iterator").TokenIterator,s=t("../../lib/lang"),f=["text","paren.rparen","rparen","paren","punctuation.operator"],d=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],l={},r={'"':'"',"'":"'"},u=function(v){var y=-1;if(v.multiSelect&&(y=v.selection.index,l.rangeCount!=v.multiSelect.rangeCount&&(l={rangeCount:v.multiSelect.rangeCount})),l[y])return a=l[y];a=l[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},h=function(v,y,M,w){var k=v.end.row-v.start.row;return{text:M+y+w,selection:[0,v.start.column+1,k,v.end.column+(k?0:1)]}};(p=function(v){v=v||{},this.add("braces","insertion",function(y,M,w,k,I){var D=w.getCursorPosition(),O=k.doc.getLine(D.row);if("{"==I){u(w);var T=w.getSelectionRange(),U=k.doc.getTextRange(T);if(""!==U&&"{"!==U&&w.getWrapBehavioursEnabled())return h(T,U,"{","}");if(p.isSaneInsertion(w,k))return/[\]\}\)]/.test(O[D.column])||w.inMultiSelectMode||v.braces?(p.recordAutoInsert(w,k,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(w,k,"{"),{text:"{",selection:[1,1]})}else if("}"==I){if(u(w),"}"==O.substring(D.column,D.column+1)&&null!==k.$findOpeningBracket("}",{column:D.column+1,row:D.row})&&p.isAutoInsertedClosing(D,O,I))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==I||"\r\n"==I){u(w);var N="";if(p.isMaybeInsertedClosing(D,O)&&(N=s.stringRepeat("}",a.maybeInsertedBrackets),p.clearMaybeInsertedClosing()),"}"===O.substring(D.column,D.column+1)){var A=k.findMatchingBracket({row:D.row,column:D.column+1},"}");if(!A)return null;var F=this.$getIndent(k.getLine(A.row))}else{if(!N)return void p.clearMaybeInsertedClosing();F=this.$getIndent(O)}var Y=F+k.getTabString();return{text:"\n"+Y+"\n"+F+N,selection:[1,Y.length,1,Y.length]}}p.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function(y,M,w,k,I){var D=k.doc.getTextRange(I);if(!I.isMultiLine()&&"{"==D){if(u(w),"}"==k.doc.getLine(I.start.row).substring(I.end.column,I.end.column+1))return I.end.column++,I;a.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,M,w,k,I){if("("==I){u(w);var D=w.getSelectionRange(),O=k.doc.getTextRange(D);if(""!==O&&w.getWrapBehavioursEnabled())return h(D,O,"(",")");if(p.isSaneInsertion(w,k))return p.recordAutoInsert(w,k,")"),{text:"()",selection:[1,1]}}else if(")"==I){u(w);var T=w.getCursorPosition(),U=k.doc.getLine(T.row);if(")"==U.substring(T.column,T.column+1)&&null!==k.$findOpeningBracket(")",{column:T.column+1,row:T.row})&&p.isAutoInsertedClosing(T,U,I))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("parens","deletion",function(y,M,w,k,I){var D=k.doc.getTextRange(I);if(!I.isMultiLine()&&"("==D&&(u(w),")"==k.doc.getLine(I.start.row).substring(I.start.column+1,I.start.column+2)))return I.end.column++,I}),this.add("brackets","insertion",function(y,M,w,k,I){if("["==I){u(w);var D=w.getSelectionRange(),O=k.doc.getTextRange(D);if(""!==O&&w.getWrapBehavioursEnabled())return h(D,O,"[","]");if(p.isSaneInsertion(w,k))return p.recordAutoInsert(w,k,"]"),{text:"[]",selection:[1,1]}}else if("]"==I){u(w);var T=w.getCursorPosition(),U=k.doc.getLine(T.row);if("]"==U.substring(T.column,T.column+1)&&null!==k.$findOpeningBracket("]",{column:T.column+1,row:T.row})&&p.isAutoInsertedClosing(T,U,I))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("brackets","deletion",function(y,M,w,k,I){var D=k.doc.getTextRange(I);if(!I.isMultiLine()&&"["==D&&(u(w),"]"==k.doc.getLine(I.start.row).substring(I.start.column+1,I.start.column+2)))return I.end.column++,I}),this.add("string_dquotes","insertion",function(y,M,w,k,I){var D=k.$mode.$quotes||r;if(1==I.length&&D[I]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(I))return;u(w);var O=I,T=w.getSelectionRange(),U=k.doc.getTextRange(T);if(""!==U&&(1!=U.length||!D[U])&&w.getWrapBehavioursEnabled())return h(T,U,O,O);if(!U){var S=w.getCursorPosition(),R=k.doc.getLine(S.row),N=R.substring(S.column-1,S.column),A=R.substring(S.column,S.column+1),F=k.getTokenAt(S.row,S.column),Y=k.getTokenAt(S.row,S.column+1);if("\\"==N&&F&&/escape/.test(F.type))return null;var $,ee=F&&/string|escape/.test(F.type),ie=!Y||/string|escape/.test(Y.type);if(A==O)($=ee!==ie)&&/string\.end/.test(Y.type)&&($=!1);else{if(ee&&!ie||ee&&ie)return null;var j=k.$mode.tokenRe;j.lastIndex=0;var G=j.test(N);j.lastIndex=0;var V=j.test(A),W=k.$mode.$pairQuotesAfter;if(!(W&&W[O]&&W[O].test(N))&&G||V||A&&!/[\s;,.})\]\\]/.test(A))return null;var ce=R[S.column-2];if(N==O&&(ce==O||j.test(ce)))return null;$=!0}return{text:$?O+O:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,M,w,k,I){var D=k.$mode.$quotes||r,O=k.doc.getTextRange(I);if(!I.isMultiLine()&&D.hasOwnProperty(O)&&(u(w),k.doc.getLine(I.start.row).substring(I.start.column+1,I.start.column+2)==O))return I.end.column++,I}),!1!==v.closeDocComment&&this.add("doc comment end","insertion",function(y,M,w,k,I){if("doc-start"===y&&("\n"===I||"\r\n"===I)&&w.selection.isEmpty()){var D=w.getCursorPosition(),O=k.doc.getLine(D.row),T=k.doc.getLine(D.row+1),U=this.$getIndent(O);if(/\s*\*/.test(T))return/^\s*\*/.test(O)?{text:I+U+"* ",selection:[1,3+U.length,1,3+U.length]}:{text:I+U+" * ",selection:[1,3+U.length,1,3+U.length]};if(/\/\*\*/.test(O.substring(0,D.column)))return{text:I+U+" * "+I+" "+U+"*/",selection:[1,4+U.length,1,4+U.length]}}})}).isSaneInsertion=function(v,y){var M=v.getCursorPosition(),w=new b(y,M.row,M.column);if(!this.$matchTokenType(w.getCurrentToken()||"text",f)){if(/[)}\]]/.test(v.session.getLine(M.row)[M.column]))return!0;var k=new b(y,M.row,M.column+1);if(!this.$matchTokenType(k.getCurrentToken()||"text",f))return!1}return w.stepForward(),w.getCurrentTokenRow()!==M.row||this.$matchTokenType(w.getCurrentToken()||"text",d)},p.$matchTokenType=function(v,y){return y.indexOf(v.type||v)>-1},p.recordAutoInsert=function(v,y,M){var w=v.getCursorPosition(),k=y.doc.getLine(w.row);this.isAutoInsertedClosing(w,k,a.autoInsertedLineEnd[0])||(a.autoInsertedBrackets=0),a.autoInsertedRow=w.row,a.autoInsertedLineEnd=M+k.substr(w.column),a.autoInsertedBrackets++},p.recordMaybeInsert=function(v,y,M){var w=v.getCursorPosition(),k=y.doc.getLine(w.row);this.isMaybeInsertedClosing(w,k)||(a.maybeInsertedBrackets=0),a.maybeInsertedRow=w.row,a.maybeInsertedLineStart=k.substr(0,w.column)+M,a.maybeInsertedLineEnd=k.substr(w.column),a.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(v,y,M){return a.autoInsertedBrackets>0&&v.row===a.autoInsertedRow&&M===a.autoInsertedLineEnd[0]&&y.substr(v.column)===a.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(v,y){return a.maybeInsertedBrackets>0&&v.row===a.maybeInsertedRow&&y.substr(v.column)===a.maybeInsertedLineEnd&&y.substr(0,v.column)==a.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){a.autoInsertedLineEnd=a.autoInsertedLineEnd.substr(1),a.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){a&&(a.maybeInsertedBrackets=0,a.maybeInsertedRow=-1)},E.inherits(p,c),_.CstyleBehaviour=p}),ace.define("ace/unicode",["require","exports","module"],function(t,_,C){"use strict";for(var E=[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],c=0,b=[],s=0;s2?ce%I!=I-1:ce%I==0}}else{if(!this.blockComment)return!1;O=this.blockComment.start;var T=this.blockComment.end,S=(U=new RegExp("^(\\s*)(?:"+d.escapeRegExp(O)+")"),new RegExp("(?:"+d.escapeRegExp(T)+")\\s*$"));R=function($,j){A($,j)||(!M||/\S/.test($))&&(y.insertInLine({row:j,column:$.length},T),y.insertInLine({row:j,column:k},O))},N=function($,j){var G;(G=$.match(S))&&y.removeInLine(j,$.length-G[0].length,$.length),(G=$.match(U))&&y.removeInLine(j,G[1].length,G[0].length)},A=function($,j){if(U.test($))return!0;for(var G=h.getTokens(j),V=0;V$.length&&(ie=$.length)}),k==1/0&&(k=ie,M=!1,w=!1),D&&k%I!=0&&(k=Math.floor(k/I)*I),ee(w?N:R)},this.toggleBlockComment=function(u,h,p,v){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var D,O,w=(M=new a(h,v.row,v.column)).getCurrentToken(),I=h.selection.toOrientedRange();if(w&&/comment/.test(w.type)){for(var T,U;w&&/comment/.test(w.type);){if(-1!=(S=w.value.indexOf(y.start))){var R=M.getCurrentTokenRow(),N=M.getCurrentTokenColumn()+S;T=new l(R,N,R,N+y.start.length);break}w=M.stepBackward()}var M;for(w=(M=new a(h,v.row,v.column)).getCurrentToken();w&&/comment/.test(w.type);){var S;if(-1!=(S=w.value.indexOf(y.end))){R=M.getCurrentTokenRow(),N=M.getCurrentTokenColumn()+S,U=new l(R,N,R,N+y.end.length);break}w=M.stepForward()}U&&h.remove(U),T&&(h.remove(T),D=T.start.row,O=-y.start.length)}else O=y.start.length,D=p.start.row,h.insert(p.end,y.end),h.insert(p.start,y.start);I.start.row==D&&(I.start.column+=O),I.end.row==D&&(I.end.column+=O),h.selection.fromOrientedRange(I)}},this.getNextLineIndent=function(u,h,p){return this.$getIndent(h)},this.checkOutdent=function(u,h,p){return!1},this.autoOutdent=function(u,h,p){},this.$getIndent=function(u){return u.match(/^\s*/)[0]},this.createWorker=function(u){return null},this.createModeDelegates=function(u){for(var h in this.$embeds=[],this.$modes={},u)if(u[h]){var p=u[h],v=p.prototype.$id,y=E.$modes[v];y||(E.$modes[v]=y=new p),E.$modes[h]||(E.$modes[h]=y),this.$embeds.push(h),this.$modes[h]=y}var M=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],w=function(I){var D,O,T;T=(D=k)[O=M[I]],D[M[I]]=function(){return this.$delegator(O,arguments,T)}},k=this;for(h=0;hthis.row)){var l=function f(d,a,l){var r="insert"==d.action,u=(r?1:-1)*(d.end.row-d.start.row),h=(r?1:-1)*(d.end.column-d.start.column),p=d.start,v=r?p:d.end;return s(a,p,l)?{row:a.row,column:a.column}:s(v,a,!l)?{row:a.row+u,column:a.column+(a.row==v.row?h:0)}:{row:p.row,column:p.column}}(a,{row:this.row,column:this.column},this.$insertRight);this.setPosition(l.row,l.column,!0)}},d.prototype.setPosition=function(a,l,r){var u;if(u=r?{row:a,column:l}:this.$clipPositionToDocument(a,l),this.row!=u.row||this.column!=u.column){var h={row:this.row,column:this.column};this.row=u.row,this.column=u.column,this._signal("change",{old:h,value:u})}},d.prototype.detach=function(){this.document.off("change",this.$onChange)},d.prototype.attach=function(a){this.document=a||this.document,this.document.on("change",this.$onChange)},d.prototype.$clipPositionToDocument=function(a,l){var r={};return a>=this.document.getLength()?(r.row=Math.max(0,this.document.getLength()-1),r.column=this.document.getLine(r.row).length):a<0?(r.row=0,r.column=0):(r.row=a,r.column=Math.min(this.document.getLine(r.row).length,Math.max(0,l))),l<0&&(r.column=0),r},d}();function s(d,a,l){return d.row=u&&(l=u-1,r=void 0);var h=this.getLine(l);return null==r&&(r=h.length),{row:l,column:r=Math.min(Math.max(r,0),h.length)}},a.prototype.clonePos=function(l){return{row:l.row,column:l.column}},a.prototype.pos=function(l,r){return{row:l,column:r}},a.prototype.$clipPosition=function(l){var r=this.getLength();return l.row>=r?(l.row=Math.max(0,r-1),l.column=this.getLine(r-1).length):(l.row=Math.max(0,l.row),l.column=Math.min(Math.max(l.column,0),this.getLine(l.row).length)),l},a.prototype.insertFullLines=function(l,r){var u=0;(l=Math.min(Math.max(l,0),this.getLength()))0,h=r=0&&this.applyDelta({start:this.pos(l,this.getLine(l).length),end:this.pos(l+1,0),action:"remove",lines:["",""]})},a.prototype.replace=function(l,r){return l instanceof s||(l=s.fromPoints(l.start,l.end)),0===r.length&&l.isEmpty()?l.start:r==this.getTextRange(l)?l.end:(this.remove(l),r?this.insert(l.start,r):l.start)},a.prototype.applyDeltas=function(l){for(var r=0;r=0;r--)this.revertDelta(l[r])},a.prototype.applyDelta=function(l,r){var u="insert"==l.action;(u?l.lines.length<=1&&!l.lines[0]:!s.comparePoints(l.start,l.end))||(u&&l.lines.length>2e4?this.$splitAndapplyLargeDelta(l,2e4):(c(this.$lines,l,r),this._signal("change",l)))},a.prototype.$safeApplyDelta=function(l){var r=this.$lines.length;("remove"==l.action&&l.start.row20){a.running=setTimeout(a.$worker,20);break}}a.currentLine=r,-1==u&&(u=r),p<=u&&a.fireUpdateEvent(p,u)}}}return s.prototype.setTokenizer=function(f){this.tokenizer=f,this.lines=[],this.states=[],this.start(0)},s.prototype.setDocument=function(f){this.doc=f,this.lines=[],this.states=[],this.stop()},s.prototype.fireUpdateEvent=function(f,d){this._signal("update",{data:{first:f,last:d}})},s.prototype.start=function(f){this.currentLine=Math.min(f||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)},s.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},s.prototype.$updateOnChange=function(f){var d=f.start.row,a=f.end.row-d;if(0===a)this.lines[d]=null;else if("remove"==f.action)this.lines.splice(d,a+1,null),this.states.splice(d,a+1,null);else{var l=Array(a+1);l.unshift(d,1),this.lines.splice.apply(this.lines,l),this.states.splice.apply(this.states,l)}this.currentLine=Math.min(d,this.currentLine,this.doc.getLength()),this.stop()},s.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},s.prototype.getTokens=function(f){return this.lines[f]||this.$tokenizeRow(f)},s.prototype.getState=function(f){return this.currentLine==f&&this.$tokenizeRow(f),this.states[f]||"start"},s.prototype.$tokenizeRow=function(f){var d=this.doc.getLine(f),l=this.tokenizer.getLineTokens(d,this.states[f-1],f);return this.states[f]+""!=l.state+""?(this.states[f]=l.state,this.lines[f+1]=null,this.currentLine>f+1&&(this.currentLine=f+1)):this.currentLine==f&&(this.currentLine=f+1),this.lines[f]=l.tokens},s.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},s}();E.implement(b.prototype,c),_.BackgroundTokenizer=b}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(t,_,C){"use strict";var E=t("./lib/lang"),c=t("./range").Range,b=function(){function s(f,d,a){void 0===a&&(a="text"),this.setRegexp(f),this.clazz=d,this.type=a}return s.prototype.setRegexp=function(f){this.regExp+""!=f+""&&(this.regExp=f,this.cache=[])},s.prototype.update=function(f,d,a,l){if(this.regExp)for(var u=l.lastRow,h={},p=l.firstRow;p<=u;p++){var v=this.cache[p];null==v&&((v=E.getMatchOffsets(a.getLine(p),this.regExp)).length>this.MAX_RANGES&&(v=v.slice(0,this.MAX_RANGES)),v=v.map(function(k){return new c(p,k.offset,p,k.offset+k.length)}),this.cache[p]=v.length?v:"");for(var y=v.length;y--;){var M=v[y].toScreenRange(a),w=M.toString();h[w]||(h[w]=!0,d.drawSingleLineMarker(f,M,this.clazz,l))}}},s}();b.prototype.MAX_RANGES=500,_.SearchHighlight=b}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(t,_,C){"use strict";var E=function(){function D(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return D.prototype.addSession=function(O){this.$session=O},D.prototype.add=function(O,T,U){if(!this.$fromUndo&&O!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),!1===T||!this.lastDeltas){this.lastDeltas=[];var S=this.$undoStack.length;S>this.$undoDepth-1&&this.$undoStack.splice(0,S-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),O.id=this.$rev=++this.$maxRev}("remove"==O.action||"insert"==O.action)&&(this.$lastDelta=O),this.lastDeltas.push(O)}},D.prototype.addSelection=function(O,T){this.selections.push({value:O,rev:T||this.$rev})},D.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},D.prototype.markIgnored=function(O,T){null==T&&(T=this.$rev+1);for(var U=this.$undoStack,S=U.length;S--;){var R=U[S][0];if(R.id<=O)break;R.id0},D.prototype.canRedo=function(){return this.$redoStack.length>0},D.prototype.bookmark=function(O){null==O&&(O=this.$rev),this.mark=O},D.prototype.isAtBookmark=function(){return this.$rev===this.mark},D.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},D.prototype.fromJSON=function(O){this.reset(),this.$undoStack=O.$undoStack,this.$redoStack=O.$redoStack},D.prototype.$prettyPrint=function(O){return O?r(O):r(this.$undoStack)+"\n---\n"+r(this.$redoStack)},D}();E.prototype.hasUndo=E.prototype.canUndo,E.prototype.hasRedo=E.prototype.canRedo,E.prototype.isClean=E.prototype.isAtBookmark,E.prototype.markClean=E.prototype.bookmark;var b=t("./range").Range,s=b.comparePoints;function a(D){return{row:D.row,column:D.column}}function r(D){if(D=D||this,Array.isArray(D))return D.map(r).join("\n");var O="";return D.action?(O="insert"==D.action?"+":"-",O+="["+D.lines+"]"):D.value&&(O=Array.isArray(D.value)?D.value.map(u).join("\n"):u(D.value)),D.start&&(O+=u(D)),(D.id||D.rev)&&(O+="\t("+(D.id||D.rev)+")"),O}function u(D){return D.start.row+":"+D.start.column+"=>"+D.end.row+":"+D.end.column}function h(D,O){var T="insert"==D.action,U="insert"==O.action;if(T&&U)if(s(O.start,D.end)>=0)y(O,D,-1);else{if(!(s(O.start,D.start)<=0))return null;y(D,O,1)}else if(T&&!U)if(s(O.start,D.end)>=0)y(O,D,-1);else{if(!(s(O.end,D.start)<=0))return null;y(D,O,-1)}else if(!T&&U)if(s(O.start,D.start)>=0)y(O,D,1);else{if(!(s(O.start,D.start)<=0))return null;y(D,O,1)}else if(!T&&!U)if(s(O.start,D.start)>=0)y(O,D,1);else{if(!(s(O.end,D.start)<=0))return null;y(D,O,-1)}return[O,D]}function p(D,O){for(var T=D.length;T--;)for(var U=0;U=0?y(D,O,-1):(s(D.start,O.start)<=0||y(D,b.fromPoints(O.start,D.start),-1),y(O,D,1));else if(!T&&U)s(O.start,D.end)>=0?y(O,D,-1):(s(O.start,D.start)<=0||y(O,b.fromPoints(D.start,O.start),-1),y(D,O,1));else if(!T&&!U)if(s(O.start,D.end)>=0)y(O,D,-1);else{var S,R;if(!(s(O.end,D.start)<=0))return s(D.start,O.start)<0&&(S=D,D=w(D,O.start)),s(D.end,O.end)>0&&(R=w(D,O.end)),M(O.end,D.start,D.end,-1),R&&!S&&(D.lines=R.lines,D.start=R.start,D.end=R.end,R=D),[O,S,R].filter(Boolean);y(D,O,-1)}return[O,D]}function y(D,O,T){M(D.start,O.start,O.end,T),M(D.end,O.start,O.end,T)}function M(D,O,T,U){D.row==(1==U?O:T).row&&(D.column+=U*(T.column-O.column)),D.row+=U*(T.row-O.row)}function w(D,O){var T=D.lines,U=D.end;D.end=a(O);var S=D.end.row-D.start.row,R=T.splice(S,T.length),N=S?O.column:O.column-D.start.column;return T.push(R[0].substring(0,N)),R[0]=R[0].substr(N),{start:a(O),end:U,lines:R,action:D.action}}function k(D,O){O=function l(D){return{start:a(D.start),end:a(D.end),action:D.action,lines:D.lines.slice()}}(O);for(var T=D.length;T--;){for(var U=D[T],S=0;Sthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(s),this.folds.sort(function(f,d){return-f.range.compareEnd(d.start.row,d.start.column)}),this.range.compareEnd(s.start.row,s.start.column)>0?(this.end.row=s.end.row,this.end.column=s.end.column):this.range.compareStart(s.end.row,s.end.column)<0&&(this.start.row=s.start.row,this.start.column=s.start.column)}else if(s.start.row==this.end.row)this.folds.push(s),this.end.row=s.end.row,this.end.column=s.end.column;else{if(s.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(s),this.start.row=s.start.row,this.start.column=s.start.column}s.foldLine=this},b.prototype.containsRow=function(s){return s>=this.start.row&&s<=this.end.row},b.prototype.walk=function(s,f,d){var r,u,a=0,l=this.folds,p=!0;null==f&&(f=this.end.row,d=this.end.column);for(var v=0;v0)){var p=c(f,u.start);return 0===h?d&&0!==p?-r-2:r:p>0||0===p&&!d?r:-r-1}}return-r-1},s.prototype.add=function(f){var d=!f.isEmpty(),a=this.pointIndex(f.start,d);a<0&&(a=-a-1);var l=this.pointIndex(f.end,d,a);return l<0?l=-l-1:l++,this.ranges.splice(a,l-a,f)},s.prototype.addList=function(f){for(var d=[],a=f.length;a--;)d.push.apply(d,this.add(f[a]));return d},s.prototype.substractPoint=function(f){var d=this.pointIndex(f);if(d>=0)return this.ranges.splice(d,1)},s.prototype.merge=function(){for(var l,f=[],d=this.ranges,a=(d=d.sort(function(h,p){return c(h.start,p.start)}))[0],r=1;r=0},s.prototype.containsPoint=function(f){return this.pointIndex(f)>=0},s.prototype.rangeAtPoint=function(f){var d=this.pointIndex(f);if(d>=0)return this.ranges[d]},s.prototype.clipRows=function(f,d){var a=this.ranges;if(a[0].start.row>d||a[a.length-1].start.row=l);h++);if("insert"==f.action){for(var y=r-l,M=-d.column+a.column;hl);h++)if(v.start.row==l&&v.start.column>=d.column&&(v.start.column==d.column&&this.$bias<=0||(v.start.column+=M,v.start.row+=y)),v.end.row==l&&v.end.column>=d.column){if(v.end.column==d.column&&this.$bias<0)continue;v.end.column==d.column&&M>0&&hv.start.column&&v.end.column==u[h+1].start.column&&(v.end.column-=M),v.end.column+=M,v.end.row+=y}}else for(y=l-r,M=d.column-a.column;hr);h++)v.end.rowd.column)&&(v.end.column=d.column,v.end.row=d.row):(v.end.column+=M,v.end.row+=y):v.end.row>r&&(v.end.row+=y),v.start.rowd.column)&&(v.start.column=d.column,v.start.row=d.row):(v.start.column+=M,v.start.row+=y):v.start.row>r&&(v.start.row+=y);if(0!=y&&h=a)return h;if(h.end.row>a)return null}return null},this.getNextFoldLine=function(a,l){var r=this.$foldData,u=0;for(l&&(u=r.indexOf(l)),-1==u&&(u=0);u=a)return h}return null},this.getFoldedRowCount=function(a,l){for(var r=this.$foldData,u=l-a+1,h=0;h=l){y=a?u-=l-y:u=0);break}v>=a&&(u-=y>=a?v-y:v-a+1)}return u},this.$addFoldLine=function(a){return this.$foldData.push(a),this.$foldData.sort(function(l,r){return l.start.row-r.start.row}),a},this.addFold=function(a,l){var h,r=this.$foldData,u=!1;a instanceof b?h=a:(h=new b(l,a)).collapseChildren=l.collapseChildren,this.$clipRangeToDocument(h.range);var p=h.start.row,v=h.start.column,y=h.end.row,M=h.end.column,w=this.getFoldAt(p,v,1),k=this.getFoldAt(y,M,-1);if(w&&k==w)return w.addSubFold(h);w&&!w.range.isStart(p,v)&&this.removeFold(w),k&&!k.range.isEnd(y,M)&&this.removeFold(k);var I=this.getFoldsInRange(h.range);I.length>0&&(this.removeFolds(I),h.collapseChildren||I.forEach(function(U){h.addSubFold(U)}));for(var D=0;D0&&this.foldAll(a.start.row+1,a.end.row,a.collapseChildren-1),a.subFolds=[]},this.expandFolds=function(a){a.forEach(function(l){this.expandFold(l)},this)},this.unfold=function(a,l){var r,u;if(null==a)r=new E(0,0,this.getLength(),0),null==l&&(l=!0);else if("number"==typeof a)r=new E(a,0,a,this.getLine(a).length);else if("row"in a)r=E.fromPoints(a,a);else{if(Array.isArray(a))return u=[],a.forEach(function(p){u=u.concat(this.unfold(p))},this),u;r=a}for(var h=u=this.getFoldsInRangeList(r);1==u.length&&E.comparePoints(u[0].start,r.start)<0&&E.comparePoints(u[0].end,r.end)>0;)this.expandFolds(u),u=this.getFoldsInRangeList(r);if(0!=l?this.removeFolds(u):this.expandFolds(u),h.length)return h},this.isRowFolded=function(a,l){return!!this.getFoldLine(a,l)},this.getRowFoldEnd=function(a,l){var r=this.getFoldLine(a,l);return r?r.end.row:a},this.getRowFoldStart=function(a,l){var r=this.getFoldLine(a,l);return r?r.start.row:a},this.getFoldDisplayLine=function(a,l,r,u,h){null==u&&(u=a.start.row),null==h&&(h=0),null==l&&(l=a.end.row),null==r&&(r=this.getLine(l).length);var p=this.doc,v="";return a.walk(function(y,M,w,k){if(!(MM)break}while(h&&v.test(h.type)&&!/^comment.start/.test(h.type));h=u.stepBackward()}else h=u.getCurrentToken();return y.end.row=u.getCurrentTokenRow(),y.end.column=u.getCurrentTokenColumn(),/^comment.end/.test(h.type)||(y.end.column+=h.value.length-2),y}},this.foldAll=function(a,l,r,u){null==r&&(r=1e5);var h=this.foldWidgets;if(h){l=l||this.getLength();for(var p=a=a||0;p=a&&(p=v.end.row,v.collapseChildren=r,this.addFold("...",v))}}},this.foldToLevel=function(a){for(this.foldAll();a-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var a=this;this.foldAll(null,null,null,function(l){for(var r=a.getTokens(l),u=0;u=0;){var p=r[u];if(null==p&&(p=r[u]=this.getFoldWidget(u)),"start"==p){var v=this.getFoldWidgetRange(u);if(h||(h=v),v&&v.end.row>=a)break}u--}return{range:-1!==u&&v,firstRange:h}},this.onFoldWidgetClick=function(a,l){if(l instanceof f&&(l=l.domEvent),!this.$toggleFoldWidget(a,{children:l.shiftKey,all:l.ctrlKey||l.metaKey,siblings:l.altKey})){var h=l.target||l.srcElement;h&&/ace_fold-widget/.test(h.className)&&(h.className+=" ace_invalid")}},this.$toggleFoldWidget=function(a,l){if(this.getFoldWidget){var r=this.getFoldWidget(a),u=this.getLine(a),h="end"===r?-1:1,p=this.getFoldAt(a,-1===h?0:u.length,h);if(p)return l.children||l.all?this.removeFold(p):this.expandFold(p),p;var v=this.getFoldWidgetRange(a,!0);if(v&&!v.isMultiLine()&&(p=this.getFoldAt(v.start.row,v.start.column,1))&&v.isEqual(p.range))return this.removeFold(p),p;if(l.siblings){var y=this.getParentFoldRangeData(a);if(y.range)var M=y.range.start.row+1,w=y.range.end.row;this.foldAll(M,w,l.all?1e4:0)}else l.children?(w=v?v.end.row:this.getLength(),this.foldAll(a+1,w,l.all?1e4:0)):v&&(l.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(a){var l=this.selection.getCursor().row;l=this.getRowFoldStart(l);var r=this.$toggleFoldWidget(l,{});if(!r){var u=this.getParentFoldRangeData(l,!0);if(r=u.range||u.firstRange){var h=this.getFoldAt(l=r.start.row,this.getLine(l).length,1);h?this.removeFold(h):this.addFold("...",r)}}},this.updateFoldWidgets=function(a){var l=a.start.row,r=a.end.row-l;if(0===r)this.foldWidgets[l]=null;else if("remove"==a.action)this.foldWidgets.splice(l,r+1,null);else{var u=Array(r+1);u.unshift(l,1),this.foldWidgets.splice.apply(this.foldWidgets,u)}},this.tokenizerUpdateFoldWidgets=function(a){var l=a.data;l.first!=l.last&&this.foldWidgets.length>l.first&&this.foldWidgets.splice(l.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(t,_,C){"use strict";var E=t("../token_iterator").TokenIterator,c=t("../range").Range;_.BracketMatch=function b(){this.findMatchingBracket=function(s,f){if(0==s.column)return null;var d=f||this.getLine(s.row).charAt(s.column-1);if(""==d)return null;var a=d.match(/([\(\[\{])|([\)\]\}])/);return a?a[1]?this.$findClosingBracket(a[1],s):this.$findOpeningBracket(a[2],s):null},this.getBracketRange=function(s){var a,f=this.getLine(s.row),d=!0,l=f.charAt(s.column-1),r=l&&l.match(/([\(\[\{])|([\)\]\}])/);if(r||(l=f.charAt(s.column),s={row:s.row,column:s.column+1},r=l&&l.match(/([\(\[\{])|([\)\]\}])/),d=!1),!r)return null;if(r[1]){if(!(u=this.$findClosingBracket(r[1],s)))return null;a=c.fromPoints(s,u),d||(a.end.column++,a.start.column--),a.cursor=a.end}else{var u;if(!(u=this.$findOpeningBracket(r[2],s)))return null;a=c.fromPoints(u,s),d||(a.start.column++,a.end.column--),a.cursor=a.start}return a},this.getMatchingBracketRanges=function(s,f){var d=this.getLine(s.row),a=/([\(\[\{])|([\)\]\}])/,l=!f&&d.charAt(s.column-1),r=l&&l.match(a);if(r||(l=(void 0===f||f)&&d.charAt(s.column),s={row:s.row,column:s.column+1},r=l&&l.match(a)),!r)return null;var u=new c(s.row,s.column-1,s.row,s.column),h=r[1]?this.$findClosingBracket(r[1],s):this.$findOpeningBracket(r[2],s);return h?[u,new c(h.row,h.column,h.row,h.column+1)]:[u]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(s,f,d){var a=this.$brackets[s],l=1,r=new E(this,f.row,f.column),u=r.getCurrentToken();if(u||(u=r.stepForward()),u){d||(d=new RegExp("(\\.?"+u.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var h=f.column-r.getCurrentTokenColumn()-2,p=u.value;;){for(;h>=0;){var v=p.charAt(h);if(v==a){if(0==(l-=1))return{row:r.getCurrentTokenRow(),column:h+r.getCurrentTokenColumn()}}else v==s&&(l+=1);h-=1}do{u=r.stepBackward()}while(u&&!d.test(u.type));if(null==u)break;h=(p=u.value).length-1}return null}},this.$findClosingBracket=function(s,f,d){var a=this.$brackets[s],l=1,r=new E(this,f.row,f.column),u=r.getCurrentToken();if(u||(u=r.stepForward()),u){d||(d=new RegExp("(\\.?"+u.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var h=f.column-r.getCurrentTokenColumn();;){for(var p=u.value,v=p.length;h"===f.value?a=!0:-1!==f.type.indexOf("tag-name")&&(d=!0))}while(f&&!d);return f},this.$findClosingTag=function(s,f){var d,a=f.value,l=f.value,r=0,u=new c(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);f=s.stepForward();var h=new c(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+f.value.length),p=!1;do{if(d=f,f=s.stepForward()){if(">"===f.value&&!p){var v=new c(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);p=!0}if(-1!==f.type.indexOf("tag-name")){if(l===(a=f.value))if("<"===d.value)r++;else if(""!==f.value)return;var w=new c(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1)}}else l===a&&"/>"===f.value&&--r<0&&(w=M=y=new c(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2),v=new c(h.end.row,h.end.column,h.end.row,h.end.column+1))}}while(f&&r>=0);if(u&&v&&y&&w&&h&&M)return{openTag:new c(u.start.row,u.start.column,v.end.row,v.end.column),closeTag:new c(y.start.row,y.start.column,w.end.row,w.end.column),openTagName:h,closeTagName:M}},this.$findOpeningTag=function(s,f){var d=s.getCurrentToken(),a=f.value,l=0,r=s.getCurrentTokenRow(),u=s.getCurrentTokenColumn(),h=u+2,p=new c(r,u,r,h);s.stepForward();var v=new c(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+f.value.length);if((f=s.stepForward())&&">"===f.value){var y=new c(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);s.stepBackward(),s.stepBackward();do{if(f=d,r=s.getCurrentTokenRow(),h=(u=s.getCurrentTokenColumn())+f.value.length,d=s.stepBackward(),f)if(-1!==f.type.indexOf("tag-name")){if(a===f.value)if("<"===d.value){if(++l>0){var M=new c(r,u,r,h),w=new c(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);do{f=s.stepForward()}while(f&&">"!==f.value);var k=new c(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1)}}else""===f.value){for(var I=0,D=d;D;){if(-1!==D.type.indexOf("tag-name")&&D.value===a){l--;break}if("<"===D.value)break;D=s.stepBackward(),I++}for(var O=0;OA&&(this.$docRowCache.splice(A,N),this.$screenRowCache.splice(A,N))},S.prototype.$getRowCacheIndex=function(R,N){for(var A=0,F=R.length-1;A<=F;){var Y=A+F>>1,ee=R[Y];if(N>ee)A=Y+1;else{if(!(N=N);ee++);return(F=A[ee])?(F.index=ee,F.start=Y-F.value.length,F):null},S.prototype.setUndoManager=function(R){if(this.$undoManager=R,this.$informUndoManager&&this.$informUndoManager.cancel(),R){var N=this;R.addSession(this),this.$syncInformUndoManager=function(){N.$informUndoManager.cancel(),N.mergeUndoDeltas=!1},this.$informUndoManager=c.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},S.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},S.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},S.prototype.getTabString=function(){return this.getUseSoftTabs()?c.stringRepeat(" ",this.getTabSize()):"\t"},S.prototype.setUseSoftTabs=function(R){this.setOption("useSoftTabs",R)},S.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},S.prototype.setTabSize=function(R){this.setOption("tabSize",R)},S.prototype.getTabSize=function(){return this.$tabSize},S.prototype.isTabStop=function(R){return this.$useSoftTabs&&R.column%this.$tabSize==0},S.prototype.setNavigateWithinSoftTabs=function(R){this.setOption("navigateWithinSoftTabs",R)},S.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},S.prototype.setOverwrite=function(R){this.setOption("overwrite",R)},S.prototype.getOverwrite=function(){return this.$overwrite},S.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},S.prototype.addGutterDecoration=function(R,N){this.$decorations[R]||(this.$decorations[R]=""),this.$decorations[R]+=" "+N,this._signal("changeBreakpoint",{})},S.prototype.removeGutterDecoration=function(R,N){this.$decorations[R]=(this.$decorations[R]||"").replace(" "+N,""),this._signal("changeBreakpoint",{})},S.prototype.getBreakpoints=function(){return this.$breakpoints},S.prototype.setBreakpoints=function(R){this.$breakpoints=[];for(var N=0;N0&&(F=!!A.charAt(N-1).match(this.tokenRe)),F||(F=!!A.charAt(N).match(this.tokenRe)),F)var Y=this.tokenRe;else Y=/^\s+$/.test(A.slice(N-1,N+1))?/\s/:this.nonTokenRe;var ee=N;if(ee>0){do{ee--}while(ee>=0&&A.charAt(ee).match(Y));ee++}for(var ie=N;ieR&&(R=N.screenWidth)}),this.lineWidgetWidth=R},S.prototype.$computeWidth=function(R){if(this.$modified||R){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var N=this.doc.getAllLines(),A=this.$rowLengthCache,F=0,Y=0,ee=this.$foldData[Y],ie=ee?ee.start.row:1/0,$=N.length,j=0;j<$;j++){if(j>ie){if((j=ee.end.row+1)>=$)break;ie=(ee=this.$foldData[Y++])?ee.start.row:1/0}null==A[j]&&(A[j]=this.$getStringScreenWidth(N[j])[0]),A[j]>F&&(F=A[j])}this.screenWidth=F}},S.prototype.getLine=function(R){return this.doc.getLine(R)},S.prototype.getLines=function(R,N){return this.doc.getLines(R,N)},S.prototype.getLength=function(){return this.doc.getLength()},S.prototype.getTextRange=function(R){return this.doc.getTextRange(R||this.selection.getRange())},S.prototype.insert=function(R,N){return this.doc.insert(R,N)},S.prototype.remove=function(R){return this.doc.remove(R)},S.prototype.removeFullLines=function(R,N){return this.doc.removeFullLines(R,N)},S.prototype.undoChanges=function(R,N){if(R.length){this.$fromUndo=!0;for(var A=R.length-1;-1!=A;A--){var F=R[A];"insert"==F.action||"remove"==F.action?this.doc.revertDelta(F):F.folds&&this.addFolds(F.folds)}!N&&this.$undoSelect&&(R.selectionBefore?this.selection.fromJSON(R.selectionBefore):this.selection.setRange(this.$getUndoSelection(R,!0))),this.$fromUndo=!1}},S.prototype.redoChanges=function(R,N){if(R.length){this.$fromUndo=!0;for(var A=0;AR.end.column&&(ee.start.column+=$),ee.end.row==R.end.row&&ee.end.column>R.end.column&&(ee.end.column+=$)),ie&&ee.start.row>=R.end.row&&(ee.start.row+=ie,ee.end.row+=ie)),ee.end=this.insert(ee.start,F),Y.length){var j=R.start,G=ee.start,ie=G.row-j.row,$=G.column-j.column;this.addFolds(Y.map(function(K){return(K=K.clone()).start.row==j.row&&(K.start.column+=$),K.end.row==j.row&&(K.end.column+=$),K.start.row+=ie,K.end.row+=ie,K}))}return ee},S.prototype.indentRows=function(R,N,A){A=A.replace(/\t/g,this.getTabString());for(var F=R;F<=N;F++)this.doc.insertInLine({row:F,column:0},A)},S.prototype.outdentRows=function(R){for(var N=R.collapseRows(),A=new l(0,0,0,0),F=this.getTabSize(),Y=N.start.row;Y<=N.end.row;++Y){var ee=this.getLine(Y);A.start.row=Y,A.end.row=Y;for(var ie=0;ie0){var F;if((F=this.getRowFoldEnd(N+A))>this.doc.getLength()-1)return 0;Y=F-N}else R=this.$clipRowToDocument(R),Y=(N=this.$clipRowToDocument(N))-R+1;var ee=new l(R,0,N,Number.MAX_VALUE),ie=this.getFoldsInRange(ee).map(function(j){return(j=j.clone()).start.row+=Y,j.end.row+=Y,j}),$=0==A?this.doc.getLines(R,N):this.doc.removeFullLines(R,N);return this.doc.insertFullLines(R+Y,$),ie.length&&this.addFolds(ie),Y},S.prototype.moveLinesUp=function(R,N){return this.$moveLines(R,N,-1)},S.prototype.moveLinesDown=function(R,N){return this.$moveLines(R,N,1)},S.prototype.duplicateLines=function(R,N){return this.$moveLines(R,N,0)},S.prototype.$clipRowToDocument=function(R){return Math.max(0,Math.min(R,this.doc.getLength()-1))},S.prototype.$clipColumnToRow=function(R,N){return N<0?0:Math.min(this.doc.getLine(R).length,N)},S.prototype.$clipPositionToDocument=function(R,N){if(N=Math.max(0,N),R<0)R=0,N=0;else{var A=this.doc.getLength();R>=A?(R=A-1,N=this.doc.getLine(A-1).length):N=Math.min(this.doc.getLine(R).length,N)}return{row:R,column:N}},S.prototype.$clipRangeToDocument=function(R){R.start.row<0?(R.start.row=0,R.start.column=0):R.start.column=this.$clipColumnToRow(R.start.row,R.start.column);var N=this.doc.getLength()-1;return R.end.row>N?(R.end.row=N,R.end.column=this.doc.getLine(N).length):R.end.column=this.$clipColumnToRow(R.end.row,R.end.column),R},S.prototype.setUseWrapMode=function(R){if(R!=this.$useWrapMode){if(this.$useWrapMode=R,this.$modified=!0,this.$resetRowCache(0),R){var N=this.getLength();this.$wrapData=Array(N),this.$updateWrapData(0,N-1)}this._signal("changeWrapMode")}},S.prototype.getUseWrapMode=function(){return this.$useWrapMode},S.prototype.setWrapLimitRange=function(R,N){(this.$wrapLimitRange.min!==R||this.$wrapLimitRange.max!==N)&&(this.$wrapLimitRange={min:R,max:N},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},S.prototype.adjustWrapLimit=function(R,N){var A=this.$wrapLimitRange;A.max<0&&(A={min:N,max:N});var F=this.$constrainWrapLimit(R,A.min,A.max);return F!=this.$wrapLimit&&F>1&&(this.$wrapLimit=F,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},S.prototype.$constrainWrapLimit=function(R,N,A){return N&&(R=Math.max(N,R)),A&&(R=Math.min(A,R)),R},S.prototype.getWrapLimit=function(){return this.$wrapLimit},S.prototype.setWrapLimit=function(R){this.setWrapLimitRange(R,R)},S.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},S.prototype.$updateInternalDataOnChange=function(R){var N=this.$useWrapMode,A=R.action,F=R.start,Y=R.end,ee=F.row,ie=Y.row,$=ie-ee,j=null;if(this.$updating=!0,0!=$)if("remove"===A){this[N?"$wrapData":"$rowLengthCache"].splice(ee,$);var G=this.$foldData;j=this.getFoldsInRange(R),this.removeFolds(j);var W=0;if(V=this.getFoldLine(Y.row)){V.addRemoveChars(Y.row,Y.column,F.column-Y.column),V.shiftRow(-$);var K=this.getFoldLine(ee);K&&K!==V&&(K.merge(V),V=K),W=G.indexOf(V)+1}for(;W=Y.row&&V.shiftRow(-$);ie=ee}else{var ce=Array($);ce.unshift(ee,0);var ue=N?this.$wrapData:this.$rowLengthCache;if(ue.splice.apply(ue,ce),G=this.$foldData,W=0,V=this.getFoldLine(ee)){var be=V.range.compareInside(F.row,F.column);0==be?(V=V.split(F.row,F.column))&&(V.shiftRow($),V.addRemoveChars(ie,0,Y.column-F.column)):-1==be&&(V.addRemoveChars(ee,0,Y.column-F.column),V.shiftRow($)),W=G.indexOf(V)+1}for(;W=ee&&V.shiftRow($)}}else $=Math.abs(R.start.column-R.end.column),"remove"===A&&(j=this.getFoldsInRange(R),this.removeFolds(j),$=-$),(V=this.getFoldLine(ee))&&V.addRemoveChars(ee,F.column,$);return N&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,N?this.$updateWrapData(ee,ie):this.$updateRowLengthCache(ee,ie),j},S.prototype.$updateRowLengthCache=function(R,N){this.$rowLengthCache[R]=null,this.$rowLengthCache[N]=null},S.prototype.$updateWrapData=function(R,N){var ie,$,A=this.doc.getAllLines(),F=this.getTabSize(),Y=this.$wrapData,ee=this.$wrapLimit,j=R;for(N=Math.min(N,A.length-1);j<=N;)($=this.getFoldLine(j,$))?(ie=[],$.walk(function(G,V,W,K){var ce;if(null!=G){(ce=this.$getDisplayTokens(G,ie.length))[0]=w;for(var ue=1;ueN-K;){var ce=ee+N-K;if(R[ce-1]>=D&&R[ce]>=D)W(ce);else if(R[ce]!=w&&R[ce]!=k){for(var ue=Math.max(ce-(N-(N>>2)),ee-1);ce>ue&&R[ce]ue&&R[ce]ue&&R[ce]==I;)ce--}else for(;ce>ue&&R[ce]ue?W(++ce):(R[ce=ee+N]==M&&ce--,W(ce-K))}else{for(;ce!=ee-1&&R[ce]!=w;ce--);if(ce>ee){W(ce);continue}for(ce=ee+N;ce39&&ee<48||ee>57&&ee<64?A.push(I):ee>=4352&&U(ee)?A.push(y,M):A.push(y)}return A},S.prototype.$getStringScreenWidth=function(R,N,A){if(0==N)return[0,0];var F,Y;for(null==N&&(N=1/0),A=A||0,Y=0;Y=4352&&U(F)?A+=2:A+=1,!(A>N));Y++);return[A,Y]},S.prototype.getRowLength=function(R){var N=1;return this.lineWidgets&&(N+=this.lineWidgets[R]&&this.lineWidgets[R].rowCount||0),this.$useWrapMode&&this.$wrapData[R]?this.$wrapData[R].length+N:N},S.prototype.getRowLineCount=function(R){return this.$useWrapMode&&this.$wrapData[R]?this.$wrapData[R].length+1:1},S.prototype.getRowWrapIndent=function(R){if(this.$useWrapMode){var N=this.screenToDocumentPosition(R,Number.MAX_VALUE),A=this.$wrapData[N.row];return A.length&&A[0]=0){$=G[V],Y=this.$docRowCache[V];var K=R>G[W-1]}else K=!W;for(var ce=this.getLength()-1,ue=this.getNextFoldLine(Y),be=ue?ue.start.row:1/0;$<=R&&!($+(j=this.getRowLength(Y))>R||Y>=ce);)$+=j,++Y>be&&(be=(ue=this.getNextFoldLine(Y=ue.end.row+1,ue))?ue.start.row:1/0),K&&(this.$docRowCache.push(Y),this.$screenRowCache.push($));if(ue&&ue.start.row<=Y)F=this.getFoldDisplayLine(ue),Y=ue.start.row;else{if($+j<=R||Y>ce)return{row:ce,column:this.getLine(ce).length};F=this.getLine(Y),ue=null}var Ze=0,pt=Math.floor(R-$);if(this.$useWrapMode){var ct=this.$wrapData[Y];ct&&(ie=ct[pt],pt>0&&ct.length&&(Ze=ct.indent,F=F.substring(ee=ct[pt-1]||ct[ct.length-1])))}return void 0!==A&&this.$bidiHandler.isBidiRow($+pt,Y,pt)&&(N=this.$bidiHandler.offsetToCol(A)),ee+=this.$getStringScreenWidth(F,N-Ze)[1],this.$useWrapMode&&ee>=ie&&(ee=ie-1),ue?ue.idxToPosition(ee):{row:Y,column:ee}},S.prototype.documentToScreenPosition=function(R,N){if(typeof N>"u")var A=this.$clipPositionToDocument(R.row,R.column);else A=this.$clipPositionToDocument(R,N);var ee,F=0,Y=null;(ee=this.getFoldAt(R=A.row,N=A.column,1))&&(R=ee.start.row,N=ee.start.column);var ie,$=0,j=this.$docRowCache,G=this.$getRowCacheIndex(j,R),V=j.length;if(V&&G>=0){$=j[G],F=this.$screenRowCache[G];var W=R>j[V-1]}else W=!V;for(var K=this.getNextFoldLine($),ce=K?K.start.row:1/0;$=ce){if((ie=K.end.row+1)>R)break;ce=(K=this.getNextFoldLine(ie,K))?K.start.row:1/0}else ie=$+1;F+=this.getRowLength($),$=ie,W&&(this.$docRowCache.push($),this.$screenRowCache.push(F))}var ue="";K&&$>=ce?(ue=this.getFoldDisplayLine(K,R,N),Y=K.start.row):(ue=this.getLine(R).substring(0,N),Y=R);var be=0;if(this.$useWrapMode){var Ze=this.$wrapData[Y];if(Ze){for(var pt=0;ue.length>=Ze[pt];)F++,pt++;ue=ue.substring(Ze[pt-1]||0,ue.length),be=pt>0?Ze.indent:0}}return this.lineWidgets&&this.lineWidgets[$]&&this.lineWidgets[$].rowsAbove&&(F+=this.lineWidgets[$].rowsAbove),{row:F,column:be+this.$getStringScreenWidth(ue)[0]}},S.prototype.documentToScreenColumn=function(R,N){return this.documentToScreenPosition(R,N).column},S.prototype.documentToScreenRow=function(R,N){return this.documentToScreenPosition(R,N).row},S.prototype.getScreenLength=function(){var R=0,N=null;if(this.$useWrapMode)for(var Y=this.$wrapData.length,ee=0,F=0,ie=(N=this.$foldData[F++])?N.start.row:1/0;eeie&&(ee=N.end.row+1,ie=(N=this.$foldData[F++])?N.start.row:1/0)}else{R=this.getLength();var A=this.$foldData;for(F=0;FA);ee++);return[F,ee]})},S.prototype.getPrecedingCharacter=function(){var R=this.selection.getCursor();return 0===R.column?0===R.row?"":this.doc.getNewLineCharacter():this.getLine(R.row)[R.column-1]},S.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},S}();v.$uid=0,v.prototype.$modes=s.$modes,v.prototype.getValue=v.prototype.toString,v.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},v.prototype.$overwrite=!1,v.prototype.$mode=null,v.prototype.$modeId=null,v.prototype.$scrollTop=0,v.prototype.$scrollLeft=0,v.prototype.$wrapLimit=80,v.prototype.$useWrapMode=!1,v.prototype.$wrapLimitRange={min:null,max:null},v.prototype.lineWidgets=null,v.prototype.isFullWidth=U,E.implement(v.prototype,f);var y=1,M=2,w=3,k=4,I=9,D=10,O=11,T=12;function U(S){return!(S<4352)&&(S>=4352&&S<=4447||S>=4515&&S<=4519||S>=4602&&S<=4607||S>=9001&&S<=9002||S>=11904&&S<=11929||S>=11931&&S<=12019||S>=12032&&S<=12245||S>=12272&&S<=12283||S>=12288&&S<=12350||S>=12353&&S<=12438||S>=12441&&S<=12543||S>=12549&&S<=12589||S>=12593&&S<=12686||S>=12688&&S<=12730||S>=12736&&S<=12771||S>=12784&&S<=12830||S>=12832&&S<=12871||S>=12880&&S<=13054||S>=13056&&S<=19903||S>=19968&&S<=42124||S>=42128&&S<=42182||S>=43360&&S<=43388||S>=44032&&S<=55203||S>=55216&&S<=55238||S>=55243&&S<=55291||S>=63744&&S<=64255||S>=65040&&S<=65049||S>=65072&&S<=65106||S>=65108&&S<=65126||S>=65128&&S<=65131||S>=65281&&S<=65376||S>=65504&&S<=65510)}t("./edit_session/folding").Folding.call(v.prototype),t("./edit_session/bracket_match").BracketMatch.call(v.prototype),s.defineOptions(v.prototype,"session",{wrap:{set:function(S){if(S&&"off"!=S?"free"==S?S=!0:"printMargin"==S?S=-1:"string"==typeof S&&(S=parseInt(S,10)||!1):S=!1,this.$wrap!=S)if(this.$wrap=S,S){var R="number"==typeof S?S:null;this.setWrapLimitRange(R,R),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(S){(S="auto"==S?"text"!=this.$mode.type:"text"!=S)!=this.$wrapAsCode&&(this.$wrapAsCode=S,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(S){this.$useWorker=S,this.$stopWorker(),S&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(S){(S=parseInt(S))>0&&this.$tabSize!==S&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=S,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(S){this.setFoldStyle(S)},handlesSet:!0},overwrite:{set:function(S){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(S){this.doc.setNewLineMode(S)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(S){this.setMode(S)},get:function(){return this.$modeId},handlesSet:!0}}),_.EditSession=v}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(t,_,C){"use strict";var E=t("./lib/lang"),c=t("./lib/oop"),b=t("./range").Range,s=function(){function d(){this.$options={}}return d.prototype.set=function(a){return c.mixin(this.$options,a),this},d.prototype.getOptions=function(){return E.copyObject(this.$options)},d.prototype.setOptions=function(a){this.$options=a},d.prototype.find=function(a){var l=this.$options,r=this.$matchIterator(a,l);if(!r)return!1;var u=null;return r.forEach(function(h,p,v,y){return u=new b(h,p,v,y),!(p==y&&l.start&&l.start.start&&0!=l.skipCurrent&&u.isEqual(l.start)&&(u=null,1))}),u},d.prototype.findAll=function(a){var l=this.$options;if(!l.needle)return[];this.$assembleRegExp(l);var r=l.range,u=r?a.getLines(r.start.row,r.end.row):a.doc.getAllLines(),h=[],p=l.re;if(l.$isMultiLine){var M,v=p.length,y=u.length-v;e:for(var w=p.offset||0;w<=y;w++){for(var k=0;kO||(h.push(M=new b(w,O,w+v-1,T)),v>2&&(w=w+v-2))}}else for(var U=0;UA&&h[k].end.row==F;)k--;for(h=h.slice(U,k+1),U=0,k=h.length;U=M;T--)if(D(T,Number.MAX_VALUE,O))return;if(0!=l.wrap)for(T=w,M=y.row;T>=M;T--)if(D(T,Number.MAX_VALUE,O))return}};else k=function(T){var U=y.row;if(!D(U,y.column,T)){for(U+=1;U<=w;U++)if(D(U,0,T))return;if(0!=l.wrap)for(U=M,w=y.row;U<=w;U++)if(D(U,0,T))return}};if(l.$isMultiLine)var I=r.length,D=function(O,T,U){var S=u?O-I+1:O;if(!(S<0||S+I>a.getLength())){var R=a.getLine(S),N=R.search(r[0]);if(!(!u&&NT)&&U(S,N,S+I-1,F))return!0}}};else D=u?function(T,U,S){var A,R=a.getLine(T),N=[],F=0;for(r.lastIndex=0;A=r.exec(R);){if(F=A.index,!(Y=A[0].length)){if(F>=R.length)break;r.lastIndex=F+=E.skipEmptyMatch(R,F,p)}if(A.index+Y>U)break;N.push(A.index,Y)}for(var ee=N.length-1;ee>=0;ee-=2){var Y,ie=N[ee-1];if(S(T,ie,T,ie+(Y=N[ee])))return!0}}:function(T,U,S){var N,A,R=a.getLine(T);for(r.lastIndex=U;A=r.exec(R);){var F=A[0].length;if(S(T,N=A.index,T,N+F))return!0;if(!F&&(r.lastIndex=N+=E.skipEmptyMatch(R,N,p),N>=R.length))return!1}};return{forEach:k}},d}();_.Search=s}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(t,_,C){"use strict";var E=this&&this.__extends||function(){var l=function(r,u){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(h[v]=p[v])})(r,u)};return function(r,u){if("function"!=typeof u&&null!==u)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");function h(){this.constructor=r}l(r,u),r.prototype=null===u?Object.create(u):(h.prototype=u.prototype,new h)}}(),c=t("../lib/keys"),b=t("../lib/useragent"),s=c.KEY_MODS,f=function(){function l(r,u){this.$init(r,u,!1)}return l.prototype.$init=function(r,u,h){this.platform=u||(b.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(r),this.$singleCommand=h},l.prototype.addCommand=function(r){this.commands[r.name]&&this.removeCommand(r),this.commands[r.name]=r,r.bindKey&&this._buildKeyHash(r)},l.prototype.removeCommand=function(r,u){var h=r&&("string"==typeof r?r:r.name);r=this.commands[h],u||delete this.commands[h];var p=this.commandKeyBinding;for(var v in p){var y=p[v];if(y==r)delete p[v];else if(Array.isArray(y)){var M=y.indexOf(r);-1!=M&&(y.splice(M,1),1==y.length&&(p[v]=y[0]))}}},l.prototype.bindKey=function(r,u,h){if("object"==typeof r&&r&&(null==h&&(h=r.position),r=r[this.platform]),r){if("function"==typeof u)return this.addCommand({exec:u,bindKey:r,name:u.name||r});r.split("|").forEach(function(p){var v="";if(-1!=p.indexOf(" ")){var y=p.split(/\s+/);p=y.pop(),y.forEach(function(k){var I=this.parseKeys(k);this._addCommandToBinding(v+=(v?" ":"")+(s[I.hashId]+I.key),"chainKeys")},this),v+=" "}var M=this.parseKeys(p);this._addCommandToBinding(v+(s[M.hashId]+M.key),u,h)},this)}},l.prototype._addCommandToBinding=function(r,u,h){var v,p=this.commandKeyBinding;if(u)if(!p[r]||this.$singleCommand)p[r]=u;else{Array.isArray(p[r])?-1!=(v=p[r].indexOf(u))&&p[r].splice(v,1):p[r]=[p[r]],"number"!=typeof h&&(h=d(u));var y=p[r];for(v=0;vh);v++);y.splice(v,0,u)}else delete p[r]},l.prototype.addCommands=function(r){r&&Object.keys(r).forEach(function(u){var h=r[u];if(h){if("string"==typeof h)return this.bindKey(h,u);"function"==typeof h&&(h={exec:h}),"object"==typeof h&&(h.name||(h.name=u),this.addCommand(h))}},this)},l.prototype.removeCommands=function(r){Object.keys(r).forEach(function(u){this.removeCommand(r[u])},this)},l.prototype.bindKeys=function(r){Object.keys(r).forEach(function(u){this.bindKey(u,r[u])},this)},l.prototype._buildKeyHash=function(r){this.bindKey(r.bindKey,r)},l.prototype.parseKeys=function(r){var u=r.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(w){return w}),h=u.pop(),p=c[h];if(c.FUNCTION_KEYS[p])h=c.FUNCTION_KEYS[p].toLowerCase();else{if(!u.length)return{key:h,hashId:-1};if(1==u.length&&"shift"==u[0])return{key:h.toUpperCase(),hashId:-1}}for(var v=0,y=u.length;y--;){var M=c.KEY_MODS[u[y]];if(null==M)return typeof console<"u"&&console.error("invalid modifier "+u[y]+" in "+r),!1;v|=M}return{key:h,hashId:v}},l.prototype.findKeyCommand=function(r,u){return this.commandKeyBinding[s[r]+u]},l.prototype.handleKeyboard=function(r,u,h,p){if(!(p<0)){var v=s[u]+h,y=this.commandKeyBinding[v];return r.$keyChain&&(r.$keyChain+=" "+v,y=this.commandKeyBinding[r.$keyChain]||y),!y||"chainKeys"!=y&&"chainKeys"!=y[y.length-1]?(r.$keyChain&&(u&&4!=u||1!=h.length?(-1==u||p>0)&&(r.$keyChain=""):r.$keyChain=r.$keyChain.slice(0,-v.length-1)),{command:y}):(r.$keyChain=r.$keyChain||v,{command:"null"})}},l.prototype.getStatusText=function(r,u){return u.$keyChain||""},l}();function d(l){return"object"==typeof l&&l.bindKey&&l.bindKey.position||(l.isDefault?-100:0)}var a=function(l){function r(u,h){var p=l.call(this,u,h)||this;return p.$singleCommand=!0,p}return E(r,l),r}(f);a.call=function(l,r,u){f.prototype.$init.call(l,r,u,!0)},f.call=function(l,r,u){f.prototype.$init.call(l,r,u,!1)},_.HashHandler=a,_.MultiHashHandler=f}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(t,_,C){"use strict";var E=this&&this.__extends||function(){var d=function(a,l){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,u){r.__proto__=u}||function(r,u){for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(r[h]=u[h])})(a,l)};return function(a,l){if("function"!=typeof l&&null!==l)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function r(){this.constructor=a}d(a,l),a.prototype=null===l?Object.create(l):(r.prototype=l.prototype,new r)}}(),c=t("../lib/oop"),b=t("../keyboard/hash_handler").MultiHashHandler,s=t("../lib/event_emitter").EventEmitter,f=function(d){function a(l,r){var u=d.call(this,r,l)||this;return u.byName=u.commands,u.setDefaultHandler("exec",function(h){return h.args?h.command.exec(h.editor,h.args,h.event,!1):h.command.exec(h.editor,{},h.event,!0)}),u}return E(a,d),a.prototype.exec=function(l,r,u){if(Array.isArray(l)){for(var h=l.length;h--;)if(this.exec(l[h],r,u))return!0;return!1}if("string"==typeof l&&(l=this.commands[l]),!l||r&&r.$readOnly&&!l.readOnly||0!=this.$checkCommandState&&l.isAvailable&&!l.isAvailable(r))return!1;var p={editor:r,command:l,args:u};return p.returnValue=this._emit("exec",p),this._signal("afterExec",p),!1!==p.returnValue},a.prototype.toggleRecording=function(l){if(!this.$inReplay)return l&&l._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)},a.prototype.replay=function(l){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(l);try{this.$inReplay=!0,this.macro.forEach(function(r){"string"==typeof r?this.exec(r,l):this.exec(r[0],l,r[1])},this)}finally{this.$inReplay=!1}}},a.prototype.trimMacro=function(l){return l.map(function(r){return"string"!=typeof r[0]&&(r[0]=r[0].name),r[1]||(r=r[0]),r})},a}(b);c.implement(f.prototype,s),_.CommandManager=f}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(t,_,C){"use strict";var E=t("../lib/lang"),c=t("../config"),b=t("../range").Range;function s(d,a){return{win:d,mac:a}}_.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:s("Ctrl-,","Command-,"),exec:function(d){c.loadModule("ace/ext/settings_menu",function(a){a.init(d),d.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:s("Alt-E","F4"),exec:function(d){c.loadModule("ace/ext/error_marker",function(a){a.showErrorMarker(d,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(d){c.loadModule("ace/ext/error_marker",function(a){a.showErrorMarker(d,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:s("Ctrl-A","Command-A"),exec:function(d){d.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:s(null,"Ctrl-L"),exec:function(d){d.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:s("Ctrl-L","Command-L"),exec:function(d,a){"number"==typeof a&&!isNaN(a)&&d.gotoLine(a),d.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:s("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(d){d.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:s("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(d){d.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:s("F2","F2"),exec:function(d){d.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:s("Alt-F2","Alt-F2"),exec:function(d){d.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(d){d.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(d){d.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:s("Alt-0","Command-Option-0"),exec:function(d){d.session.foldAll(),d.session.unfold(d.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:s("Alt-Shift-0","Command-Option-Shift-0"),exec:function(d){d.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:s("Ctrl-K","Command-G"),exec:function(d){d.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:s("Ctrl-Shift-K","Command-Shift-G"),exec:function(d){d.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:s("Alt-K","Ctrl-G"),exec:function(d){d.selection.isEmpty()?d.selection.selectWord():d.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:s("Alt-Shift-K","Ctrl-Shift-G"),exec:function(d){d.selection.isEmpty()?d.selection.selectWord():d.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:s("Ctrl-F","Command-F"),exec:function(d){c.loadModule("ace/ext/searchbox",function(a){a.Search(d)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(d){d.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:s("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(d){d.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:s("Ctrl-Home","Command-Home|Command-Up"),exec:function(d){d.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:s("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(d){d.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:s("Up","Up|Ctrl-P"),exec:function(d,a){d.navigateUp(a.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:s("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(d){d.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:s("Ctrl-End","Command-End|Command-Down"),exec:function(d){d.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:s("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(d){d.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:s("Down","Down|Ctrl-N"),exec:function(d,a){d.navigateDown(a.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:s("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(d){d.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:s("Ctrl-Left","Option-Left"),exec:function(d){d.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:s("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(d){d.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:s("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(d){d.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:s("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(d){d.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:s("Left","Left|Ctrl-B"),exec:function(d,a){d.navigateLeft(a.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:s("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(d){d.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:s("Ctrl-Right","Option-Right"),exec:function(d){d.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:s("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(d){d.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:s("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(d){d.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:s("Shift-Right","Shift-Right"),exec:function(d){d.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:s("Right","Right|Ctrl-F"),exec:function(d,a){d.navigateRight(a.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(d){d.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:s(null,"Option-PageDown"),exec:function(d){d.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:s("PageDown","PageDown|Ctrl-V"),exec:function(d){d.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(d){d.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:s(null,"Option-PageUp"),exec:function(d){d.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(d){d.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:s("Ctrl-Up",null),exec:function(d){d.renderer.scrollBy(0,-2*d.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:s("Ctrl-Down",null),exec:function(d){d.renderer.scrollBy(0,2*d.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(d){d.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(d){d.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:s("Ctrl-Alt-E","Command-Option-E"),exec:function(d){d.commands.toggleRecording(d)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:s("Ctrl-Shift-E","Command-Shift-E"),exec:function(d){d.commands.replay(d)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:s("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(d){d.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:s("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(d){d.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:s("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(d){d.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:s(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(d){},readOnly:!0},{name:"cut",description:"Cut",exec:function(d){var l=d.$copyWithEmptySelection&&d.selection.isEmpty()?d.selection.getLineRange():d.selection.getRange();d._emit("cut",l),l.isEmpty()||d.session.remove(l),d.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(d,a){d.$handlePaste(a)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:s("Ctrl-D","Command-D"),exec:function(d){d.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:s("Ctrl-Shift-D","Command-Shift-D"),exec:function(d){d.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:s("Ctrl-Alt-S","Command-Alt-S"),exec:function(d){d.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:s("Ctrl-/","Command-/"),exec:function(d){d.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:s("Ctrl-Shift-/","Command-Shift-/"),exec:function(d){d.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:s("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(d){d.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:s("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(d){d.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:s("Ctrl-H","Command-Option-F"),exec:function(d){c.loadModule("ace/ext/searchbox",function(a){a.Search(d,!0)})}},{name:"undo",description:"Undo",bindKey:s("Ctrl-Z","Command-Z"),exec:function(d){d.undo()}},{name:"redo",description:"Redo",bindKey:s("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(d){d.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:s("Alt-Shift-Up","Command-Option-Up"),exec:function(d){d.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:s("Alt-Up","Option-Up"),exec:function(d){d.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:s("Alt-Shift-Down","Command-Option-Down"),exec:function(d){d.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:s("Alt-Down","Option-Down"),exec:function(d){d.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:s("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(d){d.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:s("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(d){d.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:s("Shift-Delete",null),exec:function(d){if(!d.selection.isEmpty())return!1;d.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:s("Alt-Backspace","Command-Backspace"),exec:function(d){d.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:s("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(d){d.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:s("Ctrl-Shift-Backspace",null),exec:function(d){var a=d.selection.getRange();a.start.column=0,d.session.remove(a)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(d){var a=d.selection.getRange();a.end.column=Number.MAX_VALUE,d.session.remove(a)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:s("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(d){d.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:s("Ctrl-Delete","Alt-Delete"),exec:function(d){d.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:s("Shift-Tab","Shift-Tab"),exec:function(d){d.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:s("Tab","Tab"),exec:function(d){d.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:s("Ctrl-[","Ctrl-["),exec:function(d){d.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:s("Ctrl-]","Ctrl-]"),exec:function(d){d.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(d,a){d.insert(a)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(d,a){d.insert(E.stringRepeat(a.text||"",a.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:s(null,"Ctrl-O"),exec:function(d){d.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:s("Alt-Shift-X","Ctrl-T"),exec:function(d){d.transposeLetters()},multiSelectAction:function(d){d.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:s("Ctrl-U","Ctrl-U"),exec:function(d){d.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:s("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(d){d.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:s(null,null),exec:function(d){d.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(d){var a=d.selection.getRange();a.start.column=a.end.column=0,a.end.row++,d.selection.setRange(a,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:s("Ctrl+F3","F3"),exec:function(d){d.openLink()}},{name:"joinlines",description:"Join lines",bindKey:s(null,null),exec:function(d){for(var a=d.selection.isBackwards(),l=a?d.selection.getSelectionLead():d.selection.getSelectionAnchor(),r=a?d.selection.getSelectionAnchor():d.selection.getSelectionLead(),u=d.session.doc.getLine(l.row).length,p=d.session.doc.getTextRange(d.selection.getRange()).replace(/\n\s*/," ").length,v=d.session.doc.getLine(l.row),y=l.row+1;y<=r.row+1;y++){var M=E.stringTrimLeft(E.stringTrimRight(d.session.doc.getLine(y)));0!==M.length&&(M=" "+M),v+=M}r.row+10?(d.selection.moveCursorTo(l.row,l.column),d.selection.selectTo(l.row,l.column+p)):(u=d.session.doc.getLine(l.row).length>u?u+1:u,d.selection.moveCursorTo(l.row,u))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(d){var a=d.session.doc.getLength()-1,l=d.session.doc.getLine(a).length,r=d.selection.rangeList.ranges,u=[];r.length<1&&(r=[d.selection.getRange()]);for(var h=0;hf[d].column&&d++,r.unshift(d,0),f.splice.apply(f,r),this.$updateRows()}}},b.prototype.$updateRows=function(){var s=this.session.lineWidgets;if(s){var f=!0;s.forEach(function(d,a){if(d)for(f=!1,d.row=a;d.$oldWidget;)d.$oldWidget.row=a,d=d.$oldWidget}),f&&(this.session.lineWidgets=null)}},b.prototype.$registerLineWidget=function(s){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var f=this.session.lineWidgets[s.row];return f&&(s.$oldWidget=f,f.el&&f.el.parentNode&&(f.el.parentNode.removeChild(f.el),f._inDocument=!1)),this.session.lineWidgets[s.row]=s,s},b.prototype.addLineWidget=function(s){if(this.$registerLineWidget(s),s.session=this.session,!this.editor)return s;var f=this.editor.renderer;s.html&&!s.el&&(s.el=E.createElement("div"),s.el.innerHTML=s.html),s.text&&!s.el&&(s.el=E.createElement("div"),s.el.textContent=s.text),s.el&&(E.addCssClass(s.el,"ace_lineWidgetContainer"),s.className&&E.addCssClass(s.el,s.className),s.el.style.position="absolute",s.el.style.zIndex="5",f.container.appendChild(s.el),s._inDocument=!0,s.coverGutter||(s.el.style.zIndex="3"),null==s.pixelHeight&&(s.pixelHeight=s.el.offsetHeight)),null==s.rowCount&&(s.rowCount=s.pixelHeight/f.layerConfig.lineHeight);var d=this.session.getFoldAt(s.row,0);if(s.$fold=d,d){var a=this.session.lineWidgets;s.row!=d.end.row||a[d.start.row]?s.hidden=!0:a[d.start.row]=s}return this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows(),this.renderWidgets(null,f),this.onWidgetChanged(s),s},b.prototype.removeLineWidget=function(s){if(s._inDocument=!1,s.session=null,s.el&&s.el.parentNode&&s.el.parentNode.removeChild(s.el),s.editor&&s.editor.destroy)try{s.editor.destroy()}catch{}if(this.session.lineWidgets){var f=this.session.lineWidgets[s.row];if(f==s)this.session.lineWidgets[s.row]=s.$oldWidget,s.$oldWidget&&this.onWidgetChanged(s.$oldWidget);else for(;f;){if(f.$oldWidget==s){f.$oldWidget=s.$oldWidget;break}f=f.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows()},b.prototype.getWidgetsAtRow=function(s){for(var f=this.session.lineWidgets,d=f&&f[s],a=[];d;)a.push(d),d=d.$oldWidget;return a},b.prototype.onWidgetChanged=function(s){this.session._changedWidgets.push(s),this.editor&&this.editor.renderer.updateFull()},b.prototype.measureWidgets=function(s,f){var d=this.session._changedWidgets,a=f.layerConfig;if(d&&d.length){for(var l=1/0,r=0;r0&&!a[l];)l--;this.firstRow=d.firstRow,this.lastRow=d.lastRow,f.$cursorLayer.config=d;for(var u=l;u<=r;u++){var h=a[u];if(h&&h.el){if(h.hidden){h.el.style.top=-100-(h.pixelHeight||0)+"px";continue}h._inDocument||(h._inDocument=!0,f.container.appendChild(h.el));var p=f.$cursorLayer.getPixelPosition({row:u,column:0},!0).top;h.coverLine||(p+=d.lineHeight*this.session.getRowLineCount(h.row)),h.el.style.top=p-d.offset+"px";var v=h.coverGutter?0:f.gutterWidth;h.fixedWidth||(v-=f.scrollLeft),h.el.style.left=v+"px",h.fullWidth&&h.screenWidth&&(h.el.style.minWidth=d.width+2*d.padding+"px"),h.el.style.right=h.fixedWidth?f.scrollBar.getWidth()+"px":""}}}},b}();_.LineWidgets=c}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(t,_,C){"use strict";var E=t("../lib/keys"),c=t("../mouse/default_gutter_handler").GutterTooltip,b=function(){function f(d){this.editor=d,this.gutterLayer=d.renderer.$gutterLayer,this.element=d.renderer.$gutter,this.lines=d.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new c(this.editor)}return f.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},f.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},f.prototype.$onGutterKeyDown=function(d){if(this.annotationTooltip.isOpen)return d.preventDefault(),void(d.keyCode===E.escape&&this.annotationTooltip.hideTooltip());if(d.target===this.element){if(d.keyCode!=E.enter)return;d.preventDefault();var a=this.editor.getCursorPosition().row;return this.editor.isRowVisible(a)||this.editor.scrollToLine(a,!0,!0),void setTimeout(function(){var l=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),r=this.$findNearestFoldWidget(l),u=this.$findNearestAnnotation(l);if(null!==r||null!==u)return null===r&&null!==u?(this.activeRowIndex=u,this.activeLane="annotation",void this.$focusAnnotation(this.activeRowIndex)):null!==r&&null===u?(this.activeRowIndex=r,this.activeLane="fold",void this.$focusFoldWidget(this.activeRowIndex)):Math.abs(u-l)0||d+a=0&&this.$isFoldWidgetVisible(d-a))return d-a;if(d+a<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(d+a))return d+a}return null},f.prototype.$findNearestAnnotation=function(d){if(this.$isAnnotationVisible(d))return d;for(var a=0;d-a>0||d+a=0&&this.$isAnnotationVisible(d-a))return d-a;if(d+a<=this.lines.getLength()-1&&this.$isAnnotationVisible(d+a))return d+a}return null},f.prototype.$focusFoldWidget=function(d){if(null!=d){var a=this.$getFoldWidget(d);a.classList.add(this.editor.renderer.keyboardFocusClassName),a.focus()}},f.prototype.$focusAnnotation=function(d){if(null!=d){var a=this.$getAnnotation(d);a.classList.add(this.editor.renderer.keyboardFocusClassName),a.focus()}},f.prototype.$blurFoldWidget=function(d){var a=this.$getFoldWidget(d);a.classList.remove(this.editor.renderer.keyboardFocusClassName),a.blur()},f.prototype.$blurAnnotation=function(d){var a=this.$getAnnotation(d);a.classList.remove(this.editor.renderer.keyboardFocusClassName),a.blur()},f.prototype.$moveFoldWidgetUp=function(){for(var d=this.activeRowIndex;d>0;)if(d--,this.$isFoldWidgetVisible(d))return this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=d,void this.$focusFoldWidget(this.activeRowIndex)},f.prototype.$moveFoldWidgetDown=function(){for(var d=this.activeRowIndex;d0;)if(d--,this.$isAnnotationVisible(d))return this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=d,void this.$focusAnnotation(this.activeRowIndex)},f.prototype.$moveAnnotationDown=function(){for(var d=this.activeRowIndex;d=N.length&&(N=void 0),{value:N&&N[Y++],done:!N}}};throw new TypeError(A?"Object is not iterable.":"Symbol.iterator is not defined.")},c=t("./lib/oop"),b=t("./lib/dom"),s=t("./lib/lang"),f=t("./lib/useragent"),d=t("./keyboard/textinput").TextInput,a=t("./mouse/mouse_handler").MouseHandler,l=t("./mouse/fold_handler").FoldHandler,r=t("./keyboard/keybinding").KeyBinding,u=t("./edit_session").EditSession,h=t("./search").Search,p=t("./range").Range,v=t("./lib/event_emitter").EventEmitter,y=t("./commands/command_manager").CommandManager,M=t("./commands/default_commands").commands,w=t("./config"),k=t("./token_iterator").TokenIterator,I=t("./line_widgets").LineWidgets,D=t("./keyboard/gutter_handler").GutterKeyboardHandler,O=t("./config").nls,T=t("./clipboard"),U=t("./lib/keys"),S=function(){function N(A,F,Y){this.$toDestroy=[];var ee=A.getContainerElement();this.container=ee,this.renderer=A,this.id="editor"+ ++N.$uid,this.commands=new y(f.isMac?"mac":"win",M),"object"==typeof document&&(this.textInput=new d(A.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new a(this),new l(this)),this.keyBinding=new r(this),this.$search=(new h).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=s.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(ie,$){$._$emitInputEvent.schedule(31)}),this.setSession(F||Y&&Y.session||new u("")),w.resetOptions(this),Y&&this.setOptions(Y),w._signal("editor",this)}return N.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=s.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},N.prototype.startOperation=function(A){if(this.curOp){if(!A||this.curOp.command)return;this.prevOp=this.curOp}A||(this.previousCommand=null,A={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:A.command||{},args:A.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},N.prototype.endOperation=function(A){if(this.curOp&&this.session){if(A&&!1===A.returnValue||!this.session)return this.curOp=null;if(1==A&&this.curOp.command&&"mouse"==this.curOp.command.name||(this._signal("beforeEndOperation"),!this.curOp))return;var F=this.curOp.command,Y=F&&F.scrollIntoView;if(Y){switch(Y){case"center-animate":Y="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var ee=this.selection.getRange(),ie=this.renderer.layerConfig;(ee.start.row>=ie.lastRow||ee.end.row<=ie.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==Y&&this.renderer.animateScrolling(this.curOp.scrollTop)}var $=this.selection.toJSON();this.curOp.selectionAfter=$,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection($),this.prevOp=this.curOp,this.curOp=null}},N.prototype.$historyTracker=function(A){if(this.$mergeUndoDeltas){var F=this.prevOp,Y=this.$mergeableCommands,ee=F.command&&A.command.name==F.command.name;if("insertstring"==A.command.name){var ie=A.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),ee=ee&&this.mergeNextCommand&&(!/\s/.test(ie)||/\s/.test(F.args)),this.mergeNextCommand=!0}else ee=ee&&-1!==Y.indexOf(A.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(ee=!1),ee?this.session.mergeUndoDeltas=!0:-1!==Y.indexOf(A.command.name)&&(this.sequenceStartTime=Date.now())}},N.prototype.setKeyboardHandler=function(A,F){if(A&&"string"==typeof A&&"ace"!=A){this.$keybindingId=A;var Y=this;w.loadModule(["keybinding",A],function(ee){Y.$keybindingId==A&&Y.keyBinding.setKeyboardHandler(ee&&ee.handler),F&&F()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(A),F&&F()},N.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},N.prototype.setSession=function(A){if(this.session!=A){this.curOp&&this.endOperation(),this.curOp={};var F=this.session;if(F){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 Y=this.session.getSelection();Y.off("changeCursor",this.$onCursorChange),Y.off("changeSelection",this.$onSelectionChange)}this.session=A,A?(this.$onDocumentChange=this.onDocumentChange.bind(this),A.on("change",this.$onDocumentChange),this.renderer.setSession(A),this.$onChangeMode=this.onChangeMode.bind(this),A.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),A.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),A.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),A.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),A.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),A.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=A.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(A)),this._signal("changeSession",{session:A,oldSession:F}),this.curOp=null,F&&F._signal("changeEditor",{oldEditor:this}),A&&A._signal("changeEditor",{editor:this}),A&&!A.destroyed&&A.bgTokenizer.scheduleStart()}},N.prototype.getSession=function(){return this.session},N.prototype.setValue=function(A,F){return this.session.doc.setValue(A),F?1==F?this.navigateFileEnd():-1==F&&this.navigateFileStart():this.selectAll(),A},N.prototype.getValue=function(){return this.session.getValue()},N.prototype.getSelection=function(){return this.selection},N.prototype.resize=function(A){this.renderer.onResize(A)},N.prototype.setTheme=function(A,F){this.renderer.setTheme(A,F)},N.prototype.getTheme=function(){return this.renderer.getTheme()},N.prototype.setStyle=function(A){this.renderer.setStyle(A)},N.prototype.unsetStyle=function(A){this.renderer.unsetStyle(A)},N.prototype.getFontSize=function(){return this.getOption("fontSize")||b.computedStyle(this.container).fontSize},N.prototype.setFontSize=function(A){this.setOption("fontSize",A)},N.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var A=this;this.$highlightPending=!0,setTimeout(function(){A.$highlightPending=!1;var F=A.session;if(F&&!F.destroyed){F.$bracketHighlight&&(F.$bracketHighlight.markerIds.forEach(function(K){F.removeMarker(K)}),F.$bracketHighlight=null);var Y=A.getCursorPosition(),ee=A.getKeyboardHandler(),ie=ee&&ee.$getDirectionForHighlight&&ee.$getDirectionForHighlight(A),$=F.getMatchingBracketRanges(Y,ie);if(!$){var G=new k(F,Y.row,Y.column).getCurrentToken();if(G&&/\b(?:tag-open|tag-name)/.test(G.type)){var V=F.getMatchingTags(Y);V&&($=[V.openTagName,V.closeTagName])}}if(!$&&F.$mode.getMatching&&($=F.$mode.getMatching(A.session)),!$)return void(A.getHighlightIndentGuides()&&A.renderer.$textLayer.$highlightIndentGuide());var W="ace_bracket";Array.isArray($)?1==$.length&&(W="ace_error_bracket"):$=[$],2==$.length&&(0==p.comparePoints($[0].end,$[1].start)?$=[p.fromPoints($[0].start,$[1].end)]:0==p.comparePoints($[0].start,$[1].end)&&($=[p.fromPoints($[1].start,$[0].end)])),F.$bracketHighlight={ranges:$,markerIds:$.map(function(K){return F.addMarker(K,W,"text")})},A.getHighlightIndentGuides()&&A.renderer.$textLayer.$highlightIndentGuide()}},50)}},N.prototype.focus=function(){this.textInput.focus()},N.prototype.isFocused=function(){return this.textInput.isFocused()},N.prototype.blur=function(){this.textInput.blur()},N.prototype.onFocus=function(A){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",A))},N.prototype.onBlur=function(A){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",A))},N.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},N.prototype.onDocumentChange=function(A){this.renderer.updateLines(A.start.row,A.start.row==A.end.row?A.end.row:1/0,this.session.$useWrapMode),this._signal("change",A),this.$cursorChange()},N.prototype.onTokenizerUpdate=function(A){var F=A.data;this.renderer.updateLines(F.first,F.last)},N.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},N.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},N.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},N.prototype.$updateHighlightActiveLine=function(){var F,A=this.getSession();if(this.$highlightActiveLine&&(("line"!=this.$selectionStyle||!this.selection.isMultiLine())&&(F=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(F=!1),this.renderer.$maxLines&&1===this.session.getLength()&&!(this.renderer.$minLines>1)&&(F=!1)),A.$highlightLineMarker&&!F)A.removeMarker(A.$highlightLineMarker.id),A.$highlightLineMarker=null;else if(!A.$highlightLineMarker&&F){var Y=new p(F.row,F.column,F.row,1/0);Y.id=A.addMarker(Y,"ace_active-line","screenLine"),A.$highlightLineMarker=Y}else F&&(A.$highlightLineMarker.start.row=F.row,A.$highlightLineMarker.end.row=F.row,A.$highlightLineMarker.start.column=F.column,A._signal("changeBackMarker"))},N.prototype.onSelectionChange=function(A){var F=this.session;if(F.$selectionMarker&&F.removeMarker(F.$selectionMarker),F.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var Y=this.selection.getRange(),ee=this.getSelectionStyle();F.$selectionMarker=F.addMarker(Y,"ace_selection",ee)}var ie=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(ie),this._signal("changeSelection")},N.prototype.$getSelectionHighLightRegexp=function(){var A=this.session,F=this.getSelectionRange();if(!F.isEmpty()&&!F.isMultiLine()){var Y=F.start.column,ee=F.end.column,ie=A.getLine(F.start.row),$=ie.substring(Y,ee);if(!($.length>5e3)&&/[\w\d]/.test($)){var j=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:$}),G=ie.substring(Y-1,ee+1);if(j.test(G))return j}}},N.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},N.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},N.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},N.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},N.prototype.onChangeMode=function(A){this.renderer.updateText(),this._emit("changeMode",A)},N.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},N.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},N.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},N.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},N.prototype.getCopyText=function(){var A=this.getSelectedText(),F=this.session.doc.getNewLineCharacter(),Y=!1;if(!A&&this.$copyWithEmptySelection){Y=!0;for(var ee=this.selection.getAllRanges(),ie=0;ieK.search(/\S|$/)){var G=K.substr(ie.column).search(/\S|$/);Y.doc.removeInLine(ie.row,ie.column,ie.column+G)}}this.clearSelection();var V=ie.column,W=Y.getState(ie.row),ce=(K=Y.getLine(ie.row),ee.checkOutdent(W,K,A));if(Y.insert(ie,A),$&&$.selection&&this.selection.setSelectionRange(2==$.selection.length?new p(ie.row,V+$.selection[0],ie.row,V+$.selection[1]):new p(ie.row+$.selection[0],$.selection[1],ie.row+$.selection[2],$.selection[3])),this.$enableAutoIndent){if(Y.getDocument().isNewLine(A)){var ue=ee.getNextLineIndent(W,K.slice(0,ie.column),Y.getTabString());Y.insert({row:ie.row+1,column:0},ue)}ce&&ee.autoOutdent(W,Y,ie.row)}},N.prototype.autoIndent=function(){for(var A=this.session,F=A.getMode(),Y=this.selection.isEmpty()?[new p(0,0,A.doc.getLength()-1,0)]:this.selection.getAllRanges(),ee="",ie="",$="",j=A.getTabString(),G=0;G0&&(ee=A.getState(K-1),ie=A.getLine(K-1),$=F.getNextLineIndent(ee,ie,j));var ce=A.getLine(K),ue=F.$getIndent(ce);if($!==ue){if(ue.length>0){var be=new p(K,0,K,ue.length);A.remove(be)}$.length>0&&A.insert({row:K,column:0},$)}F.autoOutdent(ee,A,K)}},N.prototype.onTextInput=function(A,F){if(!F)return this.keyBinding.onTextInput(A);this.startOperation({command:{name:"insertstring"}});var Y=this.applyComposition.bind(this,A,F);this.selection.rangeCount?this.forEachSelection(Y):Y(),this.endOperation()},N.prototype.applyComposition=function(A,F){var Y;(F.extendLeft||F.extendRight)&&((Y=this.selection.getRange()).start.column-=F.extendLeft,Y.end.column+=F.extendRight,Y.start.column<0&&(Y.start.row--,Y.start.column+=this.session.getLine(Y.start.row).length+1),this.selection.setRange(Y),!A&&!Y.isEmpty()&&this.remove()),(A||!this.selection.isEmpty())&&this.insert(A,!0),(F.restoreStart||F.restoreEnd)&&((Y=this.selection.getRange()).start.column-=F.restoreStart,Y.end.column-=F.restoreEnd,this.selection.setRange(Y))},N.prototype.onCommandKey=function(A,F,Y){return this.keyBinding.onCommandKey(A,F,Y)},N.prototype.setOverwrite=function(A){this.session.setOverwrite(A)},N.prototype.getOverwrite=function(){return this.session.getOverwrite()},N.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},N.prototype.setScrollSpeed=function(A){this.setOption("scrollSpeed",A)},N.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},N.prototype.setDragDelay=function(A){this.setOption("dragDelay",A)},N.prototype.getDragDelay=function(){return this.getOption("dragDelay")},N.prototype.setSelectionStyle=function(A){this.setOption("selectionStyle",A)},N.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},N.prototype.setHighlightActiveLine=function(A){this.setOption("highlightActiveLine",A)},N.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},N.prototype.setHighlightGutterLine=function(A){this.setOption("highlightGutterLine",A)},N.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},N.prototype.setHighlightSelectedWord=function(A){this.setOption("highlightSelectedWord",A)},N.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},N.prototype.setAnimatedScroll=function(A){this.renderer.setAnimatedScroll(A)},N.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},N.prototype.setShowInvisibles=function(A){this.renderer.setShowInvisibles(A)},N.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},N.prototype.setDisplayIndentGuides=function(A){this.renderer.setDisplayIndentGuides(A)},N.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},N.prototype.setHighlightIndentGuides=function(A){this.renderer.setHighlightIndentGuides(A)},N.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},N.prototype.setShowPrintMargin=function(A){this.renderer.setShowPrintMargin(A)},N.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},N.prototype.setPrintMarginColumn=function(A){this.renderer.setPrintMarginColumn(A)},N.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},N.prototype.setReadOnly=function(A){this.setOption("readOnly",A)},N.prototype.getReadOnly=function(){return this.getOption("readOnly")},N.prototype.setBehavioursEnabled=function(A){this.setOption("behavioursEnabled",A)},N.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},N.prototype.setWrapBehavioursEnabled=function(A){this.setOption("wrapBehavioursEnabled",A)},N.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},N.prototype.setShowFoldWidgets=function(A){this.setOption("showFoldWidgets",A)},N.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},N.prototype.setFadeFoldWidgets=function(A){this.setOption("fadeFoldWidgets",A)},N.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},N.prototype.remove=function(A){this.selection.isEmpty()&&("left"==A?this.selection.selectLeft():this.selection.selectRight());var F=this.getSelectionRange();if(this.getBehavioursEnabled()){var Y=this.session,ee=Y.getState(F.start.row),ie=Y.getMode().transformAction(ee,"deletion",this,Y,F);if(0===F.end.column){var $=Y.getTextRange(F);if("\n"==$[$.length-1]){var j=Y.getLine(F.end.row);/^\s+$/.test(j)&&(F.end.column=j.length)}}ie&&(F=ie)}this.session.remove(F),this.clearSelection()},N.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},N.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},N.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},N.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var A=this.getSelectionRange();A.start.column==A.end.column&&A.start.row==A.end.row&&(A.end.column=0,A.end.row++),this.session.remove(A),this.clearSelection()},N.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var A=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(A)},N.prototype.setGhostText=function(A,F){this.session.widgetManager||(this.session.widgetManager=new I(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(A,F)},N.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},N.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var A=this.getCursorPosition(),F=A.column;if(0!==F){var ee,ie,Y=this.session.getLine(A.row);FG.toLowerCase()?1:0});var ie=new p(0,0,0,0);for(ee=A.first;ee<=A.last;ee++){var $=F.getLine(ee);ie.start.row=ee,ie.end.row=ee,ie.end.column=$.length,F.replace(ie,Y[ee-A.first])}},N.prototype.toggleCommentLines=function(){var A=this.session.getState(this.getCursorPosition().row),F=this.$getSelectedRows();this.session.getMode().toggleCommentLines(A,this.session,F.first,F.last)},N.prototype.toggleBlockComment=function(){var A=this.getCursorPosition(),F=this.session.getState(A.row),Y=this.getSelectionRange();this.session.getMode().toggleBlockComment(F,this.session,Y,A)},N.prototype.getNumberAt=function(A,F){var Y=/[\-]?[0-9]+(?:\.[0-9]+)?/g;Y.lastIndex=0;for(var ee=this.session.getLine(A);Y.lastIndex=F)return{value:ie[0],start:ie.index,end:ie.index+ie[0].length}}return null},N.prototype.modifyNumber=function(A){var F=this.selection.getCursor().row,Y=this.selection.getCursor().column,ee=new p(F,Y-1,F,Y),ie=this.session.getTextRange(ee);if(!isNaN(parseFloat(ie))&&isFinite(ie)){var $=this.getNumberAt(F,Y);if($){var j=$.value.indexOf(".")>=0?$.start+$.value.indexOf(".")+1:$.end,G=$.start+$.value.length-j,V=parseFloat($.value);V*=Math.pow(10,G),V+=A*=j!==$.end&&Y=j&&$<=G&&(Y=Ct,V.selection.clearSelection(),V.moveCursorTo(A,j+ee),V.selection.selectTo(A,G+ee)),j=G});for(var K,W=this.$toggleWordPairs,ce=0;ce=G&&j<=V&&ue.match(/((?:https?|ftp):\/\/[\S]+)/)){W=ue.replace(/[\s:.,'";}\]]+$/,"");break}G=V}}catch(be){Y={error:be}}finally{try{ce&&!ce.done&&(ee=K.return)&&ee.call(K)}finally{if(Y)throw Y.error}}return W},N.prototype.openLink=function(){var A=this.selection.getCursor(),F=this.findLinkAt(A.row,A.column);return F&&window.open(F,"_blank"),null!=F},N.prototype.removeLines=function(){var A=this.$getSelectedRows();this.session.removeFullLines(A.first,A.last),this.clearSelection()},N.prototype.duplicateSelection=function(){var A=this.selection,F=this.session,Y=A.getRange(),ee=A.isBackwards();if(Y.isEmpty()){var ie=Y.start.row;F.duplicateLines(ie,ie)}else{var $=ee?Y.start:Y.end,j=F.insert($,F.getTextRange(Y));Y.start=$,Y.end=j,A.setSelectionRange(Y,ee)}},N.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},N.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},N.prototype.moveText=function(A,F,Y){return this.session.moveText(A,F,Y)},N.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},N.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},N.prototype.$moveLines=function(A,F){var Y,ee,ie=this.selection;if(!ie.inMultiSelectMode||this.inVirtualSelectionMode){var $=ie.toOrientedRange();Y=this.$getSelectedRows($),ee=this.session.$moveLines(Y.first,Y.last,F?0:A),F&&-1==A&&(ee=0),$.moveBy(ee,0),ie.fromOrientedRange($)}else{var j=ie.rangeList.ranges;ie.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var G=0,V=0,W=j.length,K=0;Kbe+1)break;be=Ze.last}for(K--,G=this.session.$moveLines(ue,be,F?0:A),F&&-1==A&&(ce=K+1);ce<=K;)j[ce].moveBy(G,0),ce++;F||(G=0),V+=G}ie.fromOrientedRange(ie.ranges[0]),ie.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},N.prototype.$getSelectedRows=function(A){return A=(A||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(A.start.row),last:this.session.getRowFoldEnd(A.end.row)}},N.prototype.onCompositionStart=function(A){this.renderer.showComposition(A)},N.prototype.onCompositionUpdate=function(A){this.renderer.setCompositionText(A)},N.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},N.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},N.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},N.prototype.isRowVisible=function(A){return A>=this.getFirstVisibleRow()&&A<=this.getLastVisibleRow()},N.prototype.isRowFullyVisible=function(A){return A>=this.renderer.getFirstFullyVisibleRow()&&A<=this.renderer.getLastFullyVisibleRow()},N.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},N.prototype.$moveByPage=function(A,F){var Y=this.renderer,ee=this.renderer.layerConfig,ie=A*Math.floor(ee.height/ee.lineHeight);!0===F?this.selection.$moveSelection(function(){this.moveCursorBy(ie,0)}):!1===F&&(this.selection.moveCursorBy(ie,0),this.selection.clearSelection());var $=Y.scrollTop;Y.scrollBy(0,ie*ee.lineHeight),null!=F&&Y.scrollCursorIntoView(null,.5),Y.animateScrolling($)},N.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},N.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},N.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},N.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},N.prototype.scrollPageDown=function(){this.$moveByPage(1)},N.prototype.scrollPageUp=function(){this.$moveByPage(-1)},N.prototype.scrollToRow=function(A){this.renderer.scrollToRow(A)},N.prototype.scrollToLine=function(A,F,Y,ee){this.renderer.scrollToLine(A,F,Y,ee)},N.prototype.centerSelection=function(){var A=this.getSelectionRange(),F={row:Math.floor(A.start.row+(A.end.row-A.start.row)/2),column:Math.floor(A.start.column+(A.end.column-A.start.column)/2)};this.renderer.alignCursor(F,.5)},N.prototype.getCursorPosition=function(){return this.selection.getCursor()},N.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},N.prototype.getSelectionRange=function(){return this.selection.getRange()},N.prototype.selectAll=function(){this.selection.selectAll()},N.prototype.clearSelection=function(){this.selection.clearSelection()},N.prototype.moveCursorTo=function(A,F){this.selection.moveCursorTo(A,F)},N.prototype.moveCursorToPosition=function(A){this.selection.moveCursorToPosition(A)},N.prototype.jumpToMatching=function(A,F){var Y=this.getCursorPosition(),ee=new k(this.session,Y.row,Y.column),ie=ee.getCurrentToken(),$=0;ie&&-1!==ie.type.indexOf("tag-name")&&(ie=ee.stepBackward());var j=ie||ee.stepForward();if(j){var G,ce,V=!1,W={},K=Y.column-j.start,ue={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(j.value.match(/[{}()\[\]]/g)){for(;K1?W[j.value]++:"=0;--$)this.$tryReplace(Y[$],A)&&ee++;return this.selection.setSelectionRange(ie),ee},N.prototype.$tryReplace=function(A,F){var Y=this.session.getTextRange(A);return null!==(F=this.$search.replace(Y,F))?(A.end=this.session.replace(A,F),A):null},N.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},N.prototype.find=function(A,F,Y){F||(F={}),"string"==typeof A||A instanceof RegExp?F.needle=A:"object"==typeof A&&c.mixin(F,A);var ee=this.selection.getRange();null==F.needle&&((A=this.session.getTextRange(ee)||this.$search.$options.needle)||(ee=this.session.getWordRange(ee.start.row,ee.start.column),A=this.session.getTextRange(ee)),this.$search.set({needle:A})),this.$search.set(F),F.start||this.$search.set({start:ee});var ie=this.$search.find(this.session);return F.preventScroll?ie:ie?(this.revealRange(ie,Y),ie):(F.backwards?ee.start=ee.end:ee.end=ee.start,void this.selection.setRange(ee))},N.prototype.findNext=function(A,F){this.find({skipCurrent:!0,backwards:!1},A,F)},N.prototype.findPrevious=function(A,F){this.find(A,{skipCurrent:!0,backwards:!0},F)},N.prototype.revealRange=function(A,F){this.session.unfold(A),this.selection.setSelectionRange(A);var Y=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(A.start,A.end,.5),!1!==F&&this.renderer.animateScrolling(Y)},N.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},N.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},N.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(A){A.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()},N.prototype.setAutoScrollEditorIntoView=function(A){if(A){var F,Y=this,ee=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var ie=this.$scrollAnchor;ie.style.cssText="position:absolute",this.container.insertBefore(ie,this.container.firstChild);var $=this.on("changeSelection",function(){ee=!0}),j=this.renderer.on("beforeRender",function(){ee&&(F=Y.renderer.container.getBoundingClientRect())}),G=this.renderer.on("afterRender",function(){if(ee&&F&&(Y.isFocused()||Y.searchBox&&Y.searchBox.isFocused())){var V=Y.renderer,W=V.$cursorLayer.$pixelPos,K=V.layerConfig,ce=W.top-K.offset;null!=(ee=W.top>=0&&ce+F.top<0||!(W.topwindow.innerHeight)&&null)&&(ie.style.top=ce+"px",ie.style.left=W.left+"px",ie.style.height=K.lineHeight+"px",ie.scrollIntoView(ee)),ee=F=null}});this.setAutoScrollEditorIntoView=function(V){V||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",$),this.renderer.off("afterRender",G),this.renderer.off("beforeRender",j))}}},N.prototype.$resetCursorStyle=function(){var A=this.$cursorStyle||"ace",F=this.renderer.$cursorLayer;F&&(F.setSmoothBlinking(/smooth/.test(A)),F.isBlinking=!this.$readOnly&&"wide"!=A,b.setCssClass(F.element,"ace_slim-cursors",/slim/.test(A)))},N.prototype.prompt=function(A,F,Y){var ee=this;w.loadModule("ace/ext/prompt",function(ie){ie.prompt(ee,A,F,Y)})},N}();S.$uid=0,S.prototype.curOp=null,S.prototype.prevOp={},S.prototype.$mergeableCommands=["backspace","del","insertstring"],S.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],c.implement(S.prototype,v),w.defineOptions(S.prototype,"editor",{selectionStyle:{set:function(N){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:N})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(N){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(N){this.textInput.setReadOnly(N),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(N){this.textInput.setCopyWithEmptySelection(N)},initialValue:!1},cursorStyle:{set:function(N){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(N){this.setAutoScrollEditorIntoView(N)}},keyboardHandler:{set:function(N){this.setKeyboardHandler(N)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(N){this.session.setValue(N)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(N){this.setSession(N)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(N){this.renderer.$gutterLayer.setShowLineNumbers(N),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),N&&this.$relativeLineNumbers?R.attach(this):R.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(N){this.$showLineNumbers&&N?R.attach(this):R.detach(this)}},placeholder:{set:function(N){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var A=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(A&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),b.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(A||this.renderer.placeholderNode)!A&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),b.addCssClass(this.container,"ace_hasPlaceholder");var F=b.createElement("div");F.className="ace_placeholder",F.textContent=this.$placeholder||"",this.renderer.placeholderNode=F,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(N){var Y,A={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(ee){ee.blur(),ee.renderer.scroller.focus()},readOnly:!0},F=function(ee){if(ee.target==this.renderer.scroller&&ee.keyCode===U.enter){ee.preventDefault();var ie=this.getCursorPosition().row;this.isRowVisible(ie)||this.scrollToLine(ie,!0,!0),this.focus()}};N?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(f.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",O("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",O("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",F.bind(this)),this.commands.addCommand(A),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",O("editor")),this.renderer.$gutter.setAttribute("aria-label",O("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),Y||(Y=new D(this)),Y.addListener()):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",F.bind(this)),this.commands.removeCommand(A),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),Y&&Y.removeListener())},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"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 R={getText:function(N,A){return(Math.abs(N.selection.lead.row-A)||A+1+(A<9?"\xb7":""))+""},getWidth:function(N,A,F){return Math.max(A.toString().length,(F.lastRow+1).toString().length,2)*F.characterWidth},update:function(N,A){A.renderer.$loop.schedule(A.renderer.CHANGE_GUTTER)},attach:function(N){N.renderer.$gutterLayer.$renderer=this,N.on("changeSelection",this.update),this.update(null,N)},detach:function(N){N.renderer.$gutterLayer.$renderer==this&&(N.renderer.$gutterLayer.$renderer=null),N.off("changeSelection",this.update),this.update(null,N)}};_.Editor=S}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(t,_,C){"use strict";var E=t("../lib/dom"),c=function(){function b(s,f){this.element=s,this.canvasHeight=f||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return b.prototype.moveContainer=function(s){E.translate(this.element,0,-s.firstRowScreen*s.lineHeight%this.canvasHeight-s.offset*this.$offsetCoefficient)},b.prototype.pageChanged=function(s,f){return Math.floor(s.firstRowScreen*s.lineHeight/this.canvasHeight)!==Math.floor(f.firstRowScreen*f.lineHeight/this.canvasHeight)},b.prototype.computeLineTop=function(s,f,d){var l=Math.floor(f.firstRowScreen*f.lineHeight/this.canvasHeight);return d.documentToScreenRow(s,0)*f.lineHeight-l*this.canvasHeight},b.prototype.computeLineHeight=function(s,f,d){return f.lineHeight*d.getRowLineCount(s)},b.prototype.getLength=function(){return this.cells.length},b.prototype.get=function(s){return this.cells[s]},b.prototype.shift=function(){this.$cacheCell(this.cells.shift())},b.prototype.pop=function(){this.$cacheCell(this.cells.pop())},b.prototype.push=function(s){if(Array.isArray(s)){this.cells.push.apply(this.cells,s);for(var f=E.createFragment(this.element),d=0;dM&&(M=(y=h.getNextFoldLine(I=y.end.row+1,y))?y.start.row:1/0),I>v){for(;this.$lines.getLength()>k+1;)this.$lines.pop();break}(w=this.$lines.get(++k))?w.row=I:(w=this.$lines.createCell(I,u,this.session,l),this.$lines.push(w)),this.$renderCell(w,u,y,I),I++}this._signal("afterRender"),this.$updateGutterWidth(u)},r.prototype.$updateGutterWidth=function(u){var h=this.session,p=h.gutterRenderer||this.$renderer,v=h.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||h.$useWrapMode)&&(y=h.getLength()+v-1);var M=p?p.getWidth(h,y,u):y.toString().length*u.characterWidth,w=this.$padding||this.$computePadding();(M+=w.left+w.right)!==this.gutterWidth&&!isNaN(M)&&(this.gutterWidth=M,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",M))},r.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var u=this.session.selection.getCursor();this.$cursorRow!==u.row&&(this.$cursorRow=u.row)}},r.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var u=this.session.selection.cursor.row;if(this.$cursorRow=u,!this.$cursorCell||this.$cursorCell.row!=u){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var h=this.$lines.cells;this.$cursorCell=null;for(var p=0;p=this.$cursorRow){if(v.row>this.$cursorRow){var y=this.session.getFoldLine(this.$cursorRow);if(!(p>0&&y&&y.start.row==h[p-1].row))break;v=h[p-1]}v.element.className="ace_gutter-active-line "+v.element.className,this.$cursorCell=v;break}}}}},r.prototype.scrollLines=function(u){var h=this.config;if(this.config=u,this.$updateCursorRow(),this.$lines.pageChanged(h,u))return this.update(u);this.$lines.moveContainer(u);var p=Math.min(u.lastRow+u.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=p,!h||v0;y--)this.$lines.shift();if(v>p)for(y=this.session.getFoldedRowCount(p+1,v);y>0;y--)this.$lines.pop();u.firstRowv&&this.$lines.push(this.$renderLines(u,v+1,p)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(u)},r.prototype.$renderLines=function(u,h,p){for(var v=[],y=h,M=this.session.getNextFoldLine(y),w=M?M.start.row:1/0;y>w&&(w=(M=this.session.getNextFoldLine(y=M.end.row+1,M))?M.start.row:1/0),!(y>p);){var k=this.$lines.createCell(y,u,this.session,l);this.$renderCell(k,u,M,y),v.push(k),y++}return v},r.prototype.$renderCell=function(u,h,p,v){var y=u.element,M=this.session,w=y.childNodes[0],k=y.childNodes[1],I=y.childNodes[2],D=I.firstChild,O=M.$firstLineNumber,T=M.$breakpoints,U=M.$decorations,S=M.gutterRenderer||this.$renderer,R=this.$showFoldWidgets&&M.foldWidgets,N=p?p.start.row:Number.MAX_VALUE,A=h.lineHeight+"px",F=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",Y=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",ee=(S?S.getText(M,v):v+O).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||p&&v=N&&this.$cursorRow<=p.end.row)&&(F+="ace_gutter-active-line ",this.$cursorCell!=u&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=u)),T[v]&&(F+=T[v]),U[v]&&(F+=U[v]),this.$annotations[v]&&v!==N&&(F+=this.$annotations[v].className),R){var ie=R[v];null==ie&&(ie=R[v]=M.getFoldWidget(v))}if(ie){var $="ace_fold-widget ace_"+ie,j="start"==ie&&v==N&&vp.right-h.right?"foldWidgets":void 0},r}();function l(r){var u=document.createTextNode("");r.appendChild(u);var h=E.createElement("span");r.appendChild(h);var p=E.createElement("span");r.appendChild(p);var v=E.createElement("span");return p.appendChild(v),r}a.prototype.$fixedWidth=!1,a.prototype.$highlightGutterLine=!0,a.prototype.$renderer="",a.prototype.$showLineNumbers=!0,a.prototype.$showFoldWidgets=!0,c.implement(a.prototype,s),_.Gutter=a}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(t,_,C){"use strict";var E=t("../range").Range,c=t("../lib/dom"),b=function(){function f(d){this.element=c.createElement("div"),this.element.className="ace_layer ace_marker-layer",d.appendChild(this.element)}return f.prototype.setPadding=function(d){this.$padding=d},f.prototype.setSession=function(d){this.session=d},f.prototype.setMarkers=function(d){this.markers=d},f.prototype.elt=function(d,a){var l=-1!=this.i&&this.element.childNodes[this.i];l?this.i++:(l=document.createElement("div"),this.element.appendChild(l),this.i=-1),l.style.cssText=a,l.className=d},f.prototype.update=function(d){if(d){var a;for(var l in this.config=d,this.i=0,this.markers){var r=this.markers[l];if(r.range){var u=r.range.clipRows(d.firstRow,d.lastRow);if(!u.isEmpty())if(u=u.toScreenRange(this.session),r.renderer){var h=this.$getTop(u.start.row,d);r.renderer(a,u,this.$padding+u.start.column*d.characterWidth,h,d)}else"fullLine"==r.type?this.drawFullLineMarker(a,u,r.clazz,d):"screenLine"==r.type?this.drawScreenLineMarker(a,u,r.clazz,d):u.isMultiLine()?"text"==r.type?this.drawTextMarker(a,u,r.clazz,d):this.drawMultiLineMarker(a,u,r.clazz,d):this.drawSingleLineMarker(a,u,r.clazz+" ace_start ace_br15",d)}else r.update(a,this,this.session,d)}if(-1!=this.i)for(;this.ik,y==v),r,y==v?0:1,u)},f.prototype.drawMultiLineMarker=function(d,a,l,r,u){var M,h=this.$padding,p=r.lineHeight,v=this.$getTop(a.start.row,r),y=h+a.start.column*r.characterWidth;if(u=u||"",this.session.$bidiHandler.isBidiRow(a.start.row)?((M=a.clone()).end.row=M.start.row,M.end.column=this.session.getLine(M.start.row).length,this.drawBidiSingleLineMarker(d,M,l+" ace_br1 ace_start",r,null,u)):this.elt(l+" ace_br1 ace_start","height:"+p+"px;right:0;top:"+v+"px;left:"+y+"px;"+(u||"")),this.session.$bidiHandler.isBidiRow(a.end.row)?((M=a.clone()).start.row=M.end.row,M.start.column=0,this.drawBidiSingleLineMarker(d,M,l+" ace_br12",r,null,u)):(v=this.$getTop(a.end.row,r),this.elt(l+" ace_br12","height:"+p+"px;width:"+a.end.column*r.characterWidth+"px;top:"+v+"px;left:"+h+"px;"+(u||""))),!((p=(a.end.row-a.start.row-1)*r.lineHeight)<=0)){v=this.$getTop(a.start.row+1,r);var k=(a.start.column?1:0)|(a.end.column?0:8);this.elt(l+(k?" ace_br"+k:""),"height:"+p+"px;right:0;top:"+v+"px;left:"+h+"px;"+(u||""))}},f.prototype.drawSingleLineMarker=function(d,a,l,r,u,h){if(this.session.$bidiHandler.isBidiRow(a.start.row))return this.drawBidiSingleLineMarker(d,a,l,r,u,h);var p=r.lineHeight,v=(a.end.column+(u||0)-a.start.column)*r.characterWidth,y=this.$getTop(a.start.row,r);this.elt(l,"height:"+p+"px;width:"+v+"px;top:"+y+"px;left:"+(this.$padding+a.start.column*r.characterWidth)+"px;"+(h||""))},f.prototype.drawBidiSingleLineMarker=function(d,a,l,r,u,h){var p=r.lineHeight,v=this.$getTop(a.start.row,r),y=this.$padding;this.session.$bidiHandler.getSelections(a.start.column,a.end.column).forEach(function(w){this.elt(l,"height:"+p+"px;width:"+(w.width+(u||0))+"px;top:"+v+"px;left:"+(y+w.left)+"px;"+(h||""))},this)},f.prototype.drawFullLineMarker=function(d,a,l,r,u){var h=this.$getTop(a.start.row,r),p=r.lineHeight;a.start.row!=a.end.row&&(p+=this.$getTop(a.end.row,r)-h),this.elt(l,"height:"+p+"px;top:"+h+"px;left:0;right:0;"+(u||""))},f.prototype.drawScreenLineMarker=function(d,a,l,r,u){var h=this.$getTop(a.start.row,r);this.elt(l,"height:"+r.lineHeight+"px;top:"+h+"px;left:0;right:0;"+(u||""))},f}();function s(f,d,a,l){return(f?1:0)|(d?2:0)|(a?4:0)|(l?8:0)}b.prototype.$padding=0,_.Marker=b}),ace.define("ace/layer/text_util",["require","exports","module"],function(t,_,C){var E=new Set(["text","rparen","lparen"]);_.isTextToken=function(c){return E.has(c)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(t,_,C){"use strict";var E=t("../lib/oop"),c=t("../lib/dom"),b=t("../lib/lang"),s=t("./lines").Lines,f=t("../lib/event_emitter").EventEmitter,d=t("../config").nls,a=t("./text_util").isTextToken,l=function(){function r(u){this.dom=c,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",u.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)}return r.prototype.$updateEolChar=function(){var u=this.session.doc,p="\n"==u.getNewLineCharacter()&&"windows"!=u.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=p)return this.EOL_CHAR=p,!0},r.prototype.setPadding=function(u){this.$padding=u,this.element.style.margin="0 "+u+"px"},r.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},r.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},r.prototype.$setFontMetrics=function(u){this.$fontMetrics=u,this.$fontMetrics.on("changeCharacterSize",function(h){this._signal("changeCharacterSize",h)}.bind(this)),this.$pollSizeChanges()},r.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},r.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},r.prototype.setSession=function(u){this.session=u,u&&this.$computeTabString()},r.prototype.setShowInvisibles=function(u){return this.showInvisibles!=u&&(this.showInvisibles=u,"string"==typeof u?(this.showSpaces=/tab/i.test(u),this.showTabs=/space/i.test(u),this.showEOL=/eol/i.test(u)):this.showSpaces=this.showTabs=this.showEOL=u,this.$computeTabString(),!0)},r.prototype.setDisplayIndentGuides=function(u){return this.displayIndentGuides!=u&&(this.displayIndentGuides=u,this.$computeTabString(),!0)},r.prototype.setHighlightIndentGuides=function(u){return this.$highlightIndentGuides!==u&&(this.$highlightIndentGuides=u,u)},r.prototype.$computeTabString=function(){var u=this.session.getTabSize();this.tabSize=u;for(var h=this.$tabStrings=[0],p=1;pO&&(O=(D=this.session.getNextFoldLine(I=D.end.row+1,D))?D.start.row:1/0),!(I>y);){var T=M[w++];if(T){this.dom.removeChildren(T),this.$renderLine(T,I,I==O&&D),k&&(T.style.top=this.$lines.computeLineTop(I,u,this.session)+"px");var U=u.lineHeight*this.session.getRowLength(I)+"px";T.style.height!=U&&(k=!0,T.style.height=U)}I++}if(k)for(;w0;y--)this.$lines.shift();if(h.lastRow>u.lastRow)for(y=this.session.getFoldedRowCount(u.lastRow+1,h.lastRow);y>0;y--)this.$lines.pop();u.firstRowh.lastRow&&this.$lines.push(this.$renderLinesFragment(u,h.lastRow+1,u.lastRow)),this.$highlightIndentGuide()},r.prototype.$renderLinesFragment=function(u,h,p){for(var v=[],y=h,M=this.session.getNextFoldLine(y),w=M?M.start.row:1/0;y>w&&(w=(M=this.session.getNextFoldLine(y=M.end.row+1,M))?M.start.row:1/0),!(y>p);){var k=this.$lines.createCell(y,u,this.session),I=k.element;this.dom.removeChildren(I),c.setStyle(I.style,"height",this.$lines.computeLineHeight(y,u,this.session)+"px"),c.setStyle(I.style,"top",this.$lines.computeLineTop(y,u,this.session)+"px"),this.$renderLine(I,y,y==w&&M),I.className=this.$useLineGroups()?"ace_line_group":"ace_line",v.push(k),y++}return v},r.prototype.update=function(u){this.$lines.moveContainer(u),this.config=u;for(var h=u.firstRow,p=u.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(u,h,p))},r.prototype.$renderToken=function(u,h,p,v){for(var k,y=this,M=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\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,w=this.dom.createFragment(this.element),I=0;k=M.exec(v);){var D=k[1],O=k[2],T=k[3],U=k[4],S=k[5];if(y.showSpaces||!O){var R=I!=k.index?v.slice(I,k.index):"";if(I=k.index+k[0].length,R&&w.appendChild(this.dom.createTextNode(R,this.element)),D){var N=y.session.getScreenTabSize(h+k.index);w.appendChild(y.$tabStrings[N].cloneNode(!0)),h+=N-1}else O?y.showSpaces?((A=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",A.textContent=b.stringRepeat(y.SPACE_CHAR,O.length),w.appendChild(A)):w.appendChild(this.dom.createTextNode(O,this.element)):T?((A=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",A.textContent=b.stringRepeat(y.SPACE_CHAR,T.length),w.appendChild(A)):U?(h+=1,(A=this.dom.createElement("span")).style.width=2*y.config.characterWidth+"px",A.className=y.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",A.textContent=y.showSpaces?y.SPACE_CHAR:U,w.appendChild(A)):S&&(h+=1,(A=this.dom.createElement("span")).style.width=2*y.config.characterWidth+"px",A.className="ace_cjk",A.textContent=S,w.appendChild(A))}}if(w.appendChild(this.dom.createTextNode(I?v.slice(I):v,this.element)),a(p.type))u.appendChild(w);else{var F="ace_"+p.type.replace(/\./g," ace_"),A=this.dom.createElement("span");"fold"==p.type&&(A.style.width=p.value.length*this.config.characterWidth+"px",A.setAttribute("title",d("Unfold code"))),A.className=F,A.appendChild(w),u.appendChild(A)}return h+v.length},r.prototype.renderIndentGuide=function(u,h,p){var v=h.search(this.$indentGuideRe);if(v<=0||v>=p)return h;if(" "==h[0]){for(var y=(v-=v%this.tabSize)/this.tabSize,M=0;MM[w].start.row?-1:1;break}if(!this.$highlightIndentGuideMarker.end&&""!==u[h.row]&&h.column===u[h.row].length)for(this.$highlightIndentGuideMarker.dir=1,w=h.row+1;w0)for(var y=0;y=this.$highlightIndentGuideMarker.start+1){if(v.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,h)}}else for(p=u.length-1;p>=0;p--)if(v=u[p],this.$highlightIndentGuideMarker.end&&v.row=M;)w=this.$renderToken(k,w,D,O.substring(0,M-v)),O=O.substring(M-v),v=M,k=this.$createLineElement(),u.appendChild(k),k.appendChild(this.dom.createTextNode(b.stringRepeat("\xa0",p.indent),this.element)),w=0,M=p[++y]||Number.MAX_VALUE;0!=O.length&&(v+=O.length,w=this.$renderToken(k,w,D,O))}}p[p.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(k,w,null,"",!0)},r.prototype.$renderSimpleLine=function(u,h){for(var p=0,v=0;vthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(u,p,y,M);p=this.$renderToken(u,p,y,M)}}},r.prototype.$renderOverflowMessage=function(u,h,p,v,y){p&&this.$renderToken(u,h,p,v.slice(0,this.MAX_LINE_LENGTH-h));var M=this.dom.createElement("span");M.className="ace_inline_button ace_keyword ace_toggle_wrap",M.textContent=y?"":"",u.appendChild(M)},r.prototype.$renderLine=function(u,h,p){if(!p&&0!=p&&(p=this.session.getFoldLine(h)),p)var v=this.$getFoldLineTokens(h,p);else v=this.session.getTokens(h);var y=u;if(v.length){var M=this.session.getRowSplitData(h);M&&M.length?(this.$renderWrappedLine(u,v,M),y=u.lastChild):(y=u,this.$useLineGroups()&&(y=this.$createLineElement(),u.appendChild(y)),this.$renderSimpleLine(y,v))}else this.$useLineGroups()&&(y=this.$createLineElement(),u.appendChild(y));if(this.showEOL&&y){p&&(h=p.end.row);var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_eol",w.textContent=h==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,y.appendChild(w)}},r.prototype.$getFoldLineTokens=function(u,h){var p=this.session,v=[],M=p.getTokens(u);return h.walk(function(w,k,I,D,O){null!=w?v.push({type:"fold",value:w}):(O&&(M=p.getTokens(k)),M.length&&function y(w,k,I){for(var D=0,O=0;O+w[D].value.lengthI-k&&(T=T.substring(0,I-k)),v.push({type:w[D].type,value:T}),O=k+T.length,D+=1);OI?{type:w[D].type,value:T.substring(0,I-O)}:w[D]),O+=T.length,D+=1}}(M,D,I))},h.end.row,this.session.getLine(h.end.row).length),v},r.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},r}();l.prototype.EOF_CHAR="\xb6",l.prototype.EOL_CHAR_LF="\xac",l.prototype.EOL_CHAR_CRLF="\xa4",l.prototype.EOL_CHAR=l.prototype.EOL_CHAR_LF,l.prototype.TAB_CHAR="\u2014",l.prototype.SPACE_CHAR="\xb7",l.prototype.$padding=0,l.prototype.MAX_LINE_LENGTH=1e4,l.prototype.showInvisibles=!1,l.prototype.showSpaces=!1,l.prototype.showTabs=!1,l.prototype.showEOL=!1,l.prototype.displayIndentGuides=!0,l.prototype.$highlightIndentGuides=!0,l.prototype.$tabStrings=[],l.prototype.destroy={},l.prototype.onChangeTabSize=l.prototype.$computeTabString,E.implement(l.prototype,f),_.Text=l}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(t,_,C){"use strict";var E=t("../lib/dom"),c=function(){function b(s){this.element=E.createElement("div"),this.element.className="ace_layer ace_cursor-layer",s.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),E.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return b.prototype.$updateOpacity=function(s){for(var f=this.cursors,d=f.length;d--;)E.setStyle(f[d].style,"opacity",s?"":"0")},b.prototype.$startCssAnimation=function(){for(var s=this.cursors,f=s.length;f--;)s[f].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&E.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},b.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,E.removeCssClass(this.element,"ace_animate-blinking")},b.prototype.setPadding=function(s){this.$padding=s},b.prototype.setSession=function(s){this.session=s},b.prototype.setBlinking=function(s){s!=this.isBlinking&&(this.isBlinking=s,this.restartTimer())},b.prototype.setBlinkInterval=function(s){s!=this.blinkInterval&&(this.blinkInterval=s,this.restartTimer())},b.prototype.setSmoothBlinking=function(s){s!=this.smoothBlinking&&(this.smoothBlinking=s,E.setCssClass(this.element,"ace_smooth-blinking",s),this.$updateCursors(!0),this.restartTimer())},b.prototype.addCursor=function(){var s=E.createElement("div");return s.className="ace_cursor",this.element.appendChild(s),this.cursors.push(s),s},b.prototype.removeCursor=function(){if(this.cursors.length>1){var s=this.cursors.pop();return s.parentNode.removeChild(s),s}},b.prototype.hideCursor=function(){this.isVisible=!1,E.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},b.prototype.showCursor=function(){this.isVisible=!0,E.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},b.prototype.restartTimer=function(){var s=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,E.removeCssClass(this.element,"ace_smooth-blinking")),s(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&E.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),E.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var f=function(){this.timeoutId=setTimeout(function(){s(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){s(!0),f()},this.blinkInterval),f()}else this.$stopCssAnimation()},b.prototype.getPixelPosition=function(s,f){if(!this.config||!this.session)return{left:0,top:0};s||(s=this.session.selection.getCursor());var d=this.session.documentToScreenPosition(s);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(d.row,s.row)?this.session.$bidiHandler.getPosLeft(d.column):d.column*this.config.characterWidth),top:(d.row-(f?this.config.firstRowScreen:0))*this.config.lineHeight}},b.prototype.isCursorInView=function(s,f){return s.top>=0&&s.tops.height+s.offset||r.top<0)&&d>1)){var u=this.cursors[a++]||this.addCursor(),h=u.style;this.drawCursor?this.drawCursor(u,r,s,f[d],this.session):this.isCursorInView(r,s)?(E.setStyle(h,"display","block"),E.translate(u,r.left,r.top),E.setStyle(h,"width",Math.round(s.characterWidth)+"px"),E.setStyle(h,"height",s.lineHeight+"px")):E.setStyle(h,"display","none")}}for(;this.cursors.length>a;)this.removeCursor();var p=this.session.getOverwrite();this.$setOverwrite(p),this.$pixelPos=r,this.restartTimer()},b.prototype.$setOverwrite=function(s){s!=this.overwrite&&(this.overwrite=s,s?E.addCssClass(this.element,"ace_overwrite-cursors"):E.removeCssClass(this.element,"ace_overwrite-cursors"))},b.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},b}();c.prototype.$padding=0,c.prototype.drawCursor=null,_.Cursor=c}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(t,_,C){"use strict";var E=this&&this.__extends||function(){var u=function(h,p){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var M in y)Object.prototype.hasOwnProperty.call(y,M)&&(v[M]=y[M])})(h,p)};return function(h,p){if("function"!=typeof p&&null!==p)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function v(){this.constructor=h}u(h,p),h.prototype=null===p?Object.create(p):(v.prototype=p.prototype,new v)}}(),c=t("./lib/oop"),b=t("./lib/dom"),s=t("./lib/event"),f=t("./lib/event_emitter").EventEmitter,d=32768,a=function(){function u(h,p){this.element=b.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+p,this.inner=b.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent="\xa0",this.element.appendChild(this.inner),h.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addListener(this.element,"scroll",this.onScroll.bind(this)),s.addListener(this.element,"mousedown",s.preventDefault)}return u.prototype.setVisible=function(h){this.element.style.display=h?"":"none",this.isVisible=h,this.coeff=1},u}();c.implement(a.prototype,f);var l=function(u){function h(p,v){var y=u.call(this,p,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,v.$scrollbarWidth=y.width=b.scrollbarWidth(p.ownerDocument),y.inner.style.width=y.element.style.width=(y.width||15)+5+"px",y.$minWidth=0,y}return E(h,u),h.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var p=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-p)/(this.coeff-p)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},h.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},h.prototype.setHeight=function(p){this.element.style.height=p+"px"},h.prototype.setScrollHeight=function(p){this.scrollHeight=p,p>d?(this.coeff=d/p,p=d):1!=this.coeff&&(this.coeff=1),this.inner.style.height=p+"px"},h.prototype.setScrollTop=function(p){this.scrollTop!=p&&(this.skipEvent=!0,this.scrollTop=p,this.element.scrollTop=p*this.coeff)},h}(a);l.prototype.setInnerHeight=l.prototype.setScrollHeight;var r=function(u){function h(p,v){var y=u.call(this,p,"-h")||this;return y.scrollLeft=0,y.height=v.$scrollbarWidth,y.inner.style.height=y.element.style.height=(y.height||15)+5+"px",y}return E(h,u),h.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},h.prototype.getHeight=function(){return this.isVisible?this.height:0},h.prototype.setWidth=function(p){this.element.style.width=p+"px"},h.prototype.setInnerWidth=function(p){this.inner.style.width=p+"px"},h.prototype.setScrollWidth=function(p){this.inner.style.width=p+"px"},h.prototype.setScrollLeft=function(p){this.scrollLeft!=p&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=p)},h}(a);_.ScrollBar=l,_.ScrollBarV=l,_.ScrollBarH=r,_.VScrollBar=l,_.HScrollBar=r}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(t,_,C){"use strict";var E=this&&this.__extends||function(){var r=function(u,h){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(p[y]=v[y])})(u,h)};return function(u,h){if("function"!=typeof h&&null!==h)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function p(){this.constructor=u}r(u,h),u.prototype=null===h?Object.create(h):(p.prototype=h.prototype,new p)}}(),c=t("./lib/oop"),b=t("./lib/dom"),s=t("./lib/event"),f=t("./lib/event_emitter").EventEmitter;b.importCssString(".ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{\n position: absolute;\n background: rgba(128, 128, 128, 0.6);\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n border: 1px solid #bbb;\n border-radius: 2px;\n z-index: 8;\n}\n.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {\n position: absolute;\n z-index: 6;\n background: none;\n overflow: hidden!important;\n}\n.ace_editor>.ace_sb-v {\n z-index: 6;\n right: 0;\n top: 0;\n width: 12px;\n}\n.ace_editor>.ace_sb-v div {\n z-index: 8;\n right: 0;\n width: 100%;\n}\n.ace_editor>.ace_sb-h {\n bottom: 0;\n left: 0;\n height: 12px;\n}\n.ace_editor>.ace_sb-h div {\n bottom: 0;\n height: 100%;\n}\n.ace_editor>.ace_sb_grabbed {\n z-index: 8;\n background: #000;\n}","ace_scrollbar.css",!1);var d=function(){function r(u,h){this.element=b.createElement("div"),this.element.className="ace_sb"+h,this.inner=b.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,u.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return r.prototype.setVisible=function(u){this.element.style.display=u?"":"none",this.isVisible=u,this.coeff=1},r}();c.implement(d.prototype,f);var a=function(r){function u(h,p){var v=r.call(this,h,"-v")||this;return v.scrollTop=0,v.scrollHeight=0,v.parent=h,v.width=v.VScrollWidth,v.renderer=p,v.inner.style.width=v.element.style.width=(v.width||15)+"px",v.$minWidth=0,v}return E(u,r),u.prototype.onMouseDown=function(h,p){if("mousedown"===h&&0===s.getButton(p)&&2!==p.detail){if(p.target===this.inner){var v=this,y=p.clientY,k=p.clientY,I=this.thumbTop;s.capture(this.inner,function(U){y=U.clientY},function(){clearInterval(O)});var O=setInterval(function(){if(void 0!==y){var U=v.scrollTopFromThumbTop(I+y-k);U!==v.scrollTop&&v._emit("scroll",{data:U})}},20);return s.preventDefault(p)}var T=p.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(T)}),s.preventDefault(p)}},u.prototype.getHeight=function(){return this.height},u.prototype.scrollTopFromThumbTop=function(h){var p=h*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return(p|=0)<0?p=0:p>this.pageHeight-this.viewHeight&&(p=this.pageHeight-this.viewHeight),p},u.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},u.prototype.setHeight=function(h){this.height=Math.max(0,h),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},u.prototype.setScrollHeight=function(h,p){this.pageHeight===h&&!p||(this.pageHeight=h,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},u.prototype.setScrollTop=function(h){this.scrollTop=h,h<0&&(h=0),this.thumbTop=h*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},u}(d);a.prototype.setInnerHeight=a.prototype.setScrollHeight;var l=function(r){function u(h,p){var v=r.call(this,h,"-h")||this;return v.scrollLeft=0,v.scrollWidth=0,v.height=v.HScrollHeight,v.inner.style.height=v.element.style.height=(v.height||12)+"px",v.renderer=p,v}return E(u,r),u.prototype.onMouseDown=function(h,p){if("mousedown"===h&&0===s.getButton(p)&&2!==p.detail){if(p.target===this.inner){var v=this,y=p.clientX,k=p.clientX,I=this.thumbLeft;s.capture(this.inner,function(U){y=U.clientX},function(){clearInterval(O)});var O=setInterval(function(){if(void 0!==y){var U=v.scrollLeftFromThumbLeft(I+y-k);U!==v.scrollLeft&&v._emit("scroll",{data:U})}},20);return s.preventDefault(p)}var T=p.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(T)}),s.preventDefault(p)}},u.prototype.getHeight=function(){return this.isVisible?this.height:0},u.prototype.scrollLeftFromThumbLeft=function(h){var p=h*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return(p|=0)<0?p=0:p>this.pageWidth-this.viewWidth&&(p=this.pageWidth-this.viewWidth),p},u.prototype.setWidth=function(h){this.width=Math.max(0,h),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},u.prototype.setScrollWidth=function(h,p){this.pageWidth===h&&!p||(this.pageWidth=h,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},u.prototype.setScrollLeft=function(h){this.scrollLeft=h,h<0&&(h=0),this.thumbLeft=h*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},u}(d);l.prototype.setInnerWidth=l.prototype.setScrollWidth,_.ScrollBar=a,_.ScrollBarV=a,_.ScrollBarH=l,_.VScrollBar=a,_.HScrollBar=l}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(t,_,C){"use strict";var E=t("./lib/event"),c=function(){function b(s,f){this.onRender=s,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=f||window;var d=this;this._flush=function(a){d.pending=!1;var l=d.changes;if(l&&(E.blockIdle(100),d.changes=0,d.onRender(l)),d.changes){if(d.$recursionLimit--<0)return;d.schedule()}else d.$recursionLimit=2}}return b.prototype.schedule=function(s){this.changes=this.changes|s,this.changes&&!this.pending&&(E.nextFrame(this._flush),this.pending=!0)},b.prototype.clear=function(s){var f=this.changes;return this.changes=0,f},b}();_.RenderLoop=c}),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(t,_,C){var E=t("../lib/oop"),c=t("../lib/dom"),b=t("../lib/lang"),s=t("../lib/event"),f=t("../lib/useragent"),d=t("../lib/event_emitter").EventEmitter,a=512,l="function"==typeof ResizeObserver,r=200,u=function(){function h(p){this.el=c.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=c.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=c.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),p.appendChild(this.el),this.$measureNode.textContent=b.stringRepeat("X",a),this.$characterSize={width:0,height:0},l?this.$addObserver():this.checkForSizeChanges()}return h.prototype.$setMeasureNodeStyles=function(p,v){p.width=p.height="auto",p.left=p.top="0px",p.visibility="hidden",p.position="absolute",p.whiteSpace="pre",f.isIE<8?p["font-family"]="inherit":p.font="inherit",p.overflow=v?"hidden":"visible"},h.prototype.checkForSizeChanges=function(p){if(void 0===p&&(p=this.$measureSizes()),p&&(this.$characterSize.width!==p.width||this.$characterSize.height!==p.height)){this.$measureNode.style.fontWeight="bold";var v=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=p,this.charSizes=Object.create(null),this.allowBoldFonts=v&&v.width===p.width&&v.height===p.height,this._emit("changeCharacterSize",{data:p})}},h.prototype.$addObserver=function(){var p=this;this.$observer=new window.ResizeObserver(function(v){p.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},h.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var p=this;return this.$pollSizeChangesTimer=s.onIdle(function v(){p.checkForSizeChanges(),s.onIdle(v,500)},500)},h.prototype.setPolling=function(p){p?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},h.prototype.$measureSizes=function(p){var v={height:(p||this.$measureNode).clientHeight,width:(p||this.$measureNode).clientWidth/a};return 0===v.width||0===v.height?null:v},h.prototype.$measureCharWidth=function(p){return this.$main.textContent=b.stringRepeat(p,a),this.$main.getBoundingClientRect().width/a},h.prototype.getCharacterWidth=function(p){var v=this.charSizes[p];return void 0===v&&(v=this.charSizes[p]=this.$measureCharWidth(p)/this.$characterSize.width),v},h.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},h.prototype.$getZoom=function(p){return p&&p.parentElement?(window.getComputedStyle(p).zoom||1)*this.$getZoom(p.parentElement):1},h.prototype.$initTransformMeasureNodes=function(){var p=function(v,y){return["div",{style:"position: absolute;top:"+v+"px;left:"+y+"px;"}]};this.els=c.buildDom([p(0,0),p(r,0),p(0,r),p(r,r)],this.el)},h.prototype.transformCoordinates=function(p,v){function M(j,G,V){var W=j[1]*G[0]-j[0]*G[1];return[(-G[1]*V[0]+G[0]*V[1])/W,(+j[1]*V[0]-j[0]*V[1])/W]}function w(j,G){return[j[0]-G[0],j[1]-G[1]]}function k(j,G){return[j[0]+G[0],j[1]+G[1]]}function I(j,G){return[j*G[0],j*G[1]]}function D(j){var G=j.getBoundingClientRect();return[G.left,G.top]}p&&(p=I(1/this.$getZoom(this.el),p)),this.els||this.$initTransformMeasureNodes();var O=D(this.els[0]),T=D(this.els[1]),U=D(this.els[2]),S=D(this.els[3]),R=M(w(S,T),w(S,U),w(k(T,U),k(S,O))),N=I(1+R[0],w(T,O)),A=I(1+R[1],w(U,O));if(v){var F=v,Y=R[0]*F[0]/r+R[1]*F[1]/r+1,ee=k(I(F[0],N),I(F[1],A));return k(I(1/Y/r,ee),O)}var ie=w(p,O),$=M(w(N,I(R[0],ie)),w(A,I(R[1],ie)),ie);return I(r,$)},h}();u.prototype.$characterSize={width:0,height:0},E.implement(u.prototype,d),_.FontMetrics=u}),ace.define("ace/css/editor-css",["require","exports","module"],function(t,_,C){C.exports='\n.ace_br1 {border-top-left-radius : 3px;}\n.ace_br2 {border-top-right-radius : 3px;}\n.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}\n.ace_br4 {border-bottom-right-radius: 3px;}\n.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}\n.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}\n.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}\n.ace_br8 {border-bottom-left-radius : 3px;}\n.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}\n.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}\n.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n\n\n.ace_editor {\n position: relative;\n overflow: hidden;\n padding: 0;\n font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'Source Code Pro\', \'source-code-pro\', monospace;\n direction: ltr;\n text-align: left;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n.ace_scroller {\n position: absolute;\n overflow: hidden;\n top: 0;\n bottom: 0;\n background-color: inherit;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n cursor: text;\n}\n\n.ace_content {\n position: absolute;\n box-sizing: border-box;\n min-width: 100%;\n contain: style size layout;\n font-variant-ligatures: no-common-ligatures;\n}\n\n.ace_keyboard-focus:focus {\n box-shadow: inset 0 0 0 2px #5E9ED6;\n outline: none;\n}\n\n.ace_dragging .ace_scroller:before{\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n content: \'\';\n background: rgba(250, 250, 250, 0.01);\n z-index: 1000;\n}\n.ace_dragging.ace_dark .ace_scroller:before{\n background: rgba(0, 0, 0, 0.01);\n}\n\n.ace_gutter {\n position: absolute;\n overflow : hidden;\n width: auto;\n top: 0;\n bottom: 0;\n left: 0;\n cursor: default;\n z-index: 4;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n contain: style size layout;\n}\n\n.ace_gutter-active-line {\n position: absolute;\n left: 0;\n right: 0;\n}\n\n.ace_scroller.ace_scroll-left:after {\n content: "";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;\n pointer-events: none;\n}\n\n.ace_gutter-cell, .ace_gutter-cell_svg-icons {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n padding-left: 19px;\n padding-right: 6px;\n background-repeat: no-repeat;\n}\n\n.ace_gutter-cell_svg-icons .ace_gutter_annotation {\n margin-left: -14px;\n float: left;\n}\n\n.ace_gutter-cell .ace_gutter_annotation {\n margin-left: -19px;\n float: left;\n}\n\n.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {\n 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==");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {\n 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==");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_info, .ace_icon.ace_info {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");\n}\n\n.ace_icon_svg.ace_error {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");\n background-color: crimson;\n}\n.ace_icon_svg.ace_warning {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");\n background-color: darkorange;\n}\n.ace_icon_svg.ace_info {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");\n background-color: royalblue;\n}\n\n.ace_icon_svg.ace_error_fold {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");\n background-color: crimson;\n}\n.ace_icon_svg.ace_warning_fold {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");\n background-color: darkorange;\n}\n\n.ace_scrollbar {\n contain: strict;\n position: absolute;\n right: 0;\n bottom: 0;\n z-index: 6;\n}\n\n.ace_scrollbar-inner {\n position: absolute;\n cursor: text;\n left: 0;\n top: 0;\n}\n\n.ace_scrollbar-v{\n overflow-x: hidden;\n overflow-y: scroll;\n top: 0;\n}\n\n.ace_scrollbar-h {\n overflow-x: scroll;\n overflow-y: hidden;\n left: 0;\n}\n\n.ace_print-margin {\n position: absolute;\n height: 100%;\n}\n\n.ace_text-input {\n position: absolute;\n z-index: 0;\n width: 0.5em;\n height: 1em;\n opacity: 0;\n background: transparent;\n -moz-appearance: none;\n appearance: none;\n border: none;\n resize: none;\n outline: none;\n overflow: hidden;\n font: inherit;\n padding: 0 1px;\n margin: 0 -1px;\n contain: strict;\n -ms-user-select: text;\n -moz-user-select: text;\n -webkit-user-select: text;\n user-select: text;\n /*with `pre-line` chrome inserts   instead of space*/\n white-space: pre!important;\n}\n.ace_text-input.ace_composition {\n background: transparent;\n color: inherit;\n z-index: 1000;\n opacity: 1;\n}\n.ace_composition_placeholder { color: transparent }\n.ace_composition_marker { \n border-bottom: 1px solid;\n position: absolute;\n border-radius: 0;\n margin-top: 1px;\n}\n\n[ace_nocontext=true] {\n transform: none!important;\n filter: none!important;\n clip-path: none!important;\n mask : none!important;\n contain: none!important;\n perspective: none!important;\n mix-blend-mode: initial!important;\n z-index: auto;\n}\n\n.ace_layer {\n z-index: 1;\n position: absolute;\n overflow: hidden;\n /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/\n word-wrap: normal;\n white-space: pre;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n /* setting pointer-events: auto; on node under the mouse, which changes\n during scroll, will break mouse wheel scrolling in Safari */\n pointer-events: none;\n}\n\n.ace_gutter-layer {\n position: relative;\n width: auto;\n text-align: right;\n pointer-events: auto;\n height: 1000000px;\n contain: style size layout;\n}\n\n.ace_text-layer {\n font: inherit !important;\n position: absolute;\n height: 1000000px;\n width: 1000000px;\n contain: style size layout;\n}\n\n.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {\n contain: style size layout;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n}\n\n.ace_hidpi .ace_text-layer,\n.ace_hidpi .ace_gutter-layer,\n.ace_hidpi .ace_content,\n.ace_hidpi .ace_gutter {\n contain: strict;\n}\n.ace_hidpi .ace_text-layer > .ace_line, \n.ace_hidpi .ace_text-layer > .ace_line_group {\n contain: strict;\n}\n\n.ace_cjk {\n display: inline-block;\n text-align: center;\n}\n\n.ace_cursor-layer {\n z-index: 4;\n}\n\n.ace_cursor {\n z-index: 4;\n position: absolute;\n box-sizing: border-box;\n border-left: 2px solid;\n /* workaround for smooth cursor repaintng whole screen in chrome */\n transform: translatez(0);\n}\n\n.ace_multiselect .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_slim-cursors .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_overwrite-cursors .ace_cursor {\n border-left-width: 0;\n border-bottom: 1px solid;\n}\n\n.ace_hidden-cursors .ace_cursor {\n opacity: 0.2;\n}\n\n.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {\n opacity: 0;\n}\n\n.ace_smooth-blinking .ace_cursor {\n transition: opacity 0.18s;\n}\n\n.ace_animate-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: step-end;\n animation-name: blink-ace-animate;\n animation-iteration-count: infinite;\n}\n\n.ace_animate-blinking.ace_smooth-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: ease-in-out;\n animation-name: blink-ace-animate-smooth;\n}\n \n@keyframes blink-ace-animate {\n from, to { opacity: 1; }\n 60% { opacity: 0; }\n}\n\n@keyframes blink-ace-animate-smooth {\n from, to { opacity: 1; }\n 45% { opacity: 1; }\n 60% { opacity: 0; }\n 85% { opacity: 0; }\n}\n\n.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {\n position: absolute;\n z-index: 3;\n}\n\n.ace_marker-layer .ace_selection {\n position: absolute;\n z-index: 5;\n}\n\n.ace_marker-layer .ace_bracket {\n position: absolute;\n z-index: 6;\n}\n\n.ace_marker-layer .ace_error_bracket {\n position: absolute;\n border-bottom: 1px solid #DE5555;\n border-radius: 0;\n}\n\n.ace_marker-layer .ace_active-line {\n position: absolute;\n z-index: 2;\n}\n\n.ace_marker-layer .ace_selected-word {\n position: absolute;\n z-index: 4;\n box-sizing: border-box;\n}\n\n.ace_line .ace_fold {\n box-sizing: border-box;\n\n display: inline-block;\n height: 11px;\n margin-top: -2px;\n vertical-align: middle;\n\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");\n background-repeat: no-repeat, repeat-x;\n background-position: center center, top left;\n color: transparent;\n\n border: 1px solid black;\n border-radius: 2px;\n\n cursor: pointer;\n pointer-events: auto;\n}\n\n.ace_dark .ace_fold {\n}\n\n.ace_fold:hover{\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");\n}\n\n.ace_tooltip {\n background-color: #f5f5f5;\n border: 1px solid gray;\n border-radius: 1px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\n color: black;\n max-width: 100%;\n padding: 3px 4px;\n position: fixed;\n z-index: 999999;\n box-sizing: border-box;\n cursor: default;\n white-space: pre-wrap;\n word-wrap: break-word;\n line-height: normal;\n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n pointer-events: none;\n overflow: auto;\n max-width: min(60em, 66vw);\n overscroll-behavior: contain;\n}\n.ace_tooltip pre {\n white-space: pre-wrap;\n}\n\n.ace_tooltip.ace_dark {\n background-color: #636363;\n color: #fff;\n}\n\n.ace_tooltip:focus {\n outline: 1px solid #5E9ED6;\n}\n\n.ace_icon {\n display: inline-block;\n width: 18px;\n vertical-align: top;\n}\n\n.ace_icon_svg {\n display: inline-block;\n width: 12px;\n vertical-align: top;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: 12px;\n -webkit-mask-position: center;\n}\n\n.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {\n padding-right: 13px;\n}\n\n.ace_fold-widget {\n box-sizing: border-box;\n\n margin: 0 -12px 0 1px;\n display: none;\n width: 11px;\n vertical-align: top;\n\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: center;\n\n border-radius: 3px;\n \n border: 1px solid transparent;\n cursor: pointer;\n}\n\n.ace_folding-enabled .ace_fold-widget {\n display: inline-block; \n}\n\n.ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");\n}\n\n.ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");\n}\n\n.ace_fold-widget:hover {\n border: 1px solid rgba(0, 0, 0, 0.3);\n background-color: rgba(255, 255, 255, 0.2);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);\n}\n\n.ace_fold-widget:active {\n border: 1px solid rgba(0, 0, 0, 0.4);\n background-color: rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);\n}\n/**\n * Dark version for fold widgets\n */\n.ace_dark .ace_fold-widget {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");\n}\n.ace_dark .ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget:hover {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n background-color: rgba(255, 255, 255, 0.1);\n}\n.ace_dark .ace_fold-widget:active {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n}\n\n.ace_inline_button {\n border: 1px solid lightgray;\n display: inline-block;\n margin: -1px 8px;\n padding: 0 5px;\n pointer-events: auto;\n cursor: pointer;\n}\n.ace_inline_button:hover {\n border-color: gray;\n background: rgba(200,200,200,0.2);\n display: inline-block;\n pointer-events: auto;\n}\n\n.ace_fold-widget.ace_invalid {\n background-color: #FFB4B4;\n border-color: #DE5555;\n}\n\n.ace_fade-fold-widgets .ace_fold-widget {\n transition: opacity 0.4s ease 0.05s;\n opacity: 0;\n}\n\n.ace_fade-fold-widgets:hover .ace_fold-widget {\n transition: opacity 0.05s ease 0.05s;\n opacity:1;\n}\n\n.ace_underline {\n text-decoration: underline;\n}\n\n.ace_bold {\n font-weight: bold;\n}\n\n.ace_nobold .ace_bold {\n font-weight: normal;\n}\n\n.ace_italic {\n font-style: italic;\n}\n\n\n.ace_error-marker {\n background-color: rgba(255, 0, 0,0.2);\n position: absolute;\n z-index: 9;\n}\n\n.ace_highlight-marker {\n background-color: rgba(255, 255, 0,0.2);\n position: absolute;\n z-index: 8;\n}\n\n.ace_mobile-menu {\n position: absolute;\n line-height: 1.5;\n border-radius: 4px;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n background: white;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #dcdcdc;\n color: black;\n}\n.ace_dark > .ace_mobile-menu {\n background: #333;\n color: #ccc;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #444;\n\n}\n.ace_mobile-button {\n padding: 2px;\n cursor: pointer;\n overflow: hidden;\n}\n.ace_mobile-button:hover {\n background-color: #eee;\n opacity:1;\n}\n.ace_mobile-button:active {\n background-color: #ddd;\n}\n\n.ace_placeholder {\n font-family: arial;\n transform: scale(0.9);\n transform-origin: left;\n white-space: pre;\n opacity: 0.7;\n margin: 0 10px;\n}\n\n.ace_ghost_text {\n opacity: 0.5;\n font-style: italic;\n white-space: pre;\n}\n\n.ace_screenreader-only {\n position:absolute;\n left:-10000px;\n top:auto;\n width:1px;\n height:1px;\n overflow:hidden;\n}'}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(t,_,C){"use strict";var E=t("../lib/dom"),c=t("../lib/oop"),b=t("../lib/event_emitter").EventEmitter,s=function(){function f(d,a){this.canvas=E.createElement("canvas"),this.renderer=a,this.pixelRatio=1,this.maxHeight=a.layerConfig.maxHeight,this.lineHeight=a.layerConfig.lineHeight,this.canvasHeight=d.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=d.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},d.element.appendChild(this.canvas)}return f.prototype.$updateDecorators=function(d){var a=!0===this.renderer.theme.isDark?this.colors.dark:this.colors.light;d&&(this.maxHeight=d.maxHeight,this.lineHeight=d.lineHeight,this.canvasHeight=d.height,this.heightRatio=(d.lastRow+1)*this.lineHeightR.priority?1:0});for(var v=this.renderer.session.$foldData,y=0;ythis.canvasHeight&&(T=this.canvasHeight-this.halfMinDecorationHeight),I=Math.round(T-this.halfMinDecorationHeight),D=Math.round(T+this.halfMinDecorationHeight)}r.fillStyle=a[h[y].type]||null,r.fillRect(0,k,this.canvasWidth,D-I)}}var U=this.renderer.session.selection.getCursor();U&&(w=this.compensateFoldRows(U.row,v),k=Math.round((U.row-w)*this.lineHeight*this.heightRatio),r.fillStyle="rgba(0, 0, 0, 0.5)",r.fillRect(0,k,this.canvasWidth,2))},f.prototype.compensateFoldRows=function(d,a){var l=0;if(a&&a.length>0)for(var r=0;ra[r].start.row&&d=a[r].end.row&&(l+=a[r].end.row-a[r].start.row);return l},f}();c.implement(s.prototype,b),_.Decorator=s}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],function(t,_,C){"use strict";var E=t("./lib/oop"),c=t("./lib/dom"),b=t("./lib/lang"),s=t("./config"),f=t("./layer/gutter").Gutter,d=t("./layer/marker").Marker,a=t("./layer/text").Text,l=t("./layer/cursor").Cursor,r=t("./scrollbar").HScrollBar,u=t("./scrollbar").VScrollBar,h=t("./scrollbar_custom").HScrollBar,p=t("./scrollbar_custom").VScrollBar,v=t("./renderloop").RenderLoop,y=t("./layer/font_metrics").FontMetrics,M=t("./lib/event_emitter").EventEmitter,w=t("./css/editor-css"),k=t("./layer/decorators").Decorator,I=t("./lib/useragent");c.importCssString(w,"ace_editor.css",!1);var D=function(){function O(T,U){var S=this;this.container=T||c.createElement("div"),c.addCssClass(this.container,"ace_editor"),c.HI_DPI&&c.addCssClass(this.container,"ace_hidpi"),this.setTheme(U),null==s.get("useStrictCSP")&&s.set("useStrictCSP",!1),this.$gutter=c.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=c.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=c.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new f(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new d(this.content);var R=this.$textLayer=new a(this.content);this.canvas=R.element,this.$markerFront=new d(this.content),this.$cursorLayer=new l(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new u(this.container,this),this.scrollBarH=new r(this.container,this),this.scrollBarV.on("scroll",function(N){S.$scrollAnimation||S.session.setScrollTop(N.data-S.scrollMargin.top)}),this.scrollBarH.on("scroll",function(N){S.$scrollAnimation||S.session.setScrollLeft(N.data-S.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new y(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(N){S.updateCharacterSize(),S.onResize(!0,S.gutterWidth,S.$size.width,S.$size.height),S._signal("changeCharacterSize",N)}),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=!I.isIOS,this.$loop=new v(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),s.resetOptions(this),s._signal("renderer",this)}return O.prototype.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(),c.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},O.prototype.setSession=function(T){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=T,T&&this.scrollMargin.top&&T.getScrollTop()<=0&&T.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(T),this.$markerBack.setSession(T),this.$markerFront.setSession(T),this.$gutterLayer.setSession(T),this.$textLayer.setSession(T),T&&(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))},O.prototype.updateLines=function(T,U,S){if(void 0===U&&(U=1/0),this.$changedLines?(this.$changedLines.firstRow>T&&(this.$changedLines.firstRow=T),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},O.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},O.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},O.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},O.prototype.updateFull=function(T){T?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},O.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},O.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},O.prototype.onResize=function(T,U,S,R){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=T?1:0;var N=this.container;R||(R=N.clientHeight||N.scrollHeight),S||(S=N.clientWidth||N.scrollWidth);var A=this.$updateCachedSize(T,U,S,R);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!S&&!R)return this.resizing=0;T&&(this.$gutterLayer.$padding=null),T?this.$renderChanges(A|this.$changes,!0):this.$loop.schedule(A|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},O.prototype.$updateCachedSize=function(T,U,S,R){var N=0,A=this.$size,F={width:A.width,height:A.height,scrollerHeight:A.scrollerHeight,scrollerWidth:A.scrollerWidth};if((R-=this.$extraHeight||0)&&(T||A.height!=R)&&(A.height=R,N|=this.CHANGE_SIZE,A.scrollerHeight=A.height,this.$horizScroll&&(A.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(A.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",N|=this.CHANGE_SCROLL),S&&(T||A.width!=S)){N|=this.CHANGE_SIZE,A.width=S,null==U&&(U=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=U,c.setStyle(this.scrollBarH.element.style,"left",U+"px"),c.setStyle(this.scroller.style,"left",U+this.margin.left+"px"),A.scrollerWidth=Math.max(0,S-U-this.scrollBarV.getWidth()-this.margin.h),c.setStyle(this.$gutter.style,"left",this.margin.left+"px");var Y=this.scrollBarV.getWidth()+"px";c.setStyle(this.scrollBarH.element.style,"right",Y),c.setStyle(this.scroller.style,"right",Y),c.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(A.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||T)&&(N|=this.CHANGE_FULL)}return A.$dirty=!S||!R,N&&this._signal("resize",F),N},O.prototype.onGutterResize=function(T){var U=this.$showGutter?T:0;U!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,U,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},O.prototype.adjustWrapLimit=function(){var U=Math.floor((this.$size.scrollerWidth-2*this.$padding)/this.characterWidth);return this.session.adjustWrapLimit(U,this.$showPrintMargin&&this.$printMarginColumn)},O.prototype.setAnimatedScroll=function(T){this.setOption("animatedScroll",T)},O.prototype.getAnimatedScroll=function(){return this.$animatedScroll},O.prototype.setShowInvisibles=function(T){this.setOption("showInvisibles",T),this.session.$bidiHandler.setShowInvisibles(T)},O.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},O.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},O.prototype.setDisplayIndentGuides=function(T){this.setOption("displayIndentGuides",T)},O.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},O.prototype.setHighlightIndentGuides=function(T){this.setOption("highlightIndentGuides",T)},O.prototype.setShowPrintMargin=function(T){this.setOption("showPrintMargin",T)},O.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},O.prototype.setPrintMarginColumn=function(T){this.setOption("printMarginColumn",T)},O.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},O.prototype.getShowGutter=function(){return this.getOption("showGutter")},O.prototype.setShowGutter=function(T){return this.setOption("showGutter",T)},O.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},O.prototype.setFadeFoldWidgets=function(T){this.setOption("fadeFoldWidgets",T)},O.prototype.setHighlightGutterLine=function(T){this.setOption("highlightGutterLine",T)},O.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},O.prototype.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var T=c.createElement("div");T.className="ace_layer ace_print-margin-layer",this.$printMarginEl=c.createElement("div"),this.$printMarginEl.className="ace_print-margin",T.appendChild(this.$printMarginEl),this.content.insertBefore(T,this.content.firstChild)}var U=this.$printMarginEl.style;U.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",U.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},O.prototype.getContainerElement=function(){return this.container},O.prototype.getMouseEventTarget=function(){return this.scroller},O.prototype.getTextAreaContainer=function(){return this.container},O.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var T=this.textarea.style,U=this.$composition;if(!this.$keepTextAreaAtCursor&&!U)return void c.translate(this.textarea,-100,0);var S=this.$cursorLayer.$pixelPos;if(S){U&&U.markerRange&&(S=this.$cursorLayer.getPixelPosition(U.markerRange.start,!0));var R=this.layerConfig,N=S.top,A=S.left,F=U&&U.useTextareaForIME||I.isMobile?this.lineHeight:1;if((N-=R.offset)<0||N>R.height-F)return void c.translate(this.textarea,0,0);var Y=1,ee=this.$size.height-F;U?U.useTextareaForIME?Y=this.characterWidth*this.session.$getStringScreenWidth(this.textarea.value)[0]:N+=this.lineHeight+2:N+=this.lineHeight,(A-=this.scrollLeft)>this.$size.scrollerWidth-Y&&(A=this.$size.scrollerWidth-Y),A+=this.gutterWidth+this.margin.left,c.setStyle(T,"height",F+"px"),c.setStyle(T,"width",Y+"px"),c.translate(this.textarea,Math.min(A,this.$size.scrollerWidth-Y),Math.min(N,ee))}}},O.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},O.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},O.prototype.getLastFullyVisibleRow=function(){var T=this.layerConfig,U=T.lastRow;return this.session.documentToScreenRow(U,0)*T.lineHeight-this.session.getScrollTop()>T.height-T.lineHeight?U-1:U},O.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},O.prototype.setPadding=function(T){this.$padding=T,this.$textLayer.setPadding(T),this.$cursorLayer.setPadding(T),this.$markerFront.setPadding(T),this.$markerBack.setPadding(T),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},O.prototype.setScrollMargin=function(T,U,S,R){var N=this.scrollMargin;N.top=0|T,N.bottom=0|U,N.right=0|R,N.left=0|S,N.v=N.top+N.bottom,N.h=N.left+N.right,N.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-N.top),this.updateFull()},O.prototype.setMargin=function(T,U,S,R){var N=this.margin;N.top=0|T,N.bottom=0|U,N.right=0|R,N.left=0|S,N.v=N.top+N.bottom,N.h=N.left+N.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},O.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},O.prototype.setHScrollBarAlwaysVisible=function(T){this.setOption("hScrollBarAlwaysVisible",T)},O.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},O.prototype.setVScrollBarAlwaysVisible=function(T){this.setOption("vScrollBarAlwaysVisible",T)},O.prototype.$updateScrollBarV=function(){var T=this.layerConfig.maxHeight,U=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&this.scrollTop>(T-=(U-this.lineHeight)*this.$scrollPastEnd)-U&&(T=this.scrollTop+U,this.scrollBarV.scrollTop=null),this.scrollBarV.setScrollHeight(T+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},O.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},O.prototype.freeze=function(){this.$frozen=!0},O.prototype.unfreeze=function(){this.$frozen=!1},O.prototype.$renderChanges=function(T,U){if(this.$changes&&(T|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(T||U)){if(this.$size.$dirty)return this.$changes|=T,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",T),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var S=this.layerConfig;if(T&this.CHANGE_FULL||T&this.CHANGE_SIZE||T&this.CHANGE_TEXT||T&this.CHANGE_LINES||T&this.CHANGE_SCROLL||T&this.CHANGE_H_SCROLL){if(T|=this.$computeLayerConfig()|this.$loop.clear(),S.firstRow!=this.layerConfig.firstRow&&S.firstRowScreen==this.layerConfig.firstRowScreen){var R=this.scrollTop+(S.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;R>0&&(this.scrollTop=R,T|=this.CHANGE_SCROLL,T|=this.$computeLayerConfig()|this.$loop.clear())}S=this.layerConfig,this.$updateScrollBarV(),T&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),c.translate(this.content,-this.scrollLeft,-S.offset);var A=S.minHeight+"px";c.setStyle(this.content.style,"width",S.width+2*this.$padding+"px"),c.setStyle(this.content.style,"height",A)}return T&this.CHANGE_H_SCROLL&&(c.translate(this.content,-this.scrollLeft,-S.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),T&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(S),this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S),this.$markerBack.update(S),this.$markerFront.update(S),this.$cursorLayer.update(S),this.$moveTextAreaToCursor(),void this._signal("afterRender",T)):T&this.CHANGE_SCROLL?(this.$changedLines=null,T&this.CHANGE_TEXT||T&this.CHANGE_LINES?this.$textLayer.update(S):this.$textLayer.scrollLines(S),this.$showGutter&&(T&this.CHANGE_GUTTER||T&this.CHANGE_LINES?this.$gutterLayer.update(S):this.$gutterLayer.scrollLines(S)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S),this.$markerBack.update(S),this.$markerFront.update(S),this.$cursorLayer.update(S),this.$moveTextAreaToCursor(),void this._signal("afterRender",T)):(T&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(S),this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):T&this.CHANGE_LINES?((this.$updateLines()||T&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):T&this.CHANGE_TEXT||T&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):T&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)),T&this.CHANGE_CURSOR&&(this.$cursorLayer.update(S),this.$moveTextAreaToCursor()),T&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(S),T&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(S),void this._signal("afterRender",T))}this.$changes|=T},O.prototype.$autosize=function(){var T=this.session.getScreenLength()*this.lineHeight,U=this.$maxLines*this.lineHeight,S=Math.min(U,Math.max((this.$minLines||1)*this.lineHeight,T))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(S+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&S>this.$maxPixelHeight&&(S=this.$maxPixelHeight);var N=!(S<=2*this.lineHeight)&&T>U;if(S!=this.desiredHeight||this.$size.height!=this.desiredHeight||N!=this.$vScroll){N!=this.$vScroll&&(this.$vScroll=N,this.scrollBarV.setVisible(N));var A=this.container.clientWidth;this.container.style.height=S+"px",this.$updateCachedSize(!0,this.$gutterWidth,A,S),this.desiredHeight=S,this._signal("autosize")}},O.prototype.$computeLayerConfig=function(){var T=this.session,U=this.$size,S=U.height<=2*this.lineHeight,N=this.session.getScreenLength()*this.lineHeight,A=this.$getLongestLine(),F=!S&&(this.$hScrollBarAlwaysVisible||U.scrollerWidth-A-2*this.$padding<0),Y=this.$horizScroll!==F;Y&&(this.$horizScroll=F,this.scrollBarH.setVisible(F));var ee=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var ie=U.scrollerHeight+this.lineHeight,$=!this.$maxLines&&this.$scrollPastEnd?(U.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;N+=$;var j=this.scrollMargin;this.session.setScrollTop(Math.max(-j.top,Math.min(this.scrollTop,N-U.scrollerHeight+j.bottom))),this.session.setScrollLeft(Math.max(-j.left,Math.min(this.scrollLeft,A+2*this.$padding-U.scrollerWidth+j.right)));var G=!S&&(this.$vScrollBarAlwaysVisible||U.scrollerHeight-N+$<0||this.scrollTop>j.top),V=ee!==G;V&&(this.$vScroll=G,this.scrollBarV.setVisible(G));var be,Ze,W=this.scrollTop%this.lineHeight,K=Math.ceil(ie/this.lineHeight)-1,ce=Math.max(0,Math.round((this.scrollTop-W)/this.lineHeight)),ue=ce+K,pt=this.lineHeight;ce=T.screenToDocumentRow(ce,0);var ct=T.getFoldLine(ce);ct&&(ce=ct.start.row),be=T.documentToScreenRow(ce,0),Ze=T.getRowLength(ce)*pt,ue=Math.min(T.screenToDocumentRow(ue,0),T.getLength()-1),ie=U.scrollerHeight+T.getRowLength(ue)*pt+Ze,W=this.scrollTop-be*pt;var Ct=0;return(this.layerConfig.width!=A||Y)&&(Ct=this.CHANGE_H_SCROLL),(Y||V)&&(Ct|=this.$updateCachedSize(!0,this.gutterWidth,U.width,U.height),this._signal("scrollbarVisibilityChanged"),V&&(A=this.$getLongestLine())),this.layerConfig={width:A,padding:this.$padding,firstRow:ce,firstRowScreen:be,lastRow:ue,lineHeight:pt,characterWidth:this.characterWidth,minHeight:ie,maxHeight:N,offset:W,gutterOffset:pt?Math.max(0,Math.ceil((W+U.height-U.scrollerHeight)/pt)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(A-this.$padding),Ct},O.prototype.$updateLines=function(){if(this.$changedLines){var T=this.$changedLines.firstRow,U=this.$changedLines.lastRow;this.$changedLines=null;var S=this.layerConfig;if(!(T>S.lastRow+1||Uthis.$textLayer.MAX_LINE_LENGTH&&(T=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(T*this.characterWidth))},O.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},O.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},O.prototype.addGutterDecoration=function(T,U){this.$gutterLayer.addGutterDecoration(T,U)},O.prototype.removeGutterDecoration=function(T,U){this.$gutterLayer.removeGutterDecoration(T,U)},O.prototype.updateBreakpoints=function(T){this._rows=T,this.$loop.schedule(this.CHANGE_GUTTER)},O.prototype.setAnnotations=function(T){this.$gutterLayer.setAnnotations(T),this.$loop.schedule(this.CHANGE_GUTTER)},O.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},O.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},O.prototype.showCursor=function(){this.$cursorLayer.showCursor()},O.prototype.scrollSelectionIntoView=function(T,U,S){this.scrollCursorIntoView(T,S),this.scrollCursorIntoView(U,S)},O.prototype.scrollCursorIntoView=function(T,U,S){if(0!==this.$size.scrollerHeight){var R=this.$cursorLayer.getPixelPosition(T),N=R.left,A=R.top,F=S&&S.top||0,Y=S&&S.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var ee=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;ee+F>A?(U&&ee+F>A+this.lineHeight&&(A-=U*this.$size.scrollerHeight),0===A&&(A=-this.scrollMargin.top),this.session.setScrollTop(A)):ee+this.$size.scrollerHeight-Y=1-this.scrollMargin.top||U>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||T<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||T>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},O.prototype.pixelToScreenCoordinates=function(T,U){var S;if(this.$hasCssTransforms){S={top:0,left:0};var R=this.$fontMetrics.transformCoordinates([T,U]);T=R[1]-this.gutterWidth-this.margin.left,U=R[0]}else S=this.scroller.getBoundingClientRect();var N=T+this.scrollLeft-S.left-this.$padding,A=N/this.characterWidth,F=Math.floor((U+this.scrollTop-S.top)/this.lineHeight),Y=this.$blockCursor?Math.floor(A):Math.round(A);return{row:F,column:Y,side:A-Y>0?1:-1,offsetX:N}},O.prototype.screenToTextCoordinates=function(T,U){var S;if(this.$hasCssTransforms){S={top:0,left:0};var R=this.$fontMetrics.transformCoordinates([T,U]);T=R[1]-this.gutterWidth-this.margin.left,U=R[0]}else S=this.scroller.getBoundingClientRect();var N=T+this.scrollLeft-S.left-this.$padding,A=N/this.characterWidth,F=this.$blockCursor?Math.floor(A):Math.round(A),Y=Math.floor((U+this.scrollTop-S.top)/this.lineHeight);return this.session.screenToDocumentPosition(Y,Math.max(F,0),N)},O.prototype.textToScreenCoordinates=function(T,U){var S=this.scroller.getBoundingClientRect(),R=this.session.documentToScreenPosition(T,U),N=this.$padding+(this.session.$bidiHandler.isBidiRow(R.row,T)?this.session.$bidiHandler.getPosLeft(R.column):Math.round(R.column*this.characterWidth));return{pageX:S.left+N-this.scrollLeft,pageY:S.top+R.row*this.lineHeight-this.scrollTop}},O.prototype.visualizeFocus=function(){c.addCssClass(this.container,"ace_focus")},O.prototype.visualizeBlur=function(){c.removeCssClass(this.container,"ace_focus")},O.prototype.showComposition=function(T){this.$composition=T,T.cssText||(T.cssText=this.textarea.style.cssText),null==T.useTextareaForIME&&(T.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(c.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):T.markerId=this.session.addMarker(T.markerRange,"ace_composition_marker","text")},O.prototype.setCompositionText=function(T){var U=this.session.selection.cursor;this.addToken(T,"composition_placeholder",U.row,U.column),this.$moveTextAreaToCursor()},O.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),c.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var T=this.session.selection.cursor;this.removeExtraToken(T.row,T.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},O.prototype.setGhostText=function(T,U){var S=this.session.selection.cursor,R=U||{row:S.row,column:S.column};this.removeGhostText();var N=T.split("\n");if(this.addToken(N[0],"ghost_text",R.row,R.column),this.$ghostText={text:T,position:{row:R.row,column:R.column}},N.length>1){this.$ghostTextWidget={text:N.slice(1).join("\n"),row:R.row,column:R.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var A=this.$cursorLayer.getPixelPosition(R,!0),Y=this.container.getBoundingClientRect().height,ee=N.length*this.lineHeight;if(ee1||Math.abs(T.$size.height-R)>1?T.$resizeTimer.delay():T.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},O}();D.prototype.CHANGE_CURSOR=1,D.prototype.CHANGE_MARKER=2,D.prototype.CHANGE_GUTTER=4,D.prototype.CHANGE_SCROLL=8,D.prototype.CHANGE_LINES=16,D.prototype.CHANGE_TEXT=32,D.prototype.CHANGE_SIZE=64,D.prototype.CHANGE_MARKER_BACK=128,D.prototype.CHANGE_MARKER_FRONT=256,D.prototype.CHANGE_FULL=512,D.prototype.CHANGE_H_SCROLL=1024,D.prototype.$changes=0,D.prototype.$padding=null,D.prototype.$frozen=!1,D.prototype.STEPS=8,E.implement(D.prototype,M),s.defineOptions(D.prototype,"renderer",{useResizeObserver:{set:function(O){!O&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):O&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(O){this.$textLayer.setShowInvisibles(O)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(O){"number"==typeof O&&(this.$printMarginColumn=O),this.$showPrintMargin=!!O,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(O){this.$gutter.style.display=O?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(O){this.$gutterLayer.$useSvgGutterIcons=O},initialValue:!1},showFoldedAnnotations:{set:function(O){this.$gutterLayer.$showFoldedAnnotations=O},initialValue:!1},fadeFoldWidgets:{set:function(O){c.setCssClass(this.$gutter,"ace_fade-fold-widgets",O)},initialValue:!1},showFoldWidgets:{set:function(O){this.$gutterLayer.setShowFoldWidgets(O),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(O){this.$textLayer.setDisplayIndentGuides(O)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(O){1==this.$textLayer.setHighlightIndentGuides(O)?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(O){this.$gutterLayer.setHighlightGutterLine(O),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(O){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(O){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(O){"number"==typeof O&&(O+="px"),this.container.style.fontSize=O,this.updateFontSize()},initialValue:12},fontFamily:{set:function(O){this.container.style.fontFamily=O,this.updateFontSize()}},maxLines:{set:function(O){this.updateFull()}},minLines:{set:function(O){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(O){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(O){this.$scrollPastEnd!=(O=+O||0)&&(this.$scrollPastEnd=O,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(O){this.$gutterLayer.$fixedWidth=!!O,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(O){this.$updateCustomScrollbar(O)},initialValue:!1},theme:{set:function(O){this.setTheme(O)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!I.isMobile&&!I.isIE}}),_.VirtualRenderer=D}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(t,_,C){"use strict";var E=t("../lib/oop"),c=t("../lib/net"),b=t("../lib/event_emitter").EventEmitter,s=t("../config");function d(r){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(s.get("loadWorkerFromBlob")){var u=function f(r){var u="importScripts('"+c.qualifyURL(r)+"');";try{return new Blob([u],{type:"application/javascript"})}catch{var p=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return p.append(u),p.getBlob("application/javascript")}}(r),p=(window.URL||window.webkitURL).createObjectURL(u);return new Worker(p)}return new Worker(r)}var a=function(r){r.postMessage||(r=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=r,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){E.implement(this,b),this.$createWorkerFromOldConfig=function(r,u,h,p,v){if(t.nameToUrl&&!t.toUrl&&(t.toUrl=t.nameToUrl),s.get("packaged")||!t.toUrl)p=p||s.moduleUrl(u,"worker");else{var y=this.$normalizePath;p=p||y(t.toUrl("ace/worker/worker.js",null,"_"));var M={};r.forEach(function(w){M[w]=y(t.toUrl(w,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=d(p),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:M,module:u,classname:h}),this.$worker},this.onMessage=function(r){var u=r.data;switch(u.type){case"event":this._signal(u.name,{data:u.data});break;case"call":var h=this.callbacks[u.id];h&&(h(u.data),delete this.callbacks[u.id]);break;case"error":this.reportError(u.data);break;case"log":window.console&&console.log&&console.log.apply(console,u.data)}},this.reportError=function(r){window.console&&console.error&&console.error(r)},this.$normalizePath=function(r){return c.qualifyURL(r)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(r){r.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(r,u){this.$worker.postMessage({command:r,args:u})},this.call=function(r,u,h){if(h){var p=this.callbackId++;this.callbacks[p]=h,u.push(p)}this.send(r,u)},this.emit=function(r,u){try{u.data&&u.data.err&&(u.data.err={message:u.data.err.message,stack:u.data.err.stack,code:u.data.err.code}),this.$worker&&this.$worker.postMessage({event:r,data:{data:u.data}})}catch(h){console.error(h.stack)}},this.attachToDocument=function(r){this.$doc&&this.terminate(),this.$doc=r,this.call("setValue",[r.getValue()]),r.on("change",this.changeListener,!0)},this.changeListener=function(r){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),this.deltaQueue.push(r.start,"insert"==r.action?r.lines:r.end)},this.$sendDeltaQueue=function(){var r=this.deltaQueue;r&&(this.deltaQueue=null,r.length>50&&r.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:r}))}}).call(a.prototype),_.UIWorkerClient=function(r,u,h){var p=null,v=!1,y=Object.create(b),M=[],w=new a({messageBuffer:M,terminate:function(){},postMessage:function(I){M.push(I),p&&(v?setTimeout(k):k())}});w.setEmitSync=function(I){v=I};var k=function(){var I=M.shift();I.command?p[I.command].apply(p,I.args):I.event&&y._signal(I.event,I.data)};return y.postMessage=function(I){w.onMessage({data:I})},y.callback=function(I,D){this.postMessage({type:"call",id:D,data:I})},y.emit=function(I,D){this.postMessage({type:"event",name:I,data:D})},s.loadModule(["worker",u],function(I){for(p=new I[h](y);M.length;)k()}),w},_.WorkerClient=a,_.createWorker=d}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(t,_,C){"use strict";var E=t("./range").Range,c=t("./lib/event_emitter").EventEmitter,b=t("./lib/oop"),s=function(){function f(d,a,l,r,u,h){var p=this;this.length=a,this.session=d,this.doc=d.getDocument(),this.mainClass=u,this.othersClass=h,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=r,this.$onCursorChange=function(){setTimeout(function(){p.onCursorChange()})},this.$pos=l;var v=d.getUndoManager().$undoStack||d.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),d.selection.on("changeCursor",this.$onCursorChange)}return f.prototype.setup=function(){var d=this,a=this.doc,l=this.session;this.selectionBefore=l.selection.toJSON(),l.selection.inMultiSelectMode&&l.selection.toSingleRange(),this.pos=a.createAnchor(this.$pos.row,this.$pos.column);var r=this.pos;r.$insertRight=!0,r.detach(),r.markerId=l.addMarker(new E(r.row,r.column,r.row,r.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(u){var h=a.createAnchor(u.row,u.column);h.$insertRight=!0,h.detach(),d.others.push(h)}),l.setUndoSelect(!1)},f.prototype.showOtherMarkers=function(){if(!this.othersActive){var d=this.session,a=this;this.othersActive=!0,this.others.forEach(function(l){l.markerId=d.addMarker(new E(l.row,l.column,l.row,l.column+a.length),a.othersClass,null,!1)})}},f.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var d=0;d=this.pos.column&&a.start.column<=this.pos.column+this.length+1,u=a.start.column-this.pos.column;if(this.updateAnchors(d),r&&(this.length+=l),r&&!this.session.$fromUndo)if("insert"===d.action)for(var h=this.others.length-1;h>=0;h--)this.doc.insertMergedLines(v={row:(p=this.others[h]).row,column:p.column+u},d.lines);else if("remove"===d.action)for(h=this.others.length-1;h>=0;h--){var p,v;this.doc.remove(new E((v={row:(p=this.others[h]).row,column:p.column+u}).row,v.column,v.row,v.column-l))}this.$updating=!1,this.updateMarkers()}},f.prototype.updateAnchors=function(d){this.pos.onChange(d);for(var a=this.others.length;a--;)this.others[a].onChange(d);this.updateMarkers()},f.prototype.updateMarkers=function(){if(!this.$updating){var d=this,a=this.session,l=function(u,h){a.removeMarker(u.markerId),u.markerId=a.addMarker(new E(u.row,u.column,u.row,u.column+d.length),h,null,!1)};l(this.pos,this.mainClass);for(var r=this.others.length;r--;)l(this.others[r],this.othersClass)}},f.prototype.onCursorChange=function(d){if(!this.$updating&&this.session){var a=this.session.selection.getCursor();a.row===this.pos.row&&a.column>=this.pos.column&&a.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",d)):(this.hideOtherMarkers(),this._emit("cursorLeave",d))}},f.prototype.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},f.prototype.cancel=function(){if(-1!==this.$undoStackDepth){for(var d=this.session.getUndoManager(),a=(d.$undoStack||d.$undostack).length-this.$undoStackDepth,l=0;l1?c.multiSelect.joinSelections():c.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(c){c.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(c){c.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(c){c.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],_.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(c){c.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(c){return c&&c.inMultiSelectMode}}];var E=t("../keyboard/hash_handler").HashHandler;_.keyboardHandler=new E(_.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(t,_,C){var E=t("./range_list").RangeList,c=t("./range").Range,b=t("./selection").Selection,s=t("./mouse/multi_select_handler").onMouseDown,f=t("./lib/event"),d=t("./lib/lang"),a=t("./commands/multi_select_commands");_.commands=a.defaultCommands.concat(a.multiSelectCommands);var r=new(0,t("./search").Search),h=t("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(h.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(w,k){if(w){if(!this.inMultiSelectMode&&0===this.rangeCount){var I=this.toOrientedRange();if(this.rangeList.add(I),this.rangeList.add(w),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),k||this.fromOrientedRange(w);this.rangeList.removeAll(),this.rangeList.add(I),this.$onAddRange(I)}w.cursor||(w.cursor=w.end);var D=this.rangeList.add(w);return this.$onAddRange(w),D.length&&this.$onRemoveRange(D),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),k||this.fromOrientedRange(w)}},this.toSingleRange=function(w){w=w||this.ranges[0];var k=this.rangeList.removeAll();k.length&&this.$onRemoveRange(k),w&&this.fromOrientedRange(w)},this.substractPoint=function(w){var k=this.rangeList.substractPoint(w);if(k)return this.$onRemoveRange(k),k[0]},this.mergeOverlappingRanges=function(){var w=this.rangeList.merge();w.length&&this.$onRemoveRange(w)},this.$onAddRange=function(w){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(w),this._signal("addRange",{range:w})},this.$onRemoveRange=function(w){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var k=this.rangeList.ranges.pop();w.push(k),this.rangeCount=0}for(var I=w.length;I--;){var D=this.ranges.indexOf(w[I]);this.ranges.splice(D,1)}this._signal("removeRange",{ranges:w}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(k=k||this.ranges[0])&&!k.isEqual(this.getRange())&&this.fromOrientedRange(k)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new E,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var w=this.ranges.length?this.ranges:[this.getRange()],k=[],I=0;I1){var w=this.rangeList.ranges,k=w[w.length-1],I=c.fromPoints(w[0].start,k.end);this.toSingleRange(),this.setSelectionRange(I,k.cursor==k.start)}else{var D=this.session.documentToScreenPosition(this.cursor),O=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(D,O).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(w,k,I){var D=[],O=w.column0;)$--;if($>0)for(var j=0;D[j].isEmpty();)j++;for(var G=$;G>=j;G--)D[G].isEmpty()&&D.splice(G,1)}return D}}.call(b.prototype);var p=t("./editor").Editor;function v(w,k){return w.row==k.row&&w.column==k.column}function y(w){w.$multiselectOnSessionChange||(w.$onAddRange=w.$onAddRange.bind(w),w.$onRemoveRange=w.$onRemoveRange.bind(w),w.$onMultiSelect=w.$onMultiSelect.bind(w),w.$onSingleSelect=w.$onSingleSelect.bind(w),w.$multiselectOnSessionChange=_.onSessionChange.bind(w),w.$checkMultiselectChange=w.$checkMultiselectChange.bind(w),w.$multiselectOnSessionChange(w),w.on("changeSession",w.$multiselectOnSessionChange),w.on("mousedown",s),w.commands.addCommands(a.defaultCommands),function M(w){if(w.textInput){var k=w.textInput.getElement(),I=!1;f.addListener(k,"keydown",function(O){w.$blockSelectEnabled&&18==O.keyCode&&!(O.ctrlKey||O.shiftKey||O.metaKey)?I||(w.renderer.setMouseCursor("crosshair"),I=!0):I&&D()},w),f.addListener(k,"keyup",D,w),f.addListener(k,"blur",D,w)}function D(O){I&&(w.renderer.setMouseCursor(""),I=!1)}}(w))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(w){w.cursor||(w.cursor=w.end);var k=this.getSelectionStyle();return w.marker=this.session.addMarker(w,"ace_selection",k),this.session.$selectionMarkers.push(w),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,w},this.removeSelectionMarker=function(w){if(w.marker){this.session.removeMarker(w.marker);var k=this.session.$selectionMarkers.indexOf(w);-1!=k&&this.session.$selectionMarkers.splice(k,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(w){for(var k=this.session.$selectionMarkers,I=w.length;I--;){var D=w[I];if(D.marker){this.session.removeMarker(D.marker);var O=k.indexOf(D);-1!=O&&k.splice(O,1)}}this.session.selectionMarkerCount=k.length},this.$onAddRange=function(w){this.addSelectionMarker(w.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(w){this.removeSelectionMarkers(w.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(w){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(a.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(w){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(a.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(w){var k=w.command,I=w.editor;if(I.multiSelect){if(k.multiSelectAction)"forEach"==k.multiSelectAction?D=I.forEachSelection(k,w.args):"forEachLine"==k.multiSelectAction?D=I.forEachSelection(k,w.args,!0):"single"==k.multiSelectAction?(I.exitMultiSelectMode(),D=k.exec(I,w.args||{})):D=k.multiSelectAction(I,w.args||{});else{var D=k.exec(I,w.args||{});I.multiSelect.addRange(I.multiSelect.toOrientedRange()),I.multiSelect.mergeOverlappingRanges()}return D}},this.forEachSelection=function(w,k,I){if(!this.inVirtualSelectionMode){var N,O=1==I||I&&I.$byLines,T=this.session,U=this.selection,R=(I&&I.keepOrder?U:U.rangeList).ranges;if(!R.length)return w.exec?w.exec(this,k||{}):w(this,k||{});var A=U._eventRegistry;U._eventRegistry={};var F=new b(T);this.inVirtualSelectionMode=!0;for(var Y=R.length;Y--;){if(O)for(;Y>0&&R[Y].start.row==R[Y-1].end.row;)Y--;F.fromOrientedRange(R[Y]),F.index=Y,this.selection=T.selection=F;var ee=w.exec?w.exec(this,k||{}):w(this,k||{});!N&&void 0!==ee&&(N=ee),F.toOrientedRange(R[Y])}F.detach(),this.selection=T.selection=U,this.inVirtualSelectionMode=!1,U._eventRegistry=A,U.mergeOverlappingRanges(),U.ranges[0]&&U.fromOrientedRange(U.ranges[0]);var ie=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),ie&&ie.from==ie.to&&this.renderer.animateScrolling(ie.from),N}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var w="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var k=this.multiSelect.rangeList.ranges,I=[],D=0;DY&&(Y=j.column),VW?w.insert(G,d.stringRepeat(" ",V-W)):w.remove(new c(G.row,G.column,G.row,G.column-V+W)),$.start.column=$.end.column=Y,$.start.row=$.end.row=G.row,$.cursor=$.end}),k.fromOrientedRange(I[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var T=this.selection.getRange(),U=T.start.row,S=T.end.row,R=U==S;if(R){var A,N=this.session.getLength();do{A=this.session.getLine(S)}while(/[=:]/.test(A)&&++S0);U<0&&(U=0),S>=N&&(S=N-1)}var F=this.session.removeFullLines(U,S);F=this.$reAlignText(F,R),this.session.insert({row:U,column:0},F.join("\n")+"\n"),R||(T.start.column=0,T.end.column=F[F.length-1].length),this.selection.setRange(T)}},this.$reAlignText=function(w,k){var O,T,U,I=!0,D=!0;return w.map(function(F){var Y=F.match(/(\s*)(.*?)(\s*)([=:].*)/);return Y?null==O?(O=Y[1].length,T=Y[2].length,U=Y[3].length,Y):(O+T+U!=Y[1].length+Y[2].length+Y[3].length&&(D=!1),O!=Y[1].length&&(I=!1),O>Y[1].length&&(O=Y[1].length),TY[3].length&&(U=Y[3].length),Y):[F]}).map(k?R:I?D?function N(F){return F[2]?S(O+T-F[2].length)+F[2]+S(U)+F[4].replace(/^([=:])\s+/,"$1 "):F[0]}:R:function A(F){return F[2]?S(O)+F[2]+S(U)+F[4].replace(/^([=:])\s+/,"$1 "):F[0]});function S(F){return d.stringRepeat(" ",F)}function R(F){return F[2]?S(O)+F[2]+S(T-F[2].length+U)+F[4].replace(/^([=:])\s+/,"$1 "):F[0]}}}).call(p.prototype),_.onSessionChange=function(w){var k=w.session;k&&!k.multiSelect&&(k.$selectionMarkers=[],k.selection.$initRangeList(),k.multiSelect=k.selection),this.multiSelect=k&&k.multiSelect;var I=w.oldSession;I&&(I.multiSelect.off("addRange",this.$onAddRange),I.multiSelect.off("removeRange",this.$onRemoveRange),I.multiSelect.off("multiSelect",this.$onMultiSelect),I.multiSelect.off("singleSelect",this.$onSingleSelect),I.multiSelect.lead.off("change",this.$checkMultiselectChange),I.multiSelect.anchor.off("change",this.$checkMultiselectChange)),k&&(k.multiSelect.on("addRange",this.$onAddRange),k.multiSelect.on("removeRange",this.$onRemoveRange),k.multiSelect.on("multiSelect",this.$onMultiSelect),k.multiSelect.on("singleSelect",this.$onSingleSelect),k.multiSelect.lead.on("change",this.$checkMultiselectChange),k.multiSelect.anchor.on("change",this.$checkMultiselectChange)),k&&this.inMultiSelectMode!=k.selection.inMultiSelectMode&&(k.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},_.MultiSelect=y,t("./config").defineOptions(p.prototype,"editor",{enableMultiselect:{set:function(w){y(this),w?this.on("mousedown",s):this.off("mousedown",s)},value:!0},enableBlockSelect:{set:function(w){this.$blockSelectEnabled=w},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(t,_,C){"use strict";var E=t("../../range").Range,c=_.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(b,s,f){var d=b.getLine(f);return this.foldingStartMarker.test(d)?"start":"markbeginend"==s&&this.foldingStopMarker&&this.foldingStopMarker.test(d)?"end":""},this.getFoldWidgetRange=function(b,s,f){return null},this.indentationBlock=function(b,s,f){var d=/\S/,a=b.getLine(s),l=a.search(d);if(-1!=l){for(var r=f||a.length,u=b.getLength(),h=s,p=s;++sh){var M=b.getLine(p).length;return new E(h,r,p,M)}}},this.openingBracketBlock=function(b,s,f,d,a){var l={row:f,column:d+1},r=b.$findClosingBracket(s,l,a);if(r){var u=b.foldWidgets[r.row];return null==u&&(u=b.getFoldWidget(r.row)),"start"==u&&r.row>l.row&&(r.row--,r.column=b.getLine(r.row).length),E.fromPoints(l,r)}},this.closingBracketBlock=function(b,s,f,d,a){var l={row:f,column:d},r=b.$findOpeningBracket(s,l);if(r)return r.column++,l.column--,E.fromPoints(r,l)}}).call(c.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(t,_,C){"use strict";var E=t("../line_widgets").LineWidgets,c=t("../lib/dom"),b=t("../range").Range,s=t("../config").nls;_.showErrorMarker=function(a,l){var r=a.session;r.widgetManager||(r.widgetManager=new E(r),r.widgetManager.attach(a));var u=a.getCursorPosition(),h=u.row,p=r.widgetManager.getWidgetsAtRow(h).filter(function(T){return"errorMarker"==T.type})[0];p?p.destroy():h-=l;var y,v=function d(a,l,r){var u=a.getAnnotations().sort(b.comparePoints);if(u.length){var h=function f(a,l,r){for(var u=0,h=a.length-1;u<=h;){var p=u+h>>1,v=r(l,a[p]);if(v>0)u=p+1;else{if(!(v<0))return p;h=p-1}}return-(u+1)}(u,{row:l,column:-1},b.comparePoints);h<0&&(h=-h-1),h>=u.length?h=r>0?0:u.length-1:0===h&&r<0&&(h=u.length-1);var p=u[h];if(p&&r){if(p.row===l){do{p=u[h+=r]}while(p&&p.row===l);if(!p)return u.slice()}var v=[];l=p.row;do{v[r<0?"unshift":"push"](p),p=u[h+=r]}while(p&&p.row==l);return v.length&&v}}}(r,h,l);if(v){var M=v[0];u.column=(M.pos&&"number"!=typeof M.column?M.pos.sc:M.column)||0,u.row=M.row,y=a.renderer.$gutterLayer.$annotations[u.row]}else{if(p)return;y={text:[s("Looks good!")],className:"ace_ok"}}a.session.unfold(u.row),a.selection.moveToPosition(u);var w={row:u.row,fixedWidth:!0,coverGutter:!0,el:c.createElement("div"),type:"errorMarker"},k=w.el.appendChild(c.createElement("div")),I=w.el.appendChild(c.createElement("div"));I.className="error_widget_arrow "+y.className;var D=a.renderer.$cursorLayer.getPixelPosition(u).left;I.style.left=D+a.renderer.gutterWidth-5+"px",w.el.className="error_widget_wrapper",k.className="error_widget "+y.className,k.innerHTML=y.text.join("
"),k.appendChild(c.createElement("div"));var O=function(T,U,S){if(0===U&&("esc"===S||"return"===S))return w.destroy(),{command:"null"}};w.destroy=function(){a.$mouseHandler.isMousePressed||(a.keyBinding.removeKeyboardHandler(O),r.widgetManager.removeLineWidget(w),a.off("changeSelection",w.destroy),a.off("changeSession",w.destroy),a.off("mouseup",w.destroy),a.off("change",w.destroy))},a.keyBinding.addKeyboardHandler(O),a.on("changeSelection",w.destroy),a.on("changeSession",w.destroy),a.on("mouseup",w.destroy),a.on("change",w.destroy),a.session.widgetManager.addLineWidget(w),w.el.onmousedown=a.focus.bind(a),a.renderer.scrollCursorIntoView(null,.5,{bottom:w.el.offsetHeight})},c.importCssString("\n .error_widget_wrapper {\n background: inherit;\n color: inherit;\n border:none\n }\n .error_widget {\n border-top: solid 2px;\n border-bottom: solid 2px;\n margin: 5px 0;\n padding: 10px 40px;\n white-space: pre-wrap;\n }\n .error_widget.ace_error, .error_widget_arrow.ace_error{\n border-color: #ff5a5a\n }\n .error_widget.ace_warning, .error_widget_arrow.ace_warning{\n border-color: #F1D817\n }\n .error_widget.ace_info, .error_widget_arrow.ace_info{\n border-color: #5a5a5a\n }\n .error_widget.ace_ok, .error_widget_arrow.ace_ok{\n border-color: #5aaa5a\n }\n .error_widget_arrow {\n position: absolute;\n border: solid 5px;\n border-top-color: transparent!important;\n border-right-color: transparent!important;\n border-left-color: transparent!important;\n top: -5px;\n }\n","error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","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","ace/loader_build"],function(t,_,C){"use strict";t("./loader_build")(_);var E=t("./lib/dom"),c=t("./range").Range,b=t("./editor").Editor,s=t("./edit_session").EditSession,f=t("./undomanager").UndoManager,d=t("./virtual_renderer").VirtualRenderer;t("./worker/worker_client"),t("./keyboard/hash_handler"),t("./placeholder"),t("./multi_select"),t("./mode/folding/fold_mode"),t("./theme/textmate"),t("./ext/error_marker"),_.config=t("./config"),_.edit=function(a,l){if("string"==typeof a){var r=a;if(!(a=document.getElementById(r)))throw new Error("ace.edit can't find div #"+r)}if(a&&a.env&&a.env.editor instanceof b)return a.env.editor;var u="";if(a&&/input|textarea/i.test(a.tagName)){var h=a;u=h.value,a=E.createElement("pre"),h.parentNode.replaceChild(a,h)}else a&&(u=a.textContent,a.innerHTML="");var p=_.createEditSession(u),v=new b(new d(a),p,l),y={document:p,editor:v,onResize:v.resize.bind(v,null)};return h&&(y.textarea=h),v.on("destroy",function(){y.editor.container.env=null}),v.container.env=v.env=y,v},_.createEditSession=function(a,l){var r=new s(a,l);return r.setUndoManager(new f),r},_.Range=c,_.Editor=b,_.EditSession=s,_.UndoManager=f,_.VirtualRenderer=d,_.version=_.config.version}),ace.require(["ace/ace"],function(t){t&&(t.config.init(!0),t.define=ace.define);var _=function(){return this}();for(var C in!_&&typeof window<"u"&&(_=window),!_&&typeof self<"u"&&(_=self),_.ace||(_.ace=t),t)t.hasOwnProperty(C)&&(_.ace[C]=t[C]);_.ace.default=_.ace,Ie&&(Ie.exports=_.ace)})},740:(Ie,ne,g)=>{Ie=g.nmd(Ie),ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,_,C){"use strict";var E=t("../lib/oop"),c=t("./text_highlight_rules").TextHighlightRules,b=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};E.inherits(b,c),_.JsonHighlightRules=b}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(t,_,C){"use strict";var E=t("../range").Range,c=function(){};(function(){this.checkOutdent=function(b,s){return!!/^\s+$/.test(b)&&/^\s*\}/.test(s)},this.autoOutdent=function(b,s){var d=b.getLine(s).match(/^(\s*\})/);if(!d)return 0;var a=d[1].length,l=b.findMatchingBracket({row:s,column:a});if(!l||l.row==s)return 0;var r=this.$getIndent(b.getLine(l.row));b.replace(new E(s,0,s,a-1),r)},this.$getIndent=function(b){return b.match(/^\s*/)[0]}}).call(c.prototype),_.MatchingBraceOutdent=c}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(t,_,C){"use strict";var E=t("../../lib/oop"),c=t("../../range").Range,b=t("./fold_mode").FoldMode,s=_.FoldMode=function(f){f&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+f.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+f.end)))};E.inherits(s,b),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(f,d,a){var l=f.getLine(a);if(this.singleLineBlockCommentRe.test(l)&&!this.startRegionRe.test(l)&&!this.tripleStarBlockCommentRe.test(l))return"";var r=this._getFoldWidgetBase(f,d,a);return!r&&this.startRegionRe.test(l)?"start":r},this.getFoldWidgetRange=function(f,d,a,l){var p,r=f.getLine(a);if(this.startRegionRe.test(r))return this.getCommentRegionBlock(f,r,a);if(p=r.match(this.foldingStartMarker)){var u=p.index;if(p[1])return this.openingBracketBlock(f,p[1],a,u);var h=f.getCommentFoldRange(a,u+p[0].length,1);return h&&!h.isMultiLine()&&(l?h=this.getSectionRange(f,a):"all"!=d&&(h=null)),h}return"markbegin"!==d&&(p=r.match(this.foldingStopMarker))?(u=p.index+p[0].length,p[1]?this.closingBracketBlock(f,p[1],a,u):f.getCommentFoldRange(a,u,-1)):void 0},this.getSectionRange=function(f,d){for(var a=f.getLine(d),l=a.search(/\S/),r=d,u=a.length,h=d+=1,p=f.getLength();++dv)break;var y=this.getFoldWidgetRange(f,"all",d);if(y){if(y.start.row<=r)break;if(y.isMultiLine())d=y.end.row;else if(l==v)break}h=d}}return new c(r,u,h,f.getLine(h).length)},this.getCommentRegionBlock=function(f,d,a){for(var l=d.search(/\s*$/),r=f.getLength(),u=a,h=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,p=1;++au)return new c(u,l,a,d.length)}}.call(s.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(t,_,C){"use strict";var E=t("../lib/oop"),c=t("./text").Mode,b=t("./json_highlight_rules").JsonHighlightRules,s=t("./matching_brace_outdent").MatchingBraceOutdent,f=t("./folding/cstyle").FoldMode,d=t("../worker/worker_client").WorkerClient,a=function(){this.HighlightRules=b,this.$outdent=new s,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new f};E.inherits(a,c),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(l,r,u){var h=this.$getIndent(r);return"start"==l&&r.match(/^.*[\{\(\[]\s*$/)&&(h+=u),h},this.checkOutdent=function(l,r,u){return this.$outdent.checkOutdent(r,u)},this.autoOutdent=function(l,r,u){this.$outdent.autoOutdent(r,u)},this.createWorker=function(l){var r=new d(["ace"],"ace/mode/json_worker","JsonWorker");return r.attachToDocument(l.getDocument()),r.on("annotate",function(u){l.setAnnotations(u.data)}),r.on("terminate",function(){l.clearAnnotations()}),r},this.$id="ace/mode/json"}.call(a.prototype),_.Mode=a}),ace.require(["ace/mode/json"],function(t){Ie&&(Ie.exports=t)})},9748:(Ie,ne,g)=>{Ie=g.nmd(Ie),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(t,_,C){"use strict";_.isDark=!1,_.cssClass="ace-tm",_.cssText=t("./textmate-css"),_.$id="ace/theme/textmate",t("../lib/dom").importCssString(_.cssText,_.cssClass,!1)}),ace.require(["ace/theme/textmate"],function(t){Ie&&(Ie.exports=t)})},3269:Ie=>{function ne(){}Ie.exports=ne,Ie.exports.HttpsAgent=ne},3788:(Ie,ne,g)=>{const{Token:t}=g(7709),_=g(9258),{Interval:C}=g(7127);class E{}Ie.exports=class c extends E{constructor(s){super(),this.tokenSource=s,this.tokens=[],this.index=-1,this.fetchedEOF=!1}mark(){return 0}release(s){}reset(){this.seek(0)}seek(s){this.lazyInit(),this.index=this.adjustSeekIndex(s)}get(s){return this.lazyInit(),this.tokens[s]}consume(){let s=!1;if(s=this.index>=0&&(this.fetchedEOF?this.index0)||this.fetch(f)>=f}fetch(s){if(this.fetchedEOF)return 0;for(let f=0;f=this.tokens.length&&(f=this.tokens.length-1);for(let l=s;l=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[f]}adjustSeekIndex(s){return s}lazyInit(){-1===this.index&&this.setup()}setup(){this.sync(0),this.index=this.adjustSeekIndex(0)}setTokenSource(s){this.tokenSource=s,this.tokens=[],this.index=-1,this.fetchedEOF=!1}nextTokenOnChannel(s,f){if(this.sync(s),s>=this.tokens.length)return-1;let d=this.tokens[s];for(;d.channel!==this.channel;){if(d.type===t.EOF)return-1;this.sync(s+=1),d=this.tokens[s]}return s}previousTokenOnChannel(s,f){for(;s>=0&&this.tokens[s].channel!==f;)s-=1;return s}getHiddenTokensToRight(s,f){if(void 0===f&&(f=-1),this.lazyInit(),s<0||s>=this.tokens.length)throw s+" not in 0.."+this.tokens.length-1;const d=this.nextTokenOnChannel(s+1,_.DEFAULT_TOKEN_CHANNEL);return this.filterForChannel(s+1,-1===d?this.tokens.length-1:d,f)}getHiddenTokensToLeft(s,f){if(void 0===f&&(f=-1),this.lazyInit(),s<0||s>=this.tokens.length)throw s+" not in 0.."+this.tokens.length-1;const d=this.previousTokenOnChannel(s-1,_.DEFAULT_TOKEN_CHANNEL);return d===s-1?null:this.filterForChannel(d+1,s-1,f)}filterForChannel(s,f,d){const a=[];for(let l=s;l=this.tokens.length&&(d=this.tokens.length-1);let a="";for(let l=f;l{const t=g(7709).CommonToken;class _{}class C extends _{constructor(c){super(),this.copyText=void 0!==c&&c}create(c,b,s,f,d,a,l,r){const u=new t(c,b,f,d,a);return u.line=l,u.column=r,null!==s?u.text=s:this.copyText&&null!==c[1]&&(u.text=c[1].getText(d,a)),u}createThin(c,b){const s=new t(null,c);return s.text=b,s}}C.DEFAULT=new C,Ie.exports=C},6842:(Ie,ne,g)=>{const t=g(7709).Token,_=g(3788);Ie.exports=class C extends _{constructor(c,b){super(c),this.channel=void 0===b?t.DEFAULT_CHANNEL:b}adjustSeekIndex(c){return this.nextTokenOnChannel(c,this.channel)}LB(c){if(0===c||this.index-c<0)return null;let b=this.index,s=1;for(;s<=c;)b=this.previousTokenOnChannel(b-1,this.channel),s+=1;return b<0?null:this.tokens[b]}LT(c){if(this.lazyInit(),0===c)return null;if(c<0)return this.LB(-c);let b=this.index,s=1;for(;s{const{Token:t}=g(7709);g(395),g(9458),Ie.exports=class _{constructor(E,c){if(this.name="",this.strdata=E,this.decodeToUnicodeCodePoints=c||!1,this._index=0,this.data=[],this.decodeToUnicodeCodePoints)for(let b=0;b=this._size)throw"cannot consume EOF";this._index+=1}LA(E){if(0===E)return 0;E<0&&(E+=1);const c=this._index+E-1;return c<0||c>=this._size?t.EOF:this.data[c]}LT(E){return this.LA(E)}mark(){return-1}release(E){}seek(E){this._index=E<=this._index?E:Math.min(E,this._size)}getText(E,c){if(c>=this._size&&(c=this._size-1),E>=this._size)return"";if(this.decodeToUnicodeCodePoints){let b="";for(let s=E;s<=c;s++)b+=String.fromCodePoint(this.data[s]);return b}return this.strdata.slice(E,c+1)}toString(){return this.strdata}get index(){return this._index}get size(){return this._size}}},7127:(Ie,ne,g)=>{const{Token:t}=g(7709);class _{constructor(c,b){this.start=c,this.stop=b}clone(){return new _(this.start,this.stop)}contains(c){return c>=this.start&&cthis.addInterval(b),this),this}reduce(c){if(c=s.stop?(this.intervals.splice(c+1,1),this.reduce(c)):b.stop>=s.start&&(this.intervals[c]=new _(b.start,s.stop),this.intervals.splice(c+1,1))}}complement(c,b){const s=new C;return s.addInterval(new _(c,b+1)),null!==this.intervals&&this.intervals.forEach(f=>s.removeRange(f)),s}contains(c){if(null===this.intervals)return!1;for(let b=0;bf.start&&c.stop=f.stop?(this.intervals.splice(b,1),b-=1):c.start":"'"+String.fromCharCode(s.start)+"'":"'"+String.fromCharCode(s.start)+"'..'"+String.fromCharCode(s.stop-1)+"'")}return c.length>1?"{"+c.join(", ")+"}":c[0]}toIndexString(){const c=[];for(let b=0;b":s.start.toString():s.start.toString()+".."+(s.stop-1).toString())}return c.length>1?"{"+c.join(", ")+"}":c[0]}toTokenString(c,b){const s=[];for(let f=0;f1?"{"+s.join(", ")+"}":s[0]}elementName(c,b,s){return s===t.EOF?"":s===t.EPSILON?"":c[s]||b[s]}get length(){return this.intervals.map(c=>c.length).reduce((c,b)=>c+b)}}Ie.exports={Interval:_,IntervalSet:C}},9441:(Ie,ne,g)=>{const{Set:t,BitSet:_}=g(4137),{Token:C}=g(7709),{ATNConfig:E}=g(4341),{IntervalSet:c}=g(7127),{RuleStopState:b}=g(8402),{RuleTransition:s,NotSetTransition:f,WildcardTransition:d,AbstractPredicateTransition:a}=g(8935),{predictionContextFromRuleContext:l,PredictionContext:r,SingletonPredictionContext:u}=g(3260);class h{constructor(v){this.atn=v}getDecisionLookahead(v){if(null===v)return null;const y=v.transitions.length,M=[];for(let w=0;w{const{Token:t}=g(7709),_=g(7208),C=g(8914),{RecognitionException:E}=g(8118),{LexerNoViableAltException:c}=g(8118);class s extends _{constructor(d){super(),this._input=d,this._factory=C.DEFAULT,this._tokenFactorySourcePair=[this,d],this._interp=null,this._token=null,this._tokenStartCharIndex=-1,this._tokenStartLine=-1,this._tokenStartColumn=-1,this._hitEOF=!1,this._channel=t.DEFAULT_CHANNEL,this._type=t.INVALID_TYPE,this._modeStack=[],this._mode=s.DEFAULT_MODE,this._text=null}reset(){null!==this._input&&this._input.seek(0),this._token=null,this._type=t.INVALID_TYPE,this._channel=t.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=s.DEFAULT_MODE,this._modeStack=[],this._interp.reset()}nextToken(){if(null===this._input)throw"nextToken requires a non-null input stream.";const d=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=t.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;let a=!1;for(;;){this._type=t.INVALID_TYPE;let l=s.SKIP;try{l=this._interp.match(this._input,this._mode)}catch(r){if(!(r instanceof E))throw console.log(r.stack),r;this.notifyListeners(r),this.recover(r)}if(this._input.LA(1)===t.EOF&&(this._hitEOF=!0),this._type===t.INVALID_TYPE&&(this._type=l),this._type===s.SKIP){a=!0;break}if(this._type!==s.MORE)break}if(!a)return null===this._token&&this.emit(),this._token}}finally{this._input.release(d)}}skip(){this._type=s.SKIP}more(){this._type=s.MORE}mode(d){this._mode=d}pushMode(d){this._interp.debug&&console.log("pushMode "+d),this._modeStack.push(this._mode),this.mode(d)}popMode(){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}emitToken(d){this._token=d}emit(){const d=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(d),d}emitEOF(){const l=this._factory.create(this._tokenFactorySourcePair,t.EOF,null,t.DEFAULT_CHANNEL,this._input.index,this._input.index-1,this.line,this.column);return this.emitToken(l),l}getCharIndex(){return this._input.index}getAllTokens(){const d=[];let a=this.nextToken();for(;a.type!==t.EOF;)d.push(a),a=this.nextToken();return d}notifyListeners(d){const r=this._input.getText(this._tokenStartCharIndex,this._input.index),u="token recognition error at: '"+this.getErrorDisplay(r)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,u,d)}getErrorDisplay(d){const a=[];for(let l=0;l":"\n"===d?"\\n":"\t"===d?"\\t":"\r"===d?"\\r":d}getCharErrorDisplay(d){return"'"+this.getErrorDisplayForChar(d)+"'"}recover(d){this._input.LA(1)!==t.EOF&&(d instanceof c?this._interp.consume(this._input):this._input.consume())}get inputStream(){return this._input}set inputStream(d){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=d,this._tokenFactorySourcePair=[this,this._input]}get sourceName(){return this._input.sourceName}get type(){return this._type}set type(d){this._type=d}get line(){return this._interp.line}set line(d){this._interp.line=d}get column(){return this._interp.column}set column(d){this._interp.column=d}get text(){return null!==this._text?this._text:this._interp.getText(this._input)}set text(d){this._text=d}}s.DEFAULT_MODE=0,s.MORE=-2,s.SKIP=-3,s.DEFAULT_TOKEN_CHANNEL=t.DEFAULT_CHANNEL,s.HIDDEN=t.HIDDEN_CHANNEL,s.MIN_CHAR_VALUE=0,s.MAX_CHAR_VALUE=1114111,Ie.exports=s},6309:(Ie,ne,g)=>{const{Token:t}=g(7709),{ParseTreeListener:_,TerminalNode:C,ErrorNode:E}=g(6261),c=g(7208),{DefaultErrorStrategy:b}=g(1962),s=g(9880),f=g(2498),d=g(9258);class a extends _{constructor(u){super(),this.parser=u}enterEveryRule(u){console.log("enter "+this.parser.ruleNames[u.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}visitTerminal(u){console.log("consume "+u.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])}exitEveryRule(u){console.log("exit "+this.parser.ruleNames[u.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}}Ie.exports=(()=>{class r extends c{constructor(h){super(),this._input=null,this._errHandler=new b,this._precedenceStack=[],this._precedenceStack.push(0),this._ctx=null,this.buildParseTrees=!0,this._tracer=null,this._parseListeners=null,this._syntaxErrors=0,this.setInputStream(h)}reset(){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()}match(h){let p=this.getCurrentToken();return p.type===h?(this._errHandler.reportMatch(this),this.consume()):(p=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===p.tokenIndex&&this._ctx.addErrorNode(p)),p}matchWildcard(){let h=this.getCurrentToken();return h.type>0?(this._errHandler.reportMatch(this),this.consume()):(h=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===h.tokenIndex&&this._ctx.addErrorNode(h)),h}getParseListeners(){return this._parseListeners||[]}addParseListener(h){if(null===h)throw"listener";null===this._parseListeners&&(this._parseListeners=[]),this._parseListeners.push(h)}removeParseListener(h){if(null!==this._parseListeners){const p=this._parseListeners.indexOf(h);p>=0&&this._parseListeners.splice(p,1),0===this._parseListeners.length&&(this._parseListeners=null)}}removeParseListeners(){this._parseListeners=null}triggerEnterRuleEvent(){if(null!==this._parseListeners){const h=this._ctx;this._parseListeners.forEach(function(p){p.enterEveryRule(h),h.enterRule(p)})}}triggerExitRuleEvent(){if(null!==this._parseListeners){const h=this._ctx;this._parseListeners.slice(0).reverse().forEach(function(p){h.exitRule(p),p.exitEveryRule(h)})}}getTokenFactory(){return this._input.tokenSource._factory}setTokenFactory(h){this._input.tokenSource._factory=h}getATNWithBypassAlts(){const h=this.getSerializedATN();if(null===h)throw"The current parser does not support an ATN with bypass alternatives.";let p=this.bypassAltsAtnCache[h];if(null===p){const v=new f;v.generateRuleBypassTransitions=!0,p=new s(v).deserialize(h),this.bypassAltsAtnCache[h]=p}return p}compileParseTreePattern(h,p,v){if(null===(v=v||null)&&null!==this.getTokenStream()){const M=this.getTokenStream().tokenSource;M instanceof d&&(v=M)}if(null===v)throw"Parser can't discover a lexer to use";return new ParseTreePatternMatcher(v,this).compile(h,p)}getInputStream(){return this.getTokenStream()}setInputStream(h){this.setTokenStream(h)}getTokenStream(){return this._input}setTokenStream(h){this._input=null,this.reset(),this._input=h}getCurrentToken(){return this._input.LT(1)}notifyErrorListeners(h,p,v){v=v||null,null===(p=p||null)&&(p=this.getCurrentToken()),this._syntaxErrors+=1;const y=p.line,M=p.column;this.getErrorListenerDispatch().syntaxError(this,p,y,M,h,v)}consume(){const h=this.getCurrentToken();h.type!==t.EOF&&this.getInputStream().consume();const p=null!==this._parseListeners&&this._parseListeners.length>0;if(this.buildParseTrees||p){let v;v=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(h):this._ctx.addTokenNode(h),v.invokingState=this.state,p&&this._parseListeners.forEach(function(y){v instanceof E||void 0!==v.isErrorNode&&v.isErrorNode()?y.visitErrorNode(v):v instanceof C&&y.visitTerminal(v)})}return h}addContextToParseTree(){null!==this._ctx.parentCtx&&this._ctx.parentCtx.addChild(this._ctx)}enterRule(h,p,v){this.state=p,this._ctx=h,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this._ctx.stop=this._input.LT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx}enterOuterAlt(h,p){h.setAltNumber(p),this.buildParseTrees&&this._ctx!==h&&null!==this._ctx.parentCtx&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(h)),this._ctx=h}getPrecedence(){return 0===this._precedenceStack.length?-1:this._precedenceStack[this._precedenceStack.length-1]}enterRecursionRule(h,p,v,y){this.state=p,this._precedenceStack.push(y),this._ctx=h,this._ctx.start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(h,p,v){const y=this._ctx;y.parentCtx=h,y.invokingState=p,y.stop=this._input.LT(-1),this._ctx=h,this._ctx.start=y.start,this.buildParseTrees&&this._ctx.addChild(y),this.triggerEnterRuleEvent()}unrollRecursionContexts(h){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);const p=this._ctx,v=this.getParseListeners();if(null!==v&&v.length>0)for(;this._ctx!==h;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=h;p.parentCtx=h,this.buildParseTrees&&null!==h&&h.addChild(p)}getInvokingContext(h){let p=this._ctx;for(;null!==p;){if(p.ruleIndex===h)return p;p=p.parentCtx}return null}precpred(h,p){return p>=this._precedenceStack[this._precedenceStack.length-1]}inContext(h){return!1}isExpectedToken(h){const p=this._interp.atn;let v=this._ctx,M=p.nextTokens(p.states[this.state]);if(M.contains(h))return!0;if(!M.contains(t.EPSILON))return!1;for(;null!==v&&v.invokingState>=0&&M.contains(t.EPSILON);){if(M=p.nextTokens(p.states[v.invokingState].transitions[0].followState),M.contains(h))return!0;v=v.parentCtx}return!(!M.contains(t.EPSILON)||h!==t.EOF)}getExpectedTokens(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)}getExpectedTokensWithinCurrentRule(){const h=this._interp.atn;return h.nextTokens(h.states[this.state])}getRuleIndex(h){const p=this.getRuleIndexMap()[h];return null!==p?p:-1}getRuleInvocationStack(h){null===(h=h||null)&&(h=this._ctx);const p=[];for(;null!==h;){const v=h.ruleIndex;p.push(v<0?"n/a":this.ruleNames[v]),h=h.parentCtx}return p}getDFAStrings(){return this._interp.decisionToDFA.toString()}dumpDFA(){let h=!1;for(let p=0;p0&&(h&&console.log(),this.printer.println("Decision "+v.decision+":"),this.printer.print(v.toString(this.literalNames,this.symbolicNames)),h=!0)}}getSourceName(){return this._input.sourceName}setTrace(h){h?(null!==this._tracer&&this.removeParseListener(this._tracer),this._tracer=new a(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)}}return r.bypassAltsAtnCache={},r})()},1900:(Ie,ne,g)=>{const t=g(4677),_=g(6261),C=_.INVALID_INTERVAL,E=_.TerminalNode,c=_.TerminalNodeImpl,b=_.ErrorNodeImpl,s=g(7127).Interval;class f extends t{constructor(l,r){super(l=l||null,r=r||null),this.ruleIndex=-1,this.children=null,this.start=null,this.stop=null,this.exception=null}copyFrom(l){this.parentCtx=l.parentCtx,this.invokingState=l.invokingState,this.children=null,this.start=l.start,this.stop=l.stop,l.children&&(this.children=[],l.children.map(function(r){r instanceof b&&(this.children.push(r),r.parentCtx=this)},this))}enterRule(l){}exitRule(l){}addChild(l){return null===this.children&&(this.children=[]),this.children.push(l),l}removeLastChild(){null!==this.children&&this.children.pop()}addTokenNode(l){const r=new c(l);return this.addChild(r),r.parentCtx=this,r}addErrorNode(l){const r=new b(l);return this.addChild(r),r.parentCtx=this,r}getChild(l,r){if(null===this.children||l<0||l>=this.children.length)return null;if(null===(r=r||null))return this.children[l];for(let u=0;u=this.children.length)return null;for(let u=0;u{const t=g(4677),{Hash:_,Map:C,equalArrays:E}=g(4137);class c{constructor(w){this.cachedHashCode=w}isEmpty(){return this===c.EMPTY}hasEmptyPath(){return this.getReturnState(this.length-1)===c.EMPTY_RETURN_STATE}hashCode(){return this.cachedHashCode}updateHashCode(w){w.update(this.cachedHashCode)}}c.EMPTY=null,c.EMPTY_RETURN_STATE=2147483647,c.globalNodeCount=1,c.id=c.globalNodeCount;class s extends c{constructor(w,k){let I=0;const D=new _;null!==w?D.update(w,k):D.update(1),I=D.finish(),super(I),this.parentCtx=w,this.returnState=k}getParent(w){return this.parentCtx}getReturnState(w){return this.returnState}equals(w){return this===w||w instanceof s&&this.hashCode()===w.hashCode()&&this.returnState===w.returnState&&(null==this.parentCtx?null==w.parentCtx:this.parentCtx.equals(w.parentCtx))}toString(){const w=null===this.parentCtx?"":this.parentCtx.toString();return 0===w.length?this.returnState===c.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+w}get length(){return 1}static create(w,k){return k===c.EMPTY_RETURN_STATE&&null===w?c.EMPTY:new s(w,k)}}class f extends s{constructor(){super(null,c.EMPTY_RETURN_STATE)}isEmpty(){return!0}getParent(w){return null}getReturnState(w){return this.returnState}equals(w){return this===w}toString(){return"$"}}c.EMPTY=new f;class d extends c{constructor(w,k){const I=new _;return I.update(w,k),super(I.finish()),this.parents=w,this.returnStates=k,this}isEmpty(){return this.returnStates[0]===c.EMPTY_RETURN_STATE}getParent(w){return this.parents[w]}getReturnState(w){return this.returnStates[w]}equals(w){return this===w||w instanceof d&&this.hashCode()===w.hashCode()&&E(this.returnStates,w.returnStates)&&E(this.parents,w.parents)}toString(){if(this.isEmpty())return"[]";{let w="[";for(let k=0;k0&&(w+=", "),this.returnStates[k]!==c.EMPTY_RETURN_STATE?(w+=this.returnStates[k],null!==this.parents[k]?w=w+" "+this.parents[k]:w+="null"):w+="$";return w+"]"}}get length(){return this.returnStates.length}}Ie.exports={merge:function l(M,w,k,I){if(M===w)return M;if(M instanceof s&&w instanceof s)return function r(M,w,k,I){if(null!==I){let O=I.get(M,w);if(null!==O||(O=I.get(w,M),null!==O))return O}const D=function u(M,w,k){if(k){if(M===c.EMPTY||w===c.EMPTY)return c.EMPTY}else{if(M===c.EMPTY&&w===c.EMPTY)return c.EMPTY;if(M===c.EMPTY)return new d([w.parentCtx,null],[w.returnState,c.EMPTY_RETURN_STATE]);if(w===c.EMPTY)return new d([M.parentCtx,null],[M.returnState,c.EMPTY_RETURN_STATE])}return null}(M,w,k);if(null!==D)return null!==I&&I.set(M,w,D),D;if(M.returnState===w.returnState){const O=l(M.parentCtx,w.parentCtx,k,I);if(O===M.parentCtx)return M;if(O===w.parentCtx)return w;const T=s.create(O,M.returnState);return null!==I&&I.set(M,w,T),T}{let O=null;if((M===w||null!==M.parentCtx&&M.parentCtx===w.parentCtx)&&(O=M.parentCtx),null!==O){const R=[M.returnState,w.returnState];M.returnState>w.returnState&&(R[0]=w.returnState,R[1]=M.returnState);const A=new d([O,O],R);return null!==I&&I.set(M,w,A),A}const T=[M.returnState,w.returnState];let U=[M.parentCtx,w.parentCtx];M.returnState>w.returnState&&(T[0]=w.returnState,T[1]=M.returnState,U=[w.parentCtx,M.parentCtx]);const S=new d(U,T);return null!==I&&I.set(M,w,S),S}}(M,w,k,I);if(k){if(M instanceof f)return M;if(w instanceof f)return w}return M instanceof s&&(M=new d([M.getParent()],[M.returnState])),w instanceof s&&(w=new d([w.getParent()],[w.returnState])),function h(M,w,k,I){if(null!==I){let N=I.get(M,w);if(null!==N||(N=I.get(w,M),null!==N))return N}let D=0,O=0,T=0,U=[],S=[];for(;D{const{Token:t}=g(7709),{ConsoleErrorListener:_}=g(5243),{ProxyErrorListener:C}=g(5243);Ie.exports=(()=>{class c{constructor(){this._listeners=[_.INSTANCE],this._interp=null,this._stateNumber=-1}checkVersion(s){"4.9.3"!==s&&console.log("ANTLR runtime and generated code versions disagree: 4.9.3!="+s)}addErrorListener(s){this._listeners.push(s)}removeErrorListeners(){this._listeners=[]}getLiteralNames(){return Object.getPrototypeOf(this).constructor.literalNames||[]}getSymbolicNames(){return Object.getPrototypeOf(this).constructor.symbolicNames||[]}getTokenNames(){if(!this.tokenNames){const s=this.getLiteralNames(),f=this.getSymbolicNames(),d=s.length>f.length?s.length:f.length;this.tokenNames=[];for(let a=0;a";let f=s.text;return null===f&&(f=s.type===t.EOF?"":"<"+s.type+">"),f=f.replace("\n","\\n").replace("\r","\\r").replace("\t","\\t"),"'"+f+"'"}getErrorListenerDispatch(){return new C(this._listeners)}sempred(s,f,d){return!0}precpred(s,f){return!0}get state(){return this._stateNumber}set state(s){this._stateNumber=s}}return c.tokenTypeMapCache={},c.ruleIndexMapCache={},c})()},4677:(Ie,ne,g)=>{const{RuleNode:t}=g(6261),{INVALID_INTERVAL:_}=g(6261),C=g(7760);Ie.exports=class E extends t{constructor(b,s){super(),this.parentCtx=b||null,this.invokingState=s||-1}depth(){let b=0,s=this;for(;null!==s;)s=s.parentCtx,b+=1;return b}isEmpty(){return-1===this.invokingState}getSourceInterval(){return _}getRuleContext(){return this}getPayload(){return this}getText(){return 0===this.getChildCount()?"":this.children.map(function(b){return b.getText()}).join("")}getAltNumber(){return 0}setAltNumber(b){}getChild(b){return null}getChildCount(){return 0}accept(b){return b.visitChildren(this)}toStringTree(b,s){return C.toStringTree(this,b,s)}toString(b,s){b=b||null,s=s||null;let f=this,d="[";for(;null!==f&&f!==s;){if(null===b)f.isEmpty()||(d+=f.invokingState);else{const a=f.ruleIndex;d+=a>=0&&a{let ne=(()=>{class t{constructor(){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}getTokenSource(){return this.source[0]}getInputStream(){return this.source[1]}get text(){return this._text}set text(C){this._text=C}}return t.INVALID_TYPE=0,t.EPSILON=-2,t.MIN_USER_TOKEN_TYPE=1,t.EOF=-1,t.DEFAULT_CHANNEL=0,t.HIDDEN_CHANNEL=1,t})();Ie.exports={Token:ne,CommonToken:(()=>{class t extends ne{constructor(C,E,c,b,s){super(),this.source=void 0!==C?C:t.EMPTY_SOURCE,this.type=void 0!==E?E:null,this.channel=void 0!==c?c:ne.DEFAULT_CHANNEL,this.start=void 0!==b?b:-1,this.stop=void 0!==s?s:-1,this.tokenIndex=-1,null!==this.source[0]?(this.line=C[0].line,this.column=C[0].column):this.column=-1}clone(){const C=new t(this.source,this.type,this.channel,this.start,this.stop);return C.tokenIndex=this.tokenIndex,C.line=this.line,C.column=this.column,C.text=this.text,C}toString(){let C=this.text;return C=null!==C?C.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+C+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"}get text(){if(null!==this._text)return this._text;const C=this.getInputStream();if(null===C)return null;const E=C.size;return this.start"}set text(C){this._text=C}}return t.EMPTY_SOURCE=[null,null],t})()}},4137:Ie=>{function ne(u){return null===u?"null":u}function g(u){return Array.isArray(u)?"["+u.map(ne).join(", ")+"]":"null"}function t(u,h){return u?u.equals(h):u==h}function _(u){return u?u.hashCode():-1}String.prototype.seed=String.prototype.seed||Math.round(Math.random()*Math.pow(2,32)),String.prototype.hashCode=function(){const u=this.toString();let h,p;const v=3&u.length,y=u.length-v;let M=String.prototype.seed;const w=3432918353,k=461845907;let I=0;for(;I>>16)*w&65535)<<16)&4294967295,p=p<<15|p>>>17,p=(65535&p)*k+(((p>>>16)*k&65535)<<16)&4294967295,M^=p,M=M<<13|M>>>19,h=5*(65535&M)+((5*(M>>>16)&65535)<<16)&4294967295,M=27492+(65535&h)+((58964+(h>>>16)&65535)<<16);switch(p=0,v){case 3:p^=(255&u.charCodeAt(I+2))<<16;case 2:p^=(255&u.charCodeAt(I+1))<<8;case 1:p^=255&u.charCodeAt(I),p=(65535&p)*w+(((p>>>16)*w&65535)<<16)&4294967295,p=p<<15|p>>>17,p=(65535&p)*k+(((p>>>16)*k&65535)<<16)&4294967295,M^=p}return M^=u.length,M^=M>>>16,M=2246822507*(65535&M)+((2246822507*(M>>>16)&65535)<<16)&4294967295,M^=M>>>13,M=3266489909*(65535&M)+((3266489909*(M>>>16)&65535)<<16)&4294967295,M^=M>>>16,M>>>0};class E{constructor(){this.data=[]}add(h){this.data[h]=!0}or(h){const p=this;Object.keys(h.data).map(function(v){p.add(v)})}remove(h){delete this.data[h]}contains(h){return!0===this.data[h]}values(){return Object.keys(this.data)}minValue(){return Math.min.apply(null,this.values())}hashCode(){const h=new f;return h.update(this.values()),h.finish()}equals(h){return h instanceof E&&this.hashCode()===h.hashCode()}toString(){return"{"+this.values().join(", ")+"}"}get length(){return this.values().length}}class c{constructor(h,p){this.data={},this.hashFunction=h||_,this.equalsFunction=p||t}put(h,p){const v="hash_"+this.hashFunction(h);if(v in this.data){const y=this.data[v];for(let M=0;M>>17,v*=461845907,this.count=this.count+1;let y=this.hash^v;y=y<<13|y>>>19,y=5*y+3864292196,this.hash=y}}}finish(){let h=this.hash^4*this.count;return h^=h>>>16,h*=2246822507,h^=h>>>13,h*=3266489909,h^=h>>>16,h}}Ie.exports={Hash:f,Set:class C{constructor(h,p){this.data={},this.hashFunction=h||_,this.equalsFunction=p||t}add(h){const v="hash_"+this.hashFunction(h);if(v in this.data){const y=this.data[v];for(let M=0;M{const t=g(9441),{IntervalSet:_}=g(7127),{Token:C}=g(7709);Ie.exports=(()=>{class c{constructor(s,f){this.grammarType=s,this.maxTokenType=f,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[]}nextTokensInContext(s,f){return new t(this).LOOK(s,null,f)}nextTokensNoContext(s){return null!==s.nextTokenWithinRule||(s.nextTokenWithinRule=this.nextTokensInContext(s,null),s.nextTokenWithinRule.readOnly=!0),s.nextTokenWithinRule}nextTokens(s,f){return void 0===f?this.nextTokensNoContext(s):this.nextTokensInContext(s,f)}addState(s){null!==s&&(s.atn=this,s.stateNumber=this.states.length),this.states.push(s)}removeState(s){this.states[s.stateNumber]=null}defineDecisionState(s){return this.decisionToState.push(s),s.decision=this.decisionToState.length-1,s.decision}getDecisionState(s){return 0===this.decisionToState.length?null:this.decisionToState[s]}getExpectedTokens(s,f){if(s<0||s>=this.states.length)throw"Invalid state number.";let a=this.nextTokens(this.states[s]);if(!a.contains(C.EPSILON))return a;const l=new _;for(l.addSet(a),l.removeOne(C.EPSILON);null!==f&&f.invokingState>=0&&a.contains(C.EPSILON);)a=this.nextTokens(this.states[f.invokingState].transitions[0].followState),l.addSet(a),l.removeOne(C.EPSILON),f=f.parentCtx;return a.contains(C.EPSILON)&&l.addOne(C.EOF),l}}return c.INVALID_ALT_NUMBER=0,c})()},4341:(Ie,ne,g)=>{const{DecisionState:t}=g(8402),{SemanticContext:_}=g(449),{Hash:C}=g(4137);function E(s,f){if(null===s){const d={state:null,alt:null,context:null,semanticContext:null};return f&&(d.reachesIntoOuterContext=0),d}{const d={};return d.state=s.state||null,d.alt=void 0===s.alt?null:s.alt,d.context=s.context||null,d.semanticContext=s.semanticContext||null,f&&(d.reachesIntoOuterContext=s.reachesIntoOuterContext||0,d.precedenceFilterSuppressed=s.precedenceFilterSuppressed||!1),d}}class c{constructor(f,d){this.checkContext(f,d),f=E(f),d=E(d,!0),this.state=null!==f.state?f.state:d.state,this.alt=null!==f.alt?f.alt:d.alt,this.context=null!==f.context?f.context:d.context,this.semanticContext=null!==f.semanticContext?f.semanticContext:null!==d.semanticContext?d.semanticContext:_.NONE,this.reachesIntoOuterContext=d.reachesIntoOuterContext,this.precedenceFilterSuppressed=d.precedenceFilterSuppressed}checkContext(f,d){null==f.context&&(null===d||null==d.context)&&(this.context=null)}hashCode(){const f=new C;return this.updateHashCode(f),f.finish()}updateHashCode(f){f.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)}equals(f){return this===f||f instanceof c&&this.state.stateNumber===f.state.stateNumber&&this.alt===f.alt&&(null===this.context?null===f.context:this.context.equals(f.context))&&this.semanticContext.equals(f.semanticContext)&&this.precedenceFilterSuppressed===f.precedenceFilterSuppressed}hashCodeForConfigSet(){const f=new C;return f.update(this.state.stateNumber,this.alt,this.semanticContext),f.finish()}equalsForConfigSet(f){return this===f||f instanceof c&&this.state.stateNumber===f.state.stateNumber&&this.alt===f.alt&&this.semanticContext.equals(f.semanticContext)}toString(){return"("+this.state+","+this.alt+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==_.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"}}class b extends c{constructor(f,d){return super(f,d),this.lexerActionExecutor=f.lexerActionExecutor||(null!==d?d.lexerActionExecutor:null),this.passedThroughNonGreedyDecision=null!==d&&this.checkNonGreedyDecision(d,this.state),this.hashCodeForConfigSet=b.prototype.hashCode,this.equalsForConfigSet=b.prototype.equals,this}updateHashCode(f){f.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)}equals(f){return this===f||f instanceof b&&this.passedThroughNonGreedyDecision===f.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(f.lexerActionExecutor):!f.lexerActionExecutor)&&super.equals(f)}checkNonGreedyDecision(f,d){return f.passedThroughNonGreedyDecision||d instanceof t&&d.nonGreedy}}Ie.exports.ATNConfig=c,Ie.exports.LexerATNConfig=b},2301:(Ie,ne,g)=>{const t=g(1019),_=g(4137),{SemanticContext:C}=g(449),{merge:E}=g(3260);function c(d){return d.hashCodeForConfigSet()}function b(d,a){return d===a||null!==d&&null!==a&&d.equalsForConfigSet(a)}class s{constructor(a){this.configLookup=new _.Set(c,b),this.fullCtx=void 0===a||a,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1}add(a,l){if(void 0===l&&(l=null),this.readOnly)throw"This set is readonly";a.semanticContext!==C.NONE&&(this.hasSemanticContext=!0),a.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);const r=this.configLookup.add(a);if(r===a)return this.cachedHashCode=-1,this.configs.push(a),!0;const h=E(r.context,a.context,!this.fullCtx,l);return r.reachesIntoOuterContext=Math.max(r.reachesIntoOuterContext,a.reachesIntoOuterContext),a.precedenceFilterSuppressed&&(r.precedenceFilterSuppressed=!0),r.context=h,!0}getStates(){const a=new _.Set;for(let l=0;l{class ne{constructor(t){void 0===t&&(t=null),this.readOnly=!1,this.verifyATN=null===t||t.verifyATN,this.generateRuleBypassTransitions=null!==t&&t.generateRuleBypassTransitions}}ne.defaultOptions=new ne,ne.defaultOptions.readOnly=!0,Ie.exports=ne},9880:(Ie,ne,g)=>{const{Token:t}=g(7709),_=g(1019),C=g(4371),{ATNState:E,BasicState:c,DecisionState:b,BlockStartState:s,BlockEndState:f,LoopEndState:d,RuleStartState:a,RuleStopState:l,TokensStartState:r,PlusLoopbackState:u,StarLoopbackState:h,StarLoopEntryState:p,PlusBlockStartState:v,StarBlockStartState:y,BasicBlockStartState:M}=g(8402),{Transition:w,AtomTransition:k,SetTransition:I,NotSetTransition:D,RuleTransition:O,RangeTransition:T,ActionTransition:U,EpsilonTransition:S,WildcardTransition:R,PredicateTransition:N,PrecedencePredicateTransition:A}=g(8935),{IntervalSet:F}=g(7127),Y=g(2498),{LexerActionType:ee,LexerSkipAction:ie,LexerChannelAction:$,LexerCustomAction:j,LexerMoreAction:G,LexerTypeAction:V,LexerPushModeAction:W,LexerPopModeAction:K,LexerModeAction:ce}=g(2866),be="59627784-3BE5-417A-B9EB-8131A7286089",Ze=["AADB8D7E-AEEF-4415-AD2B-8204D6CF042E",be],ct=be;function Ct(We,Pe){const Me=[];return Me[We-1]=Pe,Me.map(function($e){return Pe})}const fe=function Ae(){const We=[];for(let Pe=0;Pe<256;Pe++)We[Pe]=(Pe+256).toString(16).substr(1).toUpperCase();return We}();Ie.exports=class Ne{constructor(Pe){null==Pe&&(Pe=Y.defaultOptions),this.deserializationOptions=Pe,this.stateFactories=null,this.actionFactories=null}isFeatureSupported(Pe,Me){const $e=Ze.indexOf(Pe);return!($e<0)&&Ze.indexOf(Me)>=$e}deserialize(Pe){this.reset(Pe),this.checkVersion(),this.checkUUID();const Me=this.readATN();this.readStates(Me),this.readRules(Me),this.readModes(Me);const $e=[];return this.readSets(Me,$e,this.readInt.bind(this)),this.isFeatureSupported(be,this.uuid)&&this.readSets(Me,$e,this.readInt32.bind(this)),this.readEdges(Me,$e),this.readDecisions(Me),this.readLexerActions(Me),this.markPrecedenceDecisions(Me),this.verifyATN(Me),this.deserializationOptions.generateRuleBypassTransitions&&Me.grammarType===C.PARSER&&(this.generateRuleBypassTransitions(Me),this.verifyATN(Me)),Me}reset(Pe){const $e=Pe.split("").map(function(q){const _e=q.charCodeAt(0);return _e>1?_e-2:_e+65534});$e[0]=Pe.charCodeAt(0),this.data=$e,this.pos=0}checkVersion(){const Pe=this.readInt();if(3!==Pe)throw"Could not deserialize ATN with version "+Pe+" (expected 3)."}checkUUID(){const Pe=this.readUUID();if(Ze.indexOf(Pe)<0)throw ct;this.uuid=Pe}readATN(){const Pe=this.readInt(),Me=this.readInt();return new _(Pe,Me)}readStates(Pe){let Me,$e,q;const _e=[],Oe=[],vt=this.readInt();for(let Ge=0;Ge0;)_e.addTransition(we.transitions[Ge-1]),we.transitions=we.transitions.slice(-1);Pe.ruleToStartState[Me].addTransition(new S(_e)),Oe.addTransition(new S(rt));const De=new c;Pe.addState(De),De.addTransition(new k(Oe,Pe.ruleToTokenType[Me])),_e.addTransition(new S(De))}stateIsEndStateFor(Pe,Me){if(Pe.ruleIndex!==Me||!(Pe instanceof p))return null;const $e=Pe.transitions[Pe.transitions.length-1].target;return $e instanceof d&&$e.epsilonOnlyTransitions&&$e.transitions[0].target instanceof l?Pe:null}markPrecedenceDecisions(Pe){for(let Me=0;Me=0:$e.transitions.length<=1||$e instanceof l)}}checkCondition(Pe,Me){if(!Pe)throw null==Me&&(Me="IllegalState"),Me}readInt(){return this.data[this.pos++]}readInt32(){return this.readInt()|this.readInt()<<16}readLong(){return 4294967295&this.readInt32()|this.readInt32()<<32}readUUID(){const Pe=[];for(let Me=7;Me>=0;Me--){const $e=this.readInt();Pe[2*Me+1]=255&$e,Pe[2*Me]=$e>>8&255}return fe[Pe[0]]+fe[Pe[1]]+fe[Pe[2]]+fe[Pe[3]]+"-"+fe[Pe[4]]+fe[Pe[5]]+"-"+fe[Pe[6]]+fe[Pe[7]]+"-"+fe[Pe[8]]+fe[Pe[9]]+"-"+fe[Pe[10]]+fe[Pe[11]]+fe[Pe[12]]+fe[Pe[13]]+fe[Pe[14]]+fe[Pe[15]]}edgeFactory(Pe,Me,$e,q,_e,Oe,vt,rt){const we=Pe.states[q];switch(Me){case w.EPSILON:return new S(we);case w.RANGE:return new T(we,0!==vt?t.EOF:_e,Oe);case w.RULE:return new O(Pe.states[_e],Oe,vt,we);case w.PREDICATE:return new N(we,_e,Oe,0!==vt);case w.PRECEDENCE:return new A(we,_e);case w.ATOM:return new k(we,0!==vt?t.EOF:_e);case w.ACTION:return new U(we,_e,Oe,0!==vt);case w.SET:return new I(we,rt[_e]);case w.NOT_SET:return new D(we,rt[_e]);case w.WILDCARD:return new R(we);default:throw"The specified transition type: "+Me+" is not valid."}}stateFactory(Pe,Me){if(null===this.stateFactories){const $e=[];$e[E.INVALID_TYPE]=null,$e[E.BASIC]=()=>new c,$e[E.RULE_START]=()=>new a,$e[E.BLOCK_START]=()=>new M,$e[E.PLUS_BLOCK_START]=()=>new v,$e[E.STAR_BLOCK_START]=()=>new y,$e[E.TOKEN_START]=()=>new r,$e[E.RULE_STOP]=()=>new l,$e[E.BLOCK_END]=()=>new f,$e[E.STAR_LOOP_BACK]=()=>new h,$e[E.STAR_LOOP_ENTRY]=()=>new p,$e[E.PLUS_LOOP_BACK]=()=>new u,$e[E.LOOP_END]=()=>new d,this.stateFactories=$e}if(Pe>this.stateFactories.length||null===this.stateFactories[Pe])throw"The specified state type "+Pe+" is not valid.";{const $e=this.stateFactories[Pe]();if(null!==$e)return $e.ruleIndex=Me,$e}}lexerActionFactory(Pe,Me,$e){if(null===this.actionFactories){const q=[];q[ee.CHANNEL]=(_e,Oe)=>new $(_e),q[ee.CUSTOM]=(_e,Oe)=>new j(_e,Oe),q[ee.MODE]=(_e,Oe)=>new ce(_e),q[ee.MORE]=(_e,Oe)=>G.INSTANCE,q[ee.POP_MODE]=(_e,Oe)=>K.INSTANCE,q[ee.PUSH_MODE]=(_e,Oe)=>new W(_e),q[ee.SKIP]=(_e,Oe)=>ie.INSTANCE,q[ee.TYPE]=(_e,Oe)=>new V(_e),this.actionFactories=q}if(Pe>this.actionFactories.length||null===this.actionFactories[Pe])throw"The specified lexer action type "+Pe+" is not valid.";return this.actionFactories[Pe](Me,$e)}}},5737:(Ie,ne,g)=>{const{DFAState:t}=g(10),{ATNConfigSet:_}=g(2301),{getCachedPredictionContext:C}=g(3260),{Map:E}=g(4137);class c{constructor(s,f){return this.atn=s,this.sharedContextCache=f,this}getCachedContext(s){if(null===this.sharedContextCache)return s;const f=new E;return C(s,this.sharedContextCache,f)}}c.ERROR=new t(2147483647,new _),Ie.exports=c},8402:Ie=>{let g=(()=>{class p{constructor(){this.atn=null,this.stateNumber=p.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null}toString(){return this.stateNumber}equals(y){return y instanceof p&&this.stateNumber===y.stateNumber}isNonGreedyExitState(){return!1}addTransition(y,M){void 0===M&&(M=-1),0===this.transitions.length?this.epsilonOnlyTransitions=y.isEpsilon:this.epsilonOnlyTransitions!==y.isEpsilon&&(this.epsilonOnlyTransitions=!1),-1===M?this.transitions.push(y):this.transitions.splice(M,1,y)}}return p.INVALID_TYPE=0,p.BASIC=1,p.RULE_START=2,p.BLOCK_START=3,p.PLUS_BLOCK_START=4,p.STAR_BLOCK_START=5,p.TOKEN_START=6,p.RULE_STOP=7,p.BLOCK_END=8,p.STAR_LOOP_BACK=9,p.STAR_LOOP_ENTRY=10,p.PLUS_LOOP_BACK=11,p.LOOP_END=12,p.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"],p.INVALID_STATE_NUMBER=-1,p})();class _ extends g{constructor(){return super(),this.decision=-1,this.nonGreedy=!1,this}}class C extends _{constructor(){return super(),this.endState=null,this}}Ie.exports={ATNState:g,BasicState:class t extends g{constructor(){super(),this.stateType=g.BASIC}},DecisionState:_,BlockStartState:C,BlockEndState:class c extends g{constructor(){return super(),this.stateType=g.BLOCK_END,this.startState=null,this}},LoopEndState:class u extends g{constructor(){return super(),this.stateType=g.LOOP_END,this.loopBackState=null,this}},RuleStartState:class s extends g{constructor(){return super(),this.stateType=g.RULE_START,this.stopState=null,this.isPrecedenceRule=!1,this}},RuleStopState:class b extends g{constructor(){return super(),this.stateType=g.RULE_STOP,this}},TokensStartState:class h extends _{constructor(){return super(),this.stateType=g.TOKEN_START,this}},PlusLoopbackState:class f extends _{constructor(){return super(),this.stateType=g.PLUS_LOOP_BACK,this}},StarLoopbackState:class l extends g{constructor(){return super(),this.stateType=g.STAR_LOOP_BACK,this}},StarLoopEntryState:class r extends _{constructor(){return super(),this.stateType=g.STAR_LOOP_ENTRY,this.loopBackState=null,this.isPrecedenceDecision=null,this}},PlusBlockStartState:class d extends C{constructor(){return super(),this.stateType=g.PLUS_BLOCK_START,this.loopBackState=null,this}},StarBlockStartState:class a extends C{constructor(){return super(),this.stateType=g.STAR_BLOCK_START,this}},BasicBlockStartState:class E extends C{constructor(){return super(),this.stateType=g.BLOCK_START,this}}}},4371:Ie=>{Ie.exports={LEXER:0,PARSER:1}},8557:(Ie,ne,g)=>{const{Token:t}=g(7709),_=g(9258),C=g(1019),E=g(5737),{DFAState:c}=g(10),{OrderedATNConfigSet:b}=g(2301),{PredictionContext:s}=g(3260),{SingletonPredictionContext:f}=g(3260),{RuleStopState:d}=g(8402),{LexerATNConfig:a}=g(4341),{Transition:l}=g(8935),r=g(1999),{LexerNoViableAltException:u}=g(8118);function h(y){y.index=-1,y.line=0,y.column=-1,y.dfaState=null}class p{constructor(){h(this)}reset(){h(this)}}Ie.exports=(()=>{class y extends E{constructor(w,k,I,D){super(k,D),this.decisionToDFA=I,this.recog=w,this.startIndex=-1,this.line=1,this.column=0,this.mode=_.DEFAULT_MODE,this.prevAccept=new p}copyState(w){this.column=w.column,this.line=w.line,this.mode=w.mode,this.startIndex=w.startIndex}match(w,k){this.match_calls+=1,this.mode=k;const I=w.mark();try{this.startIndex=w.index,this.prevAccept.reset();const D=this.decisionToDFA[k];return null===D.s0?this.matchATN(w):this.execATN(w,D.s0)}finally{w.release(I)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=_.DEFAULT_MODE}matchATN(w){const k=this.atn.modeToStartState[this.mode];y.debug&&console.log("matchATN mode "+this.mode+" start: "+k);const I=this.mode,D=this.computeStartState(w,k),O=D.hasSemanticContext;D.hasSemanticContext=!1;const T=this.addDFAState(D);O||(this.decisionToDFA[this.mode].s0=T);const U=this.execATN(w,T);return y.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[I].toLexerString()),U}execATN(w,k){y.debug&&console.log("start state closure="+k.configs),k.isAcceptState&&this.captureSimState(this.prevAccept,w,k);let I=w.LA(1),D=k;for(;;){y.debug&&console.log("execATN loop starting closure: "+D.configs);let O=this.getExistingTargetState(D,I);if(null===O&&(O=this.computeTargetState(w,D,I)),O===E.ERROR||(I!==t.EOF&&this.consume(w),O.isAcceptState&&(this.captureSimState(this.prevAccept,w,O),I===t.EOF)))break;I=w.LA(1),D=O}return this.failOrAccept(this.prevAccept,w,D.configs,I)}getExistingTargetState(w,k){if(null===w.edges||ky.MAX_DFA_EDGE)return null;let I=w.edges[k-y.MIN_DFA_EDGE];return void 0===I&&(I=null),y.debug&&null!==I&&console.log("reuse state "+w.stateNumber+" edge to "+I.stateNumber),I}computeTargetState(w,k,I){const D=new b;return this.getReachableConfigSet(w,k.configs,D,I),0===D.items.length?(D.hasSemanticContext||this.addDFAEdge(k,I,E.ERROR),E.ERROR):this.addDFAEdge(k,I,null,D)}failOrAccept(w,k,I,D){if(null!==this.prevAccept.dfaState)return this.accept(k,w.dfaState.lexerActionExecutor,this.startIndex,w.index,w.line,w.column),w.dfaState.prediction;if(D===t.EOF&&k.index===this.startIndex)return t.EOF;throw new u(this.recog,k,this.startIndex,I)}getReachableConfigSet(w,k,I,D){let O=C.INVALID_ALT_NUMBER;for(let T=0;Ty.MAX_DFA_EDGE||(y.debug&&console.log("EDGE "+w+" -> "+I+" upon "+k),null===w.edges&&(w.edges=[]),w.edges[k-y.MIN_DFA_EDGE]=I),I}addDFAState(w){const k=new c(null,w);let I=null;for(let U=0;U{const ne={CHANNEL:0,CUSTOM:1,MODE:2,MORE:3,POP_MODE:4,PUSH_MODE:5,SKIP:6,TYPE:7};class g{constructor(l){this.actionType=l,this.isPositionDependent=!1}hashCode(){const l=new Hash;return this.updateHashCode(l),l.finish()}updateHashCode(l){l.update(this.actionType)}equals(l){return this===l}}class t extends g{constructor(){super(ne.SKIP)}execute(l){l.skip()}toString(){return"skip"}}t.INSTANCE=new t;class _ extends g{constructor(l){super(ne.TYPE),this.type=l}execute(l){l.type=this.type}updateHashCode(l){l.update(this.actionType,this.type)}equals(l){return this===l||l instanceof _&&this.type===l.type}toString(){return"type("+this.type+")"}}class C extends g{constructor(l){super(ne.PUSH_MODE),this.mode=l}execute(l){l.pushMode(this.mode)}updateHashCode(l){l.update(this.actionType,this.mode)}equals(l){return this===l||l instanceof C&&this.mode===l.mode}toString(){return"pushMode("+this.mode+")"}}class E extends g{constructor(){super(ne.POP_MODE)}execute(l){l.popMode()}toString(){return"popMode"}}E.INSTANCE=new E;class c extends g{constructor(){super(ne.MORE)}execute(l){l.more()}toString(){return"more"}}c.INSTANCE=new c;class b extends g{constructor(l){super(ne.MODE),this.mode=l}execute(l){l.mode(this.mode)}updateHashCode(l){l.update(this.actionType,this.mode)}equals(l){return this===l||l instanceof b&&this.mode===l.mode}toString(){return"mode("+this.mode+")"}}class s extends g{constructor(l,r){super(ne.CUSTOM),this.ruleIndex=l,this.actionIndex=r,this.isPositionDependent=!0}execute(l){l.action(null,this.ruleIndex,this.actionIndex)}updateHashCode(l){l.update(this.actionType,this.ruleIndex,this.actionIndex)}equals(l){return this===l||l instanceof s&&this.ruleIndex===l.ruleIndex&&this.actionIndex===l.actionIndex}}class f extends g{constructor(l){super(ne.CHANNEL),this.channel=l}execute(l){l._channel=this.channel}updateHashCode(l){l.update(this.actionType,this.channel)}equals(l){return this===l||l instanceof f&&this.channel===l.channel}toString(){return"channel("+this.channel+")"}}class d extends g{constructor(l,r){super(r.actionType),this.offset=l,this.action=r,this.isPositionDependent=!0}execute(l){this.action.execute(l)}updateHashCode(l){l.update(this.actionType,this.offset,this.action)}equals(l){return this===l||l instanceof d&&this.offset===l.offset&&this.action===l.action}}Ie.exports={LexerActionType:ne,LexerSkipAction:t,LexerChannelAction:f,LexerCustomAction:s,LexerIndexedCustomAction:d,LexerMoreAction:c,LexerTypeAction:_,LexerPushModeAction:C,LexerPopModeAction:E,LexerModeAction:b}},1999:(Ie,ne,g)=>{const{hashStuff:t}=g(4137),{LexerIndexedCustomAction:_}=g(2866);class C{constructor(c){return this.lexerActions=null===c?[]:c,this.cachedHashCode=t(c),this}fixOffsetBeforeMatch(c){let b=null;for(let s=0;s{const t=g(4137),{Set:_,BitSet:C,DoubleDict:E}=t,c=g(1019),{ATNState:b,RuleStopState:s}=g(8402),{ATNConfig:f}=g(4341),{ATNConfigSet:d}=g(2301),{Token:a}=g(7709),{DFAState:l,PredPrediction:r}=g(10),u=g(5737),h=g(7822),p=g(4677),{SemanticContext:y}=(g(1900),g(449)),{PredictionContext:M}=g(3260),{Interval:w}=g(7127),{Transition:k,SetTransition:I,NotSetTransition:D,RuleTransition:O,ActionTransition:T}=g(8935),{NoViableAltException:U}=g(8118),{SingletonPredictionContext:S,predictionContextFromRuleContext:R}=g(3260);Ie.exports=class N extends u{constructor(F,Y,ee,ie){super(Y,ie),this.parser=F,this.decisionToDFA=ee,this.predictionMode=h.LL,this._input=null,this._startIndex=0,this._outerContext=null,this._dfa=null,this.mergeCache=null,this.debug=!1,this.debug_closure=!1,this.debug_add=!1,this.debug_list_atn_decisions=!1,this.dfa_debug=!1,this.retry_debug=!1}reset(){}adaptivePredict(F,Y,ee){(this.debug||this.debug_list_atn_decisions)&&console.log("adaptivePredict decision "+Y+" exec LA(1)=="+this.getLookaheadName(F)+" line "+F.LT(1).line+":"+F.LT(1).column),this._input=F,this._startIndex=F.index,this._outerContext=ee;const ie=this.decisionToDFA[Y];this._dfa=ie;const $=F.mark(),j=F.index;try{let G;if(G=ie.precedenceDfa?ie.getPrecedenceStartState(this.parser.getPrecedence()):ie.s0,null===G){null===ee&&(ee=p.EMPTY),(this.debug||this.debug_list_atn_decisions)&&console.log("predictATN decision "+ie.decision+" exec LA(1)=="+this.getLookaheadName(F)+", outerContext="+ee.toString(this.parser.ruleNames));let K=this.computeStartState(ie.atnStartState,p.EMPTY,!1);ie.precedenceDfa?(ie.s0.configs=K,K=this.applyPrecedenceFilter(K),G=this.addDFAState(ie,new l(null,K)),ie.setPrecedenceStartState(this.parser.getPrecedence(),G)):(G=this.addDFAState(ie,new l(null,K)),ie.s0=G)}const V=this.execATN(ie,G,F,j,ee);return this.debug&&console.log("DFA after predictATN: "+ie.toString(this.parser.literalNames,this.parser.symbolicNames)),V}finally{this._dfa=null,this.mergeCache=null,F.seek(j),F.release($)}}execATN(F,Y,ee,ie,$){(this.debug||this.debug_list_atn_decisions)&&console.log("execATN decision "+F.decision+" exec LA(1)=="+this.getLookaheadName(ee)+" line "+ee.LT(1).line+":"+ee.LT(1).column);let j,G=Y;this.debug&&console.log("s0 = "+Y);let V=ee.LA(1);for(;;){let W=this.getExistingTargetState(G,V);if(null===W&&(W=this.computeTargetState(F,G,V)),W===u.ERROR){const K=this.noViableAlt(ee,$,G.configs,ie);if(ee.seek(ie),j=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(G.configs,$),j!==c.INVALID_ALT_NUMBER)return j;throw K}if(W.requiresFullContext&&this.predictionMode!==h.SLL){let K=null;if(null!==W.predicates){this.debug&&console.log("DFA state has preds in DFA sim LL failover");const be=ee.index;if(be!==ie&&ee.seek(ie),K=this.evalSemanticContext(W.predicates,$,!0),1===K.length)return this.debug&&console.log("Full LL avoided"),K.minValue();be!==ie&&ee.seek(be)}this.dfa_debug&&console.log("ctx sensitive state "+$+" in "+W);const ue=this.computeStartState(F.atnStartState,$,!0);return this.reportAttemptingFullContext(F,K,W.configs,ie,ee.index),j=this.execATNWithFullContext(F,W,ue,ee,ie,$),j}if(W.isAcceptState){if(null===W.predicates)return W.prediction;const K=ee.index;ee.seek(ie);const ce=this.evalSemanticContext(W.predicates,$,!0);if(0===ce.length)throw this.noViableAlt(ee,$,W.configs,ie);return 1===ce.length||this.reportAmbiguity(F,W,ie,K,!1,ce,W.configs),ce.minValue()}G=W,V!==a.EOF&&(ee.consume(),V=ee.LA(1))}}getExistingTargetState(F,Y){const ee=F.edges;return null===ee?null:ee[Y+1]||null}computeTargetState(F,Y,ee){const ie=this.computeReachSet(Y.configs,ee,!1);if(null===ie)return this.addDFAEdge(F,Y,ee,u.ERROR),u.ERROR;let $=new l(null,ie);const j=this.getUniqueAlt(ie);if(this.debug){const G=h.getConflictingAltSubsets(ie);console.log("SLL altSubSets="+t.arrayToString(G)+", configs="+ie+", predict="+j+", allSubsetsConflict="+h.allSubsetsConflict(G)+", conflictingAlts="+this.getConflictingAlts(ie))}return j!==c.INVALID_ALT_NUMBER?($.isAcceptState=!0,$.configs.uniqueAlt=j,$.prediction=j):h.hasSLLConflictTerminatingPrediction(this.predictionMode,ie)&&($.configs.conflictingAlts=this.getConflictingAlts(ie),$.requiresFullContext=!0,$.isAcceptState=!0,$.prediction=$.configs.conflictingAlts.minValue()),$.isAcceptState&&$.configs.hasSemanticContext&&(this.predicateDFAState($,this.atn.getDecisionState(F.decision)),null!==$.predicates&&($.prediction=c.INVALID_ALT_NUMBER)),$=this.addDFAEdge(F,Y,ee,$),$}predicateDFAState(F,Y){const ee=Y.transitions.length,ie=this.getConflictingAltsOrUniqueAlt(F.configs),$=this.getPredsForAmbigAlts(ie,F.configs,ee);null!==$?(F.predicates=this.getPredicatePredictions(ie,$),F.prediction=c.INVALID_ALT_NUMBER):F.prediction=ie.minValue()}execATNWithFullContext(F,Y,ee,ie,$,j){(this.debug||this.debug_list_atn_decisions)&&console.log("execATNWithFullContext "+ee);let W,V=!1,K=ee;ie.seek($);let ce=ie.LA(1),ue=-1;for(;;){if(W=this.computeReachSet(K,ce,!0),null===W){const Ze=this.noViableAlt(ie,j,K,$);ie.seek($);const pt=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(K,j);if(pt!==c.INVALID_ALT_NUMBER)return pt;throw Ze}const be=h.getConflictingAltSubsets(W);if(this.debug&&console.log("LL altSubSets="+be+", predict="+h.getUniqueAlt(be)+", resolvesToJustOneViableAlt="+h.resolvesToJustOneViableAlt(be)),W.uniqueAlt=this.getUniqueAlt(W),W.uniqueAlt!==c.INVALID_ALT_NUMBER){ue=W.uniqueAlt;break}if(this.predictionMode!==h.LL_EXACT_AMBIG_DETECTION){if(ue=h.resolvesToJustOneViableAlt(be),ue!==c.INVALID_ALT_NUMBER)break}else if(h.allSubsetsConflict(be)&&h.allSubsetsEqual(be)){V=!0,ue=h.getSingleViableAlt(be);break}K=W,ce!==a.EOF&&(ie.consume(),ce=ie.LA(1))}return W.uniqueAlt!==c.INVALID_ALT_NUMBER?(this.reportContextSensitivity(F,ue,W,$,ie.index),ue):(this.reportAmbiguity(F,Y,$,ie.index,V,null,W),ue)}computeReachSet(F,Y,ee){this.debug&&console.log("in computeReachSet, starting closure: "+F),null===this.mergeCache&&(this.mergeCache=new E);const ie=new d(ee);let $=null;for(let G=0;G0&&(j=this.getAltThatFinishedDecisionEntryRule($),j!==c.INVALID_ALT_NUMBER)?j:c.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(F){const Y=[];for(let ee=0;ee0||ie.state instanceof s&&ie.context.hasEmptyPath())&&Y.indexOf(ie.alt)<0&&Y.push(ie.alt)}return 0===Y.length?c.INVALID_ALT_NUMBER:Math.min.apply(null,Y)}splitAccordingToSemanticValidity(F,Y){const ee=new d(F.fullCtx),ie=new d(F.fullCtx);for(let $=0;$50))throw"problem";if(F.state instanceof s){if(!F.context.isEmpty()){for(let V=0;V=0&&(be+=1)}this.closureCheckingStopState(ue,Y,ee,ce,$,be,G)}}}canDropLoopEntryEdgeInLeftRecursiveRule(F){const Y=F.state;if(Y.stateType!==b.STAR_LOOP_ENTRY||Y.stateType!==b.STAR_LOOP_ENTRY||!Y.isPrecedenceDecision||F.context.isEmpty()||F.context.hasEmptyPath())return!1;const ee=F.context.length;for(let G=0;G=0?this.parser.ruleNames[F]:""}getEpsilonTarget(F,Y,ee,ie,$,j){switch(Y.serializationType){case k.RULE:return this.ruleTransition(F,Y);case k.PRECEDENCE:return this.precedenceTransition(F,Y,ee,ie,$);case k.PREDICATE:return this.predTransition(F,Y,ee,ie,$);case k.ACTION:return this.actionTransition(F,Y);case k.EPSILON:return new f({state:Y.target},F);case k.ATOM:case k.RANGE:case k.SET:return j&&Y.matches(a.EOF,0,1)?new f({state:Y.target},F):null;default:return null}}actionTransition(F,Y){return this.debug&&console.log("ACTION edge "+Y.ruleIndex+":"+(-1===Y.actionIndex?65535:Y.actionIndex)),new f({state:Y.target},F)}precedenceTransition(F,Y,ee,ie,$){this.debug&&(console.log("PRED (collectPredicates="+ee+") "+Y.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+t.arrayToString(this.parser.getRuleInvocationStack())));let j=null;if(ee&&ie)if($){const G=this._input.index;this._input.seek(this._startIndex);const V=Y.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(G),V&&(j=new f({state:Y.target},F))}else{const G=y.andContext(F.semanticContext,Y.getPredicate());j=new f({state:Y.target,semanticContext:G},F)}else j=new f({state:Y.target},F);return this.debug&&console.log("config from pred transition="+j),j}predTransition(F,Y,ee,ie,$){this.debug&&(console.log("PRED (collectPredicates="+ee+") "+Y.ruleIndex+":"+Y.predIndex+", ctx dependent="+Y.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+t.arrayToString(this.parser.getRuleInvocationStack())));let j=null;if(ee&&(Y.isCtxDependent&&ie||!Y.isCtxDependent))if($){const G=this._input.index;this._input.seek(this._startIndex);const V=Y.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(G),V&&(j=new f({state:Y.target},F))}else{const G=y.andContext(F.semanticContext,Y.getPredicate());j=new f({state:Y.target,semanticContext:G},F)}else j=new f({state:Y.target},F);return this.debug&&console.log("config from pred transition="+j),j}ruleTransition(F,Y){this.debug&&console.log("CALL rule "+this.getRuleName(Y.target.ruleIndex)+", ctx="+F.context);const ie=S.create(F.context,Y.followState.stateNumber);return new f({state:Y.target,context:ie},F)}getConflictingAlts(F){const Y=h.getConflictingAltSubsets(F);return h.getAlts(Y)}getConflictingAltsOrUniqueAlt(F){let Y=null;return F.uniqueAlt!==c.INVALID_ALT_NUMBER?(Y=new C,Y.add(F.uniqueAlt)):Y=F.conflictingAlts,Y}getTokenName(F){if(F===a.EOF)return"EOF";if(null!==this.parser&&null!==this.parser.literalNames){if(!(F>=this.parser.literalNames.length&&F>=this.parser.symbolicNames.length))return(this.parser.literalNames[F]||this.parser.symbolicNames[F])+"<"+F+">";console.log(F+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+F}getLookaheadName(F){return this.getTokenName(F.LA(1))}dumpDeadEndConfigs(F){console.log("dead end configs: ");const Y=F.getDeadEndConfigs();for(let ee=0;ee0){const j=ie.state.transitions[0];j instanceof AtomTransition?$="Atom "+this.getTokenName(j.label):j instanceof I&&($=(j instanceof D?"~":"")+"Set "+j.set)}console.error(ie.toString(this.parser,!0)+":"+$)}}noViableAlt(F,Y,ee,ie){return new U(this.parser,F,F.get(ie),F.LT(1),ee,Y)}getUniqueAlt(F){let Y=c.INVALID_ALT_NUMBER;for(let ee=0;ee "+ie+" upon "+this.getTokenName(ee)),null===ie?null:(ie=this.addDFAState(F,ie),null===Y||ee<-1||ee>this.atn.maxTokenType||(null===Y.edges&&(Y.edges=[]),Y.edges[ee+1]=ie,this.debug&&console.log("DFA=\n"+F.toString(null===this.parser?null:this.parser.literalNames,null===this.parser?null:this.parser.symbolicNames))),ie)}addDFAState(F,Y){if(Y===u.ERROR)return Y;const ee=F.states.get(Y);return null!==ee?ee:(Y.stateNumber=F.states.length,Y.configs.readOnly||(Y.configs.optimizeConfigs(this),Y.configs.setReadonly(!0)),F.states.add(Y),this.debug&&console.log("adding new DFA state: "+Y),Y)}reportAttemptingFullContext(F,Y,ee,ie,$){if(this.debug||this.retry_debug){const j=new w(ie,$+1);console.log("reportAttemptingFullContext decision="+F.decision+":"+ee+", input="+this.parser.getTokenStream().getText(j))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,F,ie,$,Y,ee)}reportContextSensitivity(F,Y,ee,ie,$){if(this.debug||this.retry_debug){const j=new w(ie,$+1);console.log("reportContextSensitivity decision="+F.decision+":"+ee+", input="+this.parser.getTokenStream().getText(j))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,F,ie,$,Y,ee)}reportAmbiguity(F,Y,ee,ie,$,j,G){if(this.debug||this.retry_debug){const V=new w(ee,ie+1);console.log("reportAmbiguity "+j+":"+G+", input="+this.parser.getTokenStream().getText(V))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,F,ee,ie,$,j,G)}}},7822:(Ie,ne,g)=>{const{Map:t,BitSet:_,AltDict:C,hashStuff:E}=g(4137),c=g(1019),{RuleStopState:b}=g(8402),{ATNConfigSet:s}=g(2301),{ATNConfig:f}=g(4341),{SemanticContext:d}=g(449),a={SLL:0,LL:1,LL_EXACT_AMBIG_DETECTION:2,hasSLLConflictTerminatingPrediction:function(l,r){if(a.allConfigsInRuleStopStates(r))return!0;if(l===a.SLL&&r.hasSemanticContext){const h=new s;for(let p=0;p1)return!0;return!1},allSubsetsEqual:function(l){let r=null;for(let u=0;u{const{Set:t,Hash:_,equalArrays:C}=g(4137);class E{hashCode(){const a=new _;return this.updateHashCode(a),a.finish()}evaluate(a,l){}evalPrecedence(a,l){return this}static andContext(a,l){if(null===a||a===E.NONE)return l;if(null===l||l===E.NONE)return a;const r=new s(a,l);return 1===r.opnds.length?r.opnds[0]:r}static orContext(a,l){if(null===a)return l;if(null===l)return a;if(a===E.NONE||l===E.NONE)return E.NONE;const r=new f(a,l);return 1===r.opnds.length?r.opnds[0]:r}}class c extends E{constructor(a,l,r){super(),this.ruleIndex=void 0===a?-1:a,this.predIndex=void 0===l?-1:l,this.isCtxDependent=void 0!==r&&r}evaluate(a,l){return a.sempred(this.isCtxDependent?l:null,this.ruleIndex,this.predIndex)}updateHashCode(a){a.update(this.ruleIndex,this.predIndex,this.isCtxDependent)}equals(a){return this===a||a instanceof c&&this.ruleIndex===a.ruleIndex&&this.predIndex===a.predIndex&&this.isCtxDependent===a.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}E.NONE=new c;class b extends E{constructor(a){super(),this.precedence=void 0===a?0:a}evaluate(a,l){return a.precpred(l,this.precedence)}evalPrecedence(a,l){return a.precpred(l,this.precedence)?E.NONE:null}compareTo(a){return this.precedence-a.precedence}updateHashCode(a){a.update(this.precedence)}equals(a){return this===a||a instanceof b&&this.precedence===a.precedence}toString(){return"{"+this.precedence+">=prec}?"}static filterPrecedencePredicates(a){const l=[];return a.values().map(function(r){r instanceof b&&l.push(r)}),l}}class s extends E{constructor(a,l){super();const r=new t;a instanceof s?a.opnds.map(function(h){r.add(h)}):r.add(a),l instanceof s?l.opnds.map(function(h){r.add(h)}):r.add(l);const u=b.filterPrecedencePredicates(r);if(u.length>0){let h=null;u.map(function(p){(null===h||p.precedencel.toString());return(a.length>3?a.slice(3):a).join("&&")}}class f extends E{constructor(a,l){super();const r=new t;a instanceof f?a.opnds.map(function(h){r.add(h)}):r.add(a),l instanceof f?l.opnds.map(function(h){r.add(h)}):r.add(l);const u=b.filterPrecedencePredicates(r);if(u.length>0){const h=u.sort(function(v,y){return v.compareTo(y)});r.add(h[h.length-1])}this.opnds=Array.from(r.values())}equals(a){return this===a||a instanceof f&&C(this.opnds,a.opnds)}updateHashCode(a){a.update(this.opnds,"OR")}evaluate(a,l){for(let r=0;rl.toString());return(a.length>3?a.slice(3):a).join("||")}}Ie.exports={SemanticContext:E,PrecedencePredicate:b,Predicate:c}},8935:(Ie,ne,g)=>{const{Token:t}=g(7709),{IntervalSet:_}=g(7127),{Predicate:C,PrecedencePredicate:E}=g(449);class c{constructor(M){if(null==M)throw"target cannot be null.";this.target=M,this.isEpsilon=!1,this.label=null}}c.EPSILON=1,c.RANGE=2,c.RULE=3,c.PREDICATE=4,c.ATOM=5,c.ACTION=6,c.SET=7,c.NOT_SET=8,c.WILDCARD=9,c.PRECEDENCE=10,c.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],c.serializationTypes={EpsilonTransition:c.EPSILON,RangeTransition:c.RANGE,RuleTransition:c.RULE,PredicateTransition:c.PREDICATE,AtomTransition:c.ATOM,ActionTransition:c.ACTION,SetTransition:c.SET,NotSetTransition:c.NOT_SET,WildcardTransition:c.WILDCARD,PrecedencePredicateTransition:c.PRECEDENCE};class a extends c{constructor(M){super(M)}}class u extends c{constructor(M,w){super(M),this.serializationType=c.SET,null!=w?this.label=w:(this.label=new _,this.label.addOne(t.INVALID_TYPE))}matches(M,w,k){return this.label.contains(M)}toString(){return this.label.toString()}}Ie.exports={Transition:c,AtomTransition:class b extends c{constructor(M,w){super(M),this.label_=w,this.label=this.makeLabel(),this.serializationType=c.ATOM}makeLabel(){const M=new _;return M.addOne(this.label_),M}matches(M,w,k){return this.label_===M}toString(){return this.label_}},SetTransition:u,NotSetTransition:class h extends u{constructor(M,w){super(M,w),this.serializationType=c.NOT_SET}matches(M,w,k){return M>=w&&M<=k&&!super.matches(M,w,k)}toString(){return"~"+super.toString()}},RuleTransition:class s extends c{constructor(M,w,k,I){super(M),this.ruleIndex=w,this.precedence=k,this.followState=I,this.serializationType=c.RULE,this.isEpsilon=!0}matches(M,w,k){return!1}},ActionTransition:class r extends c{constructor(M,w,k,I){super(M),this.serializationType=c.ACTION,this.ruleIndex=w,this.actionIndex=void 0===k?-1:k,this.isCtxDependent=void 0!==I&&I,this.isEpsilon=!0}matches(M,w,k){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}},EpsilonTransition:class f extends c{constructor(M,w){super(M),this.serializationType=c.EPSILON,this.isEpsilon=!0,this.outermostPrecedenceReturn=w}matches(M,w,k){return!1}toString(){return"epsilon"}},RangeTransition:class d extends c{constructor(M,w,k){super(M),this.serializationType=c.RANGE,this.start=w,this.stop=k,this.label=this.makeLabel()}makeLabel(){const M=new _;return M.addRange(this.start,this.stop),M}matches(M,w,k){return M>=this.start&&M<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}},WildcardTransition:class p extends c{constructor(M){super(M),this.serializationType=c.WILDCARD}matches(M,w,k){return M>=w&&M<=k}toString(){return"."}},PredicateTransition:class l extends a{constructor(M,w,k,I){super(M),this.serializationType=c.PREDICATE,this.ruleIndex=w,this.predIndex=k,this.isCtxDependent=I,this.isEpsilon=!0}matches(M,w,k){return!1}getPredicate(){return new C(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}},PrecedencePredicateTransition:class v extends a{constructor(M,w){super(M),this.serializationType=c.PRECEDENCE,this.precedence=w,this.isEpsilon=!0}matches(M,w,k){return!1}getPredicate(){return new E(this.precedence)}toString(){return this.precedence+" >= _p"}},AbstractPredicateTransition:a}},758:(Ie,ne,g)=>{ne.ATN=g(1019),ne.ATNDeserializer=g(9880),ne.LexerATNSimulator=g(8557),ne.ParserATNSimulator=g(1346),ne.PredictionMode=g(7822)},1267:(Ie,ne,g)=>{const{Set:t}=g(4137),{DFAState:_}=g(10),{StarLoopEntryState:C}=g(8402),{ATNConfigSet:E}=g(2301),{DFASerializer:c}=g(3015),{LexerDFASerializer:b}=g(3015);Ie.exports=class s{constructor(d,a){if(void 0===a&&(a=0),this.atnStartState=d,this.decision=a,this._states=new t,this.s0=null,this.precedenceDfa=!1,d instanceof C&&d.isPrecedenceDecision){this.precedenceDfa=!0;const l=new _(null,new E);l.edges=[],l.isAcceptState=!1,l.requiresFullContext=!1,this.s0=l}}getPrecedenceStartState(d){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return d<0||d>=this.s0.edges.length?null:this.s0.edges[d]||null}setPrecedenceStartState(d,a){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";d<0||(this.s0.edges[d]=a)}setPrecedenceDfa(d){if(this.precedenceDfa!==d){if(this._states=new t,d){const a=new _(null,new E);a.edges=[],a.isAcceptState=!1,a.requiresFullContext=!1,this.s0=a}else this.s0=null;this.precedenceDfa=d}}sortedStates(){return this._states.values().sort(function(a,l){return a.stateNumber-l.stateNumber})}toString(d,a){return d=d||null,a=a||null,null===this.s0?"":new c(this,d,a).toString()}toLexerString(){return null===this.s0?"":new b(this).toString()}get states(){return this._states}}},3015:(Ie,ne,g)=>{const t=g(4137);class _{constructor(c,b,s){this.dfa=c,this.literalNames=b||[],this.symbolicNames=s||[]}toString(){if(null===this.dfa.s0)return null;let c="";const b=this.dfa.sortedStates();for(let s=0;s"),c=c.concat(this.getStateString(l)),c=c.concat("\n"))}}}return 0===c.length?null:c}getEdgeLabel(c){return 0===c?"EOF":null!==this.literalNames||null!==this.symbolicNames?this.literalNames[c-1]||this.symbolicNames[c-1]:String.fromCharCode(c-1)}getStateString(c){const b=(c.isAcceptState?":":"")+"s"+c.stateNumber+(c.requiresFullContext?"^":"");return c.isAcceptState?null!==c.predicates?b+"=>"+t.arrayToString(c.predicates):b+"=>"+c.prediction.toString():b}}Ie.exports={DFASerializer:_,LexerDFASerializer:class C extends _{constructor(c){super(c,null)}getEdgeLabel(c){return"'"+String.fromCharCode(c)+"'"}}}},10:(Ie,ne,g)=>{const{ATNConfigSet:t}=g(2301),{Hash:_,Set:C}=g(4137);class c{constructor(s,f){return null===s&&(s=-1),null===f&&(f=new t),this.stateNumber=s,this.configs=f,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}getAltSet(){const s=new C;if(null!==this.configs)for(let f=0;f{ne.DFA=g(1267),ne.DFASerializer=g(3015).DFASerializer,ne.LexerDFASerializer=g(3015).LexerDFASerializer,ne.PredPrediction=g(10).PredPrediction},4294:(Ie,ne,g)=>{const{BitSet:t}=g(4137),{ErrorListener:_}=g(5243),{Interval:C}=g(7127);Ie.exports=class E extends _{constructor(b){super(),this.exactOnly=b=b||!0}reportAmbiguity(b,s,f,d,a,l,r){if(this.exactOnly&&!a)return;const u="reportAmbiguity d="+this.getDecisionDescription(b,s)+": ambigAlts="+this.getConflictingAlts(l,r)+", input='"+b.getTokenStream().getText(new C(f,d))+"'";b.notifyErrorListeners(u)}reportAttemptingFullContext(b,s,f,d,a,l){const r="reportAttemptingFullContext d="+this.getDecisionDescription(b,s)+", input='"+b.getTokenStream().getText(new C(f,d))+"'";b.notifyErrorListeners(r)}reportContextSensitivity(b,s,f,d,a,l){const r="reportContextSensitivity d="+this.getDecisionDescription(b,s)+", input='"+b.getTokenStream().getText(new C(f,d))+"'";b.notifyErrorListeners(r)}getDecisionDescription(b,s){const f=s.decision,d=s.atnStartState.ruleIndex,a=b.ruleNames;if(d<0||d>=a.length)return""+f;const l=a[d]||null;return null===l||0===l.length?""+f:`${f} (${l})`}getConflictingAlts(b,s){if(null!==b)return b;const f=new t;for(let d=0;d{class ne{syntaxError(C,E,c,b,s,f){}reportAmbiguity(C,E,c,b,s,f,d){}reportAttemptingFullContext(C,E,c,b,s,f){}reportContextSensitivity(C,E,c,b,s,f){}}class g extends ne{constructor(){super()}syntaxError(C,E,c,b,s,f){console.error("line "+c+":"+b+" "+s)}}g.INSTANCE=new g,Ie.exports={ErrorListener:ne,ConsoleErrorListener:g,ProxyErrorListener:class t extends ne{constructor(C){if(super(),null===C)throw"delegates";return this.delegates=C,this}syntaxError(C,E,c,b,s,f){this.delegates.map(d=>d.syntaxError(C,E,c,b,s,f))}reportAmbiguity(C,E,c,b,s,f,d){this.delegates.map(a=>a.reportAmbiguity(C,E,c,b,s,f,d))}reportAttemptingFullContext(C,E,c,b,s,f){this.delegates.map(d=>d.reportAttemptingFullContext(C,E,c,b,s,f))}reportContextSensitivity(C,E,c,b,s,f){this.delegates.map(d=>d.reportContextSensitivity(C,E,c,b,s,f))}}}},1962:(Ie,ne,g)=>{const{Token:t}=g(7709),{NoViableAltException:_,InputMismatchException:C,FailedPredicateException:E,ParseCancellationException:c}=g(8118),{ATNState:b}=g(8402),{Interval:s,IntervalSet:f}=g(7127);class d{reset(u){}recoverInline(u){}recover(u,h){}sync(u){}inErrorRecoveryMode(u){}reportError(u){}}class a extends d{constructor(){super(),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this.nextTokensContext=null,this.nextTokenState=0}reset(u){this.endErrorCondition(u)}beginErrorCondition(u){this.errorRecoveryMode=!0}inErrorRecoveryMode(u){return this.errorRecoveryMode}endErrorCondition(u){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1}reportMatch(u){this.endErrorCondition(u)}reportError(u,h){this.inErrorRecoveryMode(u)||(this.beginErrorCondition(u),h instanceof _?this.reportNoViableAlternative(u,h):h instanceof C?this.reportInputMismatch(u,h):h instanceof E?this.reportFailedPredicate(u,h):(console.log("unknown recognition error type: "+h.constructor.name),console.log(h.stack),u.notifyErrorListeners(h.getOffendingToken(),h.getMessage(),h)))}recover(u,h){this.lastErrorIndex===u.getInputStream().index&&null!==this.lastErrorStates&&this.lastErrorStates.indexOf(u.state)>=0&&u.consume(),this.lastErrorIndex=u._input.index,null===this.lastErrorStates&&(this.lastErrorStates=[]),this.lastErrorStates.push(u.state);const p=this.getErrorRecoverySet(u);this.consumeUntil(u,p)}sync(u){if(this.inErrorRecoveryMode(u))return;const h=u._interp.atn.states[u.state],p=u.getTokenStream().LA(1),v=u.atn.nextTokens(h);if(v.contains(p))return this.nextTokensContext=null,void(this.nextTokenState=b.INVALID_STATE_NUMBER);if(v.contains(t.EPSILON))null===this.nextTokensContext&&(this.nextTokensContext=u._ctx,this.nextTokensState=u._stateNumber);else switch(h.stateType){case b.BLOCK_START:case b.STAR_BLOCK_START:case b.PLUS_BLOCK_START:case b.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(u))return;throw new C(u);case b.PLUS_LOOP_BACK:case b.STAR_LOOP_BACK:this.reportUnwantedToken(u);const y=new f;y.addSet(u.getExpectedTokens());const M=y.addSet(this.getErrorRecoverySet(u));this.consumeUntil(u,M)}}reportNoViableAlternative(u,h){const p=u.getTokenStream();let v;v=null!==p?h.startToken.type===t.EOF?"":p.getText(new s(h.startToken.tokenIndex,h.offendingToken.tokenIndex)):"";const y="no viable alternative at input "+this.escapeWSAndQuote(v);u.notifyErrorListeners(y,h.offendingToken,h)}reportInputMismatch(u,h){const p="mismatched input "+this.getTokenErrorDisplay(h.offendingToken)+" expecting "+h.getExpectedTokens().toString(u.literalNames,u.symbolicNames);u.notifyErrorListeners(p,h.offendingToken,h)}reportFailedPredicate(u,h){u.notifyErrorListeners("rule "+u.ruleNames[u._ctx.ruleIndex]+" "+h.message,h.offendingToken,h)}reportUnwantedToken(u){if(this.inErrorRecoveryMode(u))return;this.beginErrorCondition(u);const h=u.getCurrentToken(),y="extraneous input "+this.getTokenErrorDisplay(h)+" expecting "+this.getExpectedTokens(u).toString(u.literalNames,u.symbolicNames);u.notifyErrorListeners(y,h,null)}reportMissingToken(u){if(this.inErrorRecoveryMode(u))return;this.beginErrorCondition(u);const h=u.getCurrentToken(),v="missing "+this.getExpectedTokens(u).toString(u.literalNames,u.symbolicNames)+" at "+this.getTokenErrorDisplay(h);u.notifyErrorListeners(v,h,null)}recoverInline(u){const h=this.singleTokenDeletion(u);if(null!==h)return u.consume(),h;if(this.singleTokenInsertion(u))return this.getMissingSymbol(u);throw new C(u)}singleTokenInsertion(u){const h=u.getTokenStream().LA(1),p=u._interp.atn;return!!p.nextTokens(p.states[u.state].transitions[0].target,u._ctx).contains(h)&&(this.reportMissingToken(u),!0)}singleTokenDeletion(u){const h=u.getTokenStream().LA(2);if(this.getExpectedTokens(u).contains(h)){this.reportUnwantedToken(u),u.consume();const v=u.getCurrentToken();return this.reportMatch(u),v}return null}getMissingSymbol(u){const h=u.getCurrentToken(),v=this.getExpectedTokens(u).first();let y;y=v===t.EOF?"":"";let M=h;const w=u.getTokenStream().LT(-1);return M.type===t.EOF&&null!==w&&(M=w),u.getTokenFactory().create(M.source,v,y,t.DEFAULT_CHANNEL,-1,-1,M.line,M.column)}getExpectedTokens(u){return u.getExpectedTokens()}getTokenErrorDisplay(u){if(null===u)return"";let h=u.text;return null===h&&(h=u.type===t.EOF?"":"<"+u.type+">"),this.escapeWSAndQuote(h)}escapeWSAndQuote(u){return"'"+(u=(u=(u=u.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}getErrorRecoverySet(u){const h=u._interp.atn;let p=u._ctx;const v=new f;for(;null!==p&&p.invokingState>=0;){const w=h.nextTokens(h.states[p.invokingState].transitions[0].followState);v.addSet(w),p=p.parentCtx}return v.removeOne(t.EPSILON),v}consumeUntil(u,h){let p=u.getTokenStream().LA(1);for(;p!==t.EOF&&!h.contains(p);)u.consume(),p=u.getTokenStream().LA(1)}}Ie.exports={BailErrorStrategy:class l extends a{constructor(){super()}recover(u,h){let p=u._ctx;for(;null!==p;)p.exception=h,p=p.parentCtx;throw new c(h)}recoverInline(u){this.recover(u,new C(u))}sync(u){}},DefaultErrorStrategy:a}},8118:(Ie,ne,g)=>{const{PredicateTransition:t}=g(8935),{Interval:_}=g(7127).Interval;class C extends Error{constructor(l){super(l.message),Error.captureStackTrace?Error.captureStackTrace(this,C):new Error,this.message=l.message,this.recognizer=l.recognizer,this.input=l.input,this.ctx=l.ctx,this.offendingToken=null,this.offendingState=-1,null!==this.recognizer&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return null!==this.recognizer?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}}function s(a,l){return null!==l?l:"failed predicate: {"+a+"}?"}class d extends Error{constructor(){super(),Error.captureStackTrace(this,d)}}Ie.exports={RecognitionException:C,NoViableAltException:class c extends C{constructor(l,r,u,h,p,v){v=v||l._ctx,h=h||l.getCurrentToken(),u=u||l.getCurrentToken(),r=r||l.getInputStream(),super({message:"",recognizer:l,input:r,ctx:v}),this.deadEndConfigs=p,this.startToken=u,this.offendingToken=h}},LexerNoViableAltException:class E extends C{constructor(l,r,u,h){super({message:"",recognizer:l,input:r,ctx:null}),this.startIndex=u,this.deadEndConfigs=h}toString(){let l="";return this.startIndex>=0&&this.startIndex{Ie.exports.RecognitionException=g(8118).RecognitionException,Ie.exports.NoViableAltException=g(8118).NoViableAltException,Ie.exports.LexerNoViableAltException=g(8118).LexerNoViableAltException,Ie.exports.InputMismatchException=g(8118).InputMismatchException,Ie.exports.FailedPredicateException=g(8118).FailedPredicateException,Ie.exports.DiagnosticErrorListener=g(4294),Ie.exports.BailErrorStrategy=g(1962).BailErrorStrategy,Ie.exports.DefaultErrorStrategy=g(1962).DefaultErrorStrategy,Ie.exports.ErrorListener=g(5243).ErrorListener},395:()=>{String.prototype.codePointAt||function(){"use strict";var Ie=function(){let g;try{const t={},_=Object.defineProperty;g=_(t,t,t)&&_}catch{}return g}();const ne=function(g){if(null==this)throw TypeError();const t=String(this),_=t.length;let C=g?Number(g):0;if(C!=C&&(C=0),C<0||C>=_)return;const E=t.charCodeAt(C);let c;return E>=55296&&E<=56319&&_>C+1&&(c=t.charCodeAt(C+1),c>=56320&&c<=57343)?1024*(E-55296)+c-56320+65536:E};Ie?Ie(String.prototype,"codePointAt",{value:ne,configurable:!0,writable:!0}):String.prototype.codePointAt=ne}()},9458:()=>{String.fromCodePoint||function(){const Ie=function(){let _;try{const C={},E=Object.defineProperty;_=E(C,C,C)&&E}catch{}return _}(),ne=String.fromCharCode,g=Math.floor,t=function(_){const E=[];let c,b,s=-1;const f=arguments.length;if(!f)return"";let d="";for(;++s1114111||g(a)!==a)throw RangeError("Invalid code point: "+a);a<=65535?E.push(a):(a-=65536,c=55296+(a>>10),b=a%1024+56320,E.push(c,b)),(s+1===f||E.length>16384)&&(d+=ne.apply(null,E),E.length=0)}return d};Ie?Ie(String,"fromCodePoint",{value:t,configurable:!0,writable:!0}):String.fromCodePoint=t}()},6261:(Ie,ne,g)=>{const{Token:t}=g(7709),{Interval:_}=g(7127),C=new _(-1,-2);class E{}class c extends E{constructor(){super()}}class b extends c{constructor(){super()}}class f extends b{constructor(){super()}}class d extends f{constructor(){super()}}class r extends f{constructor(v){super(),this.parentCtx=null,this.symbol=v}getChild(v){return null}getSymbol(){return this.symbol}getParent(){return this.parentCtx}getPayload(){return this.symbol}getSourceInterval(){if(null===this.symbol)return C;const v=this.symbol.tokenIndex;return new _(v,v)}getChildCount(){return 0}accept(v){return v.visitTerminal(this)}getText(){return this.symbol.text}toString(){return this.symbol.type===t.EOF?"":this.symbol.text}}class h{walk(v,y){if(y instanceof d||void 0!==y.isErrorNode&&y.isErrorNode())v.visitErrorNode(y);else if(y instanceof f)v.visitTerminal(y);else{this.enterRule(v,y);for(let w=0;w{const t=g(4137),{Token:_}=g(7709),{ErrorNode:C,TerminalNode:E,RuleNode:c}=g(6261),b={toStringTree:function(s,f,d){f=f||null,null!==(d=d||null)&&(f=d.ruleNames);let a=b.getNodeText(s,f);a=t.escapeWhitespace(a,!1);const l=s.getChildCount();if(0===l)return a;let r="("+a+" ";l>0&&(a=b.toStringTree(s.getChild(0),f),r=r.concat(a));for(let u=1;u{const t=g(6261),_=g(7760);Ie.exports={...t,Trees:_}},9804:function(){var Ie;Ie=typeof self<"u"?self:this,function(g){var t_searchParams="URLSearchParams"in Ie,t_iterable="Symbol"in Ie&&"iterator"in Symbol,t_blob="FileReader"in Ie&&"Blob"in Ie&&function(){try{return new Blob,!0}catch{return!1}}(),t_formData="FormData"in Ie,t_arrayBuffer="ArrayBuffer"in Ie;if(t_arrayBuffer)var C=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],E=ArrayBuffer.isView||function(T){return T&&C.indexOf(Object.prototype.toString.call(T))>-1};function c(T){if("string"!=typeof T&&(T=String(T)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(T))throw new TypeError("Invalid character in header field name");return T.toLowerCase()}function b(T){return"string"!=typeof T&&(T=String(T)),T}function s(T){var U={next:function(){var S=T.shift();return{done:void 0===S,value:S}}};return t_iterable&&(U[Symbol.iterator]=function(){return U}),U}function f(T){this.map={},T instanceof f?T.forEach(function(U,S){this.append(S,U)},this):Array.isArray(T)?T.forEach(function(U){this.append(U[0],U[1])},this):T&&Object.getOwnPropertyNames(T).forEach(function(U){this.append(U,T[U])},this)}function d(T){if(T.bodyUsed)return Promise.reject(new TypeError("Already read"));T.bodyUsed=!0}function a(T){return new Promise(function(U,S){T.onload=function(){U(T.result)},T.onerror=function(){S(T.error)}})}function l(T){var U=new FileReader,S=a(U);return U.readAsArrayBuffer(T),S}function h(T){if(T.slice)return T.slice(0);var U=new Uint8Array(T.byteLength);return U.set(new Uint8Array(T)),U.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(T){this._bodyInit=T,T?"string"==typeof T?this._bodyText=T:t_blob&&Blob.prototype.isPrototypeOf(T)?this._bodyBlob=T:t_formData&&FormData.prototype.isPrototypeOf(T)?this._bodyFormData=T:t_searchParams&&URLSearchParams.prototype.isPrototypeOf(T)?this._bodyText=T.toString():t_arrayBuffer&&t_blob&&function _(T){return T&&DataView.prototype.isPrototypeOf(T)}(T)?(this._bodyArrayBuffer=h(T.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t_arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(T)||E(T))?this._bodyArrayBuffer=h(T):this._bodyText=T=Object.prototype.toString.call(T):this._bodyText="",this.headers.get("content-type")||("string"==typeof T?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t_searchParams&&URLSearchParams.prototype.isPrototypeOf(T)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t_blob&&(this.blob=function(){var T=d(this);if(T)return T;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?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(l)}),this.text=function(){var T=d(this);if(T)return T;if(this._bodyBlob)return function r(T){var U=new FileReader,S=a(U);return U.readAsText(T),S}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function u(T){for(var U=new Uint8Array(T),S=new Array(U.length),R=0;R-1?U:T}(U.method||this.method||"GET"),this.mode=U.mode||this.mode||null,this.signal=U.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&S)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(S)}function w(T){var U=new FormData;return T.trim().split("&").forEach(function(S){if(S){var R=S.split("="),N=R.shift().replace(/\+/g," "),A=R.join("=").replace(/\+/g," ");U.append(decodeURIComponent(N),decodeURIComponent(A))}}),U}function k(T){var U=new f;return T.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(R){var N=R.split(":"),A=N.shift().trim();if(A){var F=N.join(":").trim();U.append(A,F)}}),U}function I(T,U){U||(U={}),this.type="default",this.status=void 0===U.status?200:U.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in U?U.statusText:"OK",this.headers=new f(U.headers),this.url=U.url||"",this._initBody(T)}M.prototype.clone=function(){return new M(this,{body:this._bodyInit})},p.call(M.prototype),p.call(I.prototype),I.prototype.clone=function(){return new I(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},I.error=function(){var T=new I(null,{status:0,statusText:""});return T.type="error",T};var D=[301,302,303,307,308];I.redirect=function(T,U){if(-1===D.indexOf(U))throw new RangeError("Invalid status code");return new I(null,{status:U,headers:{location:T}})},g.DOMException=Ie.DOMException;try{new g.DOMException}catch{g.DOMException=function(U,S){this.message=U,this.name=S;var R=Error(U);this.stack=R.stack},g.DOMException.prototype=Object.create(Error.prototype),g.DOMException.prototype.constructor=g.DOMException}function O(T,U){return new Promise(function(S,R){var N=new M(T,U);if(N.signal&&N.signal.aborted)return R(new g.DOMException("Aborted","AbortError"));var A=new XMLHttpRequest;function F(){A.abort()}A.onload=function(){var Y={status:A.status,statusText:A.statusText,headers:k(A.getAllResponseHeaders()||"")};Y.url="responseURL"in A?A.responseURL:Y.headers.get("X-Request-URL"),S(new I("response"in A?A.response:A.responseText,Y))},A.onerror=function(){R(new TypeError("Network request failed"))},A.ontimeout=function(){R(new TypeError("Network request failed"))},A.onabort=function(){R(new g.DOMException("Aborted","AbortError"))},A.open(N.method,N.url,!0),"include"===N.credentials?A.withCredentials=!0:"omit"===N.credentials&&(A.withCredentials=!1),"responseType"in A&&t_blob&&(A.responseType="blob"),N.headers.forEach(function(Y,ee){A.setRequestHeader(ee,Y)}),N.signal&&(N.signal.addEventListener("abort",F),A.onreadystatechange=function(){4===A.readyState&&N.signal.removeEventListener("abort",F)}),A.send(typeof N._bodyInit>"u"?null:N._bodyInit)})}O.polyfill=!0,Ie.fetch||(Ie.fetch=O,Ie.Headers=f,Ie.Request=M,Ie.Response=I),g.Headers=f,g.Request=M,g.Response=I,g.fetch=O,Object.defineProperty(g,"__esModule",{value:!0})}({})},59:Ie=>{Ie.exports=function(t){var _=new Date(t.getTime()),C=_.getTimezoneOffset();return _.setSeconds(0,0),6e4*C+_.getTime()%6e4}},2378:(Ie,ne,g)=>{var t=g(8356);Ie.exports=function _(C,E){var c=t(C),b=Number(E);return c.setDate(c.getDate()+b),c}},6200:(Ie,ne,g)=>{var t=g(9627);Ie.exports=function C(E,c){var b=Number(c);return t(E,36e5*b)}},9627:(Ie,ne,g)=>{var t=g(8356);Ie.exports=function _(C,E){var c=t(C).getTime(),b=Number(E);return new Date(c+b)}},5462:(Ie,ne,g)=>{var t=g(9627);Ie.exports=function C(E,c){var b=Number(c);return t(E,6e4*b)}},2482:(Ie,ne,g)=>{var t=g(8356),_=g(590);Ie.exports=function C(E,c){var b=t(E),s=Number(c),f=b.getMonth()+s,d=new Date(0);d.setFullYear(b.getFullYear(),f,1),d.setHours(0,0,0,0);var a=_(d);return b.setMonth(f,Math.min(a,b.getDate())),b}},5802:(Ie,ne,g)=>{var t=g(9627);Ie.exports=function _(C,E){var c=Number(E);return t(C,1e3*c)}},1818:(Ie,ne,g)=>{var t=g(2378);Ie.exports=function _(C,E){var c=Number(E);return t(C,7*c)}},6833:(Ie,ne,g)=>{var t=g(2482);Ie.exports=function _(C,E){var c=Number(E);return t(C,12*c)}},590:(Ie,ne,g)=>{var t=g(8356);Ie.exports=function _(C){var E=t(C),c=E.getFullYear(),b=E.getMonth(),s=new Date(0);return s.setFullYear(c,b+1,0),s.setHours(0,0,0,0),s.getDate()}},2057:Ie=>{Ie.exports=function ne(g){return g instanceof Date}},8356:(Ie,ne,g)=>{var t=g(59),_=g(2057),C=36e5,E=6e4,b=/[T ]/,s=/:/,f=/^(\d{2})$/,d=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],a=/^(\d{4})/,l=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],r=/^-(\d{2})$/,u=/^-?(\d{3})$/,h=/^-?(\d{2})-?(\d{2})$/,p=/^-?W(\d{2})$/,v=/^-?W(\d{2})-?(\d{1})$/,y=/^(\d{2}([.,]\d*)?)$/,M=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,w=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,k=/([Z+-].*)$/,I=/^(Z)$/,D=/^([+-])(\d{2})$/,O=/^([+-])(\d{2}):?(\d{2})$/;function F(Y,ee,ie){ee=ee||0,ie=ie||0;var $=new Date(0);$.setUTCFullYear(Y,0,4);var G=7*ee+ie+1-($.getUTCDay()||7);return $.setUTCDate($.getUTCDate()+G),$}Ie.exports=function T(Y,ee){if(_(Y))return new Date(Y.getTime());if("string"!=typeof Y)return new Date(Y);var $=(ee||{}).additionalDigits;$=null==$?2:Number($);var j=function U(Y){var $,ee={},ie=Y.split(b);if(s.test(ie[0])?(ee.date=null,$=ie[0]):(ee.date=ie[0],$=ie[1]),$){var j=k.exec($);j?(ee.time=$.replace(j[1],""),ee.timezone=j[1]):ee.time=$}return ee}(Y),G=function S(Y,ee){var j,ie=d[ee],$=l[ee];if(j=a.exec(Y)||$.exec(Y)){var G=j[1];return{year:parseInt(G,10),restDateString:Y.slice(G.length)}}if(j=f.exec(Y)||ie.exec(Y)){var V=j[1];return{year:100*parseInt(V,10),restDateString:Y.slice(V.length)}}return{year:null}}(j.date,$),K=function R(Y,ee){if(null===ee)return null;var ie,$,j;if(0===Y.length)return($=new Date(0)).setUTCFullYear(ee),$;if(ie=r.exec(Y))return $=new Date(0),j=parseInt(ie[1],10)-1,$.setUTCFullYear(ee,j),$;if(ie=u.exec(Y)){$=new Date(0);var V=parseInt(ie[1],10);return $.setUTCFullYear(ee,0,V),$}if(ie=h.exec(Y)){$=new Date(0),j=parseInt(ie[1],10)-1;var W=parseInt(ie[2],10);return $.setUTCFullYear(ee,j,W),$}return(ie=p.exec(Y))?F(ee,parseInt(ie[1],10)-1):(ie=v.exec(Y))?F(ee,parseInt(ie[1],10)-1,parseInt(ie[2],10)-1):null}(G.restDateString,G.year);if(K){var be,ce=K.getTime(),ue=0;if(j.time&&(ue=function N(Y){var ee,ie,$;if(ee=y.exec(Y))return(ie=parseFloat(ee[1].replace(",",".")))%24*C;if(ee=M.exec(Y))return ie=parseInt(ee[1],10),$=parseFloat(ee[2].replace(",",".")),ie%24*C+$*E;if(ee=w.exec(Y)){ie=parseInt(ee[1],10),$=parseInt(ee[2],10);var j=parseFloat(ee[3].replace(",","."));return ie%24*C+$*E+1e3*j}return null}(j.time)),j.timezone)be=function A(Y){var ee,ie;return(ee=I.exec(Y))?0:(ee=D.exec(Y))?(ie=60*parseInt(ee[2],10),"+"===ee[1]?-ie:ie):(ee=O.exec(Y))?(ie=60*parseInt(ee[2],10)+parseInt(ee[3],10),"+"===ee[1]?-ie:ie):0}(j.timezone)*E;else{var Ze=ce+ue,pt=new Date(Ze);be=t(pt);var ct=new Date(Ze);ct.setDate(pt.getDate()+1);var Ct=t(ct)-t(pt);Ct>0&&(be+=Ct)}return new Date(ce+ue+be)}return new Date(Y)}},282:(Ie,ne,g)=>{ne.formatArgs=function _(s){if(s[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+s[0]+(this.useColors?"%c ":" ")+"+"+Ie.exports.humanize(this.diff),!this.useColors)return;const f="color: "+this.color;s.splice(1,0,f,"color: inherit");let d=0,a=0;s[0].replace(/%[a-zA-Z%]/g,l=>{"%%"!==l&&(d++,"%c"===l&&(a=d))}),s.splice(a,0,f)},ne.save=function C(s){try{s?ne.storage.setItem("debug",s):ne.storage.removeItem("debug")}catch{}},ne.load=function E(){let s;try{s=ne.storage.getItem("debug")}catch{}return!s&&typeof process<"u"&&"env"in process&&(s=process.env.DEBUG),s},ne.useColors=function t(){return!(!(typeof window<"u"&&window.process)||"renderer"!==window.process.type&&!window.process.__nwjs)||!(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},ne.storage=function c(){try{return localStorage}catch{}}(),ne.destroy=(()=>{let s=!1;return()=>{s||(s=!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`."))}})(),ne.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"],ne.log=console.debug||console.log||(()=>{}),Ie.exports=g(741)(ne);const{formatters:b}=Ie.exports;b.j=function(s){try{return JSON.stringify(s)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}}},741:(Ie,ne,g)=>{Ie.exports=function t(_){function E(r){let u,p,v,h=null;function y(...M){if(!y.enabled)return;const w=y,k=Number(new Date);w.diff=k-(u||k),w.prev=u,w.curr=k,u=k,M[0]=E.coerce(M[0]),"string"!=typeof M[0]&&M.unshift("%O");let D=0;M[0]=M[0].replace(/%([a-zA-Z%])/g,(T,U)=>{if("%%"===T)return"%";D++;const S=E.formatters[U];return"function"==typeof S&&(T=S.call(w,M[D]),M.splice(D,1),D--),T}),E.formatArgs.call(w,M),(w.log||E.log).apply(w,M)}return y.namespace=r,y.useColors=E.useColors(),y.color=E.selectColor(r),y.extend=c,y.destroy=E.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==h?h:(p!==E.namespaces&&(p=E.namespaces,v=E.enabled(r)),v),set:M=>{h=M}}),"function"==typeof E.init&&E.init(y),y}function c(r,u){const h=E(this.namespace+(typeof u>"u"?":":u)+r);return h.log=this.log,h}function d(r){return r.toString().substring(2,r.toString().length-2).replace(/\.\*\?$/,"*")}return E.debug=E,E.default=E,E.coerce=function a(r){return r instanceof Error?r.stack||r.message:r},E.disable=function s(){const r=[...E.names.map(d),...E.skips.map(d).map(u=>"-"+u)].join(",");return E.enable(""),r},E.enable=function b(r){let u;E.save(r),E.namespaces=r,E.names=[],E.skips=[];const h=("string"==typeof r?r:"").split(/[\s,]+/),p=h.length;for(u=0;u{E[r]=_[r]}),E.names=[],E.skips=[],E.formatters={},E.selectColor=function C(r){let u=0;for(let h=0;h{"use strict";var ne="%[a-f0-9]{2}",g=new RegExp("("+ne+")|([^%]+?)","gi"),t=new RegExp("("+ne+")+","gi");function _(c,b){try{return[decodeURIComponent(c.join(""))]}catch{}if(1===c.length)return c;var s=c.slice(0,b=b||1),f=c.slice(b);return Array.prototype.concat.call([],_(s),_(f))}function C(c){try{return decodeURIComponent(c)}catch{for(var b=c.match(g)||[],s=1;s"u"&&typeof process<"u"&&"[object process]"==={}.toString.call(process),u=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function M(){var Oe=setTimeout;return function(){return Oe(k,1)}}var w=new Array(1e3);function k(){for(var Oe=0;Oe{Ie.exports=class ne{constructor(t){this.capabilityStatement=t}serverCan(t){return this.supportFor({capabilityType:"interaction",where:{code:t}})}resourceCan(t,_){return this.supportFor({resourceType:t,capabilityType:"interaction",where:{code:_}})}serverSearch(t){return this.supportFor({capabilityType:"searchParam",where:{name:t}})}resourceSearch(t,_){return this.supportFor({resourceType:t,capabilityType:"searchParam",where:{name:_}})}supportFor({resourceType:t,capabilityType:_,where:C}={}){let E;if(E=t?this.resourceCapabilities({resourceType:t}):this.serverCapabilities(),!E)return!1;const c=E[_];if(C&&c){const b=Object.keys(C)[0];return void 0!==c.find(f=>f[b]===C[b])}return void 0!==c}interactionsFor({resourceType:t}={}){const _=this.resourceCapabilities({resourceType:t});return void 0===_?[]:_.interaction.map(C=>C.code)}searchParamsFor({resourceType:t}={}){const _=this.resourceCapabilities({resourceType:t});return void 0===_||void 0===_.searchParam?[]:_.searchParam.map(C=>C.name)}resourceCapabilities({resourceType:t}={}){return this.serverCapabilities().resource.find(E=>E.type===t)}capabilityContents({resourceType:t,capabilityType:_}={}){const C=this.resourceCapabilities({resourceType:t});if(void 0!==C)return C[_]}serverCapabilities(){return this.capabilityStatement.rest.find(t=>"server"===t.mode)}}},3833:(Ie,ne,g)=>{var t=g(9293).default;const _=g(8570),{authFromCapability:C,authFromWellKnown:E}=g(4205),c=g(5236),b=g(1336),s=g(1482),{createQueryString:f,validResourceType:d}=g(3097),{FetchQueue:a}=g(918),{deprecatePaginationArgs:l,deprecateHeaders:r}=g(1813),u=g(9799);Ie.exports=class h{constructor({baseUrl:v,customHeaders:y,requestOptions:M,requestSigner:w,bearerToken:k}={}){this.httpClient=new c({baseUrl:v,customHeaders:y,requestOptions:M,requestSigner:w}),k&&(this.httpClient.bearerToken=k),this.resolver=new b(this),this.pagination=new s(this.httpClient)}static httpFor(v){return{request:c.requestFor(v),response:c.responseFor(v)}}get baseUrl(){return this.httpClient&&this.httpClient.baseUrl}set baseUrl(v){this.httpClient&&(this.httpClient.baseUrl=v)}get customHeaders(){return this.httpClient.customHeaders}set customHeaders(v){this.httpClient.customHeaders=v}set bearerToken(v){this.httpClient.bearerToken=v}resolve({reference:v,context:y,headers:M,options:w={}}={}){return this.resolver.resolve({reference:v,context:y,options:r(w,M)})}smartAuthMetadata({headers:v,options:y={}}={}){var M=this;return t(function*(){const w={options:r(y,v)};w.options.headers||(w.options.headers={}),w.options.headers.accept="application/fhir+json,application/json";const k=M.baseUrl.replace(/\/*$/,"/"),I=new a,D=I.buildJob(),O=I.buildJob(),T=I.buildJob(),U=[];return new Promise((S,R)=>{function N(A){U.push(A)===I.numJobs&&R(new Error(U.map(F=>F.message).join("; ")))}M.httpClient.request("GET",`${k}.well-known/smart-configuration`,O.addSignalOption(w)).then(A=>(I.safeAbortOthers(O),S(E(A)))).catch(A=>N(A)),M.capabilityStatement(D.addSignalOption(w)).then(A=>(I.safeAbortOthers(D),S(C(A)))).catch(A=>N(A)),M.httpClient.request("GET",`${k}.well-known/openid-configuration`,T.addSignalOption(w)).then(A=>(I.safeAbortOthers(T),S(E(A)))).catch(A=>N(A))})})()}capabilityStatement({headers:v,options:y={}}={}){return this.metadata||(this.metadata=this.httpClient.get("metadata",r(y,v))),this.metadata}request(v,{method:y="GET",options:M={},body:w}={}){return M.method&&M.method!==y&&console.warn(`WARNING: 'options.method' has been specified: ${M.method} but will be ignored. Use 'method' instead.`),this.httpClient.request(y,v,M,w)}read({resourceType:v,id:y,headers:M,options:w={}}={}){if(!d(v))throw new Error("Invalid resourceType",v);return this.httpClient.get(`${v}/${y}`,r(w,M))}vread({resourceType:v,id:y,version:M,headers:w,options:k={}}={}){if(!d(v))throw new Error("Invalid resourceType",v);return this.httpClient.get(`${v}/${y}/_history/${M}`,r(k,w))}create({resourceType:v,body:y,headers:M,options:w={}}={}){if(!d(v))throw new Error("Invalid resourceType",v);return this.httpClient.post(v,y,r(w,M))}delete({resourceType:v,id:y,headers:M,options:w={}}={}){if(!d(v))throw new Error("Invalid resourceType",v);return this.httpClient.delete(`${v}/${y}`,r(w,M))}update({resourceType:v,id:y,searchParams:M,body:w,headers:k,options:I={}}={}){if(!d(v))throw new Error("Invalid resourceType",v);if(y&&M)throw new Error("Conditional update with search params cannot be with id",v);if(M){const D=f(M);return this.httpClient.put(`${v}?${D}`,w,r(I,k))}return this.httpClient.put(`${v}/${y}`,w,r(I,k))}patch({resourceType:v,id:y,JSONPatch:M,headers:w,options:k={}}={}){if(!d(v))throw new Error("Invalid resourceType",v);const D={...r(k,w).headers||{},"Content-Type":"application/json-patch+json"};return this.httpClient.patch(`${v}/${y}`,M,{...k,headers:D})}batch({body:v,headers:y,options:M={}}={}){return this.httpClient.post("/",v,r(M,y))}transaction({body:v,headers:y,options:M={}}={}){return this.httpClient.post("/",v,r(M,y))}operation({name:v,resourceType:y,id:M,method:w="POST",input:k,options:I={}}={}){const D=["/"];if(y){if(!d(y))throw new Error("Invalid resourceType",y);D.push(`${y}/`)}return M&&D.push(`${M}/`),D.push(`${v.startsWith("$")?v:`$${v}`}`),"POST"===w.toUpperCase()?this.httpClient.post(D.join(""),k,I):"GET"===w.toUpperCase()?(k&&D.push(`?${_.stringify(k)}`),this.httpClient.get(D.join(""),I)):void 0}nextPage(v,y){const{bundle:M,options:w={}}=l(v,y);return this.pagination.nextPage(M,w)}prevPage(v,y){const{bundle:M,options:w={}}=l(v,y);return this.pagination.prevPage(M,w)}search({resourceType:v,compartment:y,searchParams:M,headers:w,options:k={}}={}){if(v&&!d(v))throw new Error("Invalid resourceType",v);if(y&&v)return this.compartmentSearch({resourceType:v,compartment:y,searchParams:M,options:r(k,w)});if(v)return this.resourceSearch({resourceType:v,searchParams:M,options:r(k,w)});if(M instanceof Object&&Object.keys(M).length>0)return this.systemSearch({searchParams:M,options:r(k,w)});throw new Error("search requires either searchParams or a resourceType")}resourceSearch({resourceType:v,searchParams:y,headers:M,options:w={}}={}){if(!d(v))throw new Error("Invalid resourceType",v);let k=v;return w.postSearch&&(k+="/_search"),this.baseSearch({searchPath:k,searchParams:y,headers:M,options:w})}systemSearch({searchParams:v,headers:y,options:M={}}={}){return this.baseSearch({searchPath:"/_search",searchParams:v,headers:y,options:M})}compartmentSearch({resourceType:v,compartment:y,searchParams:M,headers:w,options:k={}}={}){if(!d(v))throw new Error("Invalid resourceType",v);const{resourceType:I,id:D}=y;if(!d(I))throw new Error("Invalid compartmentType",I);let O=`/${I}/${D}/${v}`;return k.postSearch&&(O+="/_search"),this.baseSearch({searchPath:O,searchParams:M,headers:w,options:k})}baseSearch({searchPath:v,searchParams:y,headers:M,options:w}){const k=f(y),I=r(w,M);return this[w.postSearch?"postSearch":"getSearch"](v,k,I)}postSearch(v,y,M){const k={"Content-Type":"application/x-www-form-urlencoded",...M.headers},I={...M,headers:k};return this.httpClient.post(v,y,I)}getSearch(v,y,M){let w=v;return y&&(w+=`?${y}`),this.httpClient.get(w,M)}history({resourceType:v,id:y,headers:M,options:w={}}={}){if(v&&!d(v))throw new Error("Invalid resourceType",v);return y&&v?this.resourceHistory({resourceType:v,id:y,options:r(w,M)}):v?this.typeHistory({resourceType:v,options:r(w,M)}):this.systemHistory({options:r(w,M)})}resourceHistory({resourceType:v,id:y,headers:M,options:w={}}={}){if(!d(v))throw new Error("Invalid resourceType",v);return this.httpClient.get(`${v}/${y}/_history`,r(w,M))}typeHistory({resourceType:v,headers:y,options:M={}}={}){if(!d(v))throw new Error("Invalid resourceType",v);return this.httpClient.get(`${v}/_history`,r(M,y))}systemHistory({headers:v,options:y={}}={}){return this.httpClient.get("_history",r(y,v))}},Ie.exports.CapabilityTool=u},1813:Ie=>{Ie.exports={deprecateHeaders:(t,_)=>_?(console.warn("WARNING: headers is deprecated and will be removed in the next major version. Use options.headers instead."),console.warn(JSON.stringify(_,null," ")),{headers:_,...t}):t,deprecatePaginationArgs:(t,_)=>{if(Object.prototype.hasOwnProperty.call(t,"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 C={bundle:t};return _&&(C.options={headers:_}),C}return t}}},918:(Ie,ne,g)=>{const{AbortController:t}=g(98);class _{constructor(){this.controller=new t,this.resolving=!1}addSignalOption(c){return{signal:this.controller.signal,...c}}safeAbort(){this.resolving||this.controller.abort()}}Ie.exports={FetchQueue:class C{constructor(){this.jobs=[],this.numJobs=0}buildJob(){const c=new _;return this.numJobs=this.jobs.push(c),c}safeAbortOthers(c){c.resolving=!0;for(let b=0,s=this.numJobs;b{Ie.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})?$/}},5236:(Ie,ne,g)=>{var t=g(9293).default;g(1653).polyfill(),g(9804);const{logRequestError:_,logRequestInfo:C,logResponseInfo:E}=g(4641),c={accept:"application/fhir+json"},b="__response",s="__request";let d,a,f=!1;try{d=g(3269),a=g(3269).HttpsAgent,f=!0}catch{C("HTTP Agent is not available")}const l=new WeakMap;function u({status:p,data:v,method:y,headers:M,url:w}){const k={response:{status:p,data:v},config:{method:y,url:w,headers:M}};return _(k),k}Ie.exports=class nd{static lcKeys(v){return v&&Object.keys(v).reduce((y,M)=>(y[M.toLowerCase()]=v[M],y),{})}constructor({baseUrl:v,customHeaders:y={},requestOptions:M={},requestSigner:w}){this.baseUrl=v,this.customHeaders=y,this.baseRequestOptions=M,this.requestSigner=w}set baseUrl(v){if(!v)throw new Error("baseUrl cannot be blank");if("string"!=typeof v)throw new Error("baseUrl must be a string");this.baseUrlValue=v}get baseUrl(){return this.baseUrlValue}static responseFor(v){return v[b]}static requestFor(v){return v[s]}set bearerToken(v){this.authHeader={authorization:`Bearer ${v}`}}requestBuilder(v,y,M,w){const k={...this.baseRequestOptions,...M,method:v,body:(p=w,"string"==typeof p?p:JSON.stringify(p))};var p;let I={};return f||(I={keepalive:!Object.prototype.hasOwnProperty.call(k,"keepalive")||k.keepalive}),Object.assign(k,I,{headers:new Headers(this.mergeHeaders(M.headers))},function r(p,v={}){const y={baseUrl:p,agentOptions:v};return f?(l.get(y)||(p.startsWith("https")?l.set(y,{agent:new a(v)}):l.set(y,{agent:new d(v)})),l.get(y)):{}}(this.baseUrl,k)),this.requestSigner&&this.requestSigner(y,k),new Request(y,k)}request(v,y,M={},w){var k=this;return t(function*(){const I=k.expandUrl(y),D=k.requestBuilder(v,I,M,w);C(v,I,D.headers);const O=yield fetch(D),{status:T,headers:U}=O;E({status:T,response:O});const S=yield O.text();let R={};if(S)try{R=JSON.parse(S)}catch{throw R=S,u({status:T,data:R,method:v,headers:U,url:I})}if(!O.ok)throw u({status:T,data:R,method:v,headers:U,url:I});return Object.defineProperty(R,b,{writable:!1,enumerable:!1,value:O}),Object.defineProperty(R,s,{writable:!1,enumerable:!1,value:D}),R})()}get(v,y){var M=this;return t(function*(){return M.request("GET",v,y)})()}delete(v,y){var M=this;return t(function*(){return M.request("DELETE",v,y)})()}put(v,y,M={}){var w=this;return t(function*(){const k={"content-type":"application/fhir+json",...nd.lcKeys(M.headers)},I={...M,headers:k};return w.request("PUT",v,I,y)})()}post(v,y,M={}){var w=this;return t(function*(){const k={"content-type":"application/fhir+json",...nd.lcKeys(M.headers)},I={...M,headers:k};return w.request("POST",v,I,y)})()}patch(v,y,M){var w=this;return t(function*(){return w.request("PATCH",v,M,y)})()}expandUrl(v=""){return v.toLowerCase().startsWith("http")?v:this.baseUrl.endsWith("/")&&v.startsWith("/")?this.baseUrl+v.slice(1):this.baseUrl.endsWith("/")||v.startsWith("/")?this.baseUrl+v:`${this.baseUrl}/${v}`}mergeHeaders(v){const{lcKeys:y}=nd;return{...y(c),...y(this.authHeader),...y(this.customHeaders),...y(v)}}}},4641:(Ie,ne,g)=>{const t=g(5293),_=g(282)("fhir-kit-client:error"),C=g(282)("fhir-kit-client:info");function E(a){return t(a)}function c(a){return E(a.raw&&"function"==typeof a.raw?a.raw():a)}Ie.exports={logRequestError:function b(a){_.enabled&&(_("!!! Error"),a.response&&_(` Status: ${a.response.status}`),a.config&&(_(` ${a.config.method.toUpperCase()}: ${a.config.url}`),_(` Headers: ${c(a.config.headers)}`)),a.response&&a.response.data&&_(E(a.response.data)),_("!!! Request Error"))},logRequestInfo:function s(a,l,r){C.enabled&&(l&&C(`Request: ${a.toUpperCase()} ${l.toString()}`),C(`Request Headers: ${c(r)}`))},logResponseInfo:function f(a){C.enabled&&(C(`Response: ${a.status}`),a.data&&C(E(a.data)))},logError:function d(a){_.enabled&&_(a)}}},1482:Ie=>{Ie.exports=class ne{constructor(t){this.httpClient=t}nextPage(t,{headers:_}={}){const C=t.link.find(E=>"next"===E.relation);return C?this.httpClient.get(C.url,{headers:_}):void 0}prevPage(t,{headers:_}={}){const C=t.link.find(E=>E.relation.match(/^prev(ious)?$/));return C?this.httpClient.get(C.url,{headers:_}):void 0}}},1336:(Ie,ne,g)=>{var t=g(9293).default;const{splitReference:_}=g(3097),{deprecateHeaders:C}=g(1813);Ie.exports=class{constructor(E){this.client=E}resolve({reference:E,context:c,headers:b,options:s={}}={}){var f=this;return t(function*(){return void 0===c?E.startsWith("http")?f.resolveAbsoluteReference(E,C(s,b)):f.client.httpClient.get(E,C(s,b)):E.startsWith("#")?f.resolveContainedReference(E,c):f.resolveBundleReference(E,c,C(s,b))})()}resolveAbsoluteReference(E,c){var b=this;return t(function*(){if(E.startsWith(b.client.baseUrl))return b.client.httpClient.get(E,c);const{baseUrl:s,resourceType:f,id:d}=_(E);return new(g(3833))({baseUrl:s}).read({resourceType:f,id:d,options:c})})()}resolveContainedReference(E,c){if(c.contained){const b=E.slice(1),s=c.contained.find(f=>f.id===b);if(s)return s}throw new Error(`Unable to resolve contained reference: ${E}`)}resolveBundleReference(E,c,b){var s=this;return t(function*(){const f=new RegExp(`(^|/)${E}$`),d=c.entry.find(a=>f.test(a.fullUrl));return d?d.resource:s.resolve({reference:E,options:b})})()}}},4205:(Ie,ne,g)=>{const{logError:_}=g(4641);Ie.exports={authFromCapability:function C(c){const b={};try{return c.rest.forEach(s=>{s.security.extension.find(d=>"http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris"===d.url).extension.forEach(d=>{switch(d.url){case"authorize":b.authorizeUrl=new URL(d.valueUri);break;case"token":b.tokenUrl=new URL(d.valueUri);break;case"register":b.registerUrl=new URL(d.valueUri);break;case"manage":b.manageUrl=new URL(d.valueUri)}})}),b}catch(s){return _(s),b}},authFromWellKnown:function E(c){const{authorization_endpoint:b,token_endpoint:s,registration_endpoint:f}=c;return{authorizeUrl:b&&new URL(b),tokenUrl:s&&new URL(s),registerUrl:f&&new URL(f)}}}},3097:(Ie,ne,g)=>{const t=g(8570),{fhirReferenceRegEx:_}=g(5760);Ie.exports={createQueryString:function c(b){if(b instanceof Object&&Object.keys(b).length>0)return t.stringify(b)},splitReference:function C(b){if(!b.match(_))throw new Error(`${b} is not a recognized FHIR reference`);let s,f=b;b.startsWith("http")&&([,s]=_.exec(b),f=b.slice(s.length),s.endsWith("/")&&(s=s.slice(0,-1)));const[d,a]=f.split("/");return{baseUrl:s,resourceType:d,id:a}},validResourceType:function E(b){return!b.startsWith("/")&&!b.includes(":")&&/\S/.test(b)}}},9656:(Ie,ne,g)=>{let t={};const _=g(3982),C=g(5987),E=g(8347);function c(b,s){let f;if(0===b.length||null==E.valData(b[0]))f=[];else{f=[b[0]];for(let d=1;d(this.$index=l,this.$total=s(a)),this.$total=f)},t.countFn=function(b){return b&&b.length?b.length:0},t.sumFn=function(b){return t.aggregateMacro.apply(this,[b.slice(1),s=>{let f=E.arraify(s).filter(a=>null!=E.valData(a)),d=E.arraify(this.$total).filter(a=>null!=E.valData(a));return 0===f.length||0===d.length?[]:_.plus(f,d)},b[0]])},t.minFn=function(b){return c(b,C.lt)},t.maxFn=function(b){return c(b,C.gt)},t.avgFn=function(b){const s=E.arraify(t.sumFn(b)),f=E.arraify(t.countFn(b));return 0===s.length||0===f.length?[]:_.div(s,f)},Ie.exports=t},3286:(Ie,ne,g)=>{const{deepEqual:t}=g(2488),_={};function C(E,c){for(var b=0;b1)throw new Error("Expected singleton on right side of contains, got "+JSON.stringify(c));return C(E,c)},_.in=function(E,c){if(0==E.length)return[];if(0==c.length)return!1;if(E.length>1)throw new Error("Expected singleton on right side of in, got "+JSON.stringify(c));return C(c,E)},Ie.exports=_},7717:(Ie,ne,g)=>{const t={},{distinctFn:_}=g(7113),C=g(7899),{deepEqual:E,maxCollSizeForDeepEqual:c}=g(2488);t.union=function(b,s){return _(b.concat(s))},t.combineFn=function(b,s){return b.concat(s)},t.intersect=function(b,s){let f=[];const d=b.length;let a=s.length;if(d&&a)if(d+a>c){let l={};s.forEach(r=>{const u=C(r);l[u]?a--:l[u]=!0});for(let r=0;r0;++r){let u=b[r],h=C(u);l[h]&&(f.push(u),l[h]=!1,a--)}}else f=_(b).filter(l=>s.some(r=>E(l,r)));return f},t.exclude=function(b,s){let f=[];const d=b.length,a=s.length;if(!a)return b;if(d)if(d+a>c){let l={};s.forEach(r=>{const u=C(r);l[u]=!0}),f=b.filter(r=>!l[C(r)])}else f=b.filter(l=>!s.some(r=>E(l,r)));return f},Ie.exports=t},417:Ie=>{Ie.exports={reset:function(){this.nowDate=new Date,this.today=null,this.now=null,this.timeOfDay=null,this.localTimezoneOffset=null},today:null,now:null,timeOfDay:null}},6414:(Ie,ne,g)=>{var t={};const _=g(8186),C=g(417),E=_.FP_Date,c=_.FP_DateTime,b=_.FP_Time;t.now=function(){if(!C.now){var f=c.isoDateTime(C.nowDate);C.now=new c(f)}return C.now},t.today=function(){if(!C.today){var f=E.isoDate(C.nowDate);C.today=new E(f)}return C.today},t.timeOfDay=function(){if(!C.timeOfDay){const f=c.isoTime(C.nowDate);C.timeOfDay=new b(f)}return C.timeOfDay},Ie.exports=t},2488:(Ie,ne,g)=>{const{FP_Type:t,FP_Quantity:_}=g(8186);var C=g(8347),E=g(8417),c=Array.prototype.slice,b=Object.keys,s=function(h){return"[object Arguments]"==Object.prototype.toString.call(h)};function f(h){return"string"==typeof h||h instanceof String}function d(h){return!isNaN(parseFloat(h))&&isFinite(h)}function a(h){return h.toUpperCase().replace(/\s+/," ")}function r(h){return null==h}Ie.exports={deepEqual:function l(h,p,v){if(v||(v={}),(h=C.valDataConverted(h))===(p=C.valDataConverted(p)))return!0;if(v.fuzzy){if(f(h)&&f(p))return a(h)==a(p);if(d(h)&&d(p))return E.isEquivalent(h,p)}else if("number"==typeof h&&"number"==typeof p)return E.isEqual(h,p);if(h instanceof Date&&p instanceof Date)return h.getTime()===p.getTime();if(!h||!p||"object"!=typeof h&&"object"!=typeof p)return h===p;var y=h instanceof t,M=p instanceof t;if(y&&M)return v.fuzzy?h.equivalentTo(p):h.equals(p);if(y||M){let w=!1;return"number"==typeof h&&(h=new _(h,"'1'"),w=!0),"number"==typeof p&&(p=new _(p,"'1'"),w=!0),!!w&&(v.fuzzy?h.equivalentTo(p):h.equals(p))}return function u(h,p,v){var y,M;if(r(h)||r(p)||h.prototype!==p.prototype)return!1;if(s(h)||s(p))return l(h=s(h)?c.call(h):h,p=s(p)?c.call(p):p,v);try{var w=b(h),k=b(p)}catch{return!1}if(w.length!=k.length)return!1;for(w.sort(),k.sort(),y=w.length-1;y>=0;y--)if(w[y]!=k[y])return!1;if(1===w.length)return l(h[M=w[0]],p[M],v);for(y=w.length-1;y>=0;y--)if(!l(h[M=w[y]],p[M],v))return!1;return typeof h==typeof p}(h,p,v)},maxCollSizeForDeepEqual:6}},5987:(Ie,ne,g)=>{const t=g(8347),{deepEqual:_}=g(2488),C=g(8186),E=C.FP_Type,c=C.FP_DateTime;var b={};function s(a,l){return t.isEmpty(a)||t.isEmpty(l)?[]:_(a,l)}function f(a,l){return t.isEmpty(a)&&t.isEmpty(l)?[!0]:t.isEmpty(a)||t.isEmpty(l)?[]:_(a,l,{fuzzy:!0})}function d(a,l){if(t.assertOnlyOne(a,"Singleton was expected"),t.assertOnlyOne(l,"Singleton was expected"),a=t.valDataConverted(a[0]),l=t.valDataConverted(l[0]),null!=a&&null!=l){let r=a instanceof c?c:a.constructor,u=l instanceof c?c:l.constructor;r!==u&&t.raiseError('Type of "'+a+'" ('+r.name+') did not match type of "'+l+'" ('+u.name+")","InequalityExpression")}return[a,l]}b.equal=function(a,l){return s(a,l)},b.unequal=function(a,l){var r=s(a,l);return void 0===r?void 0:!r},b.equival=function(a,l){return f(a,l)},b.unequival=function(a,l){return!f(a,l)},b.lt=function(a,l){const[r,u]=d(a,l);if(null==r||null==u)return[];if(r instanceof E){const h=r.compare(u);return null===h?[]:h<0}return r0}return r>u},b.lte=function(a,l){const[r,u]=d(a,l);if(null==r||null==u)return[];if(r instanceof E){const h=r.compare(u);return null===h?[]:h<=0}return r<=u},b.gte=function(a,l){const[r,u]=d(a,l);if(null==r||null==u)return[];if(r instanceof E){const h=r.compare(u);return null===h?[]:h>=0}return r>=u},Ie.exports=b},8423:(Ie,ne,g)=>{const t=g(8347),{whereMacro:_,distinctFn:C}=g(7113),E=g(2295),c=g(7899),{deepEqual:b,maxCollSizeForDeepEqual:s}=g(2488),f={};function d(a,l){const r=a.length,u=l.length;let h=r<=u;if(h)if(r+u>s){const p=l.reduce((v,y)=>(v[c(y)]=!0,v),{});h=!a.some(v=>!p[c(v)])}else for(let p=0,v=a.length;pb(y,t.valData(M)))}return h}f.emptyFn=t.isEmpty,f.notFn=function(a){let l=E.singleton(a,"Boolean");return"boolean"==typeof l?!l:[]},f.existsMacro=function(a,l){var r=a;return l?f.existsMacro(_.call(this,a,l)):!t.isEmpty(r)},f.allMacro=function(a,l){for(let r=0,u=a.length;r{const{version:t}=g(9852),_=g(171),C=g(8347);g(2600);const E=g(417);let c={},b=g(8423),s=g(7113),f=g(9656),d=g(7717),a=g(2295),l=g(5987),r=g(3286),u=g(3982),h=g(6897),p=g(2253),v=g(6414),y=g(2601);const M=g(8186),{FP_Date:w,FP_DateTime:k,FP_Time:I,FP_Quantity:D,FP_Type:O,ResourceNode:T,TypeInfo:U}=M;let S=T.makeResNode;function R(V,W,K,ce){if("Expr"===K)return function(be){const Ze=C.arraify(be);return c.doEval({...V,$this:Ze},Ze,ce)};if("AnyAtRoot"===K){const be=V.$this||V.dataRoot;return c.doEval({...V,$this:be},be,ce)}if("Identifier"===K){if("TermExpression"===ce.type)return ce.text;throw new Error("Expected identifier node, got "+JSON.stringify(ce))}if("TypeSpecifier"===K)return c.TypeSpecifier(V,W,ce);let ue=c.doEval(V,W,ce);if("Any"===K)return ue;if(Array.isArray(K)){if(0===ue.length)return[];K=K[0]}return a.singleton(ue,K)}function A(V){return null==V||C.isEmpty(V)}function F(V,W,K,ce){var ue=c.invocationTable[W];if(ue&&ue.fn){var be=ce?ce.length:0;if(2!==be)throw new Error("Infix invoke should have arity 2");var Ze=ue.arity[be];if(Ze){for(var pt=[],ct=0;ctct?.__path__?S(ct,ct.__path__.path,null,ct.__path__.fhirNodeDataType||null):ct),Ze={context:be,ucum:"http://unitsofmeasure.org"};K&&(K=Object.keys(K).reduce((ct,Ct)=>(ct[Ct]=Array.isArray(K[Ct])?K[Ct].map(Ne=>Ne?.__path__?S(Ne,Ne.__path__.path||null,null,Ne.__path__.fhirNodeDataType||null):Ne):K[Ct]?.__path__?S(K[Ct],K[Ct].__path__.path||null,null,K[Ct].__path__.fhirNodeDataType||null):K[Ct],ct),{}));let pt={dataRoot:be,vars:Object.assign(Ze,K),model:ce};return ue.traceFn&&(pt.customTraceFn=ue.traceFn),ue.userInvocationTable&&(pt.userInvocationTable=ue.userInvocationTable),c.doEval(pt,be,W.children[0]).reduce((ct,Ct)=>{let Ne,Ae;return Ct instanceof T&&(Ne=Ct.path,Ae=Ct.fhirNodeDataType),(Ct=C.valData(Ct))instanceof O&&ue.resolveInternalTypes&&(Ct=Ct.toString()),null!=Ct&&(Ne&&"object"==typeof Ct&&!Ct.__path__&&Object.defineProperty(Ct,"__path__",{value:{path:Ne,fhirNodeDataType:Ae}}),ct.push(Ct)),ct},[])}function j(V,W,K){const ce=(K={resolveInternalTypes:!0,...K}).userInvocationTable;if(ce&&(K.userInvocationTable=Object.keys(ce).reduce((ue,be)=>(ue[be]=ce[be].internalStructures?ce[be]:{...ce[be],fn:(...Ze)=>ce[be].fn.apply(this,Ze.map(pt=>Array.isArray(pt)?pt.map(ct=>C.valData(ct)):pt))},ue),{})),"object"==typeof V){const ue=Y(V.expression);return function(be,Ze){if(V.base){let pt=W.pathsDefinedElsewhere[V.base]||V.base;const ct=W&&W.path2Type[pt]||null;pt="BackboneElement"===ct||"Element"===ct?pt:ct||pt,be=S(be,pt,null,ct)}return U.model=W,ee(be,ue,Ze,W,K)}}{const ue=Y(V);return function(be,Ze){return U.model=W,ee(be,ue,Ze,W,K)}}}c.invocationTable={empty:{fn:b.emptyFn},not:{fn:b.notFn},exists:{fn:b.existsMacro,arity:{0:[],1:["Expr"]}},all:{fn:b.allMacro,arity:{1:["Expr"]}},allTrue:{fn:b.allTrueFn},anyTrue:{fn:b.anyTrueFn},allFalse:{fn:b.allFalseFn},anyFalse:{fn:b.anyFalseFn},subsetOf:{fn:b.subsetOfFn,arity:{1:["AnyAtRoot"]}},supersetOf:{fn:b.supersetOfFn,arity:{1:["AnyAtRoot"]}},isDistinct:{fn:b.isDistinctFn},distinct:{fn:s.distinctFn},count:{fn:f.countFn},where:{fn:s.whereMacro,arity:{1:["Expr"]}},extension:{fn:s.extension,arity:{1:["String"]}},select:{fn:s.selectMacro,arity:{1:["Expr"]}},aggregate:{fn:f.aggregateMacro,arity:{1:["Expr"],2:["Expr","AnyAtRoot"]}},sum:{fn:f.sumFn},min:{fn:f.minFn},max:{fn:f.maxFn},avg:{fn:f.avgFn},single:{fn:s.singleFn},first:{fn:s.firstFn},last:{fn:s.lastFn},type:{fn:M.typeFn,arity:{0:[]}},ofType:{fn:s.ofTypeFn,arity:{1:["TypeSpecifier"]}},is:{fn:M.isFn,arity:{1:["TypeSpecifier"]}},as:{fn:M.asFn,arity:{1:["TypeSpecifier"]}},tail:{fn:s.tailFn},take:{fn:s.takeFn,arity:{1:["Integer"]}},skip:{fn:s.skipFn,arity:{1:["Integer"]}},combine:{fn:d.combineFn,arity:{1:["AnyAtRoot"]}},union:{fn:d.union,arity:{1:["AnyAtRoot"]}},intersect:{fn:d.intersect,arity:{1:["AnyAtRoot"]}},exclude:{fn:d.exclude,arity:{1:["AnyAtRoot"]}},iif:{fn:a.iifMacro,arity:{2:["Expr","Expr"],3:["Expr","Expr","Expr"]}},trace:{fn:a.traceFn,arity:{1:["String"],2:["String","Expr"]}},toInteger:{fn:a.toInteger},toDecimal:{fn:a.toDecimal},toString:{fn:a.toString},toDate:{fn:a.toDate},toDateTime:{fn:a.toDateTime},toTime:{fn:a.toTime},toBoolean:{fn:a.toBoolean},toQuantity:{fn:a.toQuantity,arity:{0:[],1:["String"]}},hasValue:{fn:a.hasValueFn},convertsToBoolean:{fn:a.createConvertsToFn(a.toBoolean,"boolean")},convertsToInteger:{fn:a.createConvertsToFn(a.toInteger,"number")},convertsToDecimal:{fn:a.createConvertsToFn(a.toDecimal,"number")},convertsToString:{fn:a.createConvertsToFn(a.toString,"string")},convertsToDate:{fn:a.createConvertsToFn(a.toDate,w)},convertsToDateTime:{fn:a.createConvertsToFn(a.toDateTime,k)},convertsToTime:{fn:a.createConvertsToFn(a.toTime,I)},convertsToQuantity:{fn:a.createConvertsToFn(a.toQuantity,D)},indexOf:{fn:h.indexOf,arity:{1:["String"]}},substring:{fn:h.substring,arity:{1:["Integer"],2:["Integer","Integer"]}},startsWith:{fn:h.startsWith,arity:{1:["String"]}},endsWith:{fn:h.endsWith,arity:{1:["String"]}},contains:{fn:h.containsFn,arity:{1:["String"]}},upper:{fn:h.upper},lower:{fn:h.lower},replace:{fn:h.replace,arity:{2:["String","String"]}},matches:{fn:h.matches,arity:{1:["String"]}},replaceMatches:{fn:h.replaceMatches,arity:{2:["String","String"]}},length:{fn:h.length},toChars:{fn:h.toChars},join:{fn:h.joinFn,arity:{0:[],1:["String"]}},split:{fn:h.splitFn,arity:{1:["String"]}},trim:{fn:h.trimFn},encode:{fn:h.encodeFn,arity:{1:["String"]}},decode:{fn:h.decodeFn,arity:{1:["String"]}},abs:{fn:u.abs},ceiling:{fn:u.ceiling},exp:{fn:u.exp},floor:{fn:u.floor},ln:{fn:u.ln},log:{fn:u.log,arity:{1:["Number"]},nullable:!0},power:{fn:u.power,arity:{1:["Number"]},nullable:!0},round:{fn:u.round,arity:{0:[],1:["Number"]}},sqrt:{fn:u.sqrt},truncate:{fn:u.truncate},now:{fn:v.now},today:{fn:v.today},timeOfDay:{fn:v.timeOfDay},repeat:{fn:s.repeatMacro,arity:{1:["Expr"]}},children:{fn:p.children},descendants:{fn:p.descendants},"|":{fn:d.union,arity:{2:["Any","Any"]}},"=":{fn:l.equal,arity:{2:["Any","Any"]},nullable:!0},"!=":{fn:l.unequal,arity:{2:["Any","Any"]},nullable:!0},"~":{fn:l.equival,arity:{2:["Any","Any"]}},"!~":{fn:l.unequival,arity:{2:["Any","Any"]}},"<":{fn:l.lt,arity:{2:["Any","Any"]},nullable:!0},">":{fn:l.gt,arity:{2:["Any","Any"]},nullable:!0},"<=":{fn:l.lte,arity:{2:["Any","Any"]},nullable:!0},">=":{fn:l.gte,arity:{2:["Any","Any"]},nullable:!0},containsOp:{fn:r.contains,arity:{2:["Any","Any"]}},inOp:{fn:r.in,arity:{2:["Any","Any"]}},isOp:{fn:M.isFn,arity:{2:["Any","TypeSpecifier"]}},asOp:{fn:M.asFn,arity:{2:["Any","TypeSpecifier"]}},"&":{fn:u.amp,arity:{2:["String","String"]}},"+":{fn:u.plus,arity:{2:["Any","Any"]},nullable:!0},"-":{fn:u.minus,arity:{2:["Any","Any"]},nullable:!0},"*":{fn:u.mul,arity:{2:["Any","Any"]},nullable:!0},"/":{fn:u.div,arity:{2:["Any","Any"]},nullable:!0},mod:{fn:u.mod,arity:{2:["Number","Number"]},nullable:!0},div:{fn:u.intdiv,arity:{2:["Number","Number"]},nullable:!0},or:{fn:y.orOp,arity:{2:[["Boolean"],["Boolean"]]}},and:{fn:y.andOp,arity:{2:[["Boolean"],["Boolean"]]}},xor:{fn:y.xorOp,arity:{2:[["Boolean"],["Boolean"]]}},implies:{fn:y.impliesOp,arity:{2:[["Boolean"],["Boolean"]]}}},c.InvocationExpression=function(V,W,K){return K.children.reduce(function(ce,ue){return c.doEval(V,ce,ue)},W)},c.TermExpression=function(V,W,K){return W&&(W=W.map(ce=>ce instanceof Object&&ce.resourceType?S(ce,ce.resourceType,null,ce.resourceType):ce)),c.doEval(V,W,K.children[0])},c.PolarityExpression=function(V,W,K){var ce=K.terminalNodeText[0],ue=c.doEval(V,W,K.children[0]);if(1!==ue.length)throw new Error("Unary "+ce+" can only be applied to an individual number or Quantity.");if(ue[0]instanceof D)"-"===ce&&(ue[0]=new D(-ue[0].value,ue[0].unit));else{if("number"!=typeof ue[0]||isNaN(ue[0]))throw new Error("Unary "+ce+" can only be applied to a number or Quantity.");"-"===ce&&(ue[0]=-ue[0])}return ue},c.TypeSpecifier=function(V,W,K){let ce,ue;const be=K.text.split(".").map(pt=>pt.replace(/(^`|`$)/g,""));switch(be.length){case 2:[ce,ue]=be;break;case 1:[ue]=be;break;default:throw new Error("Expected TypeSpecifier node, got "+JSON.stringify(K))}const Ze=new U({namespace:ce,name:ue});if(!Ze.isValid())throw new Error('"'+Ze+'" cannot be resolved to a valid type identifier');return Ze},c.ExternalConstantTerm=function(V,W,K){var be=c.Identifier(V,W,K.children[0].children[0])[0],Ze=V.vars[be];if(!(be in V.vars))throw new Error("Attempting to access an undefined environment variable: "+be);return null==Ze?[]:Ze instanceof Array?Ze:[Ze]},c.LiteralTerm=function(V,W,K){var ce=K.children[0];return ce?c.doEval(V,W,ce):[K.text]},c.StringLiteral=function(V,W,K){var ce=K.text.replace(/(^'|'$)/g,"");return[ce=ce.replace(/\\(u\d{4}|.)/g,function(ue,be){switch(ue){case"\\r":return"\r";case"\\n":return"\n";case"\\t":return"\t";case"\\f":return"\f";default:return be.length>1?String.fromCharCode("0x"+be.slice(1)):be}})]},c.BooleanLiteral=function(V,W,K){return"true"===K.text?[!0]:[!1]},c.QuantityLiteral=function(V,W,K){var ce=K.children[0],ue=Number(ce.terminalNodeText[0]),be=ce.children[0],Ze=be.terminalNodeText[0];return!Ze&&be.children&&(Ze=be.children[0].terminalNodeText[0]),[new D(ue,Ze)]},c.DateTimeLiteral=function(V,W,K){var ce=K.text.slice(1);return[new k(ce)]},c.TimeLiteral=function(V,W,K){var ce=K.text.slice(1);return[new I(ce)]},c.NumberLiteral=function(V,W,K){return[Number(K.text)]},c.Identifier=function(V,W,K){return[K.text.replace(/(^`|`$)/g,"")]},c.InvocationTerm=function(V,W,K){return c.doEval(V,W,K.children[0])},c.MemberInvocation=function(V,W,K){const ce=c.doEval(V,W,K.children[0])[0],ue=V.model;return W?C.isCapitalized(ce)?W.filter(be=>be instanceof T&&be.path===ce):W.reduce(function(be,Ze){return Ze=S(Ze,Ze.__path__?.path||null,null,Ze.__path__?.fhirNodeDataType||null),C.pushFn(be,C.makeChildResNodes(Ze,ce,ue)),be},[]):[]},c.IndexerExpression=function(V,W,K){const ue=K.children[1];var be=c.doEval(V,W,K.children[0]),Ze=c.doEval(V,W,ue);if(C.isEmpty(Ze))return[];var pt=parseInt(Ze[0]);return be&&C.isSome(pt)&&be.length>pt&&pt>=0?[be[pt]]:[]},c.Functn=function(V,W,K){return K.children.map(function(ce){return c.doEval(V,W,ce)})},c.realizeParams=function(V,W,K){return K&&K[0]&&K[0].children?K[0].children.map(function(ce){return c.doEval(V,W,ce)}):[]},c.FunctionInvocation=function(V,W,K){var ce=c.doEval(V,W,K.children[0]);const ue=ce[0];return ce.shift(),function N(V,W,K,ce){var be,ue=V.userInvocationTable?.[W]??c.invocationTable[W];if(ue){if(ue.arity){var Ze=ce?ce.length:0,pt=ue.arity[Ze];if(pt){for(var ct=[],Ct=0;Ct{const K=U.fromValue(W?.__path__?new T(W,W.__path__?.path,null,W.__path__?.fhirNodeDataType):W);return`${K.namespace}.${K.name}`})},ucumUtils:g(9070).lG.getInstance(),util:C}},7113:(Ie,ne,g)=>{const t=g(8347),{TypeInfo:_,ResourceNode:C}=g(8186),E=g(7899),{deepEqual:c,maxCollSizeForDeepEqual:b}=g(2488);Ie.exports={whereMacro:function(f,d){return!1===f||f?t.flatten(f.filter((a,l)=>(this.$index=l,d(a)[0]))):[]},extension:function(f,d){return!1!==f&&!f||!d?[]:t.flatten(f.map((a,l)=>{this.$index=l;const r=a&&(a.data&&a.data.extension||a._data&&a._data.extension);return r?r.filter(u=>u.url===d).map(u=>C.makeResNode(u,"Extension",null,"Extension")):[]}))},selectMacro:function(f,d){return!1===f||f?t.flatten(f.map((a,l)=>(this.$index=l,d(a)))):[]},repeatMacro:function(f,d){if(!1!==f&&!f)return[];let a=[];const l={},r=f.length;for(let u=0;u{const v=E(p),y=!l[v];return y&&(l[v]=!0),y})}while(a.length_.fromValue(a).is(d))},distinctFn:function(f){let d=[];if(f.length>0)if(f.length>b){let a={};for(let l=0,r=f.length;l!c(a,l))}while(f.length)}return d}}},7899:(Ie,ne,g)=>{const t=g(9070).lG.getInstance(),{roundToMaxPrecision:_}=g(8417),{valDataConverted:C}=g(8347),{FP_Type:E,FP_Quantity:c}=g(8186);function s(f){if(null===(f=C(f)))return null;if("number"==typeof f)return _(f);if(f instanceof Date)return f.toISOString();if(f instanceof c){const d=c._yearMonthConversionFactor[f.unit];if(d)return"_!yearMonth!_:"+d*f.value;{const a=c.toUcumQuantity(f.value,f.unit),l=t.getSpecifiedUnit(a.unit).unit;return"_!"+l.property_+"!_:"+l.magnitude_*a.value}}return f instanceof E?f.toString():"object"==typeof f?Array.isArray(f)?f.map(s):Object.keys(f).sort().reduce((d,a)=>(d[a]=s(f[a]),d),{}):f}Ie.exports=function b(f){return JSON.stringify(s(f))}},2601:Ie=>{Ie.exports={orOp:function(g,t){if(Array.isArray(t)){if(!0===g)return!0;if(!1===g)return[];if(Array.isArray(g))return[]}return Array.isArray(g)?!0===t||[]:g||t},andOp:function(g,t){if(Array.isArray(t)){if(!0===g)return[];if(!1===g)return!1;if(Array.isArray(g))return[]}return Array.isArray(g)?!0===t&&[]:g&&t},xorOp:function(g,t){return Array.isArray(g)||Array.isArray(t)?[]:g&&!t||!g&&t},impliesOp:function(g,t){if(Array.isArray(t)){if(!0===g)return[];if(!1===g)return!0;if(Array.isArray(g))return[]}return Array.isArray(g)?!0===t||[]:!1===g||g&&t}}},3982:(Ie,ne,g)=>{const{FP_Quantity:t,FP_Type:_}=g(8186),C=g(8347),E={};function c(s,f){let d;if(b(s))d=[];else{if(1!==s.length)throw new Error("Unexpected collection"+JSON.stringify(s)+"; expected singleton of type number");{const a=C.valData(s[0]);if(null==a)d=[];else{if("number"!=typeof a)throw new Error("Expected number, but got "+JSON.stringify(a));d=f(a)}}}return d}function b(s){return"number"!=typeof s&&0===s.length}E.amp=function(s,f){return(s||"")+(f||"")},E.plus=function(s,f){let d;if(1===s.length&&1===f.length){const a=C.valDataConverted(s[0]),l=C.valDataConverted(f[0]);null==a||null==l?d=[]:"string"==typeof a&&"string"==typeof l?d=a+l:"number"==typeof a?"number"==typeof l?d=a+l:l instanceof t&&(d=new t(a,"'1'").plus(l)):a instanceof _&&(l instanceof t?d=a.plus(l):l instanceof _?d=l.plus(a):"number"==typeof l&&(d=a.plus(new t(l,"'1'"))))}if(void 0===d)throw new Error("Cannot "+JSON.stringify(s)+" + "+JSON.stringify(f));return d},E.minus=function(s,f){if(1===s.length&&1===f.length){const d=C.valDataConverted(s[0]),a=C.valDataConverted(f[0]);if(null==d||null==a)return[];if("number"==typeof d){if("number"==typeof a)return d-a;if(a instanceof t)return new t(d,"'1'").plus(new t(-a.value,a.unit))}if(d instanceof _){if(a instanceof t)return d.plus(new t(-a.value,a.unit));if("number"==typeof a)return d.plus(new t(-a,"'1'"))}}throw new Error("Cannot "+JSON.stringify(s)+" - "+JSON.stringify(f))},E.mul=function(s,f){if(1===s.length&&1===f.length){const d=C.valDataConverted(s[0]),a=C.valDataConverted(f[0]);if(null==d||null==a)return[];if("number"==typeof d){if("number"==typeof a)return d*a;if(a instanceof t)return new t(d,"'1'").mul(a)}if(d instanceof _){if(a instanceof t)return d.mul(a);if("number"==typeof a)return d.mul(new t(a,"'1'"))}}throw new Error("Cannot "+JSON.stringify(s)+" * "+JSON.stringify(f))},E.div=function(s,f){if(1===s.length&&1===f.length){const d=C.valDataConverted(s[0]),a=C.valDataConverted(f[0]);if(null==d||null==a)return[];if("number"==typeof d){if("number"==typeof a)return 0===a?[]:d/a;if(a instanceof t)return new t(d,"'1'").div(a)}if(d instanceof _){if(a instanceof t)return d.div(a);if("number"==typeof a)return d.div(new t(a,"'1'"))}}throw new Error("Cannot "+JSON.stringify(s)+" / "+JSON.stringify(f))},E.intdiv=function(s,f){return 0===f?[]:Math.floor(s/f)},E.mod=function(s,f){return 0===f?[]:s%f},E.abs=function(s){let f;if(b(s))f=[];else{if(1!==s.length)throw new Error("Unexpected collection"+JSON.stringify(s)+"; expected singleton of type number or Quantity");var d=C.valData(s[0]);if(null==d)f=[];else if("number"==typeof d)f=Math.abs(d);else{if(!(d instanceof t))throw new Error("Expected number or Quantity, but got "+JSON.stringify(d||s));f=new t(Math.abs(d.value),d.unit)}}return f},E.ceiling=function(s){return c(s,Math.ceil)},E.exp=function(s){return c(s,Math.exp)},E.floor=function(s){return c(s,Math.floor)},E.ln=function(s){return c(s,Math.log)},E.log=function(s,f){return c(s,d=>Math.log(d)/Math.log(f))},E.power=function(s,f){return c(s,d=>{const a=Math.pow(d,f);return isNaN(a)?[]:a})},E.round=function(s,f){return c(s,d=>{if(void 0===f)return Math.round(d);{let a=Math.pow(10,f);return Math.round(d*a)/a}})},E.sqrt=function(s){return c(s,f=>f<0?[]:Math.sqrt(f))},E.truncate=function(s){return c(s,Math.trunc)},Ie.exports=E},2295:(Ie,ne,g)=>{var t=g(8347),_=g(8186);const{FP_Quantity:C,TypeInfo:E}=_;var c={iifMacro:function(p,v,y,M){return t.isTrue(v(p))?y(p):M?M(p):[]},traceFn:function(p,v,y){return this.customTraceFn?this.customTraceFn(y?y(p):p,v??""):y?console.log("TRACE:["+(v||"")+"]",JSON.stringify(y(p),null," ")):console.log("TRACE:["+(v||"")+"]",JSON.stringify(p,null," ")),p}},b=/^[+-]?\d+$/;c.toInteger=function(p){if(1!==p.length)return[];var v=t.valData(p[0]);return!1===v?0:!0===v?1:"number"==typeof v?Number.isInteger(v)?v:[]:"string"==typeof v&&b.test(v)?parseInt(v):[]};const s=/^((\+|-)?\d+(\.\d+)?)\s*(('[^']+')|([a-zA-Z]+))?$/;c.toQuantity=function(p,v){let y;if(p.length>1)throw new Error("Could not convert to quantity: input collection contains multiple items");if(1===p.length){if(v){const k=C._calendarDuration2Seconds[this.unit],I=C._calendarDuration2Seconds[v];if(!k!=!I&&(k>1||I>1))return null;C.mapTimeUnitsToUCUMCode[v]||(v=`'${v}'`)}var M=t.valDataConverted(p[0]);let w;if("number"==typeof M)y=new C(M,"'1'");else if(M instanceof C)y=M;else if("boolean"==typeof M)y=new C(M?1:0,"'1'");else if("string"==typeof M&&(w=s.exec(M))){const I=w[5],D=w[6];(!D||C.mapTimeUnitsToUCUMCode[D])&&(y=new C(Number(w[1]),I||D||"'1'"))}y&&v&&y.unit!==v&&(y=C.convUnitTo(y.unit,y.value,v))}return y||[]};var d=/^[+-]?\d+(\.\d+)?$/;function a(p){let v=p.slice(3);c["to"+v]=function(y){var M=[];if(y.length>1)throw Error("to "+v+" called for a collection of length "+y.length);if(1===y.length){var w=t.valData(y[0]);if("string"==typeof w){var k=_[p].checkString(w);k&&(M=k)}}return M}}c.toDecimal=function(p){if(1!==p.length)return[];var v=t.valData(p[0]);return!1===v?0:!0===v?1:"number"==typeof v?v:"string"==typeof v&&d.test(v)?parseFloat(v):[]},c.toString=function(p){if(1!==p.length)return[];var v=t.valDataConverted(p[0]);return null==v?[]:v.toString()},a("FP_Date"),a("FP_DateTime"),a("FP_Time");const l=["true","t","yes","y","1","1.0"].reduce((p,v)=>(p[v]=!0,p),{}),r=["false","f","no","n","0","0.0"].reduce((p,v)=>(p[v]=!0,p),{});c.toBoolean=function(p){if(1!==p.length)return[];const v=t.valData(p[0]);switch(typeof v){case"boolean":return v;case"number":if(1===v)return!0;if(0===v)return!1;break;case"string":const y=v.toLowerCase();if(l[y])return!0;if(r[y])return!1}return[]},c.createConvertsToFn=function(p,v){return"string"==typeof v?function(y){return 1!==y.length?[]:typeof p(y)===v}:function(y){return 1!==y.length?[]:p(y)instanceof v}};const u={Integer:function(p){if(Number.isInteger(p))return p},Boolean:function(p){return!0!==p&&!1!==p||p},Number:function(p){if("number"==typeof p)return p},String:function(p){if("string"==typeof p)return p}};c.singleton=function(p,v){if(p.length>1)throw new Error("Unexpected collection"+JSON.stringify(p)+"; expected singleton of type "+v);if(0===p.length)return[];const y=t.valData(p[0]);if(null==y)return[];const M=u[v];if(M){const w=M(y);if(void 0!==w)return w;throw new Error(`Expected ${v.toLowerCase()}, but got: ${JSON.stringify(p)}`)}throw new Error("Not supported type "+v)};const h=new Set;["instant","time","date","dateTime","base64Binary","decimal","integer64","boolean","string","code","markdown","id","integer","unsignedInt","positiveInt","uri","oid","uuid","canonical","url","Integer","Decimal","String","Date","DateTime","Time"].forEach(p=>h.add(p)),c.hasValueFn=function(p){return 1===p.length&&null!=t.valData(p[0])&&h.has(E.fromValue(p[0]).name)},Ie.exports=c},2253:(Ie,ne,g)=>{const t=g(8347);var _={children:function(C){let E=this.model;return C.reduce(function(c,b){let s=t.valData(b);if(null==s)return c;if("object"==typeof s){for(var f of Object.keys(s))t.pushFn(c,t.makeChildResNodes(b,f,E));return c}return c},[])},descendants:function(C){for(var E=_.children.call(this,C),c=[];E.length>0;)t.pushFn(c,E),E=_.children.call(this,E);return c}};Ie.exports=_},8417:Ie=>{let ne={};function g(E){const b=/(\d+)(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/.exec(""+ +E);if(!b)return 0;const s=b[2];return Math.max(0,("0"===s?0:(s||"").length)-(b[3]||0))}function t(E,c){const b=Math.pow(10,c);return Math.round(E*b)/b}const C=ne.roundToMaxPrecision=function(E){return 1e-8*Math.round(E/1e-8)};ne.isEquivalent=function(E,c){if(Number.isInteger(E)&&Number.isInteger(c))return E===c;const b=Math.min(g(E),g(c));return 0===b?Math.round(E)===Math.round(c):t(E,b)===t(c,b)},ne.isEqual=function(E,c){return C(E)===C(c)},Ie.exports=ne},3359:(Ie,ne,g)=>{ne.atn=g(758),ne.codepointat=g(395),ne.dfa=g(6945),ne.fromcodepoint=g(9458),ne.tree=g(2445),ne.error=g(321),ne.Token=g(7709).Token,ne.CommonToken=g(7709).CommonToken,ne.InputStream=g(2592),ne.CommonTokenStream=g(6842),ne.Lexer=g(9258),ne.Parser=g(6309);var t=g(3260);ne.PredictionContextCache=t.PredictionContextCache,ne.ParserRuleContext=g(1900),ne.Interval=g(7127).Interval,ne.IntervalSet=g(7127).IntervalSet,ne.Utils=g(4137),ne.LL1Analyzer=g(9441).LL1Analyzer},861:(Ie,ne,g)=>{const t=g(3359),_=["\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(""),C=(new t.atn.ATNDeserializer).deserialize(_),E=C.decisionToState.map((b,s)=>new t.dfa.DFA(b,s));class c extends t.Lexer{static grammarFileName="FHIRPath.g4";static channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"];static modeNames=["DEFAULT_MODE"];static 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'"];static 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"];static 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"];constructor(s){super(s),this._interp=new t.atn.LexerATNSimulator(this,C,E,new t.PredictionContextCache)}get atn(){return C}}c.EOF=t.Token.EOF,c.T__0=1,c.T__1=2,c.T__2=3,c.T__3=4,c.T__4=5,c.T__5=6,c.T__6=7,c.T__7=8,c.T__8=9,c.T__9=10,c.T__10=11,c.T__11=12,c.T__12=13,c.T__13=14,c.T__14=15,c.T__15=16,c.T__16=17,c.T__17=18,c.T__18=19,c.T__19=20,c.T__20=21,c.T__21=22,c.T__22=23,c.T__23=24,c.T__24=25,c.T__25=26,c.T__26=27,c.T__27=28,c.T__28=29,c.T__29=30,c.T__30=31,c.T__31=32,c.T__32=33,c.T__33=34,c.T__34=35,c.T__35=36,c.T__36=37,c.T__37=38,c.T__38=39,c.T__39=40,c.T__40=41,c.T__41=42,c.T__42=43,c.T__43=44,c.T__44=45,c.T__45=46,c.T__46=47,c.T__47=48,c.T__48=49,c.T__49=50,c.T__50=51,c.T__51=52,c.T__52=53,c.T__53=54,c.DATETIME=55,c.TIME=56,c.IDENTIFIER=57,c.DELIMITEDIDENTIFIER=58,c.STRING=59,c.NUMBER=60,c.WS=61,c.COMMENT=62,c.LINE_COMMENT=63,Ie.exports=c},7516:(Ie,ne,g)=>{const t=g(3359);Ie.exports=class _ extends t.tree.ParseTreeListener{enterEntireExpression(E){}exitEntireExpression(E){}enterIndexerExpression(E){}exitIndexerExpression(E){}enterPolarityExpression(E){}exitPolarityExpression(E){}enterAdditiveExpression(E){}exitAdditiveExpression(E){}enterMultiplicativeExpression(E){}exitMultiplicativeExpression(E){}enterUnionExpression(E){}exitUnionExpression(E){}enterOrExpression(E){}exitOrExpression(E){}enterAndExpression(E){}exitAndExpression(E){}enterMembershipExpression(E){}exitMembershipExpression(E){}enterInequalityExpression(E){}exitInequalityExpression(E){}enterInvocationExpression(E){}exitInvocationExpression(E){}enterEqualityExpression(E){}exitEqualityExpression(E){}enterImpliesExpression(E){}exitImpliesExpression(E){}enterTermExpression(E){}exitTermExpression(E){}enterTypeExpression(E){}exitTypeExpression(E){}enterInvocationTerm(E){}exitInvocationTerm(E){}enterLiteralTerm(E){}exitLiteralTerm(E){}enterExternalConstantTerm(E){}exitExternalConstantTerm(E){}enterParenthesizedTerm(E){}exitParenthesizedTerm(E){}enterNullLiteral(E){}exitNullLiteral(E){}enterBooleanLiteral(E){}exitBooleanLiteral(E){}enterStringLiteral(E){}exitStringLiteral(E){}enterNumberLiteral(E){}exitNumberLiteral(E){}enterDateTimeLiteral(E){}exitDateTimeLiteral(E){}enterTimeLiteral(E){}exitTimeLiteral(E){}enterQuantityLiteral(E){}exitQuantityLiteral(E){}enterExternalConstant(E){}exitExternalConstant(E){}enterMemberInvocation(E){}exitMemberInvocation(E){}enterFunctionInvocation(E){}exitFunctionInvocation(E){}enterThisInvocation(E){}exitThisInvocation(E){}enterIndexInvocation(E){}exitIndexInvocation(E){}enterTotalInvocation(E){}exitTotalInvocation(E){}enterFunctn(E){}exitFunctn(E){}enterParamList(E){}exitParamList(E){}enterQuantity(E){}exitQuantity(E){}enterUnit(E){}exitUnit(E){}enterDateTimePrecision(E){}exitDateTimePrecision(E){}enterPluralDateTimePrecision(E){}exitPluralDateTimePrecision(E){}enterTypeSpecifier(E){}exitTypeSpecifier(E){}enterQualifiedIdentifier(E){}exitQualifiedIdentifier(E){}enterIdentifier(E){}exitIdentifier(E){}}},7612:(Ie,ne,g)=>{const t=g(3359),_=g(7516),C=["\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\x03","P\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(""),E=(new t.atn.ATNDeserializer).deserialize(C),c=E.decisionToState.map(($e,q)=>new t.dfa.DFA($e,q)),b=new t.PredictionContextCache;class s extends t.Parser{static grammarFileName="FHIRPath.g4";static 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'"];static 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"];static ruleNames=["entireExpression","expression","term","literal","externalConstant","invocation","functn","paramList","quantity","unit","dateTimePrecision","pluralDateTimePrecision","typeSpecifier","qualifiedIdentifier","identifier"];constructor(q){super(q),this._interp=new t.atn.ParserATNSimulator(this,E,c,b),this.ruleNames=s.ruleNames,this.literalNames=s.literalNames,this.symbolicNames=s.symbolicNames}get atn(){return E}sempred(q,_e,Oe){if(1===_e)return this.expression_sempred(q,Oe);throw"No predicate with index:"+_e}expression_sempred(q,_e){switch(_e){case 0:return this.precpred(this._ctx,10);case 1:return this.precpred(this._ctx,9);case 2:return this.precpred(this._ctx,8);case 3:return this.precpred(this._ctx,7);case 4:return this.precpred(this._ctx,5);case 5:return this.precpred(this._ctx,4);case 6:return this.precpred(this._ctx,3);case 7:return this.precpred(this._ctx,2);case 8:return this.precpred(this._ctx,1);case 9:return this.precpred(this._ctx,13);case 10:return this.precpred(this._ctx,12);case 11:return this.precpred(this._ctx,6);default:throw"No predicate with index:"+_e}}entireExpression(){let q=new f(this,this._ctx,this.state);this.enterRule(q,0,s.RULE_entireExpression);try{this.enterOuterAlt(q,1),this.state=30,this.expression(0),this.state=31,this.match(s.EOF)}catch(_e){if(!(_e instanceof t.error.RecognitionException))throw _e;q.exception=_e,this._errHandler.reportError(this,_e),this._errHandler.recover(this,_e)}finally{this.exitRule()}return q}expression(q){void 0===q&&(q=0);const _e=this._ctx,Oe=this.state;let vt=new d(this,this._ctx,Oe),rt=vt;this.enterRecursionRule(vt,2,s.RULE_expression,q);var Ge=0;try{switch(this.enterOuterAlt(vt,1),this.state=37,this._errHandler.sync(this),this._input.LA(1)){case s.T__15:case s.T__16:case s.T__21:case s.T__22:case s.T__27:case s.T__29:case s.T__31:case s.T__32:case s.T__33:case s.T__34:case s.T__35:case s.T__36:case s.DATETIME:case s.TIME:case s.IDENTIFIER:case s.DELIMITEDIDENTIFIER:case s.STRING:case s.NUMBER:vt=new D(this,vt),this._ctx=vt,rt=vt,this.state=34,this.term();break;case s.T__3:case s.T__4:vt=new l(this,vt),this._ctx=vt,rt=vt,this.state=35,(Ge=this._input.LA(1))===s.T__3||Ge===s.T__4?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=36,this.expression(11);break;default:throw new t.error.NoViableAltException(this)}this._ctx.stop=this._input.LT(-1),this.state=79,this._errHandler.sync(this);for(var De=this._interp.adaptivePredict(this._input,2,this._ctx);2!=De&&De!=t.atn.ATN.INVALID_ALT_NUMBER;){if(1===De)switch(null!==this._parseListeners&&this.triggerExitRuleEvent(),rt=vt,this.state=77,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,1,this._ctx)){case 1:if(vt=new u(this,new d(this,_e,Oe)),this.pushNewRecursionContext(vt,2,s.RULE_expression),this.state=39,!this.precpred(this._ctx,10))throw new t.error.FailedPredicateException(this,"this.precpred(this._ctx, 10)");this.state=40,!(-32&(Ge=this._input.LA(1)))&&1<{const t=g(3359),_=g(861),C=g(7612),E=g(7516);class c extends t.error.ErrorListener{constructor(f){super(),this.errors=f}syntaxError(f,d,a,l,r,u){this.errors.push([f,d,a,l,r,u])}}Ie.exports={parse:function(s){var f=new t.InputStream(s),d=new _(f),a=new t.CommonTokenStream(d),l=new C(a);l.buildParseTrees=!0;var r=[],u=new c(r);d.removeErrorListeners(),d.addErrorListener(u),l.removeErrorListeners(),l.addErrorListener(u);var h=l.entireExpression();class p extends E{constructor(){super()}}var y,v={},M=[v];for(let I of Object.getOwnPropertyNames(E.prototype))I.startsWith("enter")?p.prototype[I]=function(D){let O=M[M.length-1];(y={type:I.slice(5)}).text=D.getText(),O.children||(O.children=[]),O.children.push(y),M.push(y),y.terminalNodeText=[];for(let U of D.children)U.symbol&&y.terminalNodeText.push(U.getText())}:I.startsWith("exit")&&(p.prototype[I]=function(){M.pop()});var w=new p;if(t.tree.ParseTreeWalker.DEFAULT.walk(w,h),r.length>0){let I=[];for(let D=0,O=r.length;D{const Ie=Function.prototype.call.bind(Array.prototype.slice);Number.isInteger=Number.isInteger||function(ne){return"number"==typeof ne&&isFinite(ne)&&Math.floor(ne)===ne},String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(ne,g){return this.indexOf(ne,g=g||0)===g}}),String.prototype.endsWith||Object.defineProperty(String.prototype,"endsWith",{value:function(ne,g){var t=this.toString();(void 0===g||g>t.length)&&(g=t.length);var _=t.indexOf(ne,g-=ne.length);return-1!==_&&_===g}}),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(ne){if(null==ne)throw new TypeError("Cannot convert undefined or null to object");return Ie(arguments,1).reduce(function(g,t){return Object.keys(Object(t)).forEach(function(_){g[_]=t[_]}),g},Object(ne))}}),typeof btoa>"u"&&(global.btoa=function(ne){return new Buffer.from(ne,"binary").toString("base64")}),typeof atob>"u"&&(global.atob=function(ne){return new Buffer.from(ne,"base64").toString("binary")})},6897:(Ie,ne,g)=>{const t=g(8347),_=g(2295),C={},E={};C.indexOf=function(s,f){const d=_.singleton(s,"String");return t.isEmpty(f)||t.isEmpty(d)?[]:d.indexOf(f)},C.substring=function(s,f,d){const a=_.singleton(s,"String");return t.isEmpty(a)||t.isEmpty(f)||f<0||f>=a.length?[]:void 0===d||t.isEmpty(d)?a.substring(f):a.substring(f,f+d)},C.startsWith=function(s,f){const d=_.singleton(s,"String");return t.isEmpty(f)||t.isEmpty(d)?[]:d.startsWith(f)},C.endsWith=function(s,f){const d=_.singleton(s,"String");return t.isEmpty(f)||t.isEmpty(d)?[]:d.endsWith(f)},C.containsFn=function(s,f){const d=_.singleton(s,"String");return t.isEmpty(f)||t.isEmpty(d)?[]:d.includes(f)},C.upper=function(s){const f=_.singleton(s,"String");return t.isEmpty(f)?[]:f.toUpperCase()},C.lower=function(s){const f=_.singleton(s,"String");return t.isEmpty(f)?[]:f.toLowerCase()},C.joinFn=function(s,f){const d=[];return s.forEach(a=>{const l=t.valData(a);if("string"==typeof l)d.push(l);else if(null!=l)throw new Error("Join requires a collection of strings.")}),t.isEmpty(d)?[]:(void 0===f&&(f=""),d.join(f))},C.splitFn=function(s,f){const d=_.singleton(s,"String");return t.isEmpty(d)?[]:d.split(f)},C.trimFn=function(s){const f=_.singleton(s,"String");return t.isEmpty(f)?[]:f.trim()},C.encodeFn=function(s,f){const d=_.singleton(s,"String");return t.isEmpty(d)?[]:"urlbase64"===f||"base64url"===f?btoa(d).replace(/\+/g,"-").replace(/\//g,"_"):"base64"===f?btoa(d):"hex"===f?Array.from(d).map(a=>a.charCodeAt(0)<128?a.charCodeAt(0).toString(16):encodeURIComponent(a).replace(/%/g,"")).join(""):[]},C.decodeFn=function(s,f){const d=_.singleton(s,"String");if(t.isEmpty(d))return[];if("urlbase64"===f||"base64url"===f)return atob(d.replace(/-/g,"+").replace(/_/g,"/"));if("base64"===f)return atob(d);if("hex"===f){if(d.length%2!=0)throw new Error("Decode 'hex' requires an even number of characters.");return decodeURIComponent("%"+d.match(/.{2}/g).join("%"))}return[]},C.matches=!1===new RegExp("").dotAll?function(s,f){const d=_.singleton(s,"String");return t.isEmpty(f)||t.isEmpty(d)?[]:new RegExp(f,"s").test(d)}:function(s,f){const d=_.singleton(s,"String");return t.isEmpty(f)||t.isEmpty(d)?[]:new RegExp(function c(s){return E[s]||(E[s]=s.replace(/\./g,(f,d,a)=>{const r=a.substr(0,d).replace(/\\\\/g,"").replace(/\\[\][]/g,""),u="\\"===r[r.length-1],h=r.lastIndexOf("["),p=r.lastIndexOf("]");return u||h>p?".":"[^]"})),E[s]}(f)).test(d)},C.replace=function(s,f,d){const a=_.singleton(s,"String");if(t.isEmpty(f)||t.isEmpty(d)||t.isEmpty(a))return[];const l=new RegExp(t.escapeStringForRegExp(f),"g");return a.replace(l,d)},C.replaceMatches=function(s,f,d){const a=_.singleton(s,"String");if(t.isEmpty(f)||t.isEmpty(d)||t.isEmpty(a))return[];const l=new RegExp(f,"g");return a.replace(l,d)},C.length=function(s){const f=_.singleton(s,"String");return t.isEmpty(f)?[]:f.length},C.toChars=function(s){const f=_.singleton(s,"String");return t.isEmpty(f)?[]:f.split("")},Ie.exports=C},8186:(Ie,ne,g)=>{const t=g(5462),_=g(9070).lG.getInstance(),C=g(8417);let c="[0-9][0-9](\\:[0-9][0-9](\\:[0-9][0-9](\\.[0-9]+)?)?)?(Z|(\\+|-)[0-9][0-9]\\:[0-9][0-9])?",b=new RegExp("^T?"+c+"$"),s=new RegExp("^[0-9][0-9][0-9][0-9](-[0-9][0-9](-[0-9][0-9](T"+c+")?)?)?Z?$"),f=new RegExp("^[0-9][0-9][0-9][0-9](-[0-9][0-9](-[0-9][0-9])?)?$"),d=new RegExp("^[0-9][0-9][0-9][0-9](-[0-9][0-9](-[0-9][0-9](T[0-9][0-9](\\:[0-9][0-9](\\:[0-9][0-9](\\.[0-9]+)?))(Z|(\\+|-)[0-9][0-9]\\:[0-9][0-9]))))$");class a{equals(){return!1}equivalentTo(){return!1}toString(){return this.asStr?this.asStr:super.toString()}toJSON(){return this.toString()}compare(){throw"Comparison not implemented for "+this.constructor.name}plus(){throw"Addition not implemented for "+this.constructor.name}mul(){throw"Multiplication not implemented for "+this.constructor.name}div(){throw"Division not implemented for "+this.constructor.name}}class l extends a{constructor(S,R){super(),this.asStr=S+" "+R,this.value=S,this.unit=R}equals(S){if(!(S instanceof this.constructor))return!1;const R=l._calendarDuration2Seconds[this.unit],N=l._calendarDuration2Seconds[S.unit];if(!R!=!N&&(R>1||N>1))return null;if(this.unit===S.unit)return C.isEqual(this.value,S.value);const A=this._compareYearsAndMonths(S);if(A)return A.isEqual;const F=l.toUcumQuantity(this.value,this.unit),Y=l.toUcumQuantity(S.value,S.unit),ee=_.convertUnitTo(Y.unit,Y.value,F.unit);return"succeeded"===ee.status&&C.isEqual(F.value,ee.toVal)}equivalentTo(S){if(!(S instanceof this.constructor))return!1;if(this.unit===S.unit)return C.isEquivalent(this.value,S.value);const R=l.getEquivalentUcumUnitCode(this.unit),N=l.getEquivalentUcumUnitCode(S.unit),A=_.convertUnitTo(N,S.value,R);return"succeeded"===A.status&&C.isEquivalent(this.value,A.toVal)}compare(S){if(this.unit===S.unit)return this.value-S.value;const R=l._calendarDuration2Seconds[this.unit],N=l._calendarDuration2Seconds[S.unit];if(!R!=!N&&(R>1||N>1))return null;const A=l.getEquivalentUcumUnitCode(this.unit),F=l.getEquivalentUcumUnitCode(S.unit),Y=_.convertUnitTo(F,S.value,A);return"succeeded"!==Y.status?null:this.value-Y.toVal}plus(S){const R=l._yearMonthConversionFactor[this.unit],N=l._yearMonthConversionFactor[S.unit];if(R&&N)return new l(this.value+S.value*N/R,this.unit);const A=l._calendarDuration2Seconds[this.unit],F=l._calendarDuration2Seconds[S.unit];if(!A!=!F&&(A>1||F>1))return null;const Y=A?"s":this.unit.replace(r,""),ee=(A||1)*this.value,ie=F?"s":S.unit.replace(r,""),j=_.convertUnitTo(ie,(F||1)*S.value,Y);return"succeeded"!==j.status||j.fromUnit.isSpecial_||j.toUnit.isSpecial_?null:new l(ee+j.toVal,Y)}mul(S){const R=l._calendarDuration2Seconds[this.unit],N=l._calendarDuration2Seconds[S.unit];if(R>1&&"'1'"!==S.unit||N>1&&"'1'"!==this.unit)return null;const A=this.convToUcumUnits(this,R);if(!A)return null;const F=this.convToUcumUnits(S,N);return F?"'1'"===this.unit?new l(this.value*S.value,S.unit):"'1'"===S.unit?new l(this.value*S.value,this.unit):new l(A.value*F.value,`'(${A.unit}).(${F.unit})'`):null}div(S){if(0===S.value)return null;const R=l._calendarDuration2Seconds[this.unit],N=l._calendarDuration2Seconds[S.unit];if(R)if(N){const ie=l._yearMonthConversionFactor[this.unit],$=l._yearMonthConversionFactor[S.unit];if(ie&&$)return new l(this.value*ie/(S.value*$),"'1'")}else{if("'1'"===S.unit)return new l(this.value/S.value,this.unit);if(R>1)return null}else if(N>1)return null;const A=this.convToUcumUnits(this,R);if(!A)return null;const F=this.convToUcumUnits(S,N);if(!F)return null;const ee=_.convertToBaseUnits("1"===F.unit?A.unit:`(${A.unit})/(${F.unit})`,A.value/F.value);return"succeeded"!==ee.status?null:new l(ee.magnitude,`'${Object.keys(ee.unitToExp).map(ie=>ie+ee.unitToExp[ie]).join(".")||"1"}'`)}convToUcumUnits(S,R){if(R)return{value:R*S.value,unit:"s"};{const N=S.unit.replace(r,""),A=_.convertToBaseUnits(N,S.value);return"succeeded"!==A.status||A.fromUnitIsSpecial?null:{value:A.magnitude,unit:Object.keys(A.unitToExp).map(F=>F+A.unitToExp[F]).join(".")||"1"}}}_compareYearsAndMonths(S){const R=l._yearMonthConversionFactor[this.unit],N=l._yearMonthConversionFactor[S.unit];return R&&N?{isEqual:C.isEqual(this.value*R,S.value*N)}:null}}const r=/^'|'$/g;l.getEquivalentUcumUnitCode=function(U){return l.mapTimeUnitsToUCUMCode[U]||U.replace(r,"")},l.toUcumQuantity=function(U,S){const R=l._calendarDuration2Seconds[S];return R?{value:R*U,unit:"s"}:{value:U,unit:S.replace(r,"")}},l.convUnitTo=function(U,S,R){const N=l._yearMonthConversionFactor[U],A=l._yearMonthConversionFactor[R];if(N&&A)return new l(N*S/A,R);const F=l._calendarDuration2Seconds[U],Y=l._calendarDuration2Seconds[R];if(Y){if(F)return new l(F*S/Y,R);{const ee=_.convertUnitTo(U.replace(/^'|'$/g,""),S,"s");if("succeeded"===ee.status)return new l(ee.toVal/Y,R)}}else{const ee=F?_.convertUnitTo("s",F*S,R.replace(/^'|'$/g,"")):_.convertUnitTo(U.replace(/^'|'$/g,""),S,R.replace(/^'|'$/g,""));if("succeeded"===ee.status)return new l(ee.toVal,R)}return null},l._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},l._yearMonthConversionFactor={years:12,months:1,year:12,month:1},l.dateTimeArithmeticDurationUnits={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","'s'":"second","'ms'":"millisecond"},l.mapUCUMCodeToTimeUnits={a:"year",mo:"month",wk:"week",d:"day",h:"hour",min:"minute",s:"second",ms:"millisecond"},l.mapTimeUnitsToUCUMCode=Object.keys(l.mapUCUMCodeToTimeUnits).reduce(function(U,S){return U[l.mapUCUMCodeToTimeUnits[S]]=S,U[l.mapUCUMCodeToTimeUnits[S]+"s"]=S,U},{});class u extends a{constructor(S){super(),this.asStr=S}plus(S){let N=l.dateTimeArithmeticDurationUnits[S.unit];if(!N)throw new Error("For date/time arithmetic, the unit of the quantity must be one of the following time-based units: "+Object.keys(l.dateTimeArithmeticDurationUnits));const A=this.constructor,F=A._timeUnitToDatePrecision[N];if(void 0===F)throw new Error("Unsupported unit for +. The unit should be one of "+Object.keys(A._timeUnitToDatePrecision).join(", ")+".");let Y=S.value;const ee=A===p;if((ee?F<2:F<5)&&(Y=Math.trunc(Y)),this._getPrecision()2?new h(Y)._getTimeParts():this._getTimeParts(),$=A>2?new h(ee)._getTimeParts():S._getTimeParts(),j=0;j<=F&&!1!==R;++j)R=ie[j]==$[j];R&&(R=void 0)}}else R=!1;return R}equivalentTo(S){var R=S instanceof this.constructor;return R&&(R=this._getPrecision()==S._getPrecision())&&(R=this._getDateObj().getTime()==S._getDateObj().getTime()),R}compare(S){var R=this._getPrecision(),N=S._getPrecision(),A=R<=N?this._getDateObj().getTime():this._dateAtPrecision(N).getTime(),F=N<=R?S._getDateObj().getTime():S._dateAtPrecision(R).getTime();return R!==N&&A===F?null:A-F}_getPrecision(){return void 0===this.precision&&this._getMatchData(),this.precision}_getMatchData(S,R){if(void 0===this.timeMatchData&&(this.timeMatchData=this.asStr.match(S),this.timeMatchData))for(let N=R;N>=0&&void 0===this.precision;--N)this.timeMatchData[N]&&(this.precision=N);return this.timeMatchData}_getTimeParts(S){var R=[];R=[S[0]];var N=S[4];if(N){let ee=R[0];R[0]=ee.slice(0,ee.length-N.length)}var A=S[1];if(A){let ee=R[0];R[0]=ee.slice(0,ee.length-A.length),R[1]=A;var F=S[2];if(F){R[1]=A.slice(0,A.length-F.length),R[2]=F;var Y=S[3];Y&&(R[2]=F.slice(0,F.length-Y.length),R[3]=Y)}}return R}_getDateObj(){if(!this.dateObj){var S=this._getPrecision();this.dateObj=this._dateAtPrecision(S)}return this.dateObj}_createDate(S,R,N,A,F,Y,ee,ie){var $=new Date(S,R,N,A,F,Y,ee);if(ie){var j=$.getTimezoneOffset(),G=0;if("Z"!=ie){var V=ie.split(":"),W=parseInt(V[0]);G=parseInt(V[1]),W<0&&(G=-G),G+=60*W}$=t($,-j-G)}return $}}u.timeUnitToAddFn={year:g(6833),month:g(2482),week:g(1818),day:g(2378),hour:g(6200),minute:g(5462),second:g(5802),millisecond:g(9627)};let h=(()=>{class U extends u{constructor(R){super(R)}compare(R){if(!(R instanceof U))throw"Invalid comparison of a DateTime with something else";return super.compare(R)}_getMatchData(){return super._getMatchData(s,5)}_getTimeParts(){if(!this.timeParts){let N=this._getMatchData(),A=N[0];this.timeParts=[A];var R=N[1];if(R){this.timeParts[0]=A.slice(0,A.length-R.length),this.timeParts[1]=R;let F=N[2];if(F){this.timeParts[1]=R.slice(0,R.length-F.length),this.timeParts[2]=F;let Y=N[3];Y&&(this.timeParts[2]=F.slice(0,F.length-Y.length),"T"===Y[0]&&(N[3]=Y.slice(1)),this.timeParts=this.timeParts.concat(super._getTimeParts(N.slice(3))))}}}return this.timeParts}_dateAtPrecision(R){var N=this._getTimeParts(),A=this._getMatchData()[7],F=this._getPrecision(),Y=parseInt(N[0]),ee=F>0?parseInt(N[1].slice(1))-1:0,ie=F>1?parseInt(N[2].slice(1)):1,$=F>2?parseInt(N[3]):0,j=F>3?parseInt(N[4].slice(1)):0,G=F>4?parseInt(N[5].slice(1)):0,V=N.length>6?parseInt(N[6].slice(1)):0,W=this._createDate(Y,ee,ie,$,j,G,V,A);return R0?W.getMonth():0,ie=R>1?W.getDate():1,$=R>2?W.getHours():0,j=R>3?W.getMinutes():0,W=new Date(Y,ee,ie,$,j)),W}}return U.checkString=function(S){let R=new U(S);return R._getMatchData()||(R=null),R},U._timeUnitToDatePrecision={year:0,month:1,week:2,day:2,hour:3,minute:4,second:5,millisecond:6},U._datePrecisionToTimeUnit=["year","month","day","hour","minute","second","millisecond"],U})(),p=(()=>{class U extends u{constructor(R){"T"==R[0]&&(R=R.slice(1)),super(R)}compare(R){if(!(R instanceof U))throw"Invalid comparison of a time with something else";return super.compare(R)}_dateAtPrecision(R){var N=this._getTimeParts(),A=this._getMatchData()[4],F=this._getPrecision(),Y=2010,$=parseInt(N[0]),j=F>0?parseInt(N[1].slice(1)):0,G=F>1?parseInt(N[2].slice(1)):0,V=N.length>3?parseInt(N[3].slice(1)):0,W=this._createDate(Y,0,1,$,j,G,V,A);return A&&(W.setYear(Y),W.setMonth(0),W.setDate(1)),R0?W.getMinutes():0,W=new Date(Y,0,1,$,j)),W}_getMatchData(){return super._getMatchData(b,2)}_getTimeParts(){return this.timeParts||(this.timeParts=super._getTimeParts(this._getMatchData())),this.timeParts}}return U.checkString=function(S){let R=new U(S);return R._getMatchData()||(R=null),R},U._timeUnitToDatePrecision={hour:0,minute:1,second:2,millisecond:3},U._datePrecisionToTimeUnit=["hour","minute","second","millisecond"],U})();function v(U,S){var R=U;return 3===S&&U<100&&(R="0"+U),U<10&&(R="0"+R),R}h.isoDateTime=function(U,S){void 0===S&&(S=5);var R=""+U.getFullYear();if(S>0&&(R+="-"+v(U.getMonth()+1),S>1&&(R+="-"+v(U.getDate()),S>2&&(R+="T"+h.isoTime(U,S-3)))),S>2){var N=U.getTimezoneOffset(),A=N<0?"+":"-",F=(N=Math.abs(N))%60;R+=A+v((N-F)/60)+":"+v(F)}return R},h.isoTime=function(U,S){void 0===S&&(S=2);let R=""+v(U.getHours());return S>0&&(R+=":"+v(U.getMinutes()),S>1&&(R+=":"+v(U.getSeconds()),U.getMilliseconds()&&(R+="."+v(U.getMilliseconds(),3)))),R};let y=(()=>{class U extends h{constructor(R){super(R)}_getMatchData(){return u.prototype._getMatchData.apply(this,[f,2])}}return U.checkString=function(S){let R=new U(S);return R._getMatchData()||(R=null),R},U.isoDate=function(S,R){return(void 0===R||R>2)&&(R=2),h.isoDateTime(S,R)},U})(),M=(()=>{class U extends h{constructor(R){super(R)}_getMatchData(){return u.prototype._getMatchData.apply(this,[d,5])}}return U.checkString=function(S){let R=new U(S);return R._getMatchData()||(R=null),R},U})(),w=(()=>{class U{constructor(R,N,A,F){R?.resourceType&&(N=R.resourceType,F=R.resourceType),this.path=N,this.data=R,this._data=A||{},this.fhirNodeDataType=F}getTypeInfo(){let R;return I.model&&(/^System\.(.*)$/.test(this.fhirNodeDataType)?R=new I({namespace:I.System,name:RegExp.$1}):this.fhirNodeDataType&&(R=new I({namespace:I.FHIR,name:this.fhirNodeDataType}))),R||I.createByValueInSystemNamespace(this.data)}toJSON(){return JSON.stringify(this.data)}convertData(){var R=this.data;const N=I.typeToClassWithCheckString[this.path];if(N)R=N.checkString(R)||R;else if(I.isType(this.path,"Quantity")&&"http://unitsofmeasure.org"===R?.system&&"number"==typeof R.value&&"string"==typeof R.code){if(void 0!==R.comparator)throw new Error("Cannot convert a FHIR.Quantity that has a comparator");R=new l(R.value,l.mapUCUMCodeToTimeUnits[R.code]||"'"+R.code+"'")}return R}}return U.makeResNode=function(S,R,N,A=null){return S instanceof U?S:new U(S,R,N,A)},U})();const k=new Set;["Boolean","String","Integer","Decimal","Date","DateTime","Time","Quantity"].forEach(U=>k.add(U));let I=(()=>{class U{constructor({name:R,namespace:N}){this.name=R,this.namespace=N}static model=null;is(R){return R instanceof U&&(!this.namespace||!R.namespace||this.namespace===R.namespace)&&(!U.model||this.namespace&&this.namespace!==U.FHIR?this.name===R.name:U.isType(this.name,R.name))}toString(){return(this.namespace?this.namespace+".":"")+this.name}isValid(){let R=!1;return"System"===this.namespace?R=k.has(this.name):"FHIR"===this.namespace?R=U.model?.availableTypes.has(this.name):this.namespace||(R=k.has(this.name)||U.model?.availableTypes.has(this.name)),R}}return U.typeToClassWithCheckString={date:y,dateTime:h,instant:M,time:p},U.isType=function(S,R){do{if(S===R)return!0}while(S=U.model?.type2Parent[S]);return!1},U.System="System",U.FHIR="FHIR",U.createByValueInSystemNamespace=function(S){let R=typeof S;return Number.isInteger(S)?R="integer":"number"===R?R="decimal":S instanceof y?R="date":S instanceof h?R="dateTime":S instanceof p?R="time":S instanceof l&&(R="Quantity"),R=R.replace(/^\w/,N=>N.toUpperCase()),new U({namespace:U.System,name:R})},U.fromValue=function(S){return S instanceof w?S.getTypeInfo():U.createByValueInSystemNamespace(S)},U})();Ie.exports={FP_Type:a,FP_TimeBase:u,FP_Date:y,FP_DateTime:h,FP_Instant:M,FP_Time:p,FP_Quantity:l,timeRE:b,dateTimeRE:s,ResourceNode:w,TypeInfo:I,typeFn:function D(U){return U.map(S=>I.fromValue(S))},isFn:function O(U,S){if(0===U.length)return[];if(U.length>1)throw new Error("Expected singleton on left side of 'is', got "+JSON.stringify(U));return I.fromValue(U[0]).is(S)},asFn:function T(U,S){if(0===U.length)return[];if(U.length>1)throw new Error("Expected singleton on left side of 'as', got "+JSON.stringify(U));return I.fromValue(U[0]).is(S)?U:[]}}},8347:(Ie,ne,g)=>{const t={},_=g(8186),{ResourceNode:C}=_;t.raiseError=function(E,c){throw(c=c?c+": ":"")+E},t.assertOnlyOne=function(E,c){1!==E.length&&t.raiseError("Was expecting only one element but got "+JSON.stringify(E),c)},t.assertType=function(E,c,b){let s=this.valData(E);if(c.indexOf(typeof s)<0){let f=c.length>1?"one of "+c.join(", "):c[0];t.raiseError("Found type '"+typeof E+"' but was expecting "+f,b)}return s},t.isEmpty=function(E){return Array.isArray(E)&&0==E.length},t.isSome=function(E){return null!=E&&!t.isEmpty(E)},t.isTrue=function(E){return null!=E&&(!0===E||1==E.length&&!0===t.valData(E[0]))},t.isCapitalized=function(E){return E&&E[0]===E[0].toUpperCase()},t.flatten=function(E){return E.reduce(function(c,b){return Array.isArray(b)?c=c.concat(b):c.push(b),c},[])},t.arraify=function(E){return Array.isArray(E)?E:t.isSome(E)?[E]:[]},t.valData=function(E){return E instanceof C?E.data:E},t.valDataConverted=function(E){return E instanceof C&&(E=E.convertData()),E},t.escapeStringForRegExp=function(E){return E.replace(/[-[\]{}()*+?.,\\/^$|#\s]/g,"\\$&")},t.pushFn=Function.prototype.apply.bind(Array.prototype.push),t.makeChildResNodes=function(E,c,b){let s=E.path+"."+c;if(b){let u=b.pathsDefinedElsewhere[s];u&&(s=u)}let f,d,a=b&&b.choiceTypePaths[s];if(a)for(let u of a){let h=c+u;if(f=E.data?.[h],d=E.data?.["_"+h],void 0!==f||void 0!==d){s+=u;break}}else f=E.data?.[c],d=E.data?.["_"+c],void 0===f&&void 0===d&&(f=E._data[c]),"extension"===c&&(s="Extension");const l=b&&b.path2Type[s]||null;let r;if(s="BackboneElement"===l||"Element"===l?s:l||s,t.isSome(f)||t.isSome(d))if(Array.isArray(f)){r=f.map((h,p)=>C.makeResNode(h,s,d&&d[p],l));const u=d?.length||0;for(let h=f.length;hC.makeResNode(null,s,u,l)):[C.makeResNode(f,s,d,l)];else r=[];return r},Ie.exports=t},3718:Ie=>{"use strict";Ie.exports=function(ne,g){for(var t={},_=Object.keys(ne),C=Array.isArray(g),E=0;E<_.length;E++){var c=_[E],b=ne[c];(C?-1!==g.indexOf(c):g(c,b,ne))&&(t[c]=b)}return t}},2806:()=>{!function(Ie,ne){"use strict";var g="hljs-ln",t="hljs-ln-line",_="hljs-ln-code",C="hljs-ln-numbers",E="hljs-ln-n",c="data-line-number",b=/\r\n|\r|\n/g;function r(A){try{var F=ne.querySelectorAll("code.hljs,code.nohighlight");for(var Y in F)F.hasOwnProperty(Y)&&(u(F[Y])||h(F[Y],A))}catch(ee){Ie.console.error("LineNumbers error: ",ee)}}function u(A){return A.classList.contains("nohljsln")}function h(A,F){"object"==typeof A&&function U(A){Ie.setTimeout(A,0)}(function(){A.innerHTML=v(A,F)})}function v(A,F){var Y=function M(A,F){return{singleLine:w(F=F||{}),startFrom:k(A,F)}}(A,F);return I(A),function y(A,F){var Y=O(A);if(""===Y[Y.length-1].trim()&&Y.pop(),Y.length>1||F.singleLine){for(var ee="",ie=0,$=Y.length;ie<$;ie++)ee+=S('
{6}',[t,C,E,c,_,ie+F.startFrom,Y[ie].length>0?Y[ie]:" "]);return S('{1}
',[g,ee])}return A}(A.innerHTML,Y)}function w(A){return!!A.singleLine&&A.singleLine}function k(A,F){var ee=1;isFinite(F.startFrom)&&(ee=F.startFrom);var ie=function R(A,F){return A.hasAttribute(F)?A.getAttribute(F):null}(A,"data-ln-start-from");return null!==ie&&(ee=function N(A,F){if(!A)return F;var Y=Number(A);return isFinite(Y)?Y:F}(ie,1)),ee}function I(A){var F=A.childNodes;for(var Y in F)if(F.hasOwnProperty(Y)){var ee=F[Y];T(ee.textContent)>0&&(ee.childNodes.length>0?I(ee):D(ee.parentNode))}}function D(A){var F=A.className;if(/hljs-/.test(F)){for(var Y=O(A.innerHTML),ee=0,ie="";ee{1}\n',[F,Y[ee].length>0?Y[ee]:" "]);A.innerHTML=ie.trim()}}function O(A){return 0===A.length?[]:A.split(b)}function T(A){return(A.trim().match(b)||[]).length}function S(A,F){return A.replace(/\{(\d+)\}/g,function(Y,ee){return void 0!==F[ee]?F[ee]:Y})}Ie.hljs?(Ie.hljs.initLineNumbersOnLoad=function l(A){"interactive"===ne.readyState||"complete"===ne.readyState?r(A):Ie.addEventListener("DOMContentLoaded",function(){r(A)})},Ie.hljs.lineNumbersBlock=h,Ie.hljs.lineNumbersValue=function p(A,F){if("string"==typeof A){var Y=document.createElement("code");return Y.innerHTML=A,v(Y,F)}},function a(){var A=ne.createElement("style");A.type="text/css",A.innerHTML=S(".{0}{border-collapse:collapse}.{0} td{padding:0}.{1}:before{content:attr({2})}",[g,E,c]),ne.getElementsByTagName("head")[0].appendChild(A)}()):Ie.console.error("highlight.js not detected!"),document.addEventListener("copy",function(A){var Y,F=window.getSelection();(function s(A){for(var F=A;F;){if(F.className&&-1!==F.className.indexOf("hljs-ln-code"))return!0;F=F.parentNode}return!1})(F.anchorNode)&&(Y=-1!==window.navigator.userAgent.indexOf("Edge")?function d(A){for(var F=A.toString(),Y=A.anchorNode;"TD"!==Y.nodeName;)Y=Y.parentNode;for(var ee=A.focusNode;"TD"!==ee.nodeName;)ee=ee.parentNode;var ie=parseInt(Y.dataset.lineNumber),$=parseInt(ee.dataset.lineNumber);if(ie!=$){var j=Y.textContent,G=ee.textContent;if(ie>$){var V=ie;ie=$,$=V,V=j,j=G,G=V}for(;0!==F.indexOf(j);)j=j.slice(1);for(;-1===F.lastIndexOf(G);)G=G.slice(0,-1);for(var W=j,K=function f(A){for(var F=A;"TABLE"!==F.nodeName;)F=F.parentNode;return F}(Y),ce=ie+1;ce<$;++ce){var ue=S('.{0}[{1}="{2}"]',[_,c,ce]);W+="\n"+K.querySelector(ue).textContent}return W+"\n"+G}return F}(F):F.toString(),A.clipboardData.setData("text/plain",Y),A.preventDefault())})}(window,document)},1152:Ie=>{"use strict";Ie.exports=Number.isFinite||function(ne){return!("number"!=typeof ne||ne!=ne||ne===1/0||ne===-1/0)}},6971:(Ie,ne,g)=>{var t=g(1152);Ie.exports=Number.isInteger||function(_){return"number"==typeof _&&t(_)&&Math.floor(_)===_}},882:function(Ie,ne){var g,_;void 0!==(_="function"==typeof(g=function(){"use strict";function C(a){function l(v){for(var y=0,M=r.length;y127){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 E(a){if(!(a instanceof ArrayBuffer))throw new TypeError("arrayBuffer is not an instance of ArrayBuffer.");if(!s.Worker)throw new Error("Worker implementation is not available in this environment.");return new C(function(l,r,u){var h=new Worker(b),p=[];h.onerror=function(v){r(v)},h.onmessage=function(v){switch((v=v.data).type){case"log":console[v.data.level]("Worker: "+v.data.msg);break;case"extract":var y=function c(a){return Object.defineProperties(a,d),a}(v.data);p.push(y),u(y);break;case"complete":h.terminate(),l(p);break;case"error":h.terminate(),r(new Error(v.data.message));break;default:h.terminate(),r(new Error("Unknown message from worker: "+v.type))}},h.postMessage({type:"extract",buffer:a},[a])})}})?g.apply(ne,[]):g)&&(Ie.exports=_)},5293:(Ie,ne)=>{function t(_,C){var E=[],c=[];return null==C&&(C=function(b,s){return E[0]===s?"[Circular ~]":"[Circular ~."+c.slice(0,E.indexOf(s)).join(".")+"]"}),function(b,s){if(E.length>0){var f=E.indexOf(this);~f?E.splice(f+1):E.push(this),~f?c.splice(f,1/0,b):c.push(b),~E.indexOf(s)&&(s=C.call(this,b,s))}else E.push(s);return null==_?s:_.call(this,b,s)}}(Ie.exports=function g(_,C,E,c){return JSON.stringify(_,t(C,c),E)}).getSerialize=t},3244:Ie=>{var ne=1e3,g=6e4,t=60*g,_=24*t;function f(d,a,l,r){var u=a>=1.5*l;return Math.round(d/l)+" "+r+(u?"s":"")}Ie.exports=function(d,a){a=a||{};var l=typeof d;if("string"===l&&d.length>0)return function c(d){if(!((d=String(d)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(d);if(a){var l=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*l;case"weeks":case"week":case"w":return 6048e5*l;case"days":case"day":case"d":return l*_;case"hours":case"hour":case"hrs":case"hr":case"h":return l*t;case"minutes":case"minute":case"mins":case"min":case"m":return l*g;case"seconds":case"second":case"secs":case"sec":case"s":return l*ne;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}(d);if("number"===l&&isFinite(d))return a.long?function s(d){var a=Math.abs(d);return a>=_?f(d,a,_,"day"):a>=t?f(d,a,t,"hour"):a>=g?f(d,a,g,"minute"):a>=ne?f(d,a,ne,"second"):d+" ms"}(d):function b(d){var a=Math.abs(d);return a>=_?Math.round(d/_)+"d":a>=t?Math.round(d/t)+"h":a>=g?Math.round(d/g)+"m":a>=ne?Math.round(d/ne)+"s":d+"ms"}(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))}},98:Ie=>{"use strict";const ne=typeof self<"u"?self:typeof window<"u"?window:void 0;if(!ne)throw new Error("Unable to find global scope. Are you sure this is running in the browser?");if(!ne.AbortController)throw new Error('Could not find "AbortController" in the global scope. You need to polyfill it first');Ie.exports.AbortController=ne.AbortController},8570:(Ie,ne,g)=>{"use strict";const t=g(8467),_=g(2635),C=g(3321),E=g(3718),b=Symbol("encodeFragmentIdentifier");function d(M){if("string"!=typeof M||1!==M.length)throw new TypeError("arrayFormatSeparator must be single character string")}function a(M,w){return w.encode?w.strict?t(M):encodeURIComponent(M):M}function l(M,w){return w.decode?_(M):M}function r(M){return Array.isArray(M)?M.sort():"object"==typeof M?r(Object.keys(M)).sort((w,k)=>Number(w)-Number(k)).map(w=>M[w]):M}function u(M){const w=M.indexOf("#");return-1!==w&&(M=M.slice(0,w)),M}function p(M){const w=(M=u(M)).indexOf("?");return-1===w?"":M.slice(w+1)}function v(M,w){return w.parseNumbers&&!Number.isNaN(Number(M))&&"string"==typeof M&&""!==M.trim()?M=Number(M):w.parseBooleans&&null!==M&&("true"===M.toLowerCase()||"false"===M.toLowerCase())&&(M="true"===M.toLowerCase()),M}function y(M,w){d((w=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},w)).arrayFormatSeparator);const k=function f(M){let w;switch(M.arrayFormat){case"index":return(k,I,D)=>{w=/\[(\d*)\]$/.exec(k),k=k.replace(/\[\d*\]$/,""),w?(void 0===D[k]&&(D[k]={}),D[k][w[1]]=I):D[k]=I};case"bracket":return(k,I,D)=>{w=/(\[\])$/.exec(k),D[k=k.replace(/\[\]$/,"")]=w?void 0!==D[k]?[].concat(D[k],I):[I]:I};case"colon-list-separator":return(k,I,D)=>{w=/(:list)$/.exec(k),D[k=k.replace(/:list$/,"")]=w?void 0!==D[k]?[].concat(D[k],I):[I]:I};case"comma":case"separator":return(k,I,D)=>{const O="string"==typeof I&&I.includes(M.arrayFormatSeparator),T="string"==typeof I&&!O&&l(I,M).includes(M.arrayFormatSeparator);I=T?l(I,M):I;const U=O||T?I.split(M.arrayFormatSeparator).map(S=>l(S,M)):null===I?I:l(I,M);D[k]=U};case"bracket-separator":return(k,I,D)=>{const O=/(\[\])$/.test(k);if(k=k.replace(/\[\]$/,""),!O)return void(D[k]=I&&l(I,M));const T=null===I?[]:I.split(M.arrayFormatSeparator).map(U=>l(U,M));D[k]=void 0!==D[k]?[].concat(D[k],T):T};default:return(k,I,D)=>{D[k]=void 0!==D[k]?[].concat(D[k],I):I}}}(w),I=Object.create(null);if("string"!=typeof M||!(M=M.trim().replace(/^[?#&]/,"")))return I;for(const D of M.split("&")){if(""===D)continue;let[O,T]=C(w.decode?D.replace(/\+/g," "):D,"=");T=void 0===T?null:["comma","separator","bracket-separator"].includes(w.arrayFormat)?T:l(T,w),k(l(O,w),T,I)}for(const D of Object.keys(I)){const O=I[D];if("object"==typeof O&&null!==O)for(const T of Object.keys(O))O[T]=v(O[T],w);else I[D]=v(O,w)}return!1===w.sort?I:(!0===w.sort?Object.keys(I).sort():Object.keys(I).sort(w.sort)).reduce((D,O)=>{const T=I[O];return D[O]=T&&"object"==typeof T&&!Array.isArray(T)?r(T):T,D},Object.create(null))}ne.extract=p,ne.parse=y,ne.stringify=(M,w)=>{if(!M)return"";d((w=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},w)).arrayFormatSeparator);const k=T=>w.skipNull&&(M=>null==M)(M[T])||w.skipEmptyString&&""===M[T],I=function s(M){switch(M.arrayFormat){case"index":return w=>(k,I)=>{const D=k.length;return void 0===I||M.skipNull&&null===I||M.skipEmptyString&&""===I?k:null===I?[...k,[a(w,M),"[",D,"]"].join("")]:[...k,[a(w,M),"[",a(D,M),"]=",a(I,M)].join("")]};case"bracket":return w=>(k,I)=>void 0===I||M.skipNull&&null===I||M.skipEmptyString&&""===I?k:null===I?[...k,[a(w,M),"[]"].join("")]:[...k,[a(w,M),"[]=",a(I,M)].join("")];case"colon-list-separator":return w=>(k,I)=>void 0===I||M.skipNull&&null===I||M.skipEmptyString&&""===I?k:null===I?[...k,[a(w,M),":list="].join("")]:[...k,[a(w,M),":list=",a(I,M)].join("")];case"comma":case"separator":case"bracket-separator":{const w="bracket-separator"===M.arrayFormat?"[]=":"=";return k=>(I,D)=>void 0===D||M.skipNull&&null===D||M.skipEmptyString&&""===D?I:(D=null===D?"":D,0===I.length?[[a(k,M),w,a(D,M)].join("")]:[[I,a(D,M)].join(M.arrayFormatSeparator)])}default:return w=>(k,I)=>void 0===I||M.skipNull&&null===I||M.skipEmptyString&&""===I?k:null===I?[...k,a(w,M)]:[...k,[a(w,M),"=",a(I,M)].join("")]}}(w),D={};for(const T of Object.keys(M))k(T)||(D[T]=M[T]);const O=Object.keys(D);return!1!==w.sort&&O.sort(w.sort),O.map(T=>{const U=M[T];return void 0===U?"":null===U?a(T,w):Array.isArray(U)?0===U.length&&"bracket-separator"===w.arrayFormat?a(T,w)+"[]":U.reduce(I(T),[]).join("&"):a(T,w)+"="+a(U,w)}).filter(T=>T.length>0).join("&")},ne.parseUrl=(M,w)=>{w=Object.assign({decode:!0},w);const[k,I]=C(M,"#");return Object.assign({url:k.split("?")[0]||"",query:y(p(M),w)},w&&w.parseFragmentIdentifier&&I?{fragmentIdentifier:l(I,w)}:{})},ne.stringifyUrl=(M,w)=>{w=Object.assign({encode:!0,strict:!0,[b]:!0},w);const k=u(M.url).split("?")[0]||"",I=ne.extract(M.url),D=ne.parse(I,{sort:!1}),O=Object.assign(D,M.query);let T=ne.stringify(O,w);T&&(T=`?${T}`);let U=function h(M){let w="";const k=M.indexOf("#");return-1!==k&&(w=M.slice(k)),w}(M.url);return M.fragmentIdentifier&&(U=`#${w[b]?a(M.fragmentIdentifier,w):M.fragmentIdentifier}`),`${k}${T}${U}`},ne.pick=(M,w,k)=>{k=Object.assign({parseFragmentIdentifier:!0,[b]:!1},k);const{url:I,query:D,fragmentIdentifier:O}=ne.parseUrl(M,k);return ne.stringifyUrl({url:I,query:E(D,w),fragmentIdentifier:O},k)},ne.exclude=(M,w,k)=>{const I=Array.isArray(w)?D=>!w.includes(D):(D,O)=>!w(D,O);return ne.pick(M,I,k)}},4412:(Ie,ne,g)=>{"use strict";g.d(ne,{t:()=>_});var t=g(1413);class _ extends t.B{constructor(E){super(),this._value=E}get value(){return this.getValue()}_subscribe(E){const c=super._subscribe(E);return!c.closed&&E.next(this._value),c}getValue(){const{hasError:E,thrownError:c,_value:b}=this;if(E)throw c;return this._throwIfClosed(),b}next(E){super.next(this._value=E)}}},1985:(Ie,ne,g)=>{"use strict";g.d(ne,{c:()=>f});var t=g(7707),_=g(8359),C=g(3494),E=g(1203),c=g(1026),b=g(8071),s=g(9786);let f=(()=>{class r{constructor(h){h&&(this._subscribe=h)}lift(h){const p=new r;return p.source=this,p.operator=h,p}subscribe(h,p,v){const y=function l(r){return r&&r instanceof t.vU||function a(r){return r&&(0,b.T)(r.next)&&(0,b.T)(r.error)&&(0,b.T)(r.complete)}(r)&&(0,_.Uv)(r)}(h)?h:new t.Ms(h,p,v);return(0,s.Y)(()=>{const{operator:M,source:w}=this;y.add(M?M.call(y,w):w?this._subscribe(y):this._trySubscribe(y))}),y}_trySubscribe(h){try{return this._subscribe(h)}catch(p){h.error(p)}}forEach(h,p){return new(p=d(p))((v,y)=>{const M=new t.Ms({next:w=>{try{h(w)}catch(k){y(k),M.unsubscribe()}},error:y,complete:v});this.subscribe(M)})}_subscribe(h){var p;return null===(p=this.source)||void 0===p?void 0:p.subscribe(h)}[C.s](){return this}pipe(...h){return(0,E.m)(h)(this)}toPromise(h){return new(h=d(h))((p,v)=>{let y;this.subscribe(M=>y=M,M=>v(M),()=>p(y))})}}return r.create=u=>new r(u),r})();function d(r){var u;return null!==(u=r??c.$.Promise)&&void 0!==u?u:Promise}},2771:(Ie,ne,g)=>{"use strict";g.d(ne,{m:()=>C});var t=g(1413),_=g(6129);class C extends t.B{constructor(c=1/0,b=1/0,s=_.U){super(),this._bufferSize=c,this._windowTime=b,this._timestampProvider=s,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=b===1/0,this._bufferSize=Math.max(1,c),this._windowTime=Math.max(1,b)}next(c){const{isStopped:b,_buffer:s,_infiniteTimeWindow:f,_timestampProvider:d,_windowTime:a}=this;b||(s.push(c),!f&&s.push(d.now()+a)),this._trimBuffer(),super.next(c)}_subscribe(c){this._throwIfClosed(),this._trimBuffer();const b=this._innerSubscribe(c),{_infiniteTimeWindow:s,_buffer:f}=this,d=f.slice();for(let a=0;a{"use strict";g.d(ne,{B:()=>s});var t=g(1985),_=g(8359);const E=(0,g(1853).L)(d=>function(){d(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var c=g(7908),b=g(9786);let s=(()=>{class d extends t.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(l){const r=new f(this,this);return r.operator=l,r}_throwIfClosed(){if(this.closed)throw new E}next(l){(0,b.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(l)}})}error(l){(0,b.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=l;const{observers:r}=this;for(;r.length;)r.shift().error(l)}})}complete(){(0,b.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:l}=this;for(;l.length;)l.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var l;return(null===(l=this.observers)||void 0===l?void 0:l.length)>0}_trySubscribe(l){return this._throwIfClosed(),super._trySubscribe(l)}_subscribe(l){return this._throwIfClosed(),this._checkFinalizedStatuses(l),this._innerSubscribe(l)}_innerSubscribe(l){const{hasError:r,isStopped:u,observers:h}=this;return r||u?_.Kn:(this.currentObservers=null,h.push(l),new _.yU(()=>{this.currentObservers=null,(0,c.o)(h,l)}))}_checkFinalizedStatuses(l){const{hasError:r,thrownError:u,isStopped:h}=this;r?l.error(u):h&&l.complete()}asObservable(){const l=new t.c;return l.source=this,l}}return d.create=(a,l)=>new f(a,l),d})();class f extends s{constructor(a,l){super(),this.destination=a,this.source=l}next(a){var l,r;null===(r=null===(l=this.destination)||void 0===l?void 0:l.next)||void 0===r||r.call(l,a)}error(a){var l,r;null===(r=null===(l=this.destination)||void 0===l?void 0:l.error)||void 0===r||r.call(l,a)}complete(){var a,l;null===(l=null===(a=this.destination)||void 0===a?void 0:a.complete)||void 0===l||l.call(a)}_subscribe(a){var l,r;return null!==(r=null===(l=this.source)||void 0===l?void 0:l.subscribe(a))&&void 0!==r?r:_.Kn}}},7707:(Ie,ne,g)=>{"use strict";g.d(ne,{Ms:()=>v,vU:()=>r});var t=g(8071),_=g(8359),C=g(1026),E=g(5334),c=g(5343);const b=d("C",void 0,void 0);function d(I,D,O){return{kind:I,value:D,error:O}}var a=g(9270),l=g(9786);class r extends _.yU{constructor(D){super(),this.isStopped=!1,D?(this.destination=D,(0,_.Uv)(D)&&D.add(this)):this.destination=k}static create(D,O,T){return new v(D,O,T)}next(D){this.isStopped?w(function f(I){return d("N",I,void 0)}(D),this):this._next(D)}error(D){this.isStopped?w(function s(I){return d("E",void 0,I)}(D),this):(this.isStopped=!0,this._error(D))}complete(){this.isStopped?w(b,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(D){this.destination.next(D)}_error(D){try{this.destination.error(D)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const u=Function.prototype.bind;function h(I,D){return u.call(I,D)}class p{constructor(D){this.partialObserver=D}next(D){const{partialObserver:O}=this;if(O.next)try{O.next(D)}catch(T){y(T)}}error(D){const{partialObserver:O}=this;if(O.error)try{O.error(D)}catch(T){y(T)}else y(D)}complete(){const{partialObserver:D}=this;if(D.complete)try{D.complete()}catch(O){y(O)}}}class v extends r{constructor(D,O,T){let U;if(super(),(0,t.T)(D)||!D)U={next:D??void 0,error:O??void 0,complete:T??void 0};else{let S;this&&C.$.useDeprecatedNextContext?(S=Object.create(D),S.unsubscribe=()=>this.unsubscribe(),U={next:D.next&&h(D.next,S),error:D.error&&h(D.error,S),complete:D.complete&&h(D.complete,S)}):U=D}this.destination=new p(U)}}function y(I){C.$.useDeprecatedSynchronousErrorHandling?(0,l.l)(I):(0,E.m)(I)}function w(I,D){const{onStoppedNotification:O}=C.$;O&&a.f.setTimeout(()=>O(I,D))}const k={closed:!0,next:c.l,error:function M(I){throw I},complete:c.l}},8359:(Ie,ne,g)=>{"use strict";g.d(ne,{Kn:()=>b,yU:()=>c,Uv:()=>s});var t=g(8071);const C=(0,g(1853).L)(d=>function(l){d(this),this.message=l?`${l.length} errors occurred during unsubscription:\n${l.map((r,u)=>`${u+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=l});var E=g(7908);class c{constructor(a){this.initialTeardown=a,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let a;if(!this.closed){this.closed=!0;const{_parentage:l}=this;if(l)if(this._parentage=null,Array.isArray(l))for(const h of l)h.remove(this);else l.remove(this);const{initialTeardown:r}=this;if((0,t.T)(r))try{r()}catch(h){a=h instanceof C?h.errors:[h]}const{_finalizers:u}=this;if(u){this._finalizers=null;for(const h of u)try{f(h)}catch(p){a=a??[],p instanceof C?a=[...a,...p.errors]:a.push(p)}}if(a)throw new C(a)}}add(a){var l;if(a&&a!==this)if(this.closed)f(a);else{if(a instanceof c){if(a.closed||a._hasParent(this))return;a._addParent(this)}(this._finalizers=null!==(l=this._finalizers)&&void 0!==l?l:[]).push(a)}}_hasParent(a){const{_parentage:l}=this;return l===a||Array.isArray(l)&&l.includes(a)}_addParent(a){const{_parentage:l}=this;this._parentage=Array.isArray(l)?(l.push(a),l):l?[l,a]:a}_removeParent(a){const{_parentage:l}=this;l===a?this._parentage=null:Array.isArray(l)&&(0,E.o)(l,a)}remove(a){const{_finalizers:l}=this;l&&(0,E.o)(l,a),a instanceof c&&a._removeParent(this)}}c.EMPTY=(()=>{const d=new c;return d.closed=!0,d})();const b=c.EMPTY;function s(d){return d instanceof c||d&&"closed"in d&&(0,t.T)(d.remove)&&(0,t.T)(d.add)&&(0,t.T)(d.unsubscribe)}function f(d){(0,t.T)(d)?d():d.unsubscribe()}},1026:(Ie,ne,g)=>{"use strict";g.d(ne,{$:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},17:(Ie,ne,g)=>{"use strict";g.d(ne,{G:()=>b});var t=g(1985),_=g(8359),C=g(9898),E=g(4360),c=g(9974);class b extends t.c{constructor(f,d){super(),this.source=f,this.subjectFactory=d,this._subject=null,this._refCount=0,this._connection=null,(0,c.S)(f)&&(this.lift=f.lift)}_subscribe(f){return this.getSubject().subscribe(f)}getSubject(){const f=this._subject;return(!f||f.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:f}=this;this._subject=this._connection=null,f?.unsubscribe()}connect(){let f=this._connection;if(!f){f=this._connection=new _.yU;const d=this.getSubject();f.add(this.source.subscribe((0,E._)(d,void 0,()=>{this._teardown(),d.complete()},a=>{this._teardown(),d.error(a)},()=>this._teardown()))),f.closed&&(this._connection=null,f=_.yU.EMPTY)}return f}refCount(){return(0,C.B)()(this)}}},4572:(Ie,ne,g)=>{"use strict";g.d(ne,{P:()=>l,z:()=>a});var t=g(1985),_=g(3073),C=g(8455),E=g(3669),c=g(6450),b=g(9326),s=g(8496),f=g(4360),d=g(5225);function a(...u){const h=(0,b.lI)(u),p=(0,b.ms)(u),{args:v,keys:y}=(0,_.D)(u);if(0===v.length)return(0,C.H)([],h);const M=new t.c(l(v,h,y?w=>(0,s.e)(y,w):E.D));return p?M.pipe((0,c.I)(p)):M}function l(u,h,p=E.D){return v=>{r(h,()=>{const{length:y}=u,M=new Array(y);let w=y,k=y;for(let I=0;I{const D=(0,C.H)(u[I],h);let O=!1;D.subscribe((0,f._)(v,T=>{M[I]=T,O||(O=!0,k--),k||v.next(p(M.slice()))},()=>{--w||v.complete()}))},v)},v)}}function r(u,h,p){u?(0,d.N)(p,u,h):h()}},2688:(Ie,ne,g)=>{"use strict";g.d(ne,{x:()=>E});var t=g(9131),_=g(9326),C=g(8455);function E(...c){return(0,t.K)()((0,C.H)(c,(0,_.lI)(c)))}},9030:(Ie,ne,g)=>{"use strict";g.d(ne,{v:()=>C});var t=g(1985),_=g(8750);function C(E){return new t.c(c=>{(0,_.Tg)(E()).subscribe(c)})}},983:(Ie,ne,g)=>{"use strict";g.d(ne,{w:()=>_});const _=new(g(1985).c)(c=>c.complete())},7468:(Ie,ne,g)=>{"use strict";g.d(ne,{p:()=>f});var t=g(1985),_=g(3073),C=g(8750),E=g(9326),c=g(4360),b=g(6450),s=g(8496);function f(...d){const a=(0,E.ms)(d),{args:l,keys:r}=(0,_.D)(d),u=new t.c(h=>{const{length:p}=l;if(!p)return void h.complete();const v=new Array(p);let y=p,M=p;for(let w=0;w{k||(k=!0,M--),v[w]=I},()=>y--,void 0,()=>{(!y||!k)&&(M||h.next(r?(0,s.e)(r,v):v),h.complete())}))}});return a?u.pipe((0,b.I)(a)):u}},8455:(Ie,ne,g)=>{"use strict";g.d(ne,{H:()=>D});var t=g(8750),_=g(941),C=g(6745),b=g(1985),f=g(4761),d=g(8071),a=g(5225);function r(O,T){if(!O)throw new Error("Iterable cannot be null");return new b.c(U=>{(0,a.N)(U,T,()=>{const S=O[Symbol.asyncIterator]();(0,a.N)(U,T,()=>{S.next().then(R=>{R.done?U.complete():U.next(R.value)})},0,!0)})})}var u=g(5055),h=g(9858),p=g(7441),v=g(5397),y=g(7953),M=g(591),w=g(5196);function D(O,T){return T?function I(O,T){if(null!=O){if((0,u.l)(O))return function E(O,T){return(0,t.Tg)(O).pipe((0,C._)(T),(0,_.Q)(T))}(O,T);if((0,p.X)(O))return function s(O,T){return new b.c(U=>{let S=0;return T.schedule(function(){S===O.length?U.complete():(U.next(O[S++]),U.closed||this.schedule())})})}(O,T);if((0,h.y)(O))return function c(O,T){return(0,t.Tg)(O).pipe((0,C._)(T),(0,_.Q)(T))}(O,T);if((0,y.T)(O))return r(O,T);if((0,v.x)(O))return function l(O,T){return new b.c(U=>{let S;return(0,a.N)(U,T,()=>{S=O[f.l](),(0,a.N)(U,T,()=>{let R,N;try{({value:R,done:N}=S.next())}catch(A){return void U.error(A)}N?U.complete():U.next(R)},0,!0)}),()=>(0,d.T)(S?.return)&&S.return()})}(O,T);if((0,w.U)(O))return function k(O,T){return r((0,w.C)(O),T)}(O,T)}throw(0,M.L)(O)}(O,T):(0,t.Tg)(O)}},3726:(Ie,ne,g)=>{"use strict";g.d(ne,{R:()=>a});var t=g(8750),_=g(1985),C=g(3028),E=g(7441),c=g(8071),b=g(6450);const s=["addListener","removeListener"],f=["addEventListener","removeEventListener"],d=["on","off"];function a(p,v,y,M){if((0,c.T)(y)&&(M=y,y=void 0),M)return a(p,v,y).pipe((0,b.I)(M));const[w,k]=function h(p){return(0,c.T)(p.addEventListener)&&(0,c.T)(p.removeEventListener)}(p)?f.map(I=>D=>p[I](v,D,y)):function r(p){return(0,c.T)(p.addListener)&&(0,c.T)(p.removeListener)}(p)?s.map(l(p,v)):function u(p){return(0,c.T)(p.on)&&(0,c.T)(p.off)}(p)?d.map(l(p,v)):[];if(!w&&(0,E.X)(p))return(0,C.Z)(I=>a(I,v,y))((0,t.Tg)(p));if(!w)throw new TypeError("Invalid event target");return new _.c(I=>{const D=(...O)=>I.next(1k(D)})}function l(p,v){return y=>M=>p[y](v,M)}},8750:(Ie,ne,g)=>{"use strict";g.d(ne,{Tg:()=>u});var t=g(5215),_=g(7441),C=g(9858),E=g(1985),c=g(5055),b=g(7953),s=g(591),f=g(5397),d=g(5196),a=g(8071),l=g(5334),r=g(3494);function u(I){if(I instanceof E.c)return I;if(null!=I){if((0,c.l)(I))return function h(I){return new E.c(D=>{const O=I[r.s]();if((0,a.T)(O.subscribe))return O.subscribe(D);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(I);if((0,_.X)(I))return function p(I){return new E.c(D=>{for(let O=0;O{I.then(O=>{D.closed||(D.next(O),D.complete())},O=>D.error(O)).then(null,l.m)})}(I);if((0,b.T)(I))return M(I);if((0,f.x)(I))return function y(I){return new E.c(D=>{for(const O of I)if(D.next(O),D.closed)return;D.complete()})}(I);if((0,d.U)(I))return function w(I){return M((0,d.C)(I))}(I)}throw(0,s.L)(I)}function M(I){return new E.c(D=>{(function k(I,D){var O,T,U,S;return(0,t.__awaiter)(this,void 0,void 0,function*(){try{for(O=(0,t.__asyncValues)(I);!(T=yield O.next()).done;)if(D.next(T.value),D.closed)return}catch(R){U={error:R}}finally{try{T&&!T.done&&(S=O.return)&&(yield S.call(O))}finally{if(U)throw U.error}}D.complete()})})(I,D).catch(O=>D.error(O))})}},7786:(Ie,ne,g)=>{"use strict";g.d(ne,{h:()=>b});var t=g(6365),_=g(8750),C=g(983),E=g(9326),c=g(8455);function b(...s){const f=(0,E.lI)(s),d=(0,E.R0)(s,1/0),a=s;return a.length?1===a.length?(0,_.Tg)(a[0]):(0,t.U)(d)((0,c.H)(a,f)):C.w}},7673:(Ie,ne,g)=>{"use strict";g.d(ne,{of:()=>C});var t=g(9326),_=g(8455);function C(...E){const c=(0,t.lI)(E);return(0,_.H)(E,c)}},1033:(Ie,ne,g)=>{"use strict";g.d(ne,{O:()=>c,w:()=>b});var t=g(1985),_=g(8750),C=g(9945),E=g(4360);function c(...s){return 1===(s=(0,C.K)(s)).length?(0,_.Tg)(s[0]):new t.c(b(s))}function b(s){return f=>{let d=[];for(let a=0;d&&!f.closed&&a{if(d){for(let r=0;r{"use strict";g.d(ne,{$:()=>C});var t=g(1985),_=g(8071);function C(E,c){const b=(0,_.T)(E)?E:()=>E,s=f=>f.error(b());return new t.c(c?f=>c.schedule(s,0,f):s)}},1807:(Ie,ne,g)=>{"use strict";g.d(ne,{O:()=>c});var t=g(1985),_=g(3236),C=g(9470),E=g(8211);function c(b=0,s,f=_.b){let d=-1;return null!=s&&((0,C.m)(s)?f=s:d=s),new t.c(a=>{let l=(0,E.v)(b)?+b-f.now():b;l<0&&(l=0);let r=0;return f.schedule(function(){a.closed||(a.next(r++),0<=d?this.schedule(void 0,d):a.complete())},l)})}},4437:(Ie,ne,g)=>{"use strict";g.d(ne,{y:()=>s});var t=g(1985),_=g(8750),C=g(9945),E=g(983),c=g(4360),b=g(9326);function s(...f){const d=(0,b.ms)(f),a=(0,C.K)(f);return a.length?new t.c(l=>{let r=a.map(()=>[]),u=a.map(()=>!1);l.add(()=>{r=u=null});for(let h=0;!l.closed&&h{if(r[h].push(p),r.every(v=>v.length)){const v=r.map(y=>y.shift());l.next(d?d(...v):v),r.some((y,M)=>!y.length&&u[M])&&l.complete()}},()=>{u[h]=!0,!r[h].length&&l.complete()}));return()=>{r=u=null}}):E.w}},4360:(Ie,ne,g)=>{"use strict";g.d(ne,{H:()=>C,_:()=>_});var t=g(7707);function _(E,c,b,s,f){return new C(E,c,b,s,f)}class C extends t.vU{constructor(c,b,s,f,d,a){super(c),this.onFinalize=d,this.shouldUnsubscribe=a,this._next=b?function(l){try{b(l)}catch(r){c.error(r)}}:super._next,this._error=f?function(l){try{f(l)}catch(r){c.error(r)}finally{this.unsubscribe()}}:super._error,this._complete=s?function(){try{s()}catch(l){c.error(l)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var c;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:b}=this;super.unsubscribe(),!b&&(null===(c=this.onFinalize)||void 0===c||c.call(this))}}}},5135:(Ie,ne,g)=>{"use strict";g.d(ne,{s:()=>E});var t=g(9974),_=g(8750),C=g(4360);function E(c){return(0,t.N)((b,s)=>{let f=!1,d=null,a=null,l=!1;const r=()=>{if(a?.unsubscribe(),a=null,f){f=!1;const h=d;d=null,s.next(h)}l&&s.complete()},u=()=>{a=null,l&&s.complete()};b.subscribe((0,C._)(s,h=>{f=!0,d=h,a||(0,_.Tg)(c(h)).subscribe(a=(0,C._)(s,r,u))},()=>{l=!0,(!f||!a||a.closed)&&s.complete()}))})}},3578:(Ie,ne,g)=>{"use strict";g.d(ne,{Z:()=>E});var t=g(3236),_=g(5135),C=g(1807);function E(c,b=t.E){return(0,_.s)(()=>(0,C.O)(c,b))}},9437:(Ie,ne,g)=>{"use strict";g.d(ne,{W:()=>E});var t=g(8750),_=g(4360),C=g(9974);function E(c){return(0,C.N)((b,s)=>{let a,f=null,d=!1;f=b.subscribe((0,_._)(s,void 0,void 0,l=>{a=(0,t.Tg)(c(l,E(c)(b))),f?(f.unsubscribe(),f=null,a.subscribe(s)):d=!0})),d&&(f.unsubscribe(),f=null,a.subscribe(s))})}},9131:(Ie,ne,g)=>{"use strict";g.d(ne,{K:()=>_});var t=g(6365);function _(){return(0,t.U)(1)}},274:(Ie,ne,g)=>{"use strict";g.d(ne,{H:()=>C});var t=g(3028),_=g(8071);function C(E,c){return(0,_.T)(c)?(0,t.Z)(E,c,1):(0,t.Z)(E,1)}},152:(Ie,ne,g)=>{"use strict";g.d(ne,{B:()=>E});var t=g(3236),_=g(9974),C=g(4360);function E(c,b=t.E){return(0,_.N)((s,f)=>{let d=null,a=null,l=null;const r=()=>{if(d){d.unsubscribe(),d=null;const h=a;a=null,f.next(h)}};function u(){const h=l+c,p=b.now();if(p{a=h,l=b.now(),d||(d=b.schedule(u,c),f.add(d))},()=>{r(),f.complete()},void 0,()=>{a=d=null}))})}},9901:(Ie,ne,g)=>{"use strict";g.d(ne,{U:()=>C});var t=g(9974),_=g(4360);function C(E){return(0,t.N)((c,b)=>{let s=!1;c.subscribe((0,_._)(b,f=>{s=!0,b.next(f)},()=>{s||b.next(E),b.complete()}))})}},3103:(Ie,ne,g)=>{"use strict";g.d(ne,{c:()=>E});var t=g(3236),_=g(3183),C=g(1807);function E(c,b=t.E){const s=(0,C.O)(c,b);return(0,_.o)(()=>s)}},3183:(Ie,ne,g)=>{"use strict";g.d(ne,{o:()=>s});var t=g(2688),_=g(6697),C=g(3557),E=g(3703),c=g(3028),b=g(8750);function s(f,d){return d?a=>(0,t.x)(d.pipe((0,_.s)(1),(0,C.w)()),a.pipe(s(f))):(0,c.Z)((a,l)=>(0,b.Tg)(f(a,l)).pipe((0,_.s)(1),(0,E.u)(a)))}},3294:(Ie,ne,g)=>{"use strict";g.d(ne,{F:()=>E});var t=g(3669),_=g(9974),C=g(4360);function E(b,s=t.D){return b=b??c,(0,_.N)((f,d)=>{let a,l=!0;f.subscribe((0,C._)(d,r=>{const u=s(r);(l||!b(a,u))&&(l=!1,a=u,d.next(r))}))})}function c(b,s){return b===s}},5964:(Ie,ne,g)=>{"use strict";g.d(ne,{p:()=>C});var t=g(9974),_=g(4360);function C(E,c){return(0,t.N)((b,s)=>{let f=0;b.subscribe((0,_._)(s,d=>E.call(c,d,f++)&&s.next(d)))})}},980:(Ie,ne,g)=>{"use strict";g.d(ne,{j:()=>_});var t=g(9974);function _(C){return(0,t.N)((E,c)=>{try{E.subscribe(c)}finally{c.add(C)}})}},1594:(Ie,ne,g)=>{"use strict";g.d(ne,{$:()=>s});var t=g(9350),_=g(5964),C=g(6697),E=g(9901),c=g(3774),b=g(3669);function s(f,d){const a=arguments.length>=2;return l=>l.pipe(f?(0,_.p)((r,u)=>f(r,u,l)):b.D,(0,C.s)(1),a?(0,E.U)(d):(0,c.v)(()=>new t.G))}},3557:(Ie,ne,g)=>{"use strict";g.d(ne,{w:()=>E});var t=g(9974),_=g(4360),C=g(5343);function E(){return(0,t.N)((c,b)=>{c.subscribe((0,_._)(b,C.l))})}},7018:(Ie,ne,g)=>{"use strict";g.d(ne,{H:()=>s});var t=g(9350),_=g(5964),C=g(5109),E=g(3774),c=g(9901),b=g(3669);function s(f,d){const a=arguments.length>=2;return l=>l.pipe(f?(0,_.p)((r,u)=>f(r,u,l)):b.D,(0,C.o)(1),a?(0,c.U)(d):(0,E.v)(()=>new t.G))}},6354:(Ie,ne,g)=>{"use strict";g.d(ne,{T:()=>C});var t=g(9974),_=g(4360);function C(E,c){return(0,t.N)((b,s)=>{let f=0;b.subscribe((0,_._)(s,d=>{s.next(E.call(c,d,f++))}))})}},3703:(Ie,ne,g)=>{"use strict";g.d(ne,{u:()=>_});var t=g(6354);function _(C){return(0,t.T)(()=>C)}},6365:(Ie,ne,g)=>{"use strict";g.d(ne,{U:()=>C});var t=g(3028),_=g(3669);function C(E=1/0){return(0,t.Z)(_.D,E)}},5412:(Ie,ne,g)=>{"use strict";g.d(ne,{h:()=>E});var t=g(8750),_=g(5225),C=g(4360);function E(c,b,s,f,d,a,l,r){const u=[];let h=0,p=0,v=!1;const y=()=>{v&&!u.length&&!h&&b.complete()},M=k=>h{a&&b.next(k),h++;let I=!1;(0,t.Tg)(s(k,p++)).subscribe((0,C._)(b,D=>{d?.(D),a?M(D):b.next(D)},()=>{I=!0},void 0,()=>{if(I)try{for(h--;u.length&&hw(D)):w(D)}y()}catch(D){b.error(D)}}))};return c.subscribe((0,C._)(b,M,()=>{v=!0,y()})),()=>{r?.()}}},3028:(Ie,ne,g)=>{"use strict";g.d(ne,{Z:()=>b});var t=g(6354),_=g(8750),C=g(9974),E=g(5412),c=g(8071);function b(s,f,d=1/0){return(0,c.T)(f)?b((a,l)=>(0,t.T)((r,u)=>f(a,r,l,u))((0,_.Tg)(s(a,l))),d):("number"==typeof f&&(d=f),(0,C.N)((a,l)=>(0,E.h)(a,l,s,d)))}},941:(Ie,ne,g)=>{"use strict";g.d(ne,{Q:()=>E});var t=g(5225),_=g(9974),C=g(4360);function E(c,b=0){return(0,_.N)((s,f)=>{s.subscribe((0,C._)(f,d=>(0,t.N)(f,c,()=>f.next(d),b),()=>(0,t.N)(f,c,()=>f.complete(),b),d=>(0,t.N)(f,c,()=>f.error(d),b)))})}},9898:(Ie,ne,g)=>{"use strict";g.d(ne,{B:()=>C});var t=g(9974),_=g(4360);function C(){return(0,t.N)((E,c)=>{let b=null;E._refCount++;const s=(0,_._)(c,void 0,void 0,void 0,()=>{if(!E||E._refCount<=0||0<--E._refCount)return void(b=null);const f=E._connection,d=b;b=null,f&&(!d||f===d)&&f.unsubscribe(),c.unsubscribe()});E.subscribe(s),s.closed||(b=E.connect())})}},1943:(Ie,ne,g)=>{"use strict";g.d(ne,{S:()=>C});var t=g(9974),_=g(6649);function C(E,c){return(0,t.N)((0,_.S)(E,c,arguments.length>=2,!0))}},6649:(Ie,ne,g)=>{"use strict";g.d(ne,{S:()=>_});var t=g(4360);function _(C,E,c,b,s){return(f,d)=>{let a=c,l=E,r=0;f.subscribe((0,t._)(d,u=>{const h=r++;l=a?C(l,u,h):(a=!0,u),b&&d.next(l)},s&&(()=>{a&&d.next(l),d.complete()})))}}},7647:(Ie,ne,g)=>{"use strict";g.d(ne,{u:()=>c});var t=g(8750),_=g(1413),C=g(7707),E=g(9974);function c(s={}){const{connector:f=(()=>new _.B),resetOnError:d=!0,resetOnComplete:a=!0,resetOnRefCountZero:l=!0}=s;return r=>{let u,h,p,v=0,y=!1,M=!1;const w=()=>{h?.unsubscribe(),h=void 0},k=()=>{w(),u=p=void 0,y=M=!1},I=()=>{const D=u;k(),D?.unsubscribe()};return(0,E.N)((D,O)=>{v++,!M&&!y&&w();const T=p=p??f();O.add(()=>{v--,0===v&&!M&&!y&&(h=b(I,l))}),T.subscribe(O),!u&&v>0&&(u=new C.Ms({next:U=>T.next(U),error:U=>{M=!0,w(),h=b(k,d,U),T.error(U)},complete:()=>{y=!0,w(),h=b(k,a),T.complete()}}),(0,t.Tg)(D).subscribe(u))})(r)}}function b(s,f,...d){if(!0===f)return void s();if(!1===f)return;const a=new C.Ms({next:()=>{a.unsubscribe(),s()}});return(0,t.Tg)(f(...d)).subscribe(a)}},4668:(Ie,ne,g)=>{"use strict";g.d(ne,{t:()=>C});var t=g(2771),_=g(7647);function C(E,c,b){let s,f=!1;return E&&"object"==typeof E?({bufferSize:s=1/0,windowTime:c=1/0,refCount:f=!1,scheduler:b}=E):s=E??1/0,(0,_.u)({connector:()=>new t.m(s,c,b),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:f})}},5245:(Ie,ne,g)=>{"use strict";g.d(ne,{i:()=>_});var t=g(5964);function _(C){return(0,t.p)((E,c)=>C<=c)}},9172:(Ie,ne,g)=>{"use strict";g.d(ne,{Z:()=>E});var t=g(2688),_=g(9326),C=g(9974);function E(...c){const b=(0,_.lI)(c);return(0,C.N)((s,f)=>{(b?(0,t.x)(c,s,b):(0,t.x)(c,s)).subscribe(f)})}},6745:(Ie,ne,g)=>{"use strict";g.d(ne,{_:()=>_});var t=g(9974);function _(C,E=0){return(0,t.N)((c,b)=>{b.add(C.schedule(()=>c.subscribe(b),E))})}},5558:(Ie,ne,g)=>{"use strict";g.d(ne,{n:()=>E});var t=g(8750),_=g(9974),C=g(4360);function E(c,b){return(0,_.N)((s,f)=>{let d=null,a=0,l=!1;const r=()=>l&&!d&&f.complete();s.subscribe((0,C._)(f,u=>{d?.unsubscribe();let h=0;const p=a++;(0,t.Tg)(c(u,p)).subscribe(d=(0,C._)(f,v=>f.next(b?b(u,v,p,h++):v),()=>{d=null,r()}))},()=>{l=!0,r()}))})}},6697:(Ie,ne,g)=>{"use strict";g.d(ne,{s:()=>E});var t=g(983),_=g(9974),C=g(4360);function E(c){return c<=0?()=>t.w:(0,_.N)((b,s)=>{let f=0;b.subscribe((0,C._)(s,d=>{++f<=c&&(s.next(d),c<=f&&s.complete())}))})}},5109:(Ie,ne,g)=>{"use strict";g.d(ne,{o:()=>E});var t=g(983),_=g(9974),C=g(4360);function E(c){return c<=0?()=>t.w:(0,_.N)((b,s)=>{let f=[];b.subscribe((0,C._)(s,d=>{f.push(d),c{for(const d of f)s.next(d);s.complete()},void 0,()=>{f=null}))})}},6977:(Ie,ne,g)=>{"use strict";g.d(ne,{Q:()=>c});var t=g(9974),_=g(4360),C=g(8750),E=g(5343);function c(b){return(0,t.N)((s,f)=>{(0,C.Tg)(b).subscribe((0,_._)(f,()=>f.complete(),E.l)),!f.closed&&s.subscribe(f)})}},7048:(Ie,ne,g)=>{"use strict";g.d(ne,{v:()=>C});var t=g(9974),_=g(4360);function C(E,c=!1){return(0,t.N)((b,s)=>{let f=0;b.subscribe((0,_._)(s,d=>{const a=E(d,f++);(a||c)&&s.next(d),!a&&s.complete()}))})}},8141:(Ie,ne,g)=>{"use strict";g.d(ne,{M:()=>c});var t=g(8071),_=g(9974),C=g(4360),E=g(3669);function c(b,s,f){const d=(0,t.T)(b)||s||f?{next:b,error:s,complete:f}:b;return d?(0,_.N)((a,l)=>{var r;null===(r=d.subscribe)||void 0===r||r.call(d);let u=!0;a.subscribe((0,C._)(l,h=>{var p;null===(p=d.next)||void 0===p||p.call(d,h),l.next(h)},()=>{var h;u=!1,null===(h=d.complete)||void 0===h||h.call(d),l.complete()},h=>{var p;u=!1,null===(p=d.error)||void 0===p||p.call(d,h),l.error(h)},()=>{var h,p;u&&(null===(h=d.unsubscribe)||void 0===h||h.call(d)),null===(p=d.finalize)||void 0===p||p.call(d)}))}):E.D}},3774:(Ie,ne,g)=>{"use strict";g.d(ne,{v:()=>E});var t=g(9350),_=g(9974),C=g(4360);function E(b=c){return(0,_.N)((s,f)=>{let d=!1;s.subscribe((0,C._)(f,a=>{d=!0,f.next(a)},()=>d?f.complete():f.error(b())))})}function c(){return new t.G}},2087:(Ie,ne,g)=>{"use strict";g.d(ne,{w:()=>d});var t=g(3236),_=g(8211),C=g(9974),E=g(8750),c=g(1853),b=g(4360),s=g(5225);const f=(0,c.L)(l=>function(u=null){l(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=u});function d(l,r){const{first:u,each:h,with:p=a,scheduler:v=r??t.E,meta:y=null}=(0,_.v)(l)?{first:l}:"number"==typeof l?{each:l}:l;if(null==u&&null==h)throw new TypeError("No timeout provided.");return(0,C.N)((M,w)=>{let k,I,D=null,O=0;const T=U=>{I=(0,s.N)(w,v,()=>{try{k.unsubscribe(),(0,E.Tg)(p({meta:y,lastValue:D,seen:O})).subscribe(w)}catch(S){w.error(S)}},U)};k=M.subscribe((0,b._)(w,U=>{I?.unsubscribe(),O++,w.next(D=U),h>0&&T(h)},void 0,void 0,()=>{I?.closed||I?.unsubscribe(),D=null})),!O&&T(null!=u?"number"==typeof u?u:+u-v.now():h)})}function a(l){throw new f(l)}},6780:(Ie,ne,g)=>{"use strict";g.d(ne,{R:()=>c});var t=g(8359);class _ extends t.yU{constructor(s,f){super()}schedule(s,f=0){return this}}const C={setInterval(b,s,...f){const{delegate:d}=C;return d?.setInterval?d.setInterval(b,s,...f):setInterval(b,s,...f)},clearInterval(b){const{delegate:s}=C;return(s?.clearInterval||clearInterval)(b)},delegate:void 0};var E=g(7908);class c extends _{constructor(s,f){super(s,f),this.scheduler=s,this.work=f,this.pending=!1}schedule(s,f=0){var d;if(this.closed)return this;this.state=s;const a=this.id,l=this.scheduler;return null!=a&&(this.id=this.recycleAsyncId(l,a,f)),this.pending=!0,this.delay=f,this.id=null!==(d=this.id)&&void 0!==d?d:this.requestAsyncId(l,this.id,f),this}requestAsyncId(s,f,d=0){return C.setInterval(s.flush.bind(s,this),d)}recycleAsyncId(s,f,d=0){if(null!=d&&this.delay===d&&!1===this.pending)return f;null!=f&&C.clearInterval(f)}execute(s,f){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const d=this._execute(s,f);if(d)return d;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(s,f){let a,d=!1;try{this.work(s)}catch(l){d=!0,a=l||new Error("Scheduled action threw falsy error")}if(d)return this.unsubscribe(),a}unsubscribe(){if(!this.closed){const{id:s,scheduler:f}=this,{actions:d}=f;this.work=this.state=this.scheduler=null,this.pending=!1,(0,E.o)(d,this),null!=s&&(this.id=this.recycleAsyncId(f,s,null)),this.delay=null,super.unsubscribe()}}}},9687:(Ie,ne,g)=>{"use strict";g.d(ne,{q:()=>C});var t=g(6129);class _{constructor(c,b=_.now){this.schedulerActionCtor=c,this.now=b}schedule(c,b=0,s){return new this.schedulerActionCtor(this,c).schedule(s,b)}}_.now=t.U.now;class C extends _{constructor(c,b=_.now){super(c,b),this.actions=[],this._active=!1}flush(c){const{actions:b}=this;if(this._active)return void b.push(c);let s;this._active=!0;do{if(s=c.execute(c.state,c.delay))break}while(c=b.shift());if(this._active=!1,s){for(;c=b.shift();)c.unsubscribe();throw s}}}},536:(Ie,ne,g)=>{"use strict";g.d(ne,{X:()=>s});var t=g(6780),_=g(8359);const C={schedule(d){let a=requestAnimationFrame,l=cancelAnimationFrame;const{delegate:r}=C;r&&(a=r.requestAnimationFrame,l=r.cancelAnimationFrame);const u=a(h=>{l=void 0,d(h)});return new _.yU(()=>l?.(u))},requestAnimationFrame(...d){const{delegate:a}=C;return(a?.requestAnimationFrame||requestAnimationFrame)(...d)},cancelAnimationFrame(...d){const{delegate:a}=C;return(a?.cancelAnimationFrame||cancelAnimationFrame)(...d)},delegate:void 0};var c=g(9687);const s=new class b extends c.q{flush(a){this._active=!0;const l=this._scheduled;this._scheduled=void 0;const{actions:r}=this;let u;a=a||r.shift();do{if(u=a.execute(a.state,a.delay))break}while((a=r[0])&&a.id===l&&r.shift());if(this._active=!1,u){for(;(a=r[0])&&a.id===l&&r.shift();)a.unsubscribe();throw u}}}(class E extends t.R{constructor(a,l){super(a,l),this.scheduler=a,this.work=l}requestAsyncId(a,l,r=0){return null!==r&&r>0?super.requestAsyncId(a,l,r):(a.actions.push(this),a._scheduled||(a._scheduled=C.requestAnimationFrame(()=>a.flush(void 0))))}recycleAsyncId(a,l,r=0){var u;if(null!=r?r>0:this.delay>0)return super.recycleAsyncId(a,l,r);const{actions:h}=a;null!=l&&(null===(u=h[h.length-1])||void 0===u?void 0:u.id)!==l&&(C.cancelAnimationFrame(l),a._scheduled=void 0)}})},5007:(Ie,ne,g)=>{"use strict";g.d(ne,{$:()=>h});var t=g(6780);let C,_=1;const E={};function c(v){return v in E&&(delete E[v],!0)}const b={setImmediate(v){const y=_++;return E[y]=!0,C||(C=Promise.resolve()),C.then(()=>c(y)&&v()),y},clearImmediate(v){c(v)}},{setImmediate:f,clearImmediate:d}=b,a={setImmediate(...v){const{delegate:y}=a;return(y?.setImmediate||f)(...v)},clearImmediate(v){const{delegate:y}=a;return(y?.clearImmediate||d)(v)},delegate:void 0};var r=g(9687);const h=new class u extends r.q{flush(y){this._active=!0;const M=this._scheduled;this._scheduled=void 0;const{actions:w}=this;let k;y=y||w.shift();do{if(k=y.execute(y.state,y.delay))break}while((y=w[0])&&y.id===M&&w.shift());if(this._active=!1,k){for(;(y=w[0])&&y.id===M&&w.shift();)y.unsubscribe();throw k}}}(class l extends t.R{constructor(y,M){super(y,M),this.scheduler=y,this.work=M}requestAsyncId(y,M,w=0){return null!==w&&w>0?super.requestAsyncId(y,M,w):(y.actions.push(this),y._scheduled||(y._scheduled=a.setImmediate(y.flush.bind(y,void 0))))}recycleAsyncId(y,M,w=0){var k;if(null!=w?w>0:this.delay>0)return super.recycleAsyncId(y,M,w);const{actions:I}=y;null!=M&&(null===(k=I[I.length-1])||void 0===k?void 0:k.id)!==M&&(a.clearImmediate(M),y._scheduled===M&&(y._scheduled=void 0))}})},3236:(Ie,ne,g)=>{"use strict";g.d(ne,{E:()=>C,b:()=>E});var t=g(6780);const C=new(g(9687).q)(t.R),E=C},6129:(Ie,ne,g)=>{"use strict";g.d(ne,{U:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},9270:(Ie,ne,g)=>{"use strict";g.d(ne,{f:()=>t});const t={setTimeout(_,C,...E){const{delegate:c}=t;return c?.setTimeout?c.setTimeout(_,C,...E):setTimeout(_,C,...E)},clearTimeout(_){const{delegate:C}=t;return(C?.clearTimeout||clearTimeout)(_)},delegate:void 0}},4761:(Ie,ne,g)=>{"use strict";g.d(ne,{l:()=>_});const _=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Ie,ne,g)=>{"use strict";g.d(ne,{s:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(Ie,ne,g)=>{"use strict";g.d(ne,{G:()=>_});const _=(0,g(1853).L)(C=>function(){C(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(Ie,ne,g)=>{"use strict";g.d(ne,{R0:()=>b,lI:()=>c,ms:()=>E});var t=g(8071),_=g(9470);function C(s){return s[s.length-1]}function E(s){return(0,t.T)(C(s))?s.pop():void 0}function c(s){return(0,_.m)(C(s))?s.pop():void 0}function b(s,f){return"number"==typeof C(s)?s.pop():f}},3073:(Ie,ne,g)=>{"use strict";g.d(ne,{D:()=>c});const{isArray:t}=Array,{getPrototypeOf:_,prototype:C,keys:E}=Object;function c(s){if(1===s.length){const f=s[0];if(t(f))return{args:f,keys:null};if(function b(s){return s&&"object"==typeof s&&_(s)===C}(f)){const d=E(f);return{args:d.map(a=>f[a]),keys:d}}}return{args:s,keys:null}}},9945:(Ie,ne,g)=>{"use strict";g.d(ne,{K:()=>_});const{isArray:t}=Array;function _(C){return 1===C.length&&t(C[0])?C[0]:C}},7908:(Ie,ne,g)=>{"use strict";function t(_,C){if(_){const E=_.indexOf(C);0<=E&&_.splice(E,1)}}g.d(ne,{o:()=>t})},1853:(Ie,ne,g)=>{"use strict";function t(_){const E=_(c=>{Error.call(c),c.stack=(new Error).stack});return E.prototype=Object.create(Error.prototype),E.prototype.constructor=E,E}g.d(ne,{L:()=>t})},8496:(Ie,ne,g)=>{"use strict";function t(_,C){return _.reduce((E,c,b)=>(E[c]=C[b],E),{})}g.d(ne,{e:()=>t})},9786:(Ie,ne,g)=>{"use strict";g.d(ne,{Y:()=>C,l:()=>E});var t=g(1026);let _=null;function C(c){if(t.$.useDeprecatedSynchronousErrorHandling){const b=!_;if(b&&(_={errorThrown:!1,error:null}),c(),b){const{errorThrown:s,error:f}=_;if(_=null,s)throw f}}else c()}function E(c){t.$.useDeprecatedSynchronousErrorHandling&&_&&(_.errorThrown=!0,_.error=c)}},5225:(Ie,ne,g)=>{"use strict";function t(_,C,E,c=0,b=!1){const s=C.schedule(function(){E(),b?_.add(this.schedule(null,c)):this.unsubscribe()},c);if(_.add(s),!b)return s}g.d(ne,{N:()=>t})},3669:(Ie,ne,g)=>{"use strict";function t(_){return _}g.d(ne,{D:()=>t})},7441:(Ie,ne,g)=>{"use strict";g.d(ne,{X:()=>t});const t=_=>_&&"number"==typeof _.length&&"function"!=typeof _},7953:(Ie,ne,g)=>{"use strict";g.d(ne,{T:()=>_});var t=g(8071);function _(C){return Symbol.asyncIterator&&(0,t.T)(C?.[Symbol.asyncIterator])}},8211:(Ie,ne,g)=>{"use strict";function t(_){return _ instanceof Date&&!isNaN(_)}g.d(ne,{v:()=>t})},8071:(Ie,ne,g)=>{"use strict";function t(_){return"function"==typeof _}g.d(ne,{T:()=>t})},5055:(Ie,ne,g)=>{"use strict";g.d(ne,{l:()=>C});var t=g(3494),_=g(8071);function C(E){return(0,_.T)(E[t.s])}},5397:(Ie,ne,g)=>{"use strict";g.d(ne,{x:()=>C});var t=g(4761),_=g(8071);function C(E){return(0,_.T)(E?.[t.l])}},4402:(Ie,ne,g)=>{"use strict";g.d(ne,{A:()=>C});var t=g(1985),_=g(8071);function C(E){return!!E&&(E instanceof t.c||(0,_.T)(E.lift)&&(0,_.T)(E.subscribe))}},9858:(Ie,ne,g)=>{"use strict";g.d(ne,{y:()=>_});var t=g(8071);function _(C){return(0,t.T)(C?.then)}},5196:(Ie,ne,g)=>{"use strict";g.d(ne,{C:()=>C,U:()=>E});var t=g(5215),_=g(8071);function C(c){return(0,t.__asyncGenerator)(this,arguments,function*(){const s=c.getReader();try{for(;;){const{value:f,done:d}=yield(0,t.__await)(s.read());if(d)return yield(0,t.__await)(void 0);yield yield(0,t.__await)(f)}}finally{s.releaseLock()}})}function E(c){return(0,_.T)(c?.getReader)}},9470:(Ie,ne,g)=>{"use strict";g.d(ne,{m:()=>_});var t=g(8071);function _(C){return C&&(0,t.T)(C.schedule)}},9974:(Ie,ne,g)=>{"use strict";g.d(ne,{N:()=>C,S:()=>_});var t=g(8071);function _(E){return(0,t.T)(E?.lift)}function C(E){return c=>{if(_(c))return c.lift(function(b){try{return E(b,this)}catch(s){this.error(s)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Ie,ne,g)=>{"use strict";g.d(ne,{I:()=>E});var t=g(6354);const{isArray:_}=Array;function E(c){return(0,t.T)(b=>function C(c,b){return _(b)?c(...b):c(b)}(c,b))}},5343:(Ie,ne,g)=>{"use strict";function t(){}g.d(ne,{l:()=>t})},1203:(Ie,ne,g)=>{"use strict";g.d(ne,{F:()=>_,m:()=>C});var t=g(3669);function _(...E){return C(E)}function C(E){return 0===E.length?t.D:1===E.length?E[0]:function(b){return E.reduce((s,f)=>f(s),b)}}},5334:(Ie,ne,g)=>{"use strict";g.d(ne,{m:()=>C});var t=g(1026),_=g(9270);function C(E){_.f.setTimeout(()=>{const{onUnhandledError:c}=t.$;if(!c)throw E;c(E)})}},591:(Ie,ne,g)=>{"use strict";function t(_){return new TypeError(`You provided ${null!==_&&"object"==typeof _?"an invalid object":`'${_}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}g.d(ne,{L:()=>t})},2326:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{audit:()=>t.s,auditTime:()=>_.Z,buffer:()=>s,bufferCount:()=>d,bufferTime:()=>h,bufferToggle:()=>p,bufferWhen:()=>v,catchError:()=>y.W,combineAll:()=>A,combineLatest:()=>Y,combineLatestAll:()=>N,combineLatestWith:()=>ee,concat:()=>j,concatAll:()=>ie.K,concatMap:()=>G.H,concatMapTo:()=>W,concatWith:()=>K,connect:()=>pt,count:()=>ct,debounce:()=>Ct,debounceTime:()=>Ne.B,defaultIfEmpty:()=>Ae.U,delay:()=>fe.c,delayWhen:()=>We.o,dematerialize:()=>vt,distinct:()=>rt,distinctUntilChanged:()=>we.F,distinctUntilKeyChanged:()=>Ge,elementAt:()=>un,endWith:()=>cn,every:()=>rn,exhaust:()=>ve,exhaustAll:()=>Bt,exhaustMap:()=>Nt,expand:()=>Xe,filter:()=>xt.p,finalize:()=>Ot.j,find:()=>nt,findIndex:()=>Re,first:()=>me.$,flatMap:()=>Lt,groupBy:()=>Ke,ignoreElements:()=>te.w,isEmpty:()=>de,last:()=>Se.H,map:()=>hn.T,mapTo:()=>it.u,materialize:()=>It,max:()=>Gt,merge:()=>_t,mergeAll:()=>an.U,mergeMap:()=>D.Z,mergeMapTo:()=>qe,mergeScan:()=>Fe,mergeWith:()=>tt,min:()=>He,multicast:()=>At,observeOn:()=>qt.Q,onErrorResumeNext:()=>Oi,pairwise:()=>Ei,partition:()=>at,pluck:()=>Jt,publish:()=>Be,publishBehavior:()=>Et,publishLast:()=>_n,publishReplay:()=>ut,race:()=>Ee,raceWith:()=>mt,reduce:()=>T,refCount:()=>wt.B,repeat:()=>H,repeatWhen:()=>pe,retry:()=>le,retryWhen:()=>Ve,sample:()=>ln,sampleTime:()=>Jn,scan:()=>ti.S,sequenceEqual:()=>In,share:()=>yi.u,shareReplay:()=>ar.t,single:()=>Ri,skip:()=>On.i,skipLast:()=>yn,skipUntil:()=>$i,skipWhile:()=>qn,startWith:()=>Zn.Z,subscribeOn:()=>ii._,switchAll:()=>Ui,switchMap:()=>Wi.n,switchMapTo:()=>Un,switchScan:()=>vn,take:()=>Xt.s,takeLast:()=>Dn.o,takeUntil:()=>Rn.Q,takeWhile:()=>Hn.v,tap:()=>ji.M,throttle:()=>Ji,throttleTime:()=>Gi,throwIfEmpty:()=>jt.v,timeInterval:()=>lr,timeout:()=>Tr.w,timeoutWith:()=>_s,timestamp:()=>Fr,toArray:()=>S,window:()=>Ur,windowCount:()=>mr,windowTime:()=>es,windowToggle:()=>Li,windowWhen:()=>ts,withLatestFrom:()=>Bn,zip:()=>us,zipAll:()=>br,zipWith:()=>vs});var t=g(5135),_=g(3578),C=g(9974),E=g(5343),c=g(4360),b=g(8750);function s(Dt){return(0,C.N)((bt,Tt)=>{let kt=[];return bt.subscribe((0,c._)(Tt,$t=>kt.push($t),()=>{Tt.next(kt),Tt.complete()})),(0,b.Tg)(Dt).subscribe((0,c._)(Tt,()=>{const $t=kt;kt=[],Tt.next($t)},E.l)),()=>{kt=null}})}var f=g(7908);function d(Dt,bt=null){return bt=bt??Dt,(0,C.N)((Tt,kt)=>{let $t=[],Wt=0;Tt.subscribe((0,c._)(kt,sn=>{let fn=null;Wt++%bt==0&&$t.push([]);for(const bn of $t)bn.push(sn),Dt<=bn.length&&(fn=fn??[],fn.push(bn));if(fn)for(const bn of fn)(0,f.o)($t,bn),kt.next(bn)},()=>{for(const sn of $t)kt.next(sn);kt.complete()},void 0,()=>{$t=null}))})}var a=g(8359),l=g(3236),r=g(9326),u=g(5225);function h(Dt,...bt){var Tt,kt;const $t=null!==(Tt=(0,r.lI)(bt))&&void 0!==Tt?Tt:l.E,Wt=null!==(kt=bt[0])&&void 0!==kt?kt:null,sn=bt[1]||1/0;return(0,C.N)((fn,bn)=>{let Tn=[],$n=!1;const Mi=Vn=>{const{buffer:ri,subs:li}=Vn;li.unsubscribe(),(0,f.o)(Tn,Vn),bn.next(ri),$n&&Xn()},Xn=()=>{if(Tn){const Vn=new a.yU;bn.add(Vn);const li={buffer:[],subs:Vn};Tn.push(li),(0,u.N)(Vn,$t,()=>Mi(li),Dt)}};null!==Wt&&Wt>=0?(0,u.N)(bn,$t,Xn,Wt,!0):$n=!0,Xn();const Ti=(0,c._)(bn,Vn=>{const ri=Tn.slice();for(const li of ri){const{buffer:ur}=li;ur.push(Vn),sn<=ur.length&&Mi(li)}},()=>{for(;Tn?.length;)bn.next(Tn.shift().buffer);Ti?.unsubscribe(),bn.complete(),bn.unsubscribe()},void 0,()=>Tn=null);fn.subscribe(Ti)})}function p(Dt,bt){return(0,C.N)((Tt,kt)=>{const $t=[];(0,b.Tg)(Dt).subscribe((0,c._)(kt,Wt=>{const sn=[];$t.push(sn);const fn=new a.yU;fn.add((0,b.Tg)(bt(Wt)).subscribe((0,c._)(kt,()=>{(0,f.o)($t,sn),kt.next(sn),fn.unsubscribe()},E.l)))},E.l)),Tt.subscribe((0,c._)(kt,Wt=>{for(const sn of $t)sn.push(Wt)},()=>{for(;$t.length>0;)kt.next($t.shift());kt.complete()}))})}function v(Dt){return(0,C.N)((bt,Tt)=>{let kt=null,$t=null;const Wt=()=>{$t?.unsubscribe();const sn=kt;kt=[],sn&&Tt.next(sn),(0,b.Tg)(Dt()).subscribe($t=(0,c._)(Tt,Wt,E.l))};Wt(),bt.subscribe((0,c._)(Tt,sn=>kt?.push(sn),()=>{kt&&Tt.next(kt),Tt.complete()},void 0,()=>kt=$t=null))})}var y=g(9437),M=g(4572),w=g(3669),k=g(6450),I=g(1203),D=g(3028),O=g(6649);function T(Dt,bt){return(0,C.N)((0,O.S)(Dt,bt,arguments.length>=2,!1,!0))}const U=(Dt,bt)=>(Dt.push(bt),Dt);function S(){return(0,C.N)((Dt,bt)=>{T(U,[])(Dt).subscribe(bt)})}function R(Dt,bt){return(0,I.F)(S(),(0,D.Z)(Tt=>Dt(Tt)),bt?(0,k.I)(bt):w.D)}function N(Dt){return R(M.z,Dt)}const A=N;var F=g(9945);function Y(...Dt){const bt=(0,r.ms)(Dt);return bt?(0,I.F)(Y(...Dt),(0,k.I)(bt)):(0,C.N)((Tt,kt)=>{(0,M.P)([Tt,...(0,F.K)(Dt)])(kt)})}function ee(...Dt){return Y(...Dt)}var ie=g(9131),$=g(8455);function j(...Dt){const bt=(0,r.lI)(Dt);return(0,C.N)((Tt,kt)=>{(0,ie.K)()((0,$.H)([Tt,...Dt],bt)).subscribe(kt)})}var G=g(274),V=g(8071);function W(Dt,bt){return(0,V.T)(bt)?(0,G.H)(()=>Dt,bt):(0,G.H)(()=>Dt)}function K(...Dt){return j(...Dt)}var ce=g(1413),ue=g(1985);const Ze={connector:()=>new ce.B};function pt(Dt,bt=Ze){const{connector:Tt}=bt;return(0,C.N)((kt,$t)=>{const Wt=Tt();(0,b.Tg)(Dt(function be(Dt){return new ue.c(bt=>Dt.subscribe(bt))}(Wt))).subscribe($t),$t.add(kt.subscribe(Wt))})}function ct(Dt){return T((bt,Tt,kt)=>!Dt||Dt(Tt,kt)?bt+1:bt,0)}function Ct(Dt){return(0,C.N)((bt,Tt)=>{let kt=!1,$t=null,Wt=null;const sn=()=>{if(Wt?.unsubscribe(),Wt=null,kt){kt=!1;const fn=$t;$t=null,Tt.next(fn)}};bt.subscribe((0,c._)(Tt,fn=>{Wt?.unsubscribe(),kt=!0,$t=fn,Wt=(0,c._)(Tt,sn,E.l),(0,b.Tg)(Dt(fn)).subscribe(Wt)},()=>{sn(),Tt.complete()},void 0,()=>{$t=Wt=null}))})}var Ne=g(152),Ae=g(9901),fe=g(3103),We=g(3183),Pe=g(983),Me=g(7673),$e=g(8810);class _e{constructor(bt,Tt,kt){this.kind=bt,this.value=Tt,this.error=kt,this.hasValue="N"===bt}observe(bt){return Oe(this,bt)}do(bt,Tt,kt){const{kind:$t,value:Wt,error:sn}=this;return"N"===$t?bt?.(Wt):"E"===$t?Tt?.(sn):kt?.()}accept(bt,Tt,kt){var $t;return(0,V.T)(null===($t=bt)||void 0===$t?void 0:$t.next)?this.observe(bt):this.do(bt,Tt,kt)}toObservable(){const{kind:bt,value:Tt,error:kt}=this,$t="N"===bt?(0,Me.of)(Tt):"E"===bt?(0,$e.$)(()=>kt):"C"===bt?Pe.w:0;if(!$t)throw new TypeError(`Unexpected notification kind ${bt}`);return $t}static createNext(bt){return new _e("N",bt)}static createError(bt){return new _e("E",void 0,bt)}static createComplete(){return _e.completeNotification}}function Oe(Dt,bt){var Tt,kt,$t;const{kind:Wt,value:sn,error:fn}=Dt;if("string"!=typeof Wt)throw new TypeError('Invalid notification, missing "kind"');"N"===Wt?null===(Tt=bt.next)||void 0===Tt||Tt.call(bt,sn):"E"===Wt?null===(kt=bt.error)||void 0===kt||kt.call(bt,fn):null===($t=bt.complete)||void 0===$t||$t.call(bt)}function vt(){return(0,C.N)((Dt,bt)=>{Dt.subscribe((0,c._)(bt,Tt=>Oe(Tt,bt)))})}function rt(Dt,bt){return(0,C.N)((Tt,kt)=>{const $t=new Set;Tt.subscribe((0,c._)(kt,Wt=>{const sn=Dt?Dt(Wt):Wt;$t.has(sn)||($t.add(sn),kt.next(Wt))})),bt&&(0,b.Tg)(bt).subscribe((0,c._)(kt,()=>$t.clear(),E.l))})}_e.completeNotification=new _e("C");var we=g(3294);function Ge(Dt,bt){return(0,we.F)((Tt,kt)=>bt?bt(Tt[Dt],kt[Dt]):Tt[Dt]===kt[Dt])}var De=g(1853);const ot=(0,De.L)(Dt=>function(){Dt(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"});var xt=g(5964),jt=g(3774),Xt=g(6697);function un(Dt,bt){if(Dt<0)throw new ot;const Tt=arguments.length>=2;return kt=>kt.pipe((0,xt.p)(($t,Wt)=>Wt===Dt),(0,Xt.s)(1),Tt?(0,Ae.U)(bt):(0,jt.v)(()=>new ot))}var dn=g(2688);function cn(...Dt){return bt=>(0,dn.x)(bt,(0,Me.of)(...Dt))}function rn(Dt,bt){return(0,C.N)((Tt,kt)=>{let $t=0;Tt.subscribe((0,c._)(kt,Wt=>{Dt.call(bt,Wt,$t++,Tt)||(kt.next(!1),kt.complete())},()=>{kt.next(!0),kt.complete()}))})}var hn=g(6354);function Nt(Dt,bt){return bt?Tt=>Tt.pipe(Nt((kt,$t)=>(0,b.Tg)(Dt(kt,$t)).pipe((0,hn.T)((Wt,sn)=>bt(kt,Wt,$t,sn))))):(0,C.N)((Tt,kt)=>{let $t=0,Wt=null,sn=!1;Tt.subscribe((0,c._)(kt,fn=>{Wt||(Wt=(0,c._)(kt,void 0,()=>{Wt=null,sn&&kt.complete()}),(0,b.Tg)(Dt(fn,$t++)).subscribe(Wt))},()=>{sn=!0,!Wt&&kt.complete()}))})}function Bt(){return Nt(w.D)}const ve=Bt;var Qe=g(5412);function Xe(Dt,bt=1/0,Tt){return bt=(bt||0)<1?1/0:bt,(0,C.N)((kt,$t)=>(0,Qe.h)(kt,$t,Dt,bt,void 0,!0,Tt))}var Ot=g(980);function nt(Dt,bt){return(0,C.N)(ft(Dt,bt,"value"))}function ft(Dt,bt,Tt){const kt="index"===Tt;return($t,Wt)=>{let sn=0;$t.subscribe((0,c._)(Wt,fn=>{const bn=sn++;Dt.call(bt,fn,bn,$t)&&(Wt.next(kt?bn:fn),Wt.complete())},()=>{Wt.next(kt?-1:void 0),Wt.complete()}))}}function Re(Dt,bt){return(0,C.N)(ft(Dt,bt,"index"))}var me=g(1594);function Ke(Dt,bt,Tt,kt){return(0,C.N)(($t,Wt)=>{let sn;bt&&"function"!=typeof bt?({duration:Tt,element:sn,connector:kt}=bt):sn=bt;const fn=new Map,bn=Vn=>{fn.forEach(Vn),Vn(Wt)},Tn=Vn=>bn(ri=>ri.error(Vn));let $n=0,Mi=!1;const Xn=new c.H(Wt,Vn=>{try{const ri=Dt(Vn);let li=fn.get(ri);if(!li){fn.set(ri,li=kt?kt():new ce.B);const ur=function Ti(Vn,ri){const li=new ue.c(ur=>{$n++;const Bi=ri.subscribe(ur);return()=>{Bi.unsubscribe(),0==--$n&&Mi&&Xn.unsubscribe()}});return li.key=Vn,li}(ri,li);if(Wt.next(ur),Tt){const Bi=(0,c._)(li,()=>{li.complete(),Bi?.unsubscribe()},void 0,void 0,()=>fn.delete(ri));Xn.add((0,b.Tg)(Tt(ur)).subscribe(Bi))}}li.next(sn?sn(Vn):Vn)}catch(ri){Tn(ri)}},()=>bn(Vn=>Vn.complete()),Tn,()=>fn.clear(),()=>(Mi=!0,0===$n));$t.subscribe(Xn)})}var te=g(3557);function de(){return(0,C.N)((Dt,bt)=>{Dt.subscribe((0,c._)(bt,()=>{bt.next(!1),bt.complete()},()=>{bt.next(!0),bt.complete()}))})}var Se=g(7018),it=g(3703);function It(){return(0,C.N)((Dt,bt)=>{Dt.subscribe((0,c._)(bt,Tt=>{bt.next(_e.createNext(Tt))},()=>{bt.next(_e.createComplete()),bt.complete()},Tt=>{bt.next(_e.createError(Tt)),bt.complete()}))})}function Gt(Dt){return T((0,V.T)(Dt)?(bt,Tt)=>Dt(bt,Tt)>0?bt:Tt:(bt,Tt)=>bt>Tt?bt:Tt)}var an=g(6365);function _t(...Dt){const bt=(0,r.lI)(Dt),Tt=(0,r.R0)(Dt,1/0);return Dt=(0,F.K)(Dt),(0,C.N)((kt,$t)=>{(0,an.U)(Tt)((0,$.H)([kt,...Dt],bt)).subscribe($t)})}const Lt=D.Z;function qe(Dt,bt,Tt=1/0){return(0,V.T)(bt)?(0,D.Z)(()=>Dt,bt,Tt):("number"==typeof bt&&(Tt=bt),(0,D.Z)(()=>Dt,Tt))}function Fe(Dt,bt,Tt=1/0){return(0,C.N)((kt,$t)=>{let Wt=bt;return(0,Qe.h)(kt,$t,(sn,fn)=>Dt(Wt,sn,fn),Tt,sn=>{Wt=sn},!1,void 0,()=>Wt=null)})}function tt(...Dt){return _t(...Dt)}function He(Dt){return T((0,V.T)(Dt)?(bt,Tt)=>Dt(bt,Tt)<0?bt:Tt:(bt,Tt)=>btDt;return(0,V.T)(bt)?pt(bt,{connector:Tt}):kt=>new dt.G(kt,Tt)}var qt=g(941);const Oi=function Ln(...Dt){const bt=(0,F.K)(Dt);return Tt=>function Cn(...Dt){const bt=(0,F.K)(Dt);return new ue.c(Tt=>{let kt=0;const $t=()=>{if(kt{let Tt,kt=!1;Dt.subscribe((0,c._)(bt,$t=>{const Wt=Tt;Tt=$t,kt&&bt.next([Wt,$t]),kt=!0}))})}function jn(Dt,bt){return(Tt,kt)=>!Dt.call(bt,Tt,kt)}function at(Dt,bt){return Tt=>[(0,xt.p)(Dt,bt)(Tt),(0,xt.p)(jn(Dt,bt))(Tt)]}function Jt(...Dt){const bt=Dt.length;if(0===bt)throw new Error("list of properties cannot be empty.");return(0,hn.T)(Tt=>{let kt=Tt;for(let $t=0;$tpt(Dt)(bt):bt=>At(new ce.B)(bt)}var lt=g(4412);function Et(Dt){return bt=>{const Tt=new lt.t(Dt);return new dt.G(bt,()=>Tt)}}class nn extends ce.B{constructor(){super(...arguments),this._value=null,this._hasValue=!1,this._isComplete=!1}_checkFinalizedStatuses(bt){const{hasError:Tt,_hasValue:kt,_value:$t,thrownError:Wt,isStopped:sn,_isComplete:fn}=this;Tt?bt.error(Wt):(sn||fn)&&(kt&&bt.next($t),bt.complete())}next(bt){this.isStopped||(this._value=bt,this._hasValue=!0)}complete(){const{_hasValue:bt,_value:Tt,_isComplete:kt}=this;kt||(this._isComplete=!0,bt&&super.next(Tt),super.complete())}}function _n(){return Dt=>{const bt=new nn;return new dt.G(Dt,()=>bt)}}var Ue=g(2771);function ut(Dt,bt,Tt,kt){Tt&&!(0,V.T)(Tt)&&(kt=Tt);const $t=(0,V.T)(Tt)?Tt:void 0;return Wt=>At(new Ue.m(Dt,bt,kt),$t)(Wt)}var Ye=g(1033);function mt(...Dt){return Dt.length?(0,C.N)((bt,Tt)=>{(0,Ye.w)([bt,...Dt])(Tt)}):w.D}function Ee(...Dt){return mt(...(0,F.K)(Dt))}var Mt=g(1807);function H(Dt){let Tt,bt=1/0;return null!=Dt&&("object"==typeof Dt?({count:bt=1/0,delay:Tt}=Dt):bt=Dt),bt<=0?()=>Pe.w:(0,C.N)((kt,$t)=>{let sn,Wt=0;const fn=()=>{if(sn?.unsubscribe(),sn=null,null!=Tt){const Tn="number"==typeof Tt?(0,Mt.O)(Tt):(0,b.Tg)(Tt(Wt)),$n=(0,c._)($t,()=>{$n.unsubscribe(),bn()});Tn.subscribe($n)}else bn()},bn=()=>{let Tn=!1;sn=kt.subscribe((0,c._)($t,void 0,()=>{++Wt{let kt,Wt,$t=!1,sn=!1,fn=!1;const bn=()=>fn&&sn&&(Tt.complete(),!0),$n=()=>{fn=!1,kt=bt.subscribe((0,c._)(Tt,void 0,()=>{fn=!0,!bn()&&(Wt||(Wt=new ce.B,(0,b.Tg)(Dt(Wt)).subscribe((0,c._)(Tt,()=>{kt?$n():$t=!0},()=>{sn=!0,bn()}))),Wt).next()})),$t&&(kt.unsubscribe(),kt=null,$t=!1,$n())};$n()})}function le(Dt=1/0){let bt;bt=Dt&&"object"==typeof Dt?Dt:{count:Dt};const{count:Tt=1/0,delay:kt,resetOnSuccess:$t=!1}=bt;return Tt<=0?w.D:(0,C.N)((Wt,sn)=>{let bn,fn=0;const Tn=()=>{let $n=!1;bn=Wt.subscribe((0,c._)(sn,Mi=>{$t&&(fn=0),sn.next(Mi)},void 0,Mi=>{if(fn++{bn?(bn.unsubscribe(),bn=null,Tn()):$n=!0};if(null!=kt){const Ti="number"==typeof kt?(0,Mt.O)(kt):(0,b.Tg)(kt(Mi,fn)),Vn=(0,c._)(sn,()=>{Vn.unsubscribe(),Xn()},()=>{sn.complete()});Ti.subscribe(Vn)}else Xn()}else sn.error(Mi)})),$n&&(bn.unsubscribe(),bn=null,Tn())};Tn()})}function Ve(Dt){return(0,C.N)((bt,Tt)=>{let kt,Wt,$t=!1;const sn=()=>{kt=bt.subscribe((0,c._)(Tt,void 0,void 0,fn=>{Wt||(Wt=new ce.B,(0,b.Tg)(Dt(Wt)).subscribe((0,c._)(Tt,()=>kt?sn():$t=!0))),Wt&&Wt.next(fn)})),$t&&(kt.unsubscribe(),kt=null,$t=!1,sn())};sn()})}var wt=g(9898);function ln(Dt){return(0,C.N)((bt,Tt)=>{let kt=!1,$t=null;bt.subscribe((0,c._)(Tt,Wt=>{kt=!0,$t=Wt})),(0,b.Tg)(Dt).subscribe((0,c._)(Tt,()=>{if(kt){kt=!1;const Wt=$t;$t=null,Tt.next(Wt)}},E.l))})}function Jn(Dt,bt=l.E){return ln(function Gn(Dt=0,bt=l.E){return Dt<0&&(Dt=0),(0,Mt.O)(Dt,Dt,bt)}(Dt,bt))}var ti=g(1943);function In(Dt,bt=((Tt,kt)=>Tt===kt)){return(0,C.N)((Tt,kt)=>{const $t={buffer:[],complete:!1},Wt={buffer:[],complete:!1},sn=bn=>{kt.next(bn),kt.complete()},fn=(bn,Tn)=>{const $n=(0,c._)(kt,Mi=>{const{buffer:Xn,complete:Ti}=Tn;0===Xn.length?Ti?sn(!1):bn.buffer.push(Mi):!bt(Mi,Xn.shift())&&sn(!1)},()=>{bn.complete=!0;const{complete:Mi,buffer:Xn}=Tn;Mi&&sn(0===Xn.length),$n?.unsubscribe()});return $n};Tt.subscribe(fn($t,Wt)),(0,b.Tg)(Dt).subscribe(fn(Wt,$t))})}var yi=g(7647),ar=g(4668),_i=g(9350);const hi=(0,De.L)(Dt=>function(Tt){Dt(this),this.name="SequenceError",this.message=Tt}),xi=(0,De.L)(Dt=>function(Tt){Dt(this),this.name="NotFoundError",this.message=Tt});function Ri(Dt){return(0,C.N)((bt,Tt)=>{let $t,kt=!1,Wt=!1,sn=0;bt.subscribe((0,c._)(Tt,fn=>{Wt=!0,(!Dt||Dt(fn,sn++,bt))&&(kt&&Tt.error(new hi("Too many matching values")),kt=!0,$t=fn)},()=>{kt?(Tt.next($t),Tt.complete()):Tt.error(Wt?new xi("No matching values"):new _i.G)}))})}var On=g(5245);function yn(Dt){return Dt<=0?w.D:(0,C.N)((bt,Tt)=>{let kt=new Array(Dt),$t=0;return bt.subscribe((0,c._)(Tt,Wt=>{const sn=$t++;if(sn{kt=null}})}function $i(Dt){return(0,C.N)((bt,Tt)=>{let kt=!1;const $t=(0,c._)(Tt,()=>{$t?.unsubscribe(),kt=!0},E.l);(0,b.Tg)(Dt).subscribe($t),bt.subscribe((0,c._)(Tt,Wt=>kt&&Tt.next(Wt)))})}function qn(Dt){return(0,C.N)((bt,Tt)=>{let kt=!1,$t=0;bt.subscribe((0,c._)(Tt,Wt=>(kt||(kt=!Dt(Wt,$t++)))&&Tt.next(Wt)))})}var Zn=g(9172),ii=g(6745),Wi=g(5558);function Ui(){return(0,Wi.n)(w.D)}function Un(Dt,bt){return(0,V.T)(bt)?(0,Wi.n)(()=>Dt,bt):(0,Wi.n)(()=>Dt)}function vn(Dt,bt){return(0,C.N)((Tt,kt)=>{let $t=bt;return(0,Wi.n)((Wt,sn)=>Dt($t,Wt,sn),(Wt,sn)=>($t=sn,sn))(Tt).subscribe(kt),()=>{$t=null}})}var Dn=g(5109),Rn=g(6977),Hn=g(7048),ji=g(8141);function Ji(Dt,bt){return(0,C.N)((Tt,kt)=>{const{leading:$t=!0,trailing:Wt=!1}=bt??{};let sn=!1,fn=null,bn=null,Tn=!1;const $n=()=>{bn?.unsubscribe(),bn=null,Wt&&(Ti(),Tn&&kt.complete())},Mi=()=>{bn=null,Tn&&kt.complete()},Xn=Vn=>bn=(0,b.Tg)(Dt(Vn)).subscribe((0,c._)(kt,$n,Mi)),Ti=()=>{if(sn){sn=!1;const Vn=fn;fn=null,kt.next(Vn),!Tn&&Xn(Vn)}};Tt.subscribe((0,c._)(kt,Vn=>{sn=!0,fn=Vn,(!bn||bn.closed)&&($t?Ti():Xn(Vn))},()=>{Tn=!0,(!(Wt&&sn&&bn)||bn.closed)&&kt.complete()}))})}function Gi(Dt,bt=l.E,Tt){const kt=(0,Mt.O)(Dt,bt);return Ji(()=>kt,Tt)}function lr(Dt=l.E){return(0,C.N)((bt,Tt)=>{let kt=Dt.now();bt.subscribe((0,c._)(Tt,$t=>{const Wt=Dt.now(),sn=Wt-kt;kt=Wt,Tt.next(new Hr($t,sn))}))})}class Hr{constructor(bt,Tt){this.value=bt,this.interval=Tt}}var Tr=g(2087),wr=g(8211);function _s(Dt,bt,Tt){let kt,$t,Wt;if(Tt=Tt??l.b,(0,wr.v)(Dt)?kt=Dt:"number"==typeof Dt&&($t=Dt),!bt)throw new TypeError("No observable provided to switch to");if(Wt=()=>bt,null==kt&&null==$t)throw new TypeError("No timeout provided.");return(0,Tr.w)({first:kt,each:$t,scheduler:Tt,with:Wt})}var Sr=g(6129);function Fr(Dt=Sr.U){return(0,hn.T)(bt=>({value:bt,timestamp:Dt.now()}))}function Ur(Dt){return(0,C.N)((bt,Tt)=>{let kt=new ce.B;Tt.next(kt.asObservable());const $t=Wt=>{kt.error(Wt),Tt.error(Wt)};return bt.subscribe((0,c._)(Tt,Wt=>kt?.next(Wt),()=>{kt.complete(),Tt.complete()},$t)),(0,b.Tg)(Dt).subscribe((0,c._)(Tt,()=>{kt.complete(),Tt.next(kt=new ce.B)},E.l,$t)),()=>{kt?.unsubscribe(),kt=null}})}function mr(Dt,bt=0){const Tt=bt>0?bt:Dt;return(0,C.N)((kt,$t)=>{let Wt=[new ce.B],sn=[],fn=0;$t.next(Wt[0].asObservable()),kt.subscribe((0,c._)($t,bn=>{for(const $n of Wt)$n.next(bn);const Tn=fn-Dt+1;if(Tn>=0&&Tn%Tt==0&&Wt.shift().complete(),++fn%Tt==0){const $n=new ce.B;Wt.push($n),$t.next($n.asObservable())}},()=>{for(;Wt.length>0;)Wt.shift().complete();$t.complete()},bn=>{for(;Wt.length>0;)Wt.shift().error(bn);$t.error(bn)},()=>{sn=null,Wt=null}))})}function es(Dt,...bt){var Tt,kt;const $t=null!==(Tt=(0,r.lI)(bt))&&void 0!==Tt?Tt:l.E,Wt=null!==(kt=bt[0])&&void 0!==kt?kt:null,sn=bt[1]||1/0;return(0,C.N)((fn,bn)=>{let Tn=[],$n=!1;const Mi=ri=>{const{window:li,subs:ur}=ri;li.complete(),ur.unsubscribe(),(0,f.o)(Tn,ri),$n&&Xn()},Xn=()=>{if(Tn){const ri=new a.yU;bn.add(ri);const li=new ce.B,ur={window:li,subs:ri,seen:0};Tn.push(ur),bn.next(li.asObservable()),(0,u.N)(ri,$t,()=>Mi(ur),Dt)}};null!==Wt&&Wt>=0?(0,u.N)(bn,$t,Xn,Wt,!0):$n=!0,Xn();const Ti=ri=>Tn.slice().forEach(ri),Vn=ri=>{Ti(({window:li})=>ri(li)),ri(bn),bn.unsubscribe()};return fn.subscribe((0,c._)(bn,ri=>{Ti(li=>{li.window.next(ri),sn<=++li.seen&&Mi(li)})},()=>Vn(ri=>ri.complete()),ri=>Vn(li=>li.error(ri)))),()=>{Tn=null}})}function Li(Dt,bt){return(0,C.N)((Tt,kt)=>{const $t=[],Wt=sn=>{for(;0<$t.length;)$t.shift().error(sn);kt.error(sn)};(0,b.Tg)(Dt).subscribe((0,c._)(kt,sn=>{const fn=new ce.B;$t.push(fn);const bn=new a.yU;let $n;try{$n=(0,b.Tg)(bt(sn))}catch(Mi){return void Wt(Mi)}kt.next(fn.asObservable()),bn.add($n.subscribe((0,c._)(kt,()=>{(0,f.o)($t,fn),fn.complete(),bn.unsubscribe()},E.l,Wt)))},E.l)),Tt.subscribe((0,c._)(kt,sn=>{const fn=$t.slice();for(const bn of fn)bn.next(sn)},()=>{for(;0<$t.length;)$t.shift().complete();kt.complete()},Wt,()=>{for(;0<$t.length;)$t.shift().unsubscribe()}))})}function ts(Dt){return(0,C.N)((bt,Tt)=>{let kt,$t;const Wt=fn=>{kt.error(fn),Tt.error(fn)},sn=()=>{let fn;$t?.unsubscribe(),kt?.complete(),kt=new ce.B,Tt.next(kt.asObservable());try{fn=(0,b.Tg)(Dt())}catch(bn){return void Wt(bn)}fn.subscribe($t=(0,c._)(Tt,sn,sn,Wt))};sn(),bt.subscribe((0,c._)(Tt,fn=>kt.next(fn),()=>{kt.complete(),Tt.complete()},Wt,()=>{$t?.unsubscribe(),kt=null}))})}function Bn(...Dt){const bt=(0,r.ms)(Dt);return(0,C.N)((Tt,kt)=>{const $t=Dt.length,Wt=new Array($t);let sn=Dt.map(()=>!1),fn=!1;for(let bn=0;bn<$t;bn++)(0,b.Tg)(Dt[bn]).subscribe((0,c._)(kt,Tn=>{Wt[bn]=Tn,!fn&&!sn[bn]&&(sn[bn]=!0,(fn=sn.every(w.D))&&(sn=null))},E.l));Tt.subscribe((0,c._)(kt,bn=>{if(fn){const Tn=[bn,...Wt];kt.next(bt?bt(...Tn):Tn)}}))})}var zr=g(4437);function us(...Dt){return(0,C.N)((bt,Tt)=>{(0,zr.y)(bt,...Dt).subscribe(Tt)})}function br(Dt){return R(zr.y,Dt)}function vs(...Dt){return us(...Dt)}},3321:Ie=>{"use strict";Ie.exports=(ne,g)=>{if("string"!=typeof ne||"string"!=typeof g)throw new TypeError("Expected the arguments to be of type `string`");if(""===g)return[ne];const t=ne.indexOf(g);return-1===t?[ne]:[ne.slice(0,t),ne.slice(t+g.length)]}},8467:Ie=>{"use strict";Ie.exports=ne=>encodeURIComponent(ne).replace(/[!'()*]/g,g=>`%${g.charCodeAt(0).toString(16).toUpperCase()}`)},5215:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{__addDisposableResource:()=>ee,__assign:()=>C,__asyncDelegator:()=>O,__asyncGenerator:()=>D,__asyncValues:()=>T,__await:()=>I,__awaiter:()=>r,__classPrivateFieldGet:()=>A,__classPrivateFieldIn:()=>Y,__classPrivateFieldSet:()=>F,__createBinding:()=>h,__decorate:()=>c,__disposeResources:()=>$,__esDecorate:()=>s,__exportStar:()=>p,__extends:()=>_,__generator:()=>u,__importDefault:()=>N,__importStar:()=>R,__makeTemplateObject:()=>U,__metadata:()=>l,__param:()=>b,__propKey:()=>d,__read:()=>y,__rest:()=>E,__runInitializers:()=>f,__setFunctionName:()=>a,__spread:()=>M,__spreadArray:()=>k,__spreadArrays:()=>w,__values:()=>v,default:()=>j});var t=function(G,V){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,K){W.__proto__=K}||function(W,K){for(var ce in K)Object.prototype.hasOwnProperty.call(K,ce)&&(W[ce]=K[ce])})(G,V)};function _(G,V){if("function"!=typeof V&&null!==V)throw new TypeError("Class extends value "+String(V)+" is not a constructor or null");function W(){this.constructor=G}t(G,V),G.prototype=null===V?Object.create(V):(W.prototype=V.prototype,new W)}var C=function(){return C=Object.assign||function(V){for(var W,K=1,ce=arguments.length;K=0;Ze--)(be=G[Ze])&&(ue=(ce<3?be(ue):ce>3?be(V,W,ue):be(V,W))||ue);return ce>3&&ue&&Object.defineProperty(V,W,ue),ue}function b(G,V){return function(W,K){V(W,K,G)}}function s(G,V,W,K,ce,ue){function be($e){if(void 0!==$e&&"function"!=typeof $e)throw new TypeError("Function expected");return $e}for(var Ne,Ze=K.kind,pt="getter"===Ze?"get":"setter"===Ze?"set":"value",ct=!V&&G?K.static?G:G.prototype:null,Ct=V||(ct?Object.getOwnPropertyDescriptor(ct,K.name):{}),Ae=!1,fe=W.length-1;fe>=0;fe--){var We={};for(var Pe in K)We[Pe]="access"===Pe?{}:K[Pe];for(var Pe in K.access)We.access[Pe]=K.access[Pe];We.addInitializer=function($e){if(Ae)throw new TypeError("Cannot add initializers after decoration has completed");ue.push(be($e||null))};var Me=(0,W[fe])("accessor"===Ze?{get:Ct.get,set:Ct.set}:Ct[pt],We);if("accessor"===Ze){if(void 0===Me)continue;if(null===Me||"object"!=typeof Me)throw new TypeError("Object expected");(Ne=be(Me.get))&&(Ct.get=Ne),(Ne=be(Me.set))&&(Ct.set=Ne),(Ne=be(Me.init))&&ce.unshift(Ne)}else(Ne=be(Me))&&("field"===Ze?ce.unshift(Ne):Ct[pt]=Ne)}ct&&Object.defineProperty(ct,K.name,Ct),Ae=!0}function f(G,V,W){for(var K=arguments.length>2,ce=0;ce0&&ue[ue.length-1])&&(6===ct[0]||2===ct[0])){W=0;continue}if(3===ct[0]&&(!ue||ct[1]>ue[0]&&ct[1]=G.length&&(G=void 0),{value:G&&G[K++],done:!G}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(G,V){var W="function"==typeof Symbol&&G[Symbol.iterator];if(!W)return G;var ce,be,K=W.call(G),ue=[];try{for(;(void 0===V||V-- >0)&&!(ce=K.next()).done;)ue.push(ce.value)}catch(Ze){be={error:Ze}}finally{try{ce&&!ce.done&&(W=K.return)&&W.call(K)}finally{if(be)throw be.error}}return ue}function M(){for(var G=[],V=0;V1||Ze(Ae,fe)})})}function Ze(Ae,fe){try{!function pt(Ae){Ae.value instanceof I?Promise.resolve(Ae.value.v).then(ct,Ct):Ne(ue[0][2],Ae)}(K[Ae](fe))}catch(We){Ne(ue[0][3],We)}}function ct(Ae){Ze("next",Ae)}function Ct(Ae){Ze("throw",Ae)}function Ne(Ae,fe){Ae(fe),ue.shift(),ue.length&&Ze(ue[0][0],ue[0][1])}}function O(G){var V,W;return V={},K("next"),K("throw",function(ce){throw ce}),K("return"),V[Symbol.iterator]=function(){return this},V;function K(ce,ue){V[ce]=G[ce]?function(be){return(W=!W)?{value:I(G[ce](be)),done:!1}:ue?ue(be):be}:ue}}function T(G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var W,V=G[Symbol.asyncIterator];return V?V.call(G):(G=v(G),W={},K("next"),K("throw"),K("return"),W[Symbol.asyncIterator]=function(){return this},W);function K(ue){W[ue]=G[ue]&&function(be){return new Promise(function(Ze,pt){!function ce(ue,be,Ze,pt){Promise.resolve(pt).then(function(ct){ue({value:ct,done:Ze})},be)}(Ze,pt,(be=G[ue](be)).done,be.value)})}}}function U(G,V){return Object.defineProperty?Object.defineProperty(G,"raw",{value:V}):G.raw=V,G}var S=Object.create?function(G,V){Object.defineProperty(G,"default",{enumerable:!0,value:V})}:function(G,V){G.default=V};function R(G){if(G&&G.__esModule)return G;var V={};if(null!=G)for(var W in G)"default"!==W&&Object.prototype.hasOwnProperty.call(G,W)&&h(V,G,W);return S(V,G),V}function N(G){return G&&G.__esModule?G:{default:G}}function A(G,V,W,K){if("a"===W&&!K)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof V?G!==V||!K:!V.has(G))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===W?K:"a"===W?K.call(G):K?K.value:V.get(G)}function F(G,V,W,K,ce){if("m"===K)throw new TypeError("Private method is not writable");if("a"===K&&!ce)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof V?G!==V||!ce:!V.has(G))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===K?ce.call(G,W):ce?ce.value=W:V.set(G,W),W}function Y(G,V){if(null===V||"object"!=typeof V&&"function"!=typeof V)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof G?V===G:G.has(V)}function ee(G,V,W){if(null!=V){if("object"!=typeof V&&"function"!=typeof V)throw new TypeError("Object expected.");var K;if(W){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");K=V[Symbol.asyncDispose]}if(void 0===K){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");K=V[Symbol.dispose]}if("function"!=typeof K)throw new TypeError("Object not disposable.");G.stack.push({value:V,dispose:K,async:W})}else W&&G.stack.push({async:!0});return V}var ie="function"==typeof SuppressedError?SuppressedError:function(G,V,W){var K=new Error(W);return K.name="SuppressedError",K.error=G,K.suppressed=V,K};function $(G){function V(K){G.error=G.hasError?new ie(K,G.error,"An error was suppressed during disposal."):K,G.hasError=!0}return function W(){for(;G.stack.length;){var K=G.stack.pop();try{var ce=K.dispose&&K.dispose.call(K.value);if(K.async)return Promise.resolve(ce).then(W,function(ue){return V(ue),W()})}catch(ue){V(ue)}}if(G.hasError)throw G.error}()}const j={__extends:_,__assign:C,__rest:E,__decorate:c,__param:b,__metadata:l,__awaiter:r,__generator:u,__createBinding:h,__exportStar:p,__values:v,__read:y,__spread:M,__spreadArrays:w,__spreadArray:k,__await:I,__asyncGenerator:D,__asyncDelegator:O,__asyncValues:T,__makeTemplateObject:U,__importStar:R,__importDefault:N,__classPrivateFieldGet:A,__classPrivateFieldSet:F,__classPrivateFieldIn:Y,__addDisposableResource:ee,__disposeResources:$}},6653:Ie=>{function ne(Re){return Re instanceof Map?Re.clear=Re.delete=Re.set=function(){throw new Error("map is read-only")}:Re instanceof Set&&(Re.add=Re.clear=Re.delete=function(){throw new Error("set is read-only")}),Object.freeze(Re),Object.getOwnPropertyNames(Re).forEach(me=>{const Ke=Re[me],te=typeof Ke;("object"===te||"function"===te)&&!Object.isFrozen(Ke)&&ne(Ke)}),Re}class g{constructor(me){void 0===me.data&&(me.data={}),this.data=me.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function t(Re){return Re.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function _(Re,...me){const Ke=Object.create(null);for(const te in Re)Ke[te]=Re[te];return me.forEach(function(te){for(const de in te)Ke[de]=te[de]}),Ke}const E=Re=>!!Re.scope;class b{constructor(me,Ke){this.buffer="",this.classPrefix=Ke.classPrefix,me.walk(this)}addText(me){this.buffer+=t(me)}openNode(me){if(!E(me))return;const Ke=((Re,{prefix:me})=>{if(Re.startsWith("language:"))return Re.replace("language:","language-");if(Re.includes(".")){const Ke=Re.split(".");return[`${me}${Ke.shift()}`,...Ke.map((te,de)=>`${te}${"_".repeat(de+1)}`)].join(" ")}return`${me}${Re}`})(me.scope,{prefix:this.classPrefix});this.span(Ke)}closeNode(me){E(me)&&(this.buffer+="")}value(){return this.buffer}span(me){this.buffer+=``}}const s=(Re={})=>{const me={children:[]};return Object.assign(me,Re),me};class f{constructor(){this.rootNode=s(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(me){this.top.children.push(me)}openNode(me){const Ke=s({scope:me});this.add(Ke),this.stack.push(Ke)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(me){return this.constructor._walk(me,this.rootNode)}static _walk(me,Ke){return"string"==typeof Ke?me.addText(Ke):Ke.children&&(me.openNode(Ke),Ke.children.forEach(te=>this._walk(me,te)),me.closeNode(Ke)),me}static _collapse(me){"string"!=typeof me&&me.children&&(me.children.every(Ke=>"string"==typeof Ke)?me.children=[me.children.join("")]:me.children.forEach(Ke=>{f._collapse(Ke)}))}}class d extends f{constructor(me){super(),this.options=me}addText(me){""!==me&&this.add(me)}startScope(me){this.openNode(me)}endScope(){this.closeNode()}__addSublanguage(me,Ke){const te=me.root;Ke&&(te.scope=`language:${Ke}`),this.add(te)}toHTML(){return new b(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function a(Re){return Re?"string"==typeof Re?Re:Re.source:null}function l(Re){return h("(?=",Re,")")}function r(Re){return h("(?:",Re,")*")}function u(Re){return h("(?:",Re,")?")}function h(...Re){return Re.map(Ke=>a(Ke)).join("")}function v(...Re){return"("+(function p(Re){const me=Re[Re.length-1];return"object"==typeof me&&me.constructor===Object?(Re.splice(Re.length-1,1),me):{}}(Re).capture?"":"?:")+Re.map(te=>a(te)).join("|")+")"}function y(Re){return new RegExp(Re.toString()+"|").exec("").length-1}const w=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function k(Re,{joinWith:me}){let Ke=0;return Re.map(te=>{Ke+=1;const de=Ke;let Se=a(te),it="";for(;Se.length>0;){const It=w.exec(Se);if(!It){it+=Se;break}it+=Se.substring(0,It.index),Se=Se.substring(It.index+It[0].length),"\\"===It[0][0]&&It[1]?it+="\\"+String(Number(It[1])+de):(it+=It[0],"("===It[0]&&Ke++)}return it}).map(te=>`(${te})`).join(me)}const D="[a-zA-Z]\\w*",O="[a-zA-Z_]\\w*",T="\\b\\d+(\\.\\d+)?",U="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",S="\\b(0b[01]+)",A={begin:"\\\\[\\s\\S]",relevance:0},F={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[A]},Y={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[A]},ie=function(Re,me,Ke={}){const te=_({scope:"comment",begin:Re,end:me,contains:[]},Ke);te.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const de=v("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return te.contains.push({begin:h(/[ ]+/,"(",de,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),te},$=ie("//","$"),j=ie("/\\*","\\*/"),G=ie("#","$");var ct=Object.freeze({__proto__:null,APOS_STRING_MODE:F,BACKSLASH_ESCAPE:A,BINARY_NUMBER_MODE:{scope:"number",begin:S,relevance:0},BINARY_NUMBER_RE:S,COMMENT:ie,C_BLOCK_COMMENT_MODE:j,C_LINE_COMMENT_MODE:$,C_NUMBER_MODE:{scope:"number",begin:U,relevance:0},C_NUMBER_RE:U,END_SAME_AS_BEGIN:function(Re){return Object.assign(Re,{"on:begin":(me,Ke)=>{Ke.data._beginMatch=me[1]},"on:end":(me,Ke)=>{Ke.data._beginMatch!==me[1]&&Ke.ignoreMatch()}})},HASH_COMMENT_MODE:G,IDENT_RE:D,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:{begin:"\\.\\s*"+O,relevance:0},NUMBER_MODE:{scope:"number",begin:T,relevance:0},NUMBER_RE:T,PHRASAL_WORDS_MODE:{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/},QUOTE_STRING_MODE:Y,REGEXP_MODE:{scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[A,{begin:/\[/,end:/\]/,relevance:0,contains:[A]}]},RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(Re={})=>{const me=/^#![ ]*\//;return Re.binary&&(Re.begin=h(me,/.*\b/,Re.binary,/\b.*/)),_({scope:"meta",begin:me,end:/$/,relevance:0,"on:begin":(Ke,te)=>{0!==Ke.index&&te.ignoreMatch()}},Re)},TITLE_MODE:{scope:"title",begin:D,relevance:0},UNDERSCORE_IDENT_RE:O,UNDERSCORE_TITLE_MODE:{scope:"title",begin:O,relevance:0}});function Ct(Re,me){"."===Re.input[Re.index-1]&&me.ignoreMatch()}function Ne(Re,me){void 0!==Re.className&&(Re.scope=Re.className,delete Re.className)}function Ae(Re,me){me&&Re.beginKeywords&&(Re.begin="\\b("+Re.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",Re.__beforeBegin=Ct,Re.keywords=Re.keywords||Re.beginKeywords,delete Re.beginKeywords,void 0===Re.relevance&&(Re.relevance=0))}function fe(Re,me){Array.isArray(Re.illegal)&&(Re.illegal=v(...Re.illegal))}function We(Re,me){if(Re.match){if(Re.begin||Re.end)throw new Error("begin & end are not supported with match");Re.begin=Re.match,delete Re.match}}function Pe(Re,me){void 0===Re.relevance&&(Re.relevance=1)}const Me=(Re,me)=>{if(!Re.beforeMatch)return;if(Re.starts)throw new Error("beforeMatch cannot be used with starts");const Ke=Object.assign({},Re);Object.keys(Re).forEach(te=>{delete Re[te]}),Re.keywords=Ke.keywords,Re.begin=h(Ke.beforeMatch,l(Ke.begin)),Re.starts={relevance:0,contains:[Object.assign(Ke,{endsParent:!0})]},Re.relevance=0,delete Ke.beforeMatch},$e=["of","and","for","in","not","or","if","then","parent","list","value"],q="keyword";function _e(Re,me,Ke=q){const te=Object.create(null);return"string"==typeof Re?de(Ke,Re.split(" ")):Array.isArray(Re)?de(Ke,Re):Object.keys(Re).forEach(function(Se){Object.assign(te,_e(Re[Se],me,Se))}),te;function de(Se,it){me&&(it=it.map(It=>It.toLowerCase())),it.forEach(function(It){const Gt=It.split("|");te[Gt[0]]=[Se,Oe(Gt[0],Gt[1])]})}}function Oe(Re,me){return me?Number(me):function vt(Re){return $e.includes(Re.toLowerCase())}(Re)?0:1}const rt={},we=Re=>{console.error(Re)},Ge=(Re,...me)=>{console.log(`WARN: ${Re}`,...me)},De=(Re,me)=>{rt[`${Re}/${me}`]||(console.log(`Deprecated as of ${Re}. ${me}`),rt[`${Re}/${me}`]=!0)},ot=new Error;function xt(Re,me,{key:Ke}){let te=0;const de=Re[Ke],Se={},it={};for(let It=1;It<=me.length;It++)it[It+te]=de[It],Se[It+te]=!0,te+=y(me[It-1]);Re[Ke]=it,Re[Ke]._emit=Se,Re[Ke]._multi=!0}function dn(Re){(function un(Re){Re.scope&&"object"==typeof Re.scope&&null!==Re.scope&&(Re.beginScope=Re.scope,delete Re.scope)})(Re),"string"==typeof Re.beginScope&&(Re.beginScope={_wrap:Re.beginScope}),"string"==typeof Re.endScope&&(Re.endScope={_wrap:Re.endScope}),function jt(Re){if(Array.isArray(Re.begin)){if(Re.skip||Re.excludeBegin||Re.returnBegin)throw we("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ot;if("object"!=typeof Re.beginScope||null===Re.beginScope)throw we("beginScope must be object"),ot;xt(Re,Re.begin,{key:"beginScope"}),Re.begin=k(Re.begin,{joinWith:""})}}(Re),function Xt(Re){if(Array.isArray(Re.end)){if(Re.skip||Re.excludeEnd||Re.returnEnd)throw we("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ot;if("object"!=typeof Re.endScope||null===Re.endScope)throw we("endScope must be object"),ot;xt(Re,Re.end,{key:"endScope"}),Re.end=k(Re.end,{joinWith:""})}}(Re)}function cn(Re){function me(it,It){return new RegExp(a(it),"m"+(Re.case_insensitive?"i":"")+(Re.unicodeRegex?"u":"")+(It?"g":""))}class Ke{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(It,Gt){Gt.position=this.position++,this.matchIndexes[this.matchAt]=Gt,this.regexes.push([Gt,It]),this.matchAt+=y(It)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const It=this.regexes.map(Gt=>Gt[1]);this.matcherRe=me(k(It,{joinWith:"|"}),!0),this.lastIndex=0}exec(It){this.matcherRe.lastIndex=this.lastIndex;const Gt=this.matcherRe.exec(It);if(!Gt)return null;const an=Gt.findIndex((Lt,qe)=>qe>0&&void 0!==Lt),_t=this.matchIndexes[an];return Gt.splice(0,an),Object.assign(Gt,_t)}}class te{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(It){if(this.multiRegexes[It])return this.multiRegexes[It];const Gt=new Ke;return this.rules.slice(It).forEach(([an,_t])=>Gt.addRule(an,_t)),Gt.compile(),this.multiRegexes[It]=Gt,Gt}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(It,Gt){this.rules.push([It,Gt]),"begin"===Gt.type&&this.count++}exec(It){const Gt=this.getMatcher(this.regexIndex);Gt.lastIndex=this.lastIndex;let an=Gt.exec(It);if(this.resumingScanAtSamePosition()&&(!an||an.index!==this.lastIndex)){const _t=this.getMatcher(0);_t.lastIndex=this.lastIndex+1,an=_t.exec(It)}return an&&(this.regexIndex+=an.position+1,this.regexIndex===this.count&&this.considerAll()),an}}if(Re.compilerExtensions||(Re.compilerExtensions=[]),Re.contains&&Re.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return Re.classNameAliases=_(Re.classNameAliases||{}),function Se(it,It){const Gt=it;if(it.isCompiled)return Gt;[Ne,We,dn,Me].forEach(_t=>_t(it,It)),Re.compilerExtensions.forEach(_t=>_t(it,It)),it.__beforeBegin=null,[Ae,fe,Pe].forEach(_t=>_t(it,It)),it.isCompiled=!0;let an=null;return"object"==typeof it.keywords&&it.keywords.$pattern&&(it.keywords=Object.assign({},it.keywords),an=it.keywords.$pattern,delete it.keywords.$pattern),an=an||/\w+/,it.keywords&&(it.keywords=_e(it.keywords,Re.case_insensitive)),Gt.keywordPatternRe=me(an,!0),It&&(it.begin||(it.begin=/\B|\b/),Gt.beginRe=me(Gt.begin),!it.end&&!it.endsWithParent&&(it.end=/\B|\b/),it.end&&(Gt.endRe=me(Gt.end)),Gt.terminatorEnd=a(Gt.end)||"",it.endsWithParent&&It.terminatorEnd&&(Gt.terminatorEnd+=(it.end?"|":"")+It.terminatorEnd)),it.illegal&&(Gt.illegalRe=me(it.illegal)),it.contains||(it.contains=[]),it.contains=[].concat(...it.contains.map(function(_t){return function hn(Re){return Re.variants&&!Re.cachedVariants&&(Re.cachedVariants=Re.variants.map(function(me){return _(Re,{variants:null},me)})),Re.cachedVariants?Re.cachedVariants:rn(Re)?_(Re,{starts:Re.starts?_(Re.starts):null}):Object.isFrozen(Re)?_(Re):Re}("self"===_t?it:_t)})),it.contains.forEach(function(_t){Se(_t,Gt)}),it.starts&&Se(it.starts,It),Gt.matcher=function de(it){const It=new te;return it.contains.forEach(Gt=>It.addRule(Gt.begin,{rule:Gt,type:"begin"})),it.terminatorEnd&&It.addRule(it.terminatorEnd,{type:"end"}),it.illegal&&It.addRule(it.illegal,{type:"illegal"}),It}(Gt),Gt}(Re)}function rn(Re){return!!Re&&(Re.endsWithParent||rn(Re.starts))}class Bt extends Error{constructor(me,Ke){super(me),this.name="HTMLInjectionError",this.html=Ke}}const ve=t,Qe=_,Xe=Symbol("nomatch"),nt=function(Re){const me=Object.create(null),Ke=Object.create(null),te=[];let de=!0;const Se="Could not find the language '{}', did you forget to load/include a language module?",it={disableAutodetect:!0,name:"Plain text",contains:[]};let It={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:d};function Gt(Ye){return It.noHighlightRe.test(Ye)}function _t(Ye,mt,Ee){let Mt="",H="";"object"==typeof mt?(Mt=Ye,Ee=mt.ignoreIllegals,H=mt.language):(De("10.7.0","highlight(lang, code, ...args) has been deprecated."),De("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),H=Ye,Mt=mt),void 0===Ee&&(Ee=!0);const pe={code:Mt,language:H};Ue("before:highlight",pe);const le=pe.result?pe.result:Lt(pe.language,pe.code,Ee);return le.code=pe.code,Ue("after:highlight",le),le}function Lt(Ye,mt,Ee,Mt){const H=Object.create(null);function pe(vn,Dn){return vn.keywords[Dn]}function le(){if(!yn.keywords)return void qn.addText(Zn);let vn=0;yn.keywordPatternRe.lastIndex=0;let Dn=yn.keywordPatternRe.exec(Zn),Rn="";for(;Dn;){Rn+=Zn.substring(vn,Dn.index);const Hn=xi.case_insensitive?Dn[0].toLowerCase():Dn[0],ji=pe(yn,Hn);if(ji){const[Ji,Gi]=ji;qn.addText(Rn),Rn="",H[Hn]=(H[Hn]||0)+1,H[Hn]<=7&&(ii+=Gi),Ji.startsWith("_")?Rn+=Dn[0]:ln(Dn[0],xi.classNameAliases[Ji]||Ji)}else Rn+=Dn[0];vn=yn.keywordPatternRe.lastIndex,Dn=yn.keywordPatternRe.exec(Zn)}Rn+=Zn.substring(vn),qn.addText(Rn)}function wt(){null!=yn.subLanguage?function Ve(){if(""===Zn)return;let vn=null;if("string"==typeof yn.subLanguage){if(!me[yn.subLanguage])return void qn.addText(Zn);vn=Lt(yn.subLanguage,Zn,!0,$i[yn.subLanguage]),$i[yn.subLanguage]=vn._top}else vn=Fe(Zn,yn.subLanguage.length?yn.subLanguage:null);yn.relevance>0&&(ii+=vn.relevance),qn.__addSublanguage(vn._emitter,vn.language)}():le(),Zn=""}function ln(vn,Dn){""!==vn&&(qn.startScope(Dn),qn.addText(vn),qn.endScope())}function Gn(vn,Dn){let Rn=1;const Hn=Dn.length-1;for(;Rn<=Hn;){if(!vn._emit[Rn]){Rn++;continue}const ji=xi.classNameAliases[vn[Rn]]||vn[Rn],Ji=Dn[Rn];ji?ln(Ji,ji):(Zn=Ji,le(),Zn=""),Rn++}}function Jn(vn,Dn){return vn.scope&&"string"==typeof vn.scope&&qn.openNode(xi.classNameAliases[vn.scope]||vn.scope),vn.beginScope&&(vn.beginScope._wrap?(ln(Zn,xi.classNameAliases[vn.beginScope._wrap]||vn.beginScope._wrap),Zn=""):vn.beginScope._multi&&(Gn(vn.beginScope,Dn),Zn="")),yn=Object.create(vn,{parent:{value:yn}}),yn}function ti(vn,Dn,Rn){let Hn=function M(Re,me){const Ke=Re&&Re.exec(me);return Ke&&0===Ke.index}(vn.endRe,Rn);if(Hn){if(vn["on:end"]){const ji=new g(vn);vn["on:end"](Dn,ji),ji.isMatchIgnored&&(Hn=!1)}if(Hn){for(;vn.endsParent&&vn.parent;)vn=vn.parent;return vn}}if(vn.endsWithParent)return ti(vn.parent,Dn,Rn)}function In(vn){return 0===yn.matcher.regexIndex?(Zn+=vn[0],1):(Un=!0,0)}function yi(vn){const Dn=vn[0],Rn=mt.substring(vn.index),Hn=ti(yn,vn,Rn);if(!Hn)return Xe;const ji=yn;yn.endScope&&yn.endScope._wrap?(wt(),ln(Dn,yn.endScope._wrap)):yn.endScope&&yn.endScope._multi?(wt(),Gn(yn.endScope,vn)):ji.skip?Zn+=Dn:(ji.returnEnd||ji.excludeEnd||(Zn+=Dn),wt(),ji.excludeEnd&&(Zn=Dn));do{yn.scope&&qn.closeNode(),!yn.skip&&!yn.subLanguage&&(ii+=yn.relevance),yn=yn.parent}while(yn!==Hn.parent);return Hn.starts&&Jn(Hn.starts,vn),ji.returnEnd?0:Dn.length}let _i={};function hi(vn,Dn){const Rn=Dn&&Dn[0];if(Zn+=vn,null==Rn)return wt(),0;if("begin"===_i.type&&"end"===Dn.type&&_i.index===Dn.index&&""===Rn){if(Zn+=mt.slice(Dn.index,Dn.index+1),!de){const Hn=new Error(`0 width match regex (${Ye})`);throw Hn.languageName=Ye,Hn.badRule=_i.rule,Hn}return 1}if(_i=Dn,"begin"===Dn.type)return function Fn(vn){const Dn=vn[0],Rn=vn.rule,Hn=new g(Rn),ji=[Rn.__beforeBegin,Rn["on:begin"]];for(const Ji of ji)if(Ji&&(Ji(vn,Hn),Hn.isMatchIgnored))return In(Dn);return Rn.skip?Zn+=Dn:(Rn.excludeBegin&&(Zn+=Dn),wt(),!Rn.returnBegin&&!Rn.excludeBegin&&(Zn=Dn)),Jn(Rn,vn),Rn.returnBegin?0:Dn.length}(Dn);if("illegal"===Dn.type&&!Ee){const Hn=new Error('Illegal lexeme "'+Rn+'" for mode "'+(yn.scope||"")+'"');throw Hn.mode=yn,Hn}if("end"===Dn.type){const Hn=yi(Dn);if(Hn!==Xe)return Hn}if("illegal"===Dn.type&&""===Rn)return 1;if(Ui>1e5&&Ui>3*Dn.index)throw new Error("potential infinite loop, way more iterations than matches");return Zn+=Rn,Rn.length}const xi=Jt(Ye);if(!xi)throw we(Se.replace("{}",Ye)),new Error('Unknown language: "'+Ye+'"');const Ri=cn(xi);let On="",yn=Mt||Ri;const $i={},qn=new It.__emitter(It);!function ar(){const vn=[];for(let Dn=yn;Dn!==xi;Dn=Dn.parent)Dn.scope&&vn.unshift(Dn.scope);vn.forEach(Dn=>qn.openNode(Dn))}();let Zn="",ii=0,Wi=0,Ui=0,Un=!1;try{if(xi.__emitTokens)xi.__emitTokens(mt,qn);else{for(yn.matcher.considerAll();;){Ui++,Un?Un=!1:yn.matcher.considerAll(),yn.matcher.lastIndex=Wi;const vn=yn.matcher.exec(mt);if(!vn)break;const Rn=hi(mt.substring(Wi,vn.index),vn);Wi=vn.index+Rn}hi(mt.substring(Wi))}return qn.finalize(),On=qn.toHTML(),{language:Ye,value:On,relevance:ii,illegal:!1,_emitter:qn,_top:yn}}catch(vn){if(vn.message&&vn.message.includes("Illegal"))return{language:Ye,value:ve(mt),illegal:!0,relevance:0,_illegalBy:{message:vn.message,index:Wi,context:mt.slice(Wi-100,Wi+100),mode:vn.mode,resultSoFar:On},_emitter:qn};if(de)return{language:Ye,value:ve(mt),illegal:!1,relevance:0,errorRaised:vn,_emitter:qn,_top:yn};throw vn}}function Fe(Ye,mt){mt=mt||It.languages||Object.keys(me);const Ee=function qe(Ye){const mt={value:ve(Ye),illegal:!1,relevance:0,_top:it,_emitter:new It.__emitter(It)};return mt._emitter.addText(Ye),mt}(Ye),Mt=mt.filter(Jt).filter(lt).map(wt=>Lt(wt,Ye,!1));Mt.unshift(Ee);const H=Mt.sort((wt,ln)=>{if(wt.relevance!==ln.relevance)return ln.relevance-wt.relevance;if(wt.language&&ln.language){if(Jt(wt.language).supersetOf===ln.language)return 1;if(Jt(ln.language).supersetOf===wt.language)return-1}return 0}),[pe,le]=H,Ve=pe;return Ve.secondBest=le,Ve}function He(Ye){let mt=null;const Ee=function an(Ye){let mt=Ye.className+" ";mt+=Ye.parentNode?Ye.parentNode.className:"";const Ee=It.languageDetectRe.exec(mt);if(Ee){const Mt=Jt(Ee[1]);return Mt||(Ge(Se.replace("{}",Ee[1])),Ge("Falling back to no-highlight mode for this block.",Ye)),Mt?Ee[1]:"no-highlight"}return mt.split(/\s+/).find(Mt=>Gt(Mt)||Jt(Mt))}(Ye);if(Gt(Ee))return;if(Ue("before:highlightElement",{el:Ye,language:Ee}),Ye.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Ye);if(Ye.children.length>0&&(It.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Ye)),It.throwUnescapedHTML))throw new Bt("One of your code blocks includes unescaped HTML.",Ye.innerHTML);mt=Ye;const Mt=mt.textContent,H=Ee?_t(Mt,{language:Ee,ignoreIllegals:!0}):Fe(Mt);Ye.innerHTML=H.value,Ye.dataset.highlighted="yes",function tt(Ye,mt,Ee){const Mt=mt&&Ke[mt]||Ee;Ye.classList.add("hljs"),Ye.classList.add(`language-${Mt}`)}(Ye,Ee,H.language),Ye.result={language:H.language,re:H.relevance,relevance:H.relevance},H.secondBest&&(Ye.secondBest={language:H.secondBest.language,relevance:H.secondBest.relevance}),Ue("after:highlightElement",{el:Ye,result:H,text:Mt})}let Cn=!1;function Ln(){"loading"!==document.readyState?document.querySelectorAll(It.cssSelector).forEach(He):Cn=!0}function Jt(Ye){return Ye=(Ye||"").toLowerCase(),me[Ye]||me[Ke[Ye]]}function Be(Ye,{languageName:mt}){"string"==typeof Ye&&(Ye=[Ye]),Ye.forEach(Ee=>{Ke[Ee.toLowerCase()]=mt})}function lt(Ye){const mt=Jt(Ye);return mt&&!mt.disableAutodetect}function Ue(Ye,mt){const Ee=Ye;te.forEach(function(Mt){Mt[Ee]&&Mt[Ee](mt)})}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",function Oi(){Cn&&Ln()},!1),Object.assign(Re,{highlight:_t,highlightAuto:Fe,highlightAll:Ln,highlightElement:He,highlightBlock:function ut(Ye){return De("10.7.0","highlightBlock will be removed entirely in v12.0"),De("10.7.0","Please use highlightElement now."),He(Ye)},configure:function dt(Ye){It=Qe(It,Ye)},initHighlighting:()=>{Ln(),De("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function qt(){Ln(),De("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function Ei(Ye,mt){let Ee=null;try{Ee=mt(Re)}catch(Mt){if(we("Language definition for '{}' could not be registered.".replace("{}",Ye)),!de)throw Mt;we(Mt),Ee=it}Ee.name||(Ee.name=Ye),me[Ye]=Ee,Ee.rawDefinition=mt.bind(null,Re),Ee.aliases&&Be(Ee.aliases,{languageName:Ye})},unregisterLanguage:function jn(Ye){delete me[Ye];for(const mt of Object.keys(Ke))Ke[mt]===Ye&&delete Ke[mt]},listLanguages:function at(){return Object.keys(me)},getLanguage:Jt,registerAliases:Be,autoDetection:lt,inherit:Qe,addPlugin:function nn(Ye){(function Et(Ye){Ye["before:highlightBlock"]&&!Ye["before:highlightElement"]&&(Ye["before:highlightElement"]=mt=>{Ye["before:highlightBlock"](Object.assign({block:mt.el},mt))}),Ye["after:highlightBlock"]&&!Ye["after:highlightElement"]&&(Ye["after:highlightElement"]=mt=>{Ye["after:highlightBlock"](Object.assign({block:mt.el},mt))})})(Ye),te.push(Ye)},removePlugin:function _n(Ye){const mt=te.indexOf(Ye);-1!==mt&&te.splice(mt,1)}}),Re.debugMode=function(){de=!1},Re.safeMode=function(){de=!0},Re.versionString="11.9.0",Re.regex={concat:h,lookahead:l,either:v,optional:u,anyNumberOfTimes:r};for(const Ye in ct)"object"==typeof ct[Ye]&&ne(ct[Ye]);return Object.assign(Re,ct),Re},ft=nt({});ft.newInstance=()=>nt({}),Ie.exports=ft,ft.HighlightJS=ft,ft.default=ft},8028:Ie=>{Ie.exports=function ne(g){const C=["true","false","null"],E={scope:"literal",beginKeywords:C.join(" ")};return{name:"JSON",keywords:{literal:C},contains:[{className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},{match:/[{}[\],:]/,className:"punctuation",relevance:0},g.QUOTE_STRING_MODE,E,g.C_NUMBER_MODE,g.C_LINE_COMMENT_MODE,g.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}},8133:Ie=>{Ie.exports=function ne(g){const t=g.regex,_=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),E={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},b=g.inherit(c,{begin:/\(/,end:/\)/}),s=g.inherit(g.APOS_STRING_MODE,{className:"string"}),f=g.inherit(g.QUOTE_STRING_MODE,{className:"string"}),d={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[c,f,s,b,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[c,b,f,s]}]}]},g.COMMENT(//,{relevance:10}),{begin://,relevance:10},E,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[f]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[d],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[d],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:_,relevance:0,starts:d}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(_,/>/))),contains:[{className:"name",begin:_,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}},9293:Ie=>{function ne(t,_,C,E,c,b,s){try{var f=t[b](s),d=f.value}catch(a){return void C(a)}f.done?_(d):Promise.resolve(d).then(E,c)}Ie.exports=function g(t){return function(){var _=this,C=arguments;return new Promise(function(E,c){var b=t.apply(_,C);function s(d){ne(b,E,c,s,f,"next",d)}function f(d){ne(b,E,c,s,f,"throw",d)}s(void 0)})}},Ie.exports.__esModule=!0,Ie.exports.default=Ie.exports},9969:(Ie,ne,g)=>{"use strict";g.d(ne,{MA:()=>r,Os:()=>c,P:()=>h,hZ:()=>C,i0:()=>E,i7:()=>d,iF:()=>s,kY:()=>a,wk:()=>f});var t=function(R){return R[R.State=0]="State",R[R.Transition=1]="Transition",R[R.Sequence=2]="Sequence",R[R.Group=3]="Group",R[R.Animate=4]="Animate",R[R.Keyframes=5]="Keyframes",R[R.Style=6]="Style",R[R.Trigger=7]="Trigger",R[R.Reference=8]="Reference",R[R.AnimateChild=9]="AnimateChild",R[R.AnimateRef=10]="AnimateRef",R[R.Query=11]="Query",R[R.Stagger=12]="Stagger",R}(t||{});function C(R,N){return{type:t.Trigger,name:R,definitions:N,options:{}}}function E(R,N=null){return{type:t.Animate,styles:N,timings:R}}function c(R,N=null){return{type:t.Group,steps:R,options:N}}function s(R){return{type:t.Style,styles:R,offset:null}}function f(R,N,A){return{type:t.State,name:R,styles:N,options:A}}function d(R){return{type:t.Keyframes,steps:R}}function a(R,N,A=null){return{type:t.Transition,expr:R,animation:N,options:A}}function r(R=null){return{type:t.AnimateChild,options:R}}function h(R,N,A=null){return{type:t.Query,selector:R,animation:N,options:A}}},6039:(Ie,ne,g)=>{"use strict";g.d(ne,{Pd:()=>qe,Au:()=>pt,vr:()=>ce,vR:()=>it,kB:()=>ot,Bu:()=>ct,FN:()=>Se,Q_:()=>Lt,Ai:()=>Re,px:()=>ie,_G:()=>cn,w6:()=>rn,Ae:()=>$});var t=g(177),_=g(4438),C=g(6860),E=g(1413),c=g(8359),b=g(4412),s=g(7673),f=g(7336),d=g(8141),a=g(152),l=g(5964),r=g(6354),u=g(6697),h=g(5245),p=g(3294),v=g(6977),y=g(2318),M=g(4085),w=g(4572),k=g(2688),I=g(1985),D=g(9172);const T=new Set;let U,S=(()=>{class Fe{constructor(He,dt){this._platform=He,this._nonce=dt,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):N}matchMedia(He){return(this._platform.WEBKIT||this._platform.BLINK)&&function R(Fe,tt){if(!T.has(Fe))try{U||(U=document.createElement("style"),tt&&U.setAttribute("nonce",tt),U.setAttribute("type","text/css"),document.head.appendChild(U)),U.sheet&&(U.sheet.insertRule(`@media ${Fe} {body{ }}`,0),T.add(Fe))}catch(He){console.error(He)}}(He,this._nonce),this._matchMedia(He)}static#e=this.\u0275fac=function(dt){return new(dt||Fe)(_.\u0275\u0275inject(C.OD),_.\u0275\u0275inject(_.CSP_NONCE,8))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac,providedIn:"root"})}return Fe})();function N(Fe){return{matches:"all"===Fe||""===Fe,media:Fe,addListener:()=>{},removeListener:()=>{}}}let A=(()=>{class Fe{constructor(He,dt){this._mediaMatcher=He,this._zone=dt,this._queries=new Map,this._destroySubject=new E.B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(He){return F((0,M.FG)(He)).some(At=>this._registerQuery(At).mql.matches)}observe(He){const At=F((0,M.FG)(He)).map(Cn=>this._registerQuery(Cn).observable);let qt=(0,w.z)(At);return qt=(0,k.x)(qt.pipe((0,u.s)(1)),qt.pipe((0,h.i)(1),(0,a.B)(0))),qt.pipe((0,r.T)(Cn=>{const Ln={matches:!1,breakpoints:{}};return Cn.forEach(({matches:Oi,query:Ei})=>{Ln.matches=Ln.matches||Oi,Ln.breakpoints[Ei]=Oi}),Ln}))}_registerQuery(He){if(this._queries.has(He))return this._queries.get(He);const dt=this._mediaMatcher.matchMedia(He),qt={observable:new I.c(Cn=>{const Ln=Oi=>this._zone.run(()=>Cn.next(Oi));return dt.addListener(Ln),()=>{dt.removeListener(Ln)}}).pipe((0,D.Z)(dt),(0,r.T)(({matches:Cn})=>({query:He,matches:Cn})),(0,v.Q)(this._destroySubject)),mql:dt};return this._queries.set(He,qt),qt}static#e=this.\u0275fac=function(dt){return new(dt||Fe)(_.\u0275\u0275inject(S),_.\u0275\u0275inject(_.NgZone))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac,providedIn:"root"})}return Fe})();function F(Fe){return Fe.map(tt=>tt.split(",")).reduce((tt,He)=>tt.concat(He)).map(tt=>tt.trim())}const ee=" ";function ie(Fe,tt,He){const dt=j(Fe,tt);He=He.trim(),!dt.some(At=>At.trim()===He)&&(dt.push(He),Fe.setAttribute(tt,dt.join(ee)))}function $(Fe,tt,He){const dt=j(Fe,tt);He=He.trim();const At=dt.filter(qt=>qt!==He);At.length?Fe.setAttribute(tt,At.join(ee)):Fe.removeAttribute(tt)}function j(Fe,tt){return Fe.getAttribute(tt)?.match(/\S+/g)??[]}const V="cdk-describedby-message",W="cdk-describedby-host";let K=0,ce=(()=>{class Fe{constructor(He,dt){this._platform=dt,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+K++,this._document=He,this._id=(0,_.inject)(_.APP_ID)+"-"+K++}describe(He,dt,At){if(!this._canBeDescribed(He,dt))return;const qt=ue(dt,At);"string"!=typeof dt?(be(dt,this._id),this._messageRegistry.set(qt,{messageElement:dt,referenceCount:0})):this._messageRegistry.has(qt)||this._createMessageElement(dt,At),this._isElementDescribedByMessage(He,qt)||this._addMessageReference(He,qt)}removeDescription(He,dt,At){if(!dt||!this._isElementNode(He))return;const qt=ue(dt,At);if(this._isElementDescribedByMessage(He,qt)&&this._removeMessageReference(He,qt),"string"==typeof dt){const Cn=this._messageRegistry.get(qt);Cn&&0===Cn.referenceCount&&this._deleteMessageElement(qt)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const He=this._document.querySelectorAll(`[${W}="${this._id}"]`);for(let dt=0;dt0!=At.indexOf(V));He.setAttribute("aria-describedby",dt.join(" "))}_addMessageReference(He,dt){const At=this._messageRegistry.get(dt);ie(He,"aria-describedby",At.messageElement.id),He.setAttribute(W,this._id),At.referenceCount++}_removeMessageReference(He,dt){const At=this._messageRegistry.get(dt);At.referenceCount--,$(He,"aria-describedby",At.messageElement.id),He.removeAttribute(W)}_isElementDescribedByMessage(He,dt){const At=j(He,"aria-describedby"),qt=this._messageRegistry.get(dt),Cn=qt&&qt.messageElement.id;return!!Cn&&-1!=At.indexOf(Cn)}_canBeDescribed(He,dt){if(!this._isElementNode(He))return!1;if(dt&&"object"==typeof dt)return!0;const At=null==dt?"":`${dt}`.trim(),qt=He.getAttribute("aria-label");return!(!At||qt&&qt.trim()===At)}_isElementNode(He){return He.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(dt){return new(dt||Fe)(_.\u0275\u0275inject(t.DOCUMENT),_.\u0275\u0275inject(C.OD))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac,providedIn:"root"})}return Fe})();function ue(Fe,tt){return"string"==typeof Fe?`${tt||""}/${Fe}`:Fe}function be(Fe,tt){Fe.id||(Fe.id=`${V}-${tt}-${K++}`)}class Ze{constructor(tt,He){this._items=tt,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new E.B,this._typeaheadSubscription=c.yU.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=dt=>dt.disabled,this._pressedLetters=[],this.tabOut=new E.B,this.change=new E.B,tt instanceof _.QueryList?this._itemChangesSubscription=tt.changes.subscribe(dt=>this._itemsChanged(dt.toArray())):(0,_.isSignal)(tt)&&(this._effectRef=(0,_.effect)(()=>this._itemsChanged(tt()),{injector:He}))}skipPredicate(tt){return this._skipPredicateFn=tt,this}withWrap(tt=!0){return this._wrap=tt,this}withVerticalOrientation(tt=!0){return this._vertical=tt,this}withHorizontalOrientation(tt){return this._horizontal=tt,this}withAllowedModifierKeys(tt){return this._allowedModifierKeys=tt,this}withTypeAhead(tt=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,d.M)(He=>this._pressedLetters.push(He)),(0,a.B)(tt),(0,l.p)(()=>this._pressedLetters.length>0),(0,r.T)(()=>this._pressedLetters.join(""))).subscribe(He=>{const dt=this._getItemsArray();for(let At=1;At!tt[qt]||this._allowedModifierKeys.indexOf(qt)>-1);switch(He){case f.wn:return void this.tabOut.next();case f.n6:if(this._vertical&&At){this.setNextItemActive();break}return;case f.i7:if(this._vertical&&At){this.setPreviousItemActive();break}return;case f.LE:if(this._horizontal&&At){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case f.UQ:if(this._horizontal&&At){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case f.yZ:if(this._homeAndEnd&&At){this.setFirstItemActive();break}return;case f.Kp:if(this._homeAndEnd&&At){this.setLastItemActive();break}return;case f.w_:if(this._pageUpAndDown.enabled&&At){const qt=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(qt>0?qt:0,1);break}return;case f.dB:if(this._pageUpAndDown.enabled&&At){const qt=this._activeItemIndex+this._pageUpAndDown.delta,Cn=this._getItemsArray().length;this._setActiveItemByIndex(qt=f.A&&He<=f.Z||He>=f.f2&&He<=f.bn)&&this._letterKeyStream.next(String.fromCharCode(He))))}this._pressedLetters=[],tt.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(tt){const He=this._getItemsArray(),dt="number"==typeof tt?tt:He.indexOf(tt);this._activeItem=He[dt]??null,this._activeItemIndex=dt}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(tt){this._wrap?this._setActiveInWrapMode(tt):this._setActiveInDefaultMode(tt)}_setActiveInWrapMode(tt){const He=this._getItemsArray();for(let dt=1;dt<=He.length;dt++){const At=(this._activeItemIndex+tt*dt+He.length)%He.length;if(!this._skipPredicateFn(He[At]))return void this.setActiveItem(At)}}_setActiveInDefaultMode(tt){this._setActiveItemByIndex(this._activeItemIndex+tt,tt)}_setActiveItemByIndex(tt,He){const dt=this._getItemsArray();if(dt[tt]){for(;this._skipPredicateFn(dt[tt]);)if(!dt[tt+=He])return;this.setActiveItem(tt)}}_getItemsArray(){return(0,_.isSignal)(this._items)?this._items():this._items instanceof _.QueryList?this._items.toArray():this._items}_itemsChanged(tt){if(this._activeItem){const He=tt.indexOf(this._activeItem);He>-1&&He!==this._activeItemIndex&&(this._activeItemIndex=He)}}}class pt extends Ze{setActiveItem(tt){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(tt),this.activeItem&&this.activeItem.setActiveStyles()}}class ct extends Ze{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(tt){return this._origin=tt,this}setActiveItem(tt){super.setActiveItem(tt),this.activeItem&&this.activeItem.focus(this._origin)}}let Ne=(()=>{class Fe{constructor(He){this._platform=He}isDisabled(He){return He.hasAttribute("disabled")}isVisible(He){return function fe(Fe){return!!(Fe.offsetWidth||Fe.offsetHeight||"function"==typeof Fe.getClientRects&&Fe.getClientRects().length)}(He)&&"visible"===getComputedStyle(He).visibility}isTabbable(He){if(!this._platform.isBrowser)return!1;const dt=function Ae(Fe){try{return Fe.frameElement}catch{return null}}(function we(Fe){return Fe.ownerDocument&&Fe.ownerDocument.defaultView||window}(He));if(dt&&(-1===Oe(dt)||!this.isVisible(dt)))return!1;let At=He.nodeName.toLowerCase(),qt=Oe(He);return He.hasAttribute("contenteditable")?-1!==qt:!("iframe"===At||"object"===At||this._platform.WEBKIT&&this._platform.IOS&&!function vt(Fe){let tt=Fe.nodeName.toLowerCase(),He="input"===tt&&Fe.type;return"text"===He||"password"===He||"select"===tt||"textarea"===tt}(He))&&("audio"===At?!!He.hasAttribute("controls")&&-1!==qt:"video"===At?-1!==qt&&(null!==qt||this._platform.FIREFOX||He.hasAttribute("controls")):He.tabIndex>=0)}isFocusable(He,dt){return function rt(Fe){return!function Pe(Fe){return function $e(Fe){return"input"==Fe.nodeName.toLowerCase()}(Fe)&&"hidden"==Fe.type}(Fe)&&(function We(Fe){let tt=Fe.nodeName.toLowerCase();return"input"===tt||"select"===tt||"button"===tt||"textarea"===tt}(Fe)||function Me(Fe){return function q(Fe){return"a"==Fe.nodeName.toLowerCase()}(Fe)&&Fe.hasAttribute("href")}(Fe)||Fe.hasAttribute("contenteditable")||_e(Fe))}(He)&&!this.isDisabled(He)&&(dt?.ignoreVisibility||this.isVisible(He))}static#e=this.\u0275fac=function(dt){return new(dt||Fe)(_.\u0275\u0275inject(C.OD))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac,providedIn:"root"})}return Fe})();function _e(Fe){if(!Fe.hasAttribute("tabindex")||void 0===Fe.tabIndex)return!1;let tt=Fe.getAttribute("tabindex");return!(!tt||isNaN(parseInt(tt,10)))}function Oe(Fe){if(!_e(Fe))return null;const tt=parseInt(Fe.getAttribute("tabindex")||"",10);return isNaN(tt)?-1:tt}class Ge{get enabled(){return this._enabled}set enabled(tt){this._enabled=tt,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(tt,this._startAnchor),this._toggleAnchorTabIndex(tt,this._endAnchor))}constructor(tt,He,dt,At,qt=!1){this._element=tt,this._checker=He,this._ngZone=dt,this._document=At,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,qt||this.attachAnchors()}destroy(){const tt=this._startAnchor,He=this._endAnchor;tt&&(tt.removeEventListener("focus",this.startAnchorListener),tt.remove()),He&&(He.removeEventListener("focus",this.endAnchorListener),He.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(tt){return new Promise(He=>{this._executeOnStable(()=>He(this.focusInitialElement(tt)))})}focusFirstTabbableElementWhenReady(tt){return new Promise(He=>{this._executeOnStable(()=>He(this.focusFirstTabbableElement(tt)))})}focusLastTabbableElementWhenReady(tt){return new Promise(He=>{this._executeOnStable(()=>He(this.focusLastTabbableElement(tt)))})}_getRegionBoundary(tt){const He=this._element.querySelectorAll(`[cdk-focus-region-${tt}], [cdkFocusRegion${tt}], [cdk-focus-${tt}]`);return"start"==tt?He.length?He[0]:this._getFirstTabbableElement(this._element):He.length?He[He.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(tt){const He=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(He){if(!this._checker.isFocusable(He)){const dt=this._getFirstTabbableElement(He);return dt?.focus(tt),!!dt}return He.focus(tt),!0}return this.focusFirstTabbableElement(tt)}focusFirstTabbableElement(tt){const He=this._getRegionBoundary("start");return He&&He.focus(tt),!!He}focusLastTabbableElement(tt){const He=this._getRegionBoundary("end");return He&&He.focus(tt),!!He}hasAttached(){return this._hasAttached}_getFirstTabbableElement(tt){if(this._checker.isFocusable(tt)&&this._checker.isTabbable(tt))return tt;const He=tt.children;for(let dt=0;dt=0;dt--){const At=He[dt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(He[dt]):null;if(At)return At}return null}_createAnchor(){const tt=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,tt),tt.classList.add("cdk-visually-hidden"),tt.classList.add("cdk-focus-trap-anchor"),tt.setAttribute("aria-hidden","true"),tt}_toggleAnchorTabIndex(tt,He){tt?He.setAttribute("tabindex","0"):He.removeAttribute("tabindex")}toggleAnchors(tt){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(tt,this._startAnchor),this._toggleAnchorTabIndex(tt,this._endAnchor))}_executeOnStable(tt){this._ngZone.isStable?tt():this._ngZone.onStable.pipe((0,u.s)(1)).subscribe(tt)}}let De=(()=>{class Fe{constructor(He,dt,At){this._checker=He,this._ngZone=dt,this._document=At}create(He,dt=!1){return new Ge(He,this._checker,this._ngZone,this._document,dt)}static#e=this.\u0275fac=function(dt){return new(dt||Fe)(_.\u0275\u0275inject(Ne),_.\u0275\u0275inject(_.NgZone),_.\u0275\u0275inject(t.DOCUMENT))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac,providedIn:"root"})}return Fe})(),ot=(()=>{class Fe{get enabled(){return this.focusTrap?.enabled||!1}set enabled(He){this.focusTrap&&(this.focusTrap.enabled=He)}constructor(He,dt,At){this._elementRef=He,this._focusTrapFactory=dt,this._previouslyFocusedElement=null,(0,_.inject)(C.OD).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(He){const dt=He.autoCapture;dt&&!dt.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,C.vc)(),this.focusTrap?.focusInitialElementWhenReady()}static#e=this.\u0275fac=function(dt){return new(dt||Fe)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(De),_.\u0275\u0275directiveInject(t.DOCUMENT))};static#t=this.\u0275dir=_.\u0275\u0275defineDirective({type:Fe,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[_.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkTrapFocus","enabled",_.booleanAttribute],autoCapture:[_.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkTrapFocusAutoCapture","autoCapture",_.booleanAttribute]},exportAs:["cdkTrapFocus"],standalone:!0,features:[_.\u0275\u0275InputTransformsFeature,_.\u0275\u0275NgOnChangesFeature]})}return Fe})();function cn(Fe){return 0===Fe.buttons||0===Fe.detail}function rn(Fe){const tt=Fe.touches&&Fe.touches[0]||Fe.changedTouches&&Fe.changedTouches[0];return!(!tt||-1!==tt.identifier||null!=tt.radiusX&&1!==tt.radiusX||null!=tt.radiusY&&1!==tt.radiusY)}const hn=new _.InjectionToken("cdk-input-modality-detector-options"),Nt={ignoreKeys:[f.A$,f.W3,f.eg,f.Ge,f.FX]},ve=(0,C.BQ)({passive:!0,capture:!0});let Qe=(()=>{class Fe{get mostRecentModality(){return this._modality.value}constructor(He,dt,At,qt){this._platform=He,this._mostRecentTarget=null,this._modality=new b.t(null),this._lastTouchMs=0,this._onKeydown=Cn=>{this._options?.ignoreKeys?.some(Ln=>Ln===Cn.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,C.Fb)(Cn))},this._onMousedown=Cn=>{Date.now()-this._lastTouchMs<650||(this._modality.next(cn(Cn)?"keyboard":"mouse"),this._mostRecentTarget=(0,C.Fb)(Cn))},this._onTouchstart=Cn=>{rn(Cn)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,C.Fb)(Cn))},this._options={...Nt,...qt},this.modalityDetected=this._modality.pipe((0,h.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,p.F)()),He.isBrowser&&dt.runOutsideAngular(()=>{At.addEventListener("keydown",this._onKeydown,ve),At.addEventListener("mousedown",this._onMousedown,ve),At.addEventListener("touchstart",this._onTouchstart,ve)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ve),document.removeEventListener("mousedown",this._onMousedown,ve),document.removeEventListener("touchstart",this._onTouchstart,ve))}static#e=this.\u0275fac=function(dt){return new(dt||Fe)(_.\u0275\u0275inject(C.OD),_.\u0275\u0275inject(_.NgZone),_.\u0275\u0275inject(t.DOCUMENT),_.\u0275\u0275inject(hn,8))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac,providedIn:"root"})}return Fe})();const Xe=new _.InjectionToken("liveAnnouncerElement",{providedIn:"root",factory:function Ot(){return null}}),nt=new _.InjectionToken("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ft=0,Re=(()=>{class Fe{constructor(He,dt,At,qt){this._ngZone=dt,this._defaultOptions=qt,this._document=At,this._liveElement=He||this._createLiveElement()}announce(He,...dt){const At=this._defaultOptions;let qt,Cn;return 1===dt.length&&"number"==typeof dt[0]?Cn=dt[0]:[qt,Cn]=dt,this.clear(),clearTimeout(this._previousTimeout),qt||(qt=At&&At.politeness?At.politeness:"polite"),null==Cn&&At&&(Cn=At.duration),this._liveElement.setAttribute("aria-live",qt),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Ln=>this._currentResolve=Ln)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=He,"number"==typeof Cn&&(this._previousTimeout=setTimeout(()=>this.clear(),Cn)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const He="cdk-live-announcer-element",dt=this._document.getElementsByClassName(He),At=this._document.createElement("div");for(let qt=0;qt .cdk-overlay-container [aria-modal="true"]');for(let At=0;At{class Fe{constructor(He,dt,At,qt,Cn){this._ngZone=He,this._platform=dt,this._inputModalityDetector=At,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=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new E.B,this._rootNodeFocusAndBlurListener=Ln=>{for(let Ei=(0,C.Fb)(Ln);Ei;Ei=Ei.parentElement)"focus"===Ln.type?this._onFocus(Ln,Ei):this._onBlur(Ln,Ei)},this._document=qt,this._detectionMode=Cn?.detectionMode||Ke.IMMEDIATE}monitor(He,dt=!1){const At=(0,M.i8)(He);if(!this._platform.isBrowser||1!==At.nodeType)return(0,s.of)();const qt=(0,C.KT)(At)||this._getDocument(),Cn=this._elementInfo.get(At);if(Cn)return dt&&(Cn.checkChildren=!0),Cn.subject;const Ln={checkChildren:dt,subject:new E.B,rootNode:qt};return this._elementInfo.set(At,Ln),this._registerGlobalListeners(Ln),Ln.subject}stopMonitoring(He){const dt=(0,M.i8)(He),At=this._elementInfo.get(dt);At&&(At.subject.complete(),this._setClasses(dt),this._elementInfo.delete(dt),this._removeGlobalListeners(At))}focusVia(He,dt,At){const qt=(0,M.i8)(He);qt===this._getDocument().activeElement?this._getClosestElementsInfo(qt).forEach(([Ln,Oi])=>this._originChanged(Ln,dt,Oi)):(this._setOrigin(dt),"function"==typeof qt.focus&&qt.focus(At))}ngOnDestroy(){this._elementInfo.forEach((He,dt)=>this.stopMonitoring(dt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(He){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(He)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:He&&this._isLastInteractionFromInputLabel(He)?"mouse":"program"}_shouldBeAttributedToTouch(He){return this._detectionMode===Ke.EVENTUAL||!!He?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(He,dt){He.classList.toggle("cdk-focused",!!dt),He.classList.toggle("cdk-touch-focused","touch"===dt),He.classList.toggle("cdk-keyboard-focused","keyboard"===dt),He.classList.toggle("cdk-mouse-focused","mouse"===dt),He.classList.toggle("cdk-program-focused","program"===dt)}_setOrigin(He,dt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=He,this._originFromTouchInteraction="touch"===He&&dt,this._detectionMode===Ke.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(He,dt){const At=this._elementInfo.get(dt),qt=(0,C.Fb)(He);!At||!At.checkChildren&&dt!==qt||this._originChanged(dt,this._getFocusOrigin(qt),At)}_onBlur(He,dt){const At=this._elementInfo.get(dt);!At||At.checkChildren&&He.relatedTarget instanceof Node&&dt.contains(He.relatedTarget)||(this._setClasses(dt),this._emitOrigin(At,null))}_emitOrigin(He,dt){He.subject.observers.length&&this._ngZone.run(()=>He.subject.next(dt))}_registerGlobalListeners(He){if(!this._platform.isBrowser)return;const dt=He.rootNode,At=this._rootNodeFocusListenerCount.get(dt)||0;At||this._ngZone.runOutsideAngular(()=>{dt.addEventListener("focus",this._rootNodeFocusAndBlurListener,de),dt.addEventListener("blur",this._rootNodeFocusAndBlurListener,de)}),this._rootNodeFocusListenerCount.set(dt,At+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,v.Q)(this._stopInputModalityDetector)).subscribe(qt=>{this._setOrigin(qt,!0)}))}_removeGlobalListeners(He){const dt=He.rootNode;if(this._rootNodeFocusListenerCount.has(dt)){const At=this._rootNodeFocusListenerCount.get(dt);At>1?this._rootNodeFocusListenerCount.set(dt,At-1):(dt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,de),dt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,de),this._rootNodeFocusListenerCount.delete(dt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(He,dt,At){this._setClasses(He,dt),this._emitOrigin(At,dt),this._lastFocusOrigin=dt}_getClosestElementsInfo(He){const dt=[];return this._elementInfo.forEach((At,qt)=>{(qt===He||At.checkChildren&&qt.contains(He))&&dt.push([qt,At])}),dt}_isLastInteractionFromInputLabel(He){const{_mostRecentTarget:dt,mostRecentModality:At}=this._inputModalityDetector;if("mouse"!==At||!dt||dt===He||"INPUT"!==He.nodeName&&"TEXTAREA"!==He.nodeName||He.disabled)return!1;const qt=He.labels;if(qt)for(let Cn=0;Cn{class Fe{constructor(He,dt){this._elementRef=He,this._focusMonitor=dt,this._focusOrigin=null,this.cdkFocusChange=new _.EventEmitter}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const He=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(He,1===He.nodeType&&He.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(dt=>{this._focusOrigin=dt,this.cdkFocusChange.emit(dt)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(dt){return new(dt||Fe)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(Se))};static#t=this.\u0275dir=_.\u0275\u0275defineDirective({type:Fe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0})}return Fe})();var It=function(Fe){return Fe[Fe.NONE=0]="NONE",Fe[Fe.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",Fe[Fe.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",Fe}(It||{});const Gt="cdk-high-contrast-black-on-white",an="cdk-high-contrast-white-on-black",_t="cdk-high-contrast-active";let Lt=(()=>{class Fe{constructor(He,dt){this._platform=He,this._document=dt,this._breakpointSubscription=(0,_.inject)(A).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return It.NONE;const He=this._document.createElement("div");He.style.backgroundColor="rgb(1,2,3)",He.style.position="absolute",this._document.body.appendChild(He);const dt=this._document.defaultView||window,At=dt&&dt.getComputedStyle?dt.getComputedStyle(He):null,qt=(At&&At.backgroundColor||"").replace(/ /g,"");switch(He.remove(),qt){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return It.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return It.BLACK_ON_WHITE}return It.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const He=this._document.body.classList;He.remove(_t,Gt,an),this._hasCheckedHighContrastMode=!0;const dt=this.getHighContrastMode();dt===It.BLACK_ON_WHITE?He.add(_t,Gt):dt===It.WHITE_ON_BLACK&&He.add(_t,an)}}static#e=this.\u0275fac=function(dt){return new(dt||Fe)(_.\u0275\u0275inject(C.OD),_.\u0275\u0275inject(t.DOCUMENT))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac,providedIn:"root"})}return Fe})(),qe=(()=>{class Fe{constructor(He){He._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(dt){return new(dt||Fe)(_.\u0275\u0275inject(Lt))};static#t=this.\u0275mod=_.\u0275\u0275defineNgModule({type:Fe});static#n=this.\u0275inj=_.\u0275\u0275defineInjector({imports:[y.w5]})}return Fe})()},8203:(Ie,ne,g)=>{"use strict";g.d(ne,{dS:()=>s,jI:()=>d});var t=g(4438),_=g(177);const C=new t.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function E(){return(0,t.inject)(_.DOCUMENT)}}),c=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let s=(()=>{class a{constructor(r){this.value="ltr",this.change=new t.EventEmitter,r&&(this.value=function b(a){const l=a?.toLowerCase()||"";return"auto"===l&&typeof navigator<"u"&&navigator?.language?c.test(navigator.language)?"rtl":"ltr":"rtl"===l?"rtl":"ltr"}((r.body?r.body.dir:null)||(r.documentElement?r.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(u){return new(u||a)(t.\u0275\u0275inject(C,8))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})(),d=(()=>{class a{static#e=this.\u0275fac=function(u){return new(u||a)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:a});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({})}return a})()},4085:(Ie,ne,g)=>{"use strict";g.d(ne,{FG:()=>c,OE:()=>C,a1:()=>b,cc:()=>f,he:()=>_,i8:()=>s,o1:()=>E});var t=g(4438);function _(d){return null!=d&&"false"!=`${d}`}function C(d,a=0){return E(d)?Number(d):a}function E(d){return!isNaN(parseFloat(d))&&!isNaN(Number(d))}function c(d){return Array.isArray(d)?d:[d]}function b(d){return null==d?"":"string"==typeof d?d:`${d}px`}function s(d){return d instanceof t.ElementRef?d.nativeElement:d}function f(d,a=/\s+/){const l=[];if(null!=d){const r=Array.isArray(d)?d:`${d}`.split(a);for(const u of r){const h=`${u}`.trim();h&&l.push(h)}}return l}},5024:(Ie,ne,g)=>{"use strict";g.d(ne,{CB:()=>u,DQ:()=>r,Q3:()=>d,qS:()=>b,sL:()=>a,xn:()=>l,y4:()=>s,zP:()=>p});var t=g(17),E=(g(4402),g(7673),g(1413)),c=g(4438);class b{}function s(v){return v&&"function"==typeof v.connect&&!(v instanceof t.G)}var d=function(v){return v[v.REPLACED=0]="REPLACED",v[v.INSERTED=1]="INSERTED",v[v.MOVED=2]="MOVED",v[v.REMOVED=3]="REMOVED",v}(d||{});const a=new c.InjectionToken("_ViewRepeater");class l{applyChanges(y,M,w,k,I){y.forEachOperation((D,O,T)=>{let U,S;if(null==D.previousIndex){const R=w(D,O,T);U=M.createEmbeddedView(R.templateRef,R.context,R.index),S=d.INSERTED}else null==T?(M.remove(O),S=d.REMOVED):(U=M.get(O),M.move(U,T),S=d.MOVED);I&&I({context:U?.context,operation:S,record:D})})}detach(){}}class r{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(y,M,w,k,I){y.forEachOperation((D,O,T)=>{let U,S;null==D.previousIndex?(U=this._insertView(()=>w(D,O,T),T,M,k(D)),S=U?d.INSERTED:d.REPLACED):null==T?(this._detachAndCacheView(O,M),S=d.REMOVED):(U=this._moveView(O,T,M,k(D)),S=d.MOVED),I&&I({context:U?.context,operation:S,record:D})})}detach(){for(const y of this._viewCache)y.destroy();this._viewCache=[]}_insertView(y,M,w,k){const I=this._insertViewFromCache(M,w);if(I)return void(I.context.$implicit=k);const D=y();return w.createEmbeddedView(D.templateRef,D.context,D.index)}_detachAndCacheView(y,M){const w=M.detach(y);this._maybeCacheView(w,M)}_moveView(y,M,w,k){const I=w.get(y);return w.move(I,M),I.context.$implicit=k,I}_maybeCacheView(y,M){if(this._viewCache.lengththis._markSelected(I)):this._markSelected(M[0]),this._selectedToEmit.length=0)}select(...y){this._verifyValueAssignment(y),y.forEach(w=>this._markSelected(w));const M=this._hasQueuedChanges();return this._emitChangeEvent(),M}deselect(...y){this._verifyValueAssignment(y),y.forEach(w=>this._unmarkSelected(w));const M=this._hasQueuedChanges();return this._emitChangeEvent(),M}setSelection(...y){this._verifyValueAssignment(y);const M=this.selected,w=new Set(y);y.forEach(I=>this._markSelected(I)),M.filter(I=>!w.has(this._getConcreteValue(I,w))).forEach(I=>this._unmarkSelected(I));const k=this._hasQueuedChanges();return this._emitChangeEvent(),k}toggle(y){return this.isSelected(y)?this.deselect(y):this.select(y)}clear(y=!0){this._unmarkAll();const M=this._hasQueuedChanges();return y&&this._emitChangeEvent(),M}isSelected(y){return this._selection.has(this._getConcreteValue(y))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(y){this._multiple&&this.selected&&this._selected.sort(y)}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(y){y=this._getConcreteValue(y),this.isSelected(y)||(this._multiple||this._unmarkAll(),this.isSelected(y)||this._selection.add(y),this._emitChanges&&this._selectedToEmit.push(y))}_unmarkSelected(y){y=this._getConcreteValue(y),this.isSelected(y)&&(this._selection.delete(y),this._emitChanges&&this._deselectedToEmit.push(y))}_unmarkAll(){this.isEmpty()||this._selection.forEach(y=>this._unmarkSelected(y))}_verifyValueAssignment(y){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(y,M){if(this.compareWith){M=M??this._selection;for(let w of M)if(this.compareWith(y,w))return w;return y}return y}}let p=(()=>{class v{constructor(){this._listeners=[]}notify(M,w){for(let k of this._listeners)k(M,w)}listen(M){return this._listeners.push(M),()=>{this._listeners=this._listeners.filter(w=>M!==w)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(w){return new(w||v)};static#t=this.\u0275prov=c.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})()},7336:(Ie,ne,g)=>{"use strict";g.d(ne,{A:()=>K,A$:()=>f,FX:()=>b,Fm:()=>c,G_:()=>_,Ge:()=>Xt,Kp:()=>p,LE:()=>w,UQ:()=>y,W3:()=>s,Z:()=>jt,_f:()=>l,bn:()=>$,dB:()=>h,eg:()=>Ve,f2:()=>U,i7:()=>M,n6:()=>k,rp:()=>wt,t6:()=>r,w_:()=>u,wn:()=>C,yZ:()=>v});const _=8,C=9,c=13,b=16,s=17,f=18,l=27,r=32,u=33,h=34,p=35,v=36,y=37,M=38,w=39,k=40,U=48,$=57,K=65,jt=90,Xt=91,Ve=224;function wt(ln,...Gn){return Gn.length?Gn.some(Jn=>ln[Jn]):ln.altKey||ln.shiftKey||ln.ctrlKey||ln.metaKey}},2318:(Ie,ne,g)=>{"use strict";g.d(ne,{Wv:()=>f,w5:()=>d});var t=g(4085),_=g(4438),C=g(1985),E=g(1413),c=g(152);let b=(()=>{class a{create(r){return typeof MutationObserver>"u"?null:new MutationObserver(r)}static#e=this.\u0275fac=function(u){return new(u||a)};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})(),s=(()=>{class a{constructor(r){this._mutationObserverFactory=r,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((r,u)=>this._cleanupObserver(u))}observe(r){const u=(0,t.i8)(r);return new C.c(h=>{const v=this._observeElement(u).subscribe(h);return()=>{v.unsubscribe(),this._unobserveElement(u)}})}_observeElement(r){if(this._observedElements.has(r))this._observedElements.get(r).count++;else{const u=new E.B,h=this._mutationObserverFactory.create(p=>u.next(p));h&&h.observe(r,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(r,{observer:h,stream:u,count:1})}return this._observedElements.get(r).stream}_unobserveElement(r){this._observedElements.has(r)&&(this._observedElements.get(r).count--,this._observedElements.get(r).count||this._cleanupObserver(r))}_cleanupObserver(r){if(this._observedElements.has(r)){const{observer:u,stream:h}=this._observedElements.get(r);u&&u.disconnect(),h.complete(),this._observedElements.delete(r)}}static#e=this.\u0275fac=function(u){return new(u||a)(_.\u0275\u0275inject(b))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})(),f=(()=>{class a{get disabled(){return this._disabled}set disabled(r){this._disabled=r,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(r){this._debounce=(0,t.OE)(r),this._subscribe()}constructor(r,u,h){this._contentObserver=r,this._elementRef=u,this._ngZone=h,this.event=new _.EventEmitter,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const r=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?r.pipe((0,c.B)(this.debounce)):r).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(u){return new(u||a)(_.\u0275\u0275directiveInject(s),_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(_.NgZone))};static#t=this.\u0275dir=_.\u0275\u0275defineDirective({type:a,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[_.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkObserveContentDisabled","disabled",_.booleanAttribute],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[_.\u0275\u0275InputTransformsFeature]})}return a})(),d=(()=>{class a{static#e=this.\u0275fac=function(u){return new(u||a)};static#t=this.\u0275mod=_.\u0275\u0275defineNgModule({type:a});static#n=this.\u0275inj=_.\u0275\u0275defineInjector({providers:[b]})}return a})()},7987:(Ie,ne,g)=>{"use strict";g.d(ne,{$Q:()=>Me,WB:()=>$e,hJ:()=>fe,rR:()=>U,rW:()=>W,z_:()=>Oe});var t=g(5478),_=g(177),C=g(4438),E=g(4085),c=g(6860),b=g(5964),s=g(6697),f=g(6977),d=g(7048),a=g(8203),l=g(6939),r=g(1413),u=g(8359),h=g(7786),p=g(7336);const v=(0,c.CZ)();class y{constructor(we,Ge){this._viewportRuler=we,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Ge}attach(){}enable(){if(this._canBeEnabled()){const we=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=we.style.left||"",this._previousHTMLStyles.top=we.style.top||"",we.style.left=(0,E.a1)(-this._previousScrollPosition.left),we.style.top=(0,E.a1)(-this._previousScrollPosition.top),we.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const we=this._document.documentElement,De=we.style,ot=this._document.body.style,xt=De.scrollBehavior||"",jt=ot.scrollBehavior||"";this._isEnabled=!1,De.left=this._previousHTMLStyles.left,De.top=this._previousHTMLStyles.top,we.classList.remove("cdk-global-scrollblock"),v&&(De.scrollBehavior=ot.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),v&&(De.scrollBehavior=xt,ot.scrollBehavior=jt)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Ge=this._document.body,De=this._viewportRuler.getViewportSize();return Ge.scrollHeight>De.height||Ge.scrollWidth>De.width}}class w{constructor(we,Ge,De,ot){this._scrollDispatcher=we,this._ngZone=Ge,this._viewportRuler=De,this._config=ot,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(we){this._overlayRef=we}enable(){if(this._scrollSubscription)return;const we=this._scrollDispatcher.scrolled(0).pipe((0,b.p)(Ge=>!Ge||!this._overlayRef.overlayElement.contains(Ge.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=we.subscribe(()=>{const Ge=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Ge-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=we.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class k{enable(){}disable(){}attach(){}}function I(rt,we){return we.some(Ge=>rt.bottomGe.bottom||rt.rightGe.right)}function D(rt,we){return we.some(Ge=>rt.topGe.bottom||rt.leftGe.right)}class O{constructor(we,Ge,De,ot){this._scrollDispatcher=we,this._viewportRuler=Ge,this._ngZone=De,this._config=ot,this._scrollSubscription=null}attach(we){this._overlayRef=we}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 Ge=this._overlayRef.overlayElement.getBoundingClientRect(),{width:De,height:ot}=this._viewportRuler.getViewportSize();I(Ge,[{width:De,height:ot,bottom:ot,right:De,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let T=(()=>{class rt{constructor(Ge,De,ot,xt){this._scrollDispatcher=Ge,this._viewportRuler=De,this._ngZone=ot,this.noop=()=>new k,this.close=jt=>new w(this._scrollDispatcher,this._ngZone,this._viewportRuler,jt),this.block=()=>new y(this._viewportRuler,this._document),this.reposition=jt=>new O(this._scrollDispatcher,this._viewportRuler,this._ngZone,jt),this._document=xt}static#e=this.\u0275fac=function(De){return new(De||rt)(C.\u0275\u0275inject(t.R),C.\u0275\u0275inject(t.Xj),C.\u0275\u0275inject(C.NgZone),C.\u0275\u0275inject(_.DOCUMENT))};static#t=this.\u0275prov=C.\u0275\u0275defineInjectable({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})();class U{constructor(we){if(this.scrollStrategy=new k,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,we){const Ge=Object.keys(we);for(const De of Ge)void 0!==we[De]&&(this[De]=we[De])}}}class N{constructor(we,Ge){this.connectionPair=we,this.scrollableViewProperties=Ge}}let Y=(()=>{class rt{constructor(Ge){this._attachedOverlays=[],this._document=Ge}ngOnDestroy(){this.detach()}add(Ge){this.remove(Ge),this._attachedOverlays.push(Ge)}remove(Ge){const De=this._attachedOverlays.indexOf(Ge);De>-1&&this._attachedOverlays.splice(De,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(De){return new(De||rt)(C.\u0275\u0275inject(_.DOCUMENT))};static#t=this.\u0275prov=C.\u0275\u0275defineInjectable({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})(),ee=(()=>{class rt extends Y{constructor(Ge,De){super(Ge),this._ngZone=De,this._keydownListener=ot=>{const xt=this._attachedOverlays;for(let jt=xt.length-1;jt>-1;jt--)if(xt[jt]._keydownEvents.observers.length>0){const Xt=xt[jt]._keydownEvents;this._ngZone?this._ngZone.run(()=>Xt.next(ot)):Xt.next(ot);break}}}add(Ge){super.add(Ge),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(De){return new(De||rt)(C.\u0275\u0275inject(_.DOCUMENT),C.\u0275\u0275inject(C.NgZone,8))};static#t=this.\u0275prov=C.\u0275\u0275defineInjectable({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})(),ie=(()=>{class rt extends Y{constructor(Ge,De,ot){super(Ge),this._platform=De,this._ngZone=ot,this._cursorStyleIsSet=!1,this._pointerDownListener=xt=>{this._pointerDownEventTarget=(0,c.Fb)(xt)},this._clickListener=xt=>{const jt=(0,c.Fb)(xt),Xt="click"===xt.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:jt;this._pointerDownEventTarget=null;const un=this._attachedOverlays.slice();for(let dn=un.length-1;dn>-1;dn--){const cn=un[dn];if(cn._outsidePointerEvents.observers.length<1||!cn.hasAttached())continue;if(cn.overlayElement.contains(jt)||cn.overlayElement.contains(Xt))break;const rn=cn._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>rn.next(xt)):rn.next(xt)}}}add(Ge){if(super.add(Ge),!this._isAttached){const De=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(De)):this._addEventListeners(De),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=De.style.cursor,De.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const Ge=this._document.body;Ge.removeEventListener("pointerdown",this._pointerDownListener,!0),Ge.removeEventListener("click",this._clickListener,!0),Ge.removeEventListener("auxclick",this._clickListener,!0),Ge.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Ge.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(Ge){Ge.addEventListener("pointerdown",this._pointerDownListener,!0),Ge.addEventListener("click",this._clickListener,!0),Ge.addEventListener("auxclick",this._clickListener,!0),Ge.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(De){return new(De||rt)(C.\u0275\u0275inject(_.DOCUMENT),C.\u0275\u0275inject(c.OD),C.\u0275\u0275inject(C.NgZone,8))};static#t=this.\u0275prov=C.\u0275\u0275defineInjectable({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})(),$=(()=>{class rt{constructor(Ge,De){this._platform=De,this._document=Ge}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Ge="cdk-overlay-container";if(this._platform.isBrowser||(0,c.v8)()){const ot=this._document.querySelectorAll(`.${Ge}[platform="server"], .${Ge}[platform="test"]`);for(let xt=0;xtthis._backdropClick.next(rn),this._backdropTransitionendHandler=rn=>{this._disposeBackdrop(rn.target)},this._keydownEvents=new r.B,this._outsidePointerEvents=new r.B,ot.scrollStrategy&&(this._scrollStrategy=ot.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ot.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(we){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Ge=this._portalOutlet.attach(we);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,s.s)(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),"function"==typeof Ge?.onDestroy&&Ge.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Ge}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const we=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),we}dispose(){const we=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),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,we&&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(we){we!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=we,this.hasAttached()&&(we.attach(this),this.updatePosition()))}updateSize(we){this._config={...this._config,...we},this._updateElementSize()}setDirection(we){this._config={...this._config,direction:we},this._updateElementDirection()}addPanelClass(we){this._pane&&this._toggleClasses(this._pane,we,!0)}removePanelClass(we){this._pane&&this._toggleClasses(this._pane,we,!1)}getDirection(){const we=this._config.direction;return we?"string"==typeof we?we:we.value:"ltr"}updateScrollStrategy(we){we!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=we,this.hasAttached()&&(we.attach(this),we.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const we=this._pane.style;we.width=(0,E.a1)(this._config.width),we.height=(0,E.a1)(this._config.height),we.minWidth=(0,E.a1)(this._config.minWidth),we.minHeight=(0,E.a1)(this._config.minHeight),we.maxWidth=(0,E.a1)(this._config.maxWidth),we.maxHeight=(0,E.a1)(this._config.maxHeight)}_togglePointerEvents(we){this._pane.style.pointerEvents=we?"":"none"}_attachBackdrop(){const we="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(we)})}):this._backdropElement.classList.add(we)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const we=this._backdropElement;if(we){if(this._animationsDisabled)return void this._disposeBackdrop(we);we.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{we.addEventListener("transitionend",this._backdropTransitionendHandler)}),we.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(we)},500))}}_toggleClasses(we,Ge,De){const ot=(0,E.FG)(Ge||[]).filter(xt=>!!xt);ot.length&&(De?we.classList.add(...ot):we.classList.remove(...ot))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const we=this._ngZone.onStable.pipe((0,f.Q)((0,h.h)(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()),we.unsubscribe())})})}_disposeScrollStrategy(){const we=this._scrollStrategy;we&&(we.disable(),we.detach&&we.detach())}_disposeBackdrop(we){we&&(we.removeEventListener("click",this._backdropClickHandler),we.removeEventListener("transitionend",this._backdropTransitionendHandler),we.remove(),this._backdropElement===we&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const G="cdk-overlay-connected-position-bounding-box",V=/([A-Za-z%]+)$/;class W{get positions(){return this._preferredPositions}constructor(we,Ge,De,ot,xt){this._viewportRuler=Ge,this._document=De,this._platform=ot,this._overlayContainer=xt,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new r.B,this._resizeSubscription=u.yU.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(we)}attach(we){this._validatePositions(),we.hostElement.classList.add(G),this._overlayRef=we,this._boundingBox=we.hostElement,this._pane=we.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const we=this._originRect,Ge=this._overlayRect,De=this._viewportRect,ot=this._containerRect,xt=[];let jt;for(let Xt of this._preferredPositions){let un=this._getOriginPoint(we,ot,Xt),dn=this._getOverlayPoint(un,Ge,Xt),cn=this._getOverlayFit(dn,Ge,De,Xt);if(cn.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Xt,un);this._canFitWithFlexibleDimensions(cn,dn,De)?xt.push({position:Xt,origin:un,overlayRect:Ge,boundingBoxRect:this._calculateBoundingBoxRect(un,Xt)}):(!jt||jt.overlayFit.visibleAreaun&&(un=cn,Xt=dn)}return this._isPushed=!1,void this._applyPosition(Xt.position,Xt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(jt.position,jt.originPoint);this._applyPosition(jt.position,jt.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&K(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(G),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const we=this._lastPosition;if(we){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Ge=this._getOriginPoint(this._originRect,this._containerRect,we);this._applyPosition(we,Ge)}else this.apply()}withScrollableContainers(we){return this._scrollables=we,this}withPositions(we){return this._preferredPositions=we,-1===we.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(we){return this._viewportMargin=we,this}withFlexibleDimensions(we=!0){return this._hasFlexibleDimensions=we,this}withGrowAfterOpen(we=!0){return this._growAfterOpen=we,this}withPush(we=!0){return this._canPush=we,this}withLockedPosition(we=!0){return this._positionLocked=we,this}setOrigin(we){return this._origin=we,this}withDefaultOffsetX(we){return this._offsetX=we,this}withDefaultOffsetY(we){return this._offsetY=we,this}withTransformOriginOn(we){return this._transformOriginSelector=we,this}_getOriginPoint(we,Ge,De){let ot,xt;if("center"==De.originX)ot=we.left+we.width/2;else{const jt=this._isRtl()?we.right:we.left,Xt=this._isRtl()?we.left:we.right;ot="start"==De.originX?jt:Xt}return Ge.left<0&&(ot-=Ge.left),xt="center"==De.originY?we.top+we.height/2:"top"==De.originY?we.top:we.bottom,Ge.top<0&&(xt-=Ge.top),{x:ot,y:xt}}_getOverlayPoint(we,Ge,De){let ot,xt;return ot="center"==De.overlayX?-Ge.width/2:"start"===De.overlayX?this._isRtl()?-Ge.width:0:this._isRtl()?0:-Ge.width,xt="center"==De.overlayY?-Ge.height/2:"top"==De.overlayY?0:-Ge.height,{x:we.x+ot,y:we.y+xt}}_getOverlayFit(we,Ge,De,ot){const xt=ue(Ge);let{x:jt,y:Xt}=we,un=this._getOffset(ot,"x"),dn=this._getOffset(ot,"y");un&&(jt+=un),dn&&(Xt+=dn);let hn=0-Xt,Nt=Xt+xt.height-De.height,Bt=this._subtractOverflows(xt.width,0-jt,jt+xt.width-De.width),ve=this._subtractOverflows(xt.height,hn,Nt),Qe=Bt*ve;return{visibleArea:Qe,isCompletelyWithinViewport:xt.width*xt.height===Qe,fitsInViewportVertically:ve===xt.height,fitsInViewportHorizontally:Bt==xt.width}}_canFitWithFlexibleDimensions(we,Ge,De){if(this._hasFlexibleDimensions){const ot=De.bottom-Ge.y,xt=De.right-Ge.x,jt=ce(this._overlayRef.getConfig().minHeight),Xt=ce(this._overlayRef.getConfig().minWidth);return(we.fitsInViewportVertically||null!=jt&&jt<=ot)&&(we.fitsInViewportHorizontally||null!=Xt&&Xt<=xt)}return!1}_pushOverlayOnScreen(we,Ge,De){if(this._previousPushAmount&&this._positionLocked)return{x:we.x+this._previousPushAmount.x,y:we.y+this._previousPushAmount.y};const ot=ue(Ge),xt=this._viewportRect,jt=Math.max(we.x+ot.width-xt.width,0),Xt=Math.max(we.y+ot.height-xt.height,0),un=Math.max(xt.top-De.top-we.y,0),dn=Math.max(xt.left-De.left-we.x,0);let cn=0,rn=0;return cn=ot.width<=xt.width?dn||-jt:we.xBt&&!this._isInitialRender&&!this._growAfterOpen&&(jt=we.y-Bt/2)}if("end"===Ge.overlayX&&!ot||"start"===Ge.overlayX&&ot)hn=De.width-we.x+2*this._viewportMargin,cn=we.x-this._viewportMargin;else if("start"===Ge.overlayX&&!ot||"end"===Ge.overlayX&&ot)rn=we.x,cn=De.right-we.x;else{const Nt=Math.min(De.right-we.x+De.left,we.x),Bt=this._lastBoundingBoxSize.width;cn=2*Nt,rn=we.x-Nt,cn>Bt&&!this._isInitialRender&&!this._growAfterOpen&&(rn=we.x-Bt/2)}return{top:jt,left:rn,bottom:Xt,right:hn,width:cn,height:xt}}_setBoundingBoxStyles(we,Ge){const De=this._calculateBoundingBoxRect(we,Ge);!this._isInitialRender&&!this._growAfterOpen&&(De.height=Math.min(De.height,this._lastBoundingBoxSize.height),De.width=Math.min(De.width,this._lastBoundingBoxSize.width));const ot={};if(this._hasExactPosition())ot.top=ot.left="0",ot.bottom=ot.right=ot.maxHeight=ot.maxWidth="",ot.width=ot.height="100%";else{const xt=this._overlayRef.getConfig().maxHeight,jt=this._overlayRef.getConfig().maxWidth;ot.height=(0,E.a1)(De.height),ot.top=(0,E.a1)(De.top),ot.bottom=(0,E.a1)(De.bottom),ot.width=(0,E.a1)(De.width),ot.left=(0,E.a1)(De.left),ot.right=(0,E.a1)(De.right),ot.alignItems="center"===Ge.overlayX?"center":"end"===Ge.overlayX?"flex-end":"flex-start",ot.justifyContent="center"===Ge.overlayY?"center":"bottom"===Ge.overlayY?"flex-end":"flex-start",xt&&(ot.maxHeight=(0,E.a1)(xt)),jt&&(ot.maxWidth=(0,E.a1)(jt))}this._lastBoundingBoxSize=De,K(this._boundingBox.style,ot)}_resetBoundingBoxStyles(){K(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){K(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(we,Ge){const De={},ot=this._hasExactPosition(),xt=this._hasFlexibleDimensions,jt=this._overlayRef.getConfig();if(ot){const cn=this._viewportRuler.getViewportScrollPosition();K(De,this._getExactOverlayY(Ge,we,cn)),K(De,this._getExactOverlayX(Ge,we,cn))}else De.position="static";let Xt="",un=this._getOffset(Ge,"x"),dn=this._getOffset(Ge,"y");un&&(Xt+=`translateX(${un}px) `),dn&&(Xt+=`translateY(${dn}px)`),De.transform=Xt.trim(),jt.maxHeight&&(ot?De.maxHeight=(0,E.a1)(jt.maxHeight):xt&&(De.maxHeight="")),jt.maxWidth&&(ot?De.maxWidth=(0,E.a1)(jt.maxWidth):xt&&(De.maxWidth="")),K(this._pane.style,De)}_getExactOverlayY(we,Ge,De){let ot={top:"",bottom:""},xt=this._getOverlayPoint(Ge,this._overlayRect,we);return this._isPushed&&(xt=this._pushOverlayOnScreen(xt,this._overlayRect,De)),"bottom"===we.overlayY?ot.bottom=this._document.documentElement.clientHeight-(xt.y+this._overlayRect.height)+"px":ot.top=(0,E.a1)(xt.y),ot}_getExactOverlayX(we,Ge,De){let jt,ot={left:"",right:""},xt=this._getOverlayPoint(Ge,this._overlayRect,we);return this._isPushed&&(xt=this._pushOverlayOnScreen(xt,this._overlayRect,De)),jt=this._isRtl()?"end"===we.overlayX?"left":"right":"end"===we.overlayX?"right":"left","right"===jt?ot.right=this._document.documentElement.clientWidth-(xt.x+this._overlayRect.width)+"px":ot.left=(0,E.a1)(xt.x),ot}_getScrollVisibility(){const we=this._getOriginRect(),Ge=this._pane.getBoundingClientRect(),De=this._scrollables.map(ot=>ot.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:D(we,De),isOriginOutsideView:I(we,De),isOverlayClipped:D(Ge,De),isOverlayOutsideView:I(Ge,De)}}_subtractOverflows(we,...Ge){return Ge.reduce((De,ot)=>De-Math.max(ot,0),we)}_getNarrowedViewportRect(){const we=this._document.documentElement.clientWidth,Ge=this._document.documentElement.clientHeight,De=this._viewportRuler.getViewportScrollPosition();return{top:De.top+this._viewportMargin,left:De.left+this._viewportMargin,right:De.left+we-this._viewportMargin,bottom:De.top+Ge-this._viewportMargin,width:we-2*this._viewportMargin,height:Ge-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(we,Ge){return"x"===Ge?null==we.offsetX?this._offsetX:we.offsetX:null==we.offsetY?this._offsetY:we.offsetY}_validatePositions(){}_addPanelClasses(we){this._pane&&(0,E.FG)(we).forEach(Ge=>{""!==Ge&&-1===this._appliedPanelClasses.indexOf(Ge)&&(this._appliedPanelClasses.push(Ge),this._pane.classList.add(Ge))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(we=>{this._pane.classList.remove(we)}),this._appliedPanelClasses=[])}_getOriginRect(){const we=this._origin;if(we instanceof C.ElementRef)return we.nativeElement.getBoundingClientRect();if(we instanceof Element)return we.getBoundingClientRect();const Ge=we.width||0,De=we.height||0;return{top:we.y,bottom:we.y+De,left:we.x,right:we.x+Ge,height:De,width:Ge}}}function K(rt,we){for(let Ge in we)we.hasOwnProperty(Ge)&&(rt[Ge]=we[Ge]);return rt}function ce(rt){if("number"!=typeof rt&&null!=rt){const[we,Ge]=rt.split(V);return Ge&&"px"!==Ge?null:parseFloat(we)}return rt||null}function ue(rt){return{top:Math.floor(rt.top),right:Math.floor(rt.right),bottom:Math.floor(rt.bottom),left:Math.floor(rt.left),width:Math.floor(rt.width),height:Math.floor(rt.height)}}const ct="cdk-global-overlay-wrapper";class Ct{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(we){const Ge=we.getConfig();this._overlayRef=we,this._width&&!Ge.width&&we.updateSize({width:this._width}),this._height&&!Ge.height&&we.updateSize({height:this._height}),we.hostElement.classList.add(ct),this._isDisposed=!1}top(we=""){return this._bottomOffset="",this._topOffset=we,this._alignItems="flex-start",this}left(we=""){return this._xOffset=we,this._xPosition="left",this}bottom(we=""){return this._topOffset="",this._bottomOffset=we,this._alignItems="flex-end",this}right(we=""){return this._xOffset=we,this._xPosition="right",this}start(we=""){return this._xOffset=we,this._xPosition="start",this}end(we=""){return this._xOffset=we,this._xPosition="end",this}width(we=""){return this._overlayRef?this._overlayRef.updateSize({width:we}):this._width=we,this}height(we=""){return this._overlayRef?this._overlayRef.updateSize({height:we}):this._height=we,this}centerHorizontally(we=""){return this.left(we),this._xPosition="center",this}centerVertically(we=""){return this.top(we),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const we=this._overlayRef.overlayElement.style,Ge=this._overlayRef.hostElement.style,De=this._overlayRef.getConfig(),{width:ot,height:xt,maxWidth:jt,maxHeight:Xt}=De,un=!("100%"!==ot&&"100vw"!==ot||jt&&"100%"!==jt&&"100vw"!==jt),dn=!("100%"!==xt&&"100vh"!==xt||Xt&&"100%"!==Xt&&"100vh"!==Xt),cn=this._xPosition,rn=this._xOffset,hn="rtl"===this._overlayRef.getConfig().direction;let Nt="",Bt="",ve="";un?ve="flex-start":"center"===cn?(ve="center",hn?Bt=rn:Nt=rn):hn?"left"===cn||"end"===cn?(ve="flex-end",Nt=rn):("right"===cn||"start"===cn)&&(ve="flex-start",Bt=rn):"left"===cn||"start"===cn?(ve="flex-start",Nt=rn):("right"===cn||"end"===cn)&&(ve="flex-end",Bt=rn),we.position=this._cssPosition,we.marginLeft=un?"0":Nt,we.marginTop=dn?"0":this._topOffset,we.marginBottom=this._bottomOffset,we.marginRight=un?"0":Bt,Ge.justifyContent=ve,Ge.alignItems=dn?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const we=this._overlayRef.overlayElement.style,Ge=this._overlayRef.hostElement,De=Ge.style;Ge.classList.remove(ct),De.justifyContent=De.alignItems=we.marginTop=we.marginBottom=we.marginLeft=we.marginRight=we.position="",this._overlayRef=null,this._isDisposed=!0}}let Ne=(()=>{class rt{constructor(Ge,De,ot,xt){this._viewportRuler=Ge,this._document=De,this._platform=ot,this._overlayContainer=xt}global(){return new Ct}flexibleConnectedTo(Ge){return new W(Ge,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(De){return new(De||rt)(C.\u0275\u0275inject(t.Xj),C.\u0275\u0275inject(_.DOCUMENT),C.\u0275\u0275inject(c.OD),C.\u0275\u0275inject($))};static#t=this.\u0275prov=C.\u0275\u0275defineInjectable({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})(),Ae=0,fe=(()=>{class rt{constructor(Ge,De,ot,xt,jt,Xt,un,dn,cn,rn,hn,Nt){this.scrollStrategies=Ge,this._overlayContainer=De,this._componentFactoryResolver=ot,this._positionBuilder=xt,this._keyboardDispatcher=jt,this._injector=Xt,this._ngZone=un,this._document=dn,this._directionality=cn,this._location=rn,this._outsideClickDispatcher=hn,this._animationsModuleType=Nt}create(Ge){const De=this._createHostElement(),ot=this._createPaneElement(De),xt=this._createPortalOutlet(ot),jt=new U(Ge);return jt.direction=jt.direction||this._directionality.value,new j(xt,De,ot,jt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(Ge){const De=this._document.createElement("div");return De.id="cdk-overlay-"+Ae++,De.classList.add("cdk-overlay-pane"),Ge.appendChild(De),De}_createHostElement(){const Ge=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(Ge),Ge}_createPortalOutlet(Ge){return this._appRef||(this._appRef=this._injector.get(C.ApplicationRef)),new l.aI(Ge,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(De){return new(De||rt)(C.\u0275\u0275inject(T),C.\u0275\u0275inject($),C.\u0275\u0275inject(C.ComponentFactoryResolver),C.\u0275\u0275inject(Ne),C.\u0275\u0275inject(ee),C.\u0275\u0275inject(C.Injector),C.\u0275\u0275inject(C.NgZone),C.\u0275\u0275inject(_.DOCUMENT),C.\u0275\u0275inject(a.dS),C.\u0275\u0275inject(_.Location),C.\u0275\u0275inject(ie),C.\u0275\u0275inject(C.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275prov=C.\u0275\u0275defineInjectable({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})();const We=[{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"}],Pe=new C.InjectionToken("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const rt=(0,C.inject)(fe);return()=>rt.scrollStrategies.reposition()}});let Me=(()=>{class rt{constructor(Ge){this.elementRef=Ge}static#e=this.\u0275fac=function(De){return new(De||rt)(C.\u0275\u0275directiveInject(C.ElementRef))};static#t=this.\u0275dir=C.\u0275\u0275defineDirective({type:rt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return rt})(),$e=(()=>{class rt{get offsetX(){return this._offsetX}set offsetX(Ge){this._offsetX=Ge,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(Ge){this._offsetY=Ge,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(Ge){this._disposeOnNavigation=Ge}constructor(Ge,De,ot,xt,jt){this._overlay=Ge,this._dir=jt,this._backdropSubscription=u.yU.EMPTY,this._attachSubscription=u.yU.EMPTY,this._detachSubscription=u.yU.EMPTY,this._positionSubscription=u.yU.EMPTY,this._disposeOnNavigation=!1,this._ngZone=(0,C.inject)(C.NgZone),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new C.EventEmitter,this.positionChange=new C.EventEmitter,this.attach=new C.EventEmitter,this.detach=new C.EventEmitter,this.overlayKeydown=new C.EventEmitter,this.overlayOutsideClick=new C.EventEmitter,this._templatePortal=new l.VA(De,ot),this._scrollStrategyFactory=xt,this.scrollStrategy=this._scrollStrategyFactory()}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(Ge){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),Ge.origin&&this.open&&this._position.apply()),Ge.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=We);const Ge=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=Ge.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=Ge.detachments().subscribe(()=>this.detach.emit()),Ge.keydownEvents().subscribe(De=>{this.overlayKeydown.next(De),De.keyCode===p._f&&!this.disableClose&&!(0,p.rp)(De)&&(De.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(De=>{this.overlayOutsideClick.next(De)})}_buildConfig(){const Ge=this._position=this.positionStrategy||this._createPositionStrategy(),De=new U({direction:this._dir,positionStrategy:Ge,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(De.width=this.width),(this.height||0===this.height)&&(De.height=this.height),(this.minWidth||0===this.minWidth)&&(De.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(De.minHeight=this.minHeight),this.backdropClass&&(De.backdropClass=this.backdropClass),this.panelClass&&(De.panelClass=this.panelClass),De}_updatePositionStrategy(Ge){const De=this.positions.map(ot=>({originX:ot.originX,originY:ot.originY,overlayX:ot.overlayX,overlayY:ot.overlayY,offsetX:ot.offsetX||this.offsetX,offsetY:ot.offsetY||this.offsetY,panelClass:ot.panelClass||void 0}));return Ge.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(De).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const Ge=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(Ge),Ge}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Me?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(Ge=>{this.backdropClick.emit(Ge)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,d.v)(()=>this.positionChange.observers.length>0)).subscribe(Ge=>{this._ngZone.run(()=>this.positionChange.emit(Ge)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#e=this.\u0275fac=function(De){return new(De||rt)(C.\u0275\u0275directiveInject(fe),C.\u0275\u0275directiveInject(C.TemplateRef),C.\u0275\u0275directiveInject(C.ViewContainerRef),C.\u0275\u0275directiveInject(Pe),C.\u0275\u0275directiveInject(a.dS,8))};static#t=this.\u0275dir=C.\u0275\u0275defineDirective({type:rt,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayOrigin","origin"],positions:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayPositions","positions"],positionStrategy:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayOffsetY","offsetY"],width:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayWidth","width"],height:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayHeight","height"],minWidth:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayOpen","open"],disableClose:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkConnectedOverlayHasBackdrop","hasBackdrop",C.booleanAttribute],lockPosition:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkConnectedOverlayLockPosition","lockPosition",C.booleanAttribute],flexibleDimensions:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",C.booleanAttribute],growAfterOpen:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",C.booleanAttribute],push:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkConnectedOverlayPush","push",C.booleanAttribute],disposeOnNavigation:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",C.booleanAttribute]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[C.\u0275\u0275InputTransformsFeature,C.\u0275\u0275NgOnChangesFeature]})}return rt})();const _e={provide:Pe,deps:[fe],useFactory:function q(rt){return()=>rt.scrollStrategies.reposition()}};let Oe=(()=>{class rt{static#e=this.\u0275fac=function(De){return new(De||rt)};static#t=this.\u0275mod=C.\u0275\u0275defineNgModule({type:rt});static#n=this.\u0275inj=C.\u0275\u0275defineInjector({providers:[fe,_e],imports:[a.jI,l.jc,t.E9,t.E9]})}return rt})()},6860:(Ie,ne,g)=>{"use strict";g.d(ne,{BD:()=>v,BQ:()=>l,CZ:()=>p,Fb:()=>I,KT:()=>w,MU:()=>f,OD:()=>E,r5:()=>r,v8:()=>D,vc:()=>k});var t=g(4438),_=g(177);let C;try{C=typeof Intl<"u"&&Intl.v8BreakIterator}catch{C=!1}let b,E=(()=>{class O{constructor(U){this._platformId=U,this.isBrowser=this._platformId?(0,_.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&&!C)&&typeof CSS<"u"&&!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}static#e=this.\u0275fac=function(S){return new(S||O)(t.\u0275\u0275inject(t.PLATFORM_ID))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac,providedIn:"root"})}return O})();const s=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function f(){if(b)return b;if("object"!=typeof document||!document)return b=new Set(s),b;let O=document.createElement("input");return b=new Set(s.filter(T=>(O.setAttribute("type",T),O.type===T))),b}let d;function l(O){return function a(){if(null==d&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>d=!0}))}finally{d=d||!1}return d}()?O:!!O.capture}var r=function(O){return O[O.NORMAL=0]="NORMAL",O[O.NEGATED=1]="NEGATED",O[O.INVERTED=2]="INVERTED",O}(r||{});let u,h,y;function p(){if(null==h){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return h=!1,h;if("scrollBehavior"in document.documentElement.style)h=!0;else{const O=Element.prototype.scrollTo;h=!!O&&!/\{\s*\[native code\]\s*\}/.test(O.toString())}}return h}function v(){if("object"!=typeof document||!document)return r.NORMAL;if(null==u){const O=document.createElement("div"),T=O.style;O.dir="rtl",T.width="1px",T.overflow="auto",T.visibility="hidden",T.pointerEvents="none",T.position="absolute";const U=document.createElement("div"),S=U.style;S.width="2px",S.height="1px",O.appendChild(U),document.body.appendChild(O),u=r.NORMAL,0===O.scrollLeft&&(O.scrollLeft=1,u=0===O.scrollLeft?r.NEGATED:r.INVERTED),O.remove()}return u}function w(O){if(function M(){if(null==y){const O=typeof document<"u"?document.head:null;y=!(!O||!O.createShadowRoot&&!O.attachShadow)}return y}()){const T=O.getRootNode?O.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&T instanceof ShadowRoot)return T}return null}function k(){let O=typeof document<"u"&&document?document.activeElement:null;for(;O&&O.shadowRoot;){const T=O.shadowRoot.activeElement;if(T===O)break;O=T}return O}function I(O){return O.composedPath?O.composedPath()[0]:O.target}function D(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6939:(Ie,ne,g)=>{"use strict";g.d(ne,{A8:()=>a,I3:()=>w,VA:()=>l,aI:()=>p,bV:()=>y,jc:()=>I});var t=g(4438),_=g(177);class d{attach(T){return this._attachedHost=T,T.attach(this)}detach(){let T=this._attachedHost;null!=T&&(this._attachedHost=null,T.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(T){this._attachedHost=T}}class a extends d{constructor(T,U,S,R,N){super(),this.component=T,this.viewContainerRef=U,this.injector=S,this.componentFactoryResolver=R,this.projectableNodes=N}}class l extends d{constructor(T,U,S,R){super(),this.templateRef=T,this.viewContainerRef=U,this.context=S,this.injector=R}get origin(){return this.templateRef.elementRef}attach(T,U=this.context){return this.context=U,super.attach(T)}detach(){return this.context=void 0,super.detach()}}class r extends d{constructor(T){super(),this.element=T instanceof t.ElementRef?T.nativeElement:T}}class u{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(T){return T instanceof a?(this._attachedPortal=T,this.attachComponentPortal(T)):T instanceof l?(this._attachedPortal=T,this.attachTemplatePortal(T)):this.attachDomPortal&&T instanceof r?(this._attachedPortal=T,this.attachDomPortal(T)):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(T){this._disposeFn=T}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class p extends u{constructor(T,U,S,R,N){super(),this.outletElement=T,this._componentFactoryResolver=U,this._appRef=S,this._defaultInjector=R,this.attachDomPortal=A=>{const F=A.element,Y=this._document.createComment("dom-portal");F.parentNode.insertBefore(Y,F),this.outletElement.appendChild(F),this._attachedPortal=A,super.setDisposeFn(()=>{Y.parentNode&&Y.parentNode.replaceChild(F,Y)})},this._document=N}attachComponentPortal(T){const S=(T.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(T.component);let R;return T.viewContainerRef?(R=T.viewContainerRef.createComponent(S,T.viewContainerRef.length,T.injector||T.viewContainerRef.injector,T.projectableNodes||void 0),this.setDisposeFn(()=>R.destroy())):(R=S.create(T.injector||this._defaultInjector||t.Injector.NULL),this._appRef.attachView(R.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(R.hostView),R.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(R)),this._attachedPortal=T,R}attachTemplatePortal(T){let U=T.viewContainerRef,S=U.createEmbeddedView(T.templateRef,T.context,{injector:T.injector});return S.rootNodes.forEach(R=>this.outletElement.appendChild(R)),S.detectChanges(),this.setDisposeFn(()=>{let R=U.indexOf(S);-1!==R&&U.remove(R)}),this._attachedPortal=T,S}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(T){return T.hostView.rootNodes[0]}}let y=(()=>{class O extends l{constructor(U,S){super(U,S)}static#e=this.\u0275fac=function(S){return new(S||O)(t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.ViewContainerRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:O,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature]})}return O})(),w=(()=>{class O extends u{constructor(U,S,R){super(),this._componentFactoryResolver=U,this._viewContainerRef=S,this._isInitialized=!1,this.attached=new t.EventEmitter,this.attachDomPortal=N=>{const A=N.element,F=this._document.createComment("dom-portal");N.setAttachedHost(this),A.parentNode.insertBefore(F,A),this._getRootNode().appendChild(A),this._attachedPortal=N,super.setDisposeFn(()=>{F.parentNode&&F.parentNode.replaceChild(A,F)})},this._document=R}get portal(){return this._attachedPortal}set portal(U){this.hasAttached()&&!U&&!this._isInitialized||(this.hasAttached()&&super.detach(),U&&super.attach(U),this._attachedPortal=U||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(U){U.setAttachedHost(this);const S=null!=U.viewContainerRef?U.viewContainerRef:this._viewContainerRef,N=(U.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(U.component),A=S.createComponent(N,S.length,U.injector||S.injector,U.projectableNodes||void 0);return S!==this._viewContainerRef&&this._getRootNode().appendChild(A.hostView.rootNodes[0]),super.setDisposeFn(()=>A.destroy()),this._attachedPortal=U,this._attachedRef=A,this.attached.emit(A),A}attachTemplatePortal(U){U.setAttachedHost(this);const S=this._viewContainerRef.createEmbeddedView(U.templateRef,U.context,{injector:U.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=U,this._attachedRef=S,this.attached.emit(S),S}_getRootNode(){const U=this._viewContainerRef.element.nativeElement;return U.nodeType===U.ELEMENT_NODE?U:U.parentNode}static#e=this.\u0275fac=function(S){return new(S||O)(t.\u0275\u0275directiveInject(t.ComponentFactoryResolver),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(_.DOCUMENT))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:O,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[t.\u0275\u0275InputFlags.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature]})}return O})(),I=(()=>{class O{static#e=this.\u0275fac=function(S){return new(S||O)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:O});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({})}return O})()},5478:(Ie,ne,g)=>{"use strict";g.d(ne,{E9:()=>G,Gj:()=>j,R:()=>D,Xj:()=>U,uv:()=>O});var t=g(4085),_=g(4438),C=g(1413),E=g(7673),c=g(1985),b=g(3726),d=(g(536),g(5007),g(3578)),a=g(5964),l=g(6977),r=g(6860),u=g(177),h=g(8203);let D=(()=>{class V{constructor(K,ce,ue){this._ngZone=K,this._platform=ce,this._scrolled=new C.B,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ue}register(K){this.scrollContainers.has(K)||this.scrollContainers.set(K,K.elementScrolled().subscribe(()=>this._scrolled.next(K)))}deregister(K){const ce=this.scrollContainers.get(K);ce&&(ce.unsubscribe(),this.scrollContainers.delete(K))}scrolled(K=20){return this._platform.isBrowser?new c.c(ce=>{this._globalSubscription||this._addGlobalListener();const ue=K>0?this._scrolled.pipe((0,d.Z)(K)).subscribe(ce):this._scrolled.subscribe(ce);return this._scrolledCount++,()=>{ue.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,E.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((K,ce)=>this.deregister(ce)),this._scrolled.complete()}ancestorScrolled(K,ce){const ue=this.getAncestorScrollContainers(K);return this.scrolled(ce).pipe((0,a.p)(be=>!be||ue.indexOf(be)>-1))}getAncestorScrollContainers(K){const ce=[];return this.scrollContainers.forEach((ue,be)=>{this._scrollableContainsElement(be,K)&&ce.push(be)}),ce}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(K,ce){let ue=(0,t.i8)(ce),be=K.getElementRef().nativeElement;do{if(ue==be)return!0}while(ue=ue.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const K=this._getWindow();return(0,b.R)(K.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(ce){return new(ce||V)(_.\u0275\u0275inject(_.NgZone),_.\u0275\u0275inject(r.OD),_.\u0275\u0275inject(u.DOCUMENT,8))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:V,factory:V.\u0275fac,providedIn:"root"})}return V})(),O=(()=>{class V{constructor(K,ce,ue,be){this.elementRef=K,this.scrollDispatcher=ce,this.ngZone=ue,this.dir=be,this._destroyed=new C.B,this._elementScrolled=new c.c(Ze=>this.ngZone.runOutsideAngular(()=>(0,b.R)(this.elementRef.nativeElement,"scroll").pipe((0,l.Q)(this._destroyed)).subscribe(Ze)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(K){const ce=this.elementRef.nativeElement,ue=this.dir&&"rtl"==this.dir.value;null==K.left&&(K.left=ue?K.end:K.start),null==K.right&&(K.right=ue?K.start:K.end),null!=K.bottom&&(K.top=ce.scrollHeight-ce.clientHeight-K.bottom),ue&&(0,r.BD)()!=r.r5.NORMAL?(null!=K.left&&(K.right=ce.scrollWidth-ce.clientWidth-K.left),(0,r.BD)()==r.r5.INVERTED?K.left=K.right:(0,r.BD)()==r.r5.NEGATED&&(K.left=K.right?-K.right:K.right)):null!=K.right&&(K.left=ce.scrollWidth-ce.clientWidth-K.right),this._applyScrollToOptions(K)}_applyScrollToOptions(K){const ce=this.elementRef.nativeElement;(0,r.CZ)()?ce.scrollTo(K):(null!=K.top&&(ce.scrollTop=K.top),null!=K.left&&(ce.scrollLeft=K.left))}measureScrollOffset(K){const ce="left",be=this.elementRef.nativeElement;if("top"==K)return be.scrollTop;if("bottom"==K)return be.scrollHeight-be.clientHeight-be.scrollTop;const Ze=this.dir&&"rtl"==this.dir.value;return"start"==K?K=Ze?"right":ce:"end"==K&&(K=Ze?ce:"right"),Ze&&(0,r.BD)()==r.r5.INVERTED?K==ce?be.scrollWidth-be.clientWidth-be.scrollLeft:be.scrollLeft:Ze&&(0,r.BD)()==r.r5.NEGATED?K==ce?be.scrollLeft+be.scrollWidth-be.clientWidth:-be.scrollLeft:K==ce?be.scrollLeft:be.scrollWidth-be.clientWidth-be.scrollLeft}static#e=this.\u0275fac=function(ce){return new(ce||V)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(D),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(h.dS,8))};static#t=this.\u0275dir=_.\u0275\u0275defineDirective({type:V,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return V})(),U=(()=>{class V{constructor(K,ce,ue){this._platform=K,this._change=new C.B,this._changeListener=be=>{this._change.next(be)},this._document=ue,ce.runOutsideAngular(()=>{if(K.isBrowser){const be=this._getWindow();be.addEventListener("resize",this._changeListener),be.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const K=this._getWindow();K.removeEventListener("resize",this._changeListener),K.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const K={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),K}getViewportRect(){const K=this.getViewportScrollPosition(),{width:ce,height:ue}=this.getViewportSize();return{top:K.top,left:K.left,bottom:K.top+ue,right:K.left+ce,height:ue,width:ce}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const K=this._document,ce=this._getWindow(),ue=K.documentElement,be=ue.getBoundingClientRect();return{top:-be.top||K.body.scrollTop||ce.scrollY||ue.scrollTop||0,left:-be.left||K.body.scrollLeft||ce.scrollX||ue.scrollLeft||0}}change(K=20){return K>0?this._change.pipe((0,d.Z)(K)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const K=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:K.innerWidth,height:K.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(ce){return new(ce||V)(_.\u0275\u0275inject(r.OD),_.\u0275\u0275inject(_.NgZone),_.\u0275\u0275inject(u.DOCUMENT,8))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:V,factory:V.\u0275fac,providedIn:"root"})}return V})(),j=(()=>{class V{static#e=this.\u0275fac=function(ce){return new(ce||V)};static#t=this.\u0275mod=_.\u0275\u0275defineNgModule({type:V});static#n=this.\u0275inj=_.\u0275\u0275defineInjector({})}return V})(),G=(()=>{class V{static#e=this.\u0275fac=function(ce){return new(ce||V)};static#t=this.\u0275mod=_.\u0275\u0275defineNgModule({type:V});static#n=this.\u0275inj=_.\u0275\u0275defineInjector({imports:[h.jI,j,h.jI,j]})}return V})()},177:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{APP_BASE_HREF:()=>p,AsyncPipe:()=>Ui,BrowserPlatformLocation:()=>a,CommonModule:()=>us,CurrencyPipe:()=>es,DATE_PIPE_DEFAULT_OPTIONS:()=>Ji,DATE_PIPE_DEFAULT_TIMEZONE:()=>ji,DOCUMENT:()=>s,DatePipe:()=>Gi,DecimalPipe:()=>Ur,FormStyle:()=>S,FormatWidth:()=>N,HashLocationStrategy:()=>y,I18nPluralPipe:()=>Hr,I18nSelectPipe:()=>Tr,IMAGE_CONFIG:()=>t.\u0275IMAGE_CONFIG,IMAGE_LOADER:()=>Wr,JsonPipe:()=>wr,KeyValuePipe:()=>Sr,LOCATION_INITIALIZED:()=>d,Location:()=>M,LocationStrategy:()=>h,LowerCasePipe:()=>Un,NgClass:()=>mt,NgComponentOutlet:()=>Ee,NgFor:()=>pe,NgForOf:()=>pe,NgForOfContext:()=>H,NgIf:()=>wt,NgIfContext:()=>ln,NgLocaleLocalization:()=>nn,NgLocalization:()=>lt,NgOptimizedImage:()=>zo,NgPlural:()=>hi,NgPluralCase:()=>xi,NgStyle:()=>Ri,NgSwitch:()=>In,NgSwitchCase:()=>Fn,NgSwitchDefault:()=>yi,NgTemplateOutlet:()=>On,NumberFormatStyle:()=>T,NumberSymbol:()=>A,PRECONNECT_CHECK_BLOCKLIST:()=>Vo,PathLocationStrategy:()=>v,PercentPipe:()=>mr,PlatformLocation:()=>f,Plural:()=>U,SlicePipe:()=>Bn,TitleCasePipe:()=>Dn,TranslationWidth:()=>R,UpperCasePipe:()=>Rn,VERSION:()=>sn,ViewportScroller:()=>fn,WeekDay:()=>F,XhrFactory:()=>Mi,formatCurrency:()=>Cn,formatDate:()=>xt,formatNumber:()=>Oi,formatPercent:()=>Ln,getCurrencySymbol:()=>q,getLocaleCurrencyCode:()=>ct,getLocaleCurrencyName:()=>pt,getLocaleCurrencySymbol:()=>Ze,getLocaleDateFormat:()=>W,getLocaleDateTimeFormat:()=>ce,getLocaleDayNames:()=>ie,getLocaleDayPeriods:()=>ee,getLocaleDirection:()=>Pe,getLocaleEraNames:()=>j,getLocaleExtraDayPeriodRules:()=>fe,getLocaleExtraDayPeriods:()=>We,getLocaleFirstDayOfWeek:()=>G,getLocaleId:()=>Y,getLocaleMonthNames:()=>$,getLocaleNumberFormat:()=>be,getLocaleNumberSymbol:()=>ue,getLocalePluralCase:()=>Ne,getLocaleTimeFormat:()=>K,getLocaleWeekEndRange:()=>V,getNumberOfCurrencyDigits:()=>Oe,isPlatformBrowser:()=>Tt,isPlatformServer:()=>kt,isPlatformWorkerApp:()=>$t,isPlatformWorkerUi:()=>Wt,provideCloudflareLoader:()=>di,provideCloudinaryLoader:()=>Yr,provideImageKitLoader:()=>Te,provideImgixLoader:()=>ni,provideNetlifyLoader:()=>Bo,registerLocaleData:()=>_n,\u0275DomAdapter:()=>c,\u0275NullViewportScroller:()=>$n,\u0275PLATFORM_BROWSER_ID:()=>br,\u0275PLATFORM_SERVER_ID:()=>vs,\u0275PLATFORM_WORKER_APP_ID:()=>Dt,\u0275PLATFORM_WORKER_UI_ID:()=>bt,\u0275PlatformNavigation:()=>b,\u0275getDOM:()=>C,\u0275normalizeQueryParams:()=>u,\u0275parseCookieValue:()=>Ue,\u0275setRootDomAdapter:()=>E});var t=g(4438);let _=null;function C(){return _}function E(X){_??=X}class c{}let b=(()=>{class X{static#e=this.\u0275fac=function(ge){return new(ge||X)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:X,factory:()=>window.navigation,providedIn:"platform"})}return X})();const s=new t.InjectionToken("");let f=(()=>{class X{historyGo(oe){throw new Error("")}static#e=this.\u0275fac=function(ge){return new(ge||X)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:X,factory:()=>(0,t.inject)(a),providedIn:"platform"})}return X})();const d=new t.InjectionToken("");let a=(()=>{class X extends f{constructor(){super(),this._doc=(0,t.inject)(s),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return C().getBaseHref(this._doc)}onPopState(oe){const ge=C().getGlobalEventTarget(this._doc,"window");return ge.addEventListener("popstate",oe,!1),()=>ge.removeEventListener("popstate",oe)}onHashChange(oe){const ge=C().getGlobalEventTarget(this._doc,"window");return ge.addEventListener("hashchange",oe,!1),()=>ge.removeEventListener("hashchange",oe)}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(oe){this._location.pathname=oe}pushState(oe,ge,st){this._history.pushState(oe,ge,st)}replaceState(oe,ge,st){this._history.replaceState(oe,ge,st)}forward(){this._history.forward()}back(){this._history.back()}historyGo(oe=0){this._history.go(oe)}getState(){return this._history.state}static#e=this.\u0275fac=function(ge){return new(ge||X)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:X,factory:()=>new X,providedIn:"platform"})}return X})();function l(X,Le){if(0==X.length)return Le;if(0==Le.length)return X;let oe=0;return X.endsWith("/")&&oe++,Le.startsWith("/")&&oe++,2==oe?X+Le.substring(1):1==oe?X+Le:X+"/"+Le}function r(X){const Le=X.match(/#|\?|$/),oe=Le&&Le.index||X.length;return X.slice(0,oe-("/"===X[oe-1]?1:0))+X.slice(oe)}function u(X){return X&&"?"!==X[0]?"?"+X:X}let h=(()=>{class X{historyGo(oe){throw new Error("")}static#e=this.\u0275fac=function(ge){return new(ge||X)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:X,factory:()=>(0,t.inject)(v),providedIn:"root"})}return X})();const p=new t.InjectionToken("");let v=(()=>{class X extends h{constructor(oe,ge){super(),this._platformLocation=oe,this._removeListenerFns=[],this._baseHref=ge??this._platformLocation.getBaseHrefFromDOM()??(0,t.inject)(s).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(oe){this._removeListenerFns.push(this._platformLocation.onPopState(oe),this._platformLocation.onHashChange(oe))}getBaseHref(){return this._baseHref}prepareExternalUrl(oe){return l(this._baseHref,oe)}path(oe=!1){const ge=this._platformLocation.pathname+u(this._platformLocation.search),st=this._platformLocation.hash;return st&&oe?`${ge}${st}`:ge}pushState(oe,ge,st,Ht){const Qt=this.prepareExternalUrl(st+u(Ht));this._platformLocation.pushState(oe,ge,Qt)}replaceState(oe,ge,st,Ht){const Qt=this.prepareExternalUrl(st+u(Ht));this._platformLocation.replaceState(oe,ge,Qt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(oe=0){this._platformLocation.historyGo?.(oe)}static#e=this.\u0275fac=function(ge){return new(ge||X)(t.\u0275\u0275inject(f),t.\u0275\u0275inject(p,8))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac,providedIn:"root"})}return X})(),y=(()=>{class X extends h{constructor(oe,ge){super(),this._platformLocation=oe,this._baseHref="",this._removeListenerFns=[],null!=ge&&(this._baseHref=ge)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(oe){this._removeListenerFns.push(this._platformLocation.onPopState(oe),this._platformLocation.onHashChange(oe))}getBaseHref(){return this._baseHref}path(oe=!1){const ge=this._platformLocation.hash??"#";return ge.length>0?ge.substring(1):ge}prepareExternalUrl(oe){const ge=l(this._baseHref,oe);return ge.length>0?"#"+ge:ge}pushState(oe,ge,st,Ht){let Qt=this.prepareExternalUrl(st+u(Ht));0==Qt.length&&(Qt=this._platformLocation.pathname),this._platformLocation.pushState(oe,ge,Qt)}replaceState(oe,ge,st,Ht){let Qt=this.prepareExternalUrl(st+u(Ht));0==Qt.length&&(Qt=this._platformLocation.pathname),this._platformLocation.replaceState(oe,ge,Qt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(oe=0){this._platformLocation.historyGo?.(oe)}static#e=this.\u0275fac=function(ge){return new(ge||X)(t.\u0275\u0275inject(f),t.\u0275\u0275inject(p,8))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac})}return X})(),M=(()=>{class X{constructor(oe){this._subject=new t.EventEmitter,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=oe;const ge=this._locationStrategy.getBaseHref();this._basePath=function D(X){if(new RegExp("^(https?:)?//").test(X)){const[,oe]=X.split(/\/\/[^\/]+/);return oe}return X}(r(I(ge))),this._locationStrategy.onPopState(st=>{this._subject.emit({url:this.path(!0),pop:!0,state:st.state,type:st.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(oe=!1){return this.normalize(this._locationStrategy.path(oe))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(oe,ge=""){return this.path()==this.normalize(oe+u(ge))}normalize(oe){return X.stripTrailingSlash(function k(X,Le){if(!X||!Le.startsWith(X))return Le;const oe=Le.substring(X.length);return""===oe||["/",";","?","#"].includes(oe[0])?oe:Le}(this._basePath,I(oe)))}prepareExternalUrl(oe){return oe&&"/"!==oe[0]&&(oe="/"+oe),this._locationStrategy.prepareExternalUrl(oe)}go(oe,ge="",st=null){this._locationStrategy.pushState(st,"",oe,ge),this._notifyUrlChangeListeners(this.prepareExternalUrl(oe+u(ge)),st)}replaceState(oe,ge="",st=null){this._locationStrategy.replaceState(st,"",oe,ge),this._notifyUrlChangeListeners(this.prepareExternalUrl(oe+u(ge)),st)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(oe=0){this._locationStrategy.historyGo?.(oe)}onUrlChange(oe){return this._urlChangeListeners.push(oe),this._urlChangeSubscription??=this.subscribe(ge=>{this._notifyUrlChangeListeners(ge.url,ge.state)}),()=>{const ge=this._urlChangeListeners.indexOf(oe);this._urlChangeListeners.splice(ge,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(oe="",ge){this._urlChangeListeners.forEach(st=>st(oe,ge))}subscribe(oe,ge,st){return this._subject.subscribe({next:oe,error:ge,complete:st})}static#e=this.normalizeQueryParams=u;static#t=this.joinWithSlash=l;static#n=this.stripTrailingSlash=r;static#i=this.\u0275fac=function(ge){return new(ge||X)(t.\u0275\u0275inject(h))};static#r=this.\u0275prov=t.\u0275\u0275defineInjectable({token:X,factory:()=>function w(){return new M((0,t.\u0275\u0275inject)(h))}(),providedIn:"root"})}return X})();function I(X){return X.replace(/\/index.html$/,"")}const O={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,void 0,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"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],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 T=function(X){return X[X.Decimal=0]="Decimal",X[X.Percent=1]="Percent",X[X.Currency=2]="Currency",X[X.Scientific=3]="Scientific",X}(T||{}),U=function(X){return X[X.Zero=0]="Zero",X[X.One=1]="One",X[X.Two=2]="Two",X[X.Few=3]="Few",X[X.Many=4]="Many",X[X.Other=5]="Other",X}(U||{}),S=function(X){return X[X.Format=0]="Format",X[X.Standalone=1]="Standalone",X}(S||{}),R=function(X){return X[X.Narrow=0]="Narrow",X[X.Abbreviated=1]="Abbreviated",X[X.Wide=2]="Wide",X[X.Short=3]="Short",X}(R||{}),N=function(X){return X[X.Short=0]="Short",X[X.Medium=1]="Medium",X[X.Long=2]="Long",X[X.Full=3]="Full",X}(N||{});const A={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};var F=function(X){return X[X.Sunday=0]="Sunday",X[X.Monday=1]="Monday",X[X.Tuesday=2]="Tuesday",X[X.Wednesday=3]="Wednesday",X[X.Thursday=4]="Thursday",X[X.Friday=5]="Friday",X[X.Saturday=6]="Saturday",X}(F||{});function Y(X){return(0,t.\u0275findLocaleData)(X)[t.\u0275LocaleDataIndex.LocaleId]}function ee(X,Le,oe){const ge=(0,t.\u0275findLocaleData)(X),Ht=Me([ge[t.\u0275LocaleDataIndex.DayPeriodsFormat],ge[t.\u0275LocaleDataIndex.DayPeriodsStandalone]],Le);return Me(Ht,oe)}function ie(X,Le,oe){const ge=(0,t.\u0275findLocaleData)(X),Ht=Me([ge[t.\u0275LocaleDataIndex.DaysFormat],ge[t.\u0275LocaleDataIndex.DaysStandalone]],Le);return Me(Ht,oe)}function $(X,Le,oe){const ge=(0,t.\u0275findLocaleData)(X),Ht=Me([ge[t.\u0275LocaleDataIndex.MonthsFormat],ge[t.\u0275LocaleDataIndex.MonthsStandalone]],Le);return Me(Ht,oe)}function j(X,Le){return Me((0,t.\u0275findLocaleData)(X)[t.\u0275LocaleDataIndex.Eras],Le)}function G(X){return(0,t.\u0275findLocaleData)(X)[t.\u0275LocaleDataIndex.FirstDayOfWeek]}function V(X){return(0,t.\u0275findLocaleData)(X)[t.\u0275LocaleDataIndex.WeekendRange]}function W(X,Le){return Me((0,t.\u0275findLocaleData)(X)[t.\u0275LocaleDataIndex.DateFormat],Le)}function K(X,Le){return Me((0,t.\u0275findLocaleData)(X)[t.\u0275LocaleDataIndex.TimeFormat],Le)}function ce(X,Le){return Me((0,t.\u0275findLocaleData)(X)[t.\u0275LocaleDataIndex.DateTimeFormat],Le)}function ue(X,Le){const oe=(0,t.\u0275findLocaleData)(X),ge=oe[t.\u0275LocaleDataIndex.NumberSymbols][Le];if(typeof ge>"u"){if(Le===A.CurrencyDecimal)return oe[t.\u0275LocaleDataIndex.NumberSymbols][A.Decimal];if(Le===A.CurrencyGroup)return oe[t.\u0275LocaleDataIndex.NumberSymbols][A.Group]}return ge}function be(X,Le){return(0,t.\u0275findLocaleData)(X)[t.\u0275LocaleDataIndex.NumberFormats][Le]}function Ze(X){return(0,t.\u0275findLocaleData)(X)[t.\u0275LocaleDataIndex.CurrencySymbol]||null}function pt(X){return(0,t.\u0275findLocaleData)(X)[t.\u0275LocaleDataIndex.CurrencyName]||null}function ct(X){return(0,t.\u0275getLocaleCurrencyCode)(X)}const Ne=t.\u0275getLocalePluralCase;function Ae(X){if(!X[t.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${X[t.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function fe(X){const Le=(0,t.\u0275findLocaleData)(X);return Ae(Le),(Le[t.\u0275LocaleDataIndex.ExtraData][2]||[]).map(ge=>"string"==typeof ge?$e(ge):[$e(ge[0]),$e(ge[1])])}function We(X,Le,oe){const ge=(0,t.\u0275findLocaleData)(X);Ae(ge);const Ht=Me([ge[t.\u0275LocaleDataIndex.ExtraData][0],ge[t.\u0275LocaleDataIndex.ExtraData][1]],Le)||[];return Me(Ht,oe)||[]}function Pe(X){return(0,t.\u0275findLocaleData)(X)[t.\u0275LocaleDataIndex.Directionality]}function Me(X,Le){for(let oe=Le;oe>-1;oe--)if(typeof X[oe]<"u")return X[oe];throw new Error("Locale data API: locale data undefined")}function $e(X){const[Le,oe]=X.split(":");return{hours:+Le,minutes:+oe}}function q(X,Le,oe="en"){const ge=function Ct(X){return(0,t.\u0275findLocaleData)(X)[t.\u0275LocaleDataIndex.Currencies]}(oe)[X]||O[X]||[],st=ge[1];return"narrow"===Le&&"string"==typeof st?st:ge[0]||X}const _e=2;function Oe(X){let Le;const oe=O[X];return oe&&(Le=oe[2]),"number"==typeof Le?Le:_e}const vt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,rt={},we=/((?:[^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 Ge=function(X){return X[X.Short=0]="Short",X[X.ShortGMT=1]="ShortGMT",X[X.Long=2]="Long",X[X.Extended=3]="Extended",X}(Ge||{}),De=function(X){return X[X.FullYear=0]="FullYear",X[X.Month=1]="Month",X[X.Date=2]="Date",X[X.Hours=3]="Hours",X[X.Minutes=4]="Minutes",X[X.Seconds=5]="Seconds",X[X.FractionalSeconds=6]="FractionalSeconds",X[X.Day=7]="Day",X}(De||{}),ot=function(X){return X[X.DayPeriods=0]="DayPeriods",X[X.Days=1]="Days",X[X.Months=2]="Months",X[X.Eras=3]="Eras",X}(ot||{});function xt(X,Le,oe,ge){let st=function it(X){if(Gt(X))return X;if("number"==typeof X&&!isNaN(X))return new Date(X);if("string"==typeof X){if(X=X.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(X)){const[st,Ht=1,Qt=1]=X.split("-").map(wn=>+wn);return jt(st,Ht-1,Qt)}const oe=parseFloat(X);if(!isNaN(X-oe))return new Date(oe);let ge;if(ge=X.match(vt))return function It(X){const Le=new Date(0);let oe=0,ge=0;const st=X[8]?Le.setUTCFullYear:Le.setFullYear,Ht=X[8]?Le.setUTCHours:Le.setHours;X[9]&&(oe=Number(X[9]+X[10]),ge=Number(X[9]+X[11])),st.call(Le,Number(X[1]),Number(X[2])-1,Number(X[3]));const Qt=Number(X[4]||0)-oe,wn=Number(X[5]||0)-ge,ci=Number(X[6]||0),Si=Math.floor(1e3*parseFloat("0."+(X[7]||0)));return Ht.call(Le,Qt,wn,ci,Si),Le}(ge)}const Le=new Date(X);if(!Gt(Le))throw new Error(`Unable to convert "${X}" into a date`);return Le}(X);Le=Xt(oe,Le)||Le;let wn,Qt=[];for(;Le;){if(wn=we.exec(Le),!wn){Qt.push(Le);break}{Qt=Qt.concat(wn.slice(1));const Di=Qt.pop();if(!Di)break;Le=Di}}let ci=st.getTimezoneOffset();ge&&(ci=te(ge,ci),st=function Se(X,Le,oe){const ge=oe?-1:1,st=X.getTimezoneOffset();return function de(X,Le){return(X=new Date(X.getTime())).setMinutes(X.getMinutes()+Le),X}(X,ge*(te(Le,st)-st))}(st,ge,!0));let Si="";return Qt.forEach(Di=>{const Qn=function Ke(X){if(me[X])return me[X];let Le;switch(X){case"G":case"GG":case"GGG":Le=Nt(ot.Eras,R.Abbreviated);break;case"GGGG":Le=Nt(ot.Eras,R.Wide);break;case"GGGGG":Le=Nt(ot.Eras,R.Narrow);break;case"y":Le=rn(De.FullYear,1,0,!1,!0);break;case"yy":Le=rn(De.FullYear,2,0,!0,!0);break;case"yyy":Le=rn(De.FullYear,3,0,!1,!0);break;case"yyyy":Le=rn(De.FullYear,4,0,!1,!0);break;case"Y":Le=Re(1);break;case"YY":Le=Re(2,!0);break;case"YYY":Le=Re(3);break;case"YYYY":Le=Re(4);break;case"M":case"L":Le=rn(De.Month,1,1);break;case"MM":case"LL":Le=rn(De.Month,2,1);break;case"MMM":Le=Nt(ot.Months,R.Abbreviated);break;case"MMMM":Le=Nt(ot.Months,R.Wide);break;case"MMMMM":Le=Nt(ot.Months,R.Narrow);break;case"LLL":Le=Nt(ot.Months,R.Abbreviated,S.Standalone);break;case"LLLL":Le=Nt(ot.Months,R.Wide,S.Standalone);break;case"LLLLL":Le=Nt(ot.Months,R.Narrow,S.Standalone);break;case"w":Le=ft(1);break;case"ww":Le=ft(2);break;case"W":Le=ft(1,!0);break;case"d":Le=rn(De.Date,1);break;case"dd":Le=rn(De.Date,2);break;case"c":case"cc":Le=rn(De.Day,1);break;case"ccc":Le=Nt(ot.Days,R.Abbreviated,S.Standalone);break;case"cccc":Le=Nt(ot.Days,R.Wide,S.Standalone);break;case"ccccc":Le=Nt(ot.Days,R.Narrow,S.Standalone);break;case"cccccc":Le=Nt(ot.Days,R.Short,S.Standalone);break;case"E":case"EE":case"EEE":Le=Nt(ot.Days,R.Abbreviated);break;case"EEEE":Le=Nt(ot.Days,R.Wide);break;case"EEEEE":Le=Nt(ot.Days,R.Narrow);break;case"EEEEEE":Le=Nt(ot.Days,R.Short);break;case"a":case"aa":case"aaa":Le=Nt(ot.DayPeriods,R.Abbreviated);break;case"aaaa":Le=Nt(ot.DayPeriods,R.Wide);break;case"aaaaa":Le=Nt(ot.DayPeriods,R.Narrow);break;case"b":case"bb":case"bbb":Le=Nt(ot.DayPeriods,R.Abbreviated,S.Standalone,!0);break;case"bbbb":Le=Nt(ot.DayPeriods,R.Wide,S.Standalone,!0);break;case"bbbbb":Le=Nt(ot.DayPeriods,R.Narrow,S.Standalone,!0);break;case"B":case"BB":case"BBB":Le=Nt(ot.DayPeriods,R.Abbreviated,S.Format,!0);break;case"BBBB":Le=Nt(ot.DayPeriods,R.Wide,S.Format,!0);break;case"BBBBB":Le=Nt(ot.DayPeriods,R.Narrow,S.Format,!0);break;case"h":Le=rn(De.Hours,1,-12);break;case"hh":Le=rn(De.Hours,2,-12);break;case"H":Le=rn(De.Hours,1);break;case"HH":Le=rn(De.Hours,2);break;case"m":Le=rn(De.Minutes,1);break;case"mm":Le=rn(De.Minutes,2);break;case"s":Le=rn(De.Seconds,1);break;case"ss":Le=rn(De.Seconds,2);break;case"S":Le=rn(De.FractionalSeconds,1);break;case"SS":Le=rn(De.FractionalSeconds,2);break;case"SSS":Le=rn(De.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Le=ve(Ge.Short);break;case"ZZZZZ":Le=ve(Ge.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Le=ve(Ge.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Le=ve(Ge.Long);break;default:return null}return me[X]=Le,Le}(Di);Si+=Qn?Qn(st,oe,ci):"''"===Di?"'":Di.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Si}function jt(X,Le,oe){const ge=new Date(0);return ge.setFullYear(X,Le,oe),ge.setHours(0,0,0),ge}function Xt(X,Le){const oe=Y(X);if(rt[oe]??={},rt[oe][Le])return rt[oe][Le];let ge="";switch(Le){case"shortDate":ge=W(X,N.Short);break;case"mediumDate":ge=W(X,N.Medium);break;case"longDate":ge=W(X,N.Long);break;case"fullDate":ge=W(X,N.Full);break;case"shortTime":ge=K(X,N.Short);break;case"mediumTime":ge=K(X,N.Medium);break;case"longTime":ge=K(X,N.Long);break;case"fullTime":ge=K(X,N.Full);break;case"short":const st=Xt(X,"shortTime"),Ht=Xt(X,"shortDate");ge=un(ce(X,N.Short),[st,Ht]);break;case"medium":const Qt=Xt(X,"mediumTime"),wn=Xt(X,"mediumDate");ge=un(ce(X,N.Medium),[Qt,wn]);break;case"long":const ci=Xt(X,"longTime"),Si=Xt(X,"longDate");ge=un(ce(X,N.Long),[ci,Si]);break;case"full":const Di=Xt(X,"fullTime"),Qn=Xt(X,"fullDate");ge=un(ce(X,N.Full),[Di,Qn])}return ge&&(rt[oe][Le]=ge),ge}function un(X,Le){return Le&&(X=X.replace(/\{([^}]+)}/g,function(oe,ge){return null!=Le&&ge in Le?Le[ge]:oe})),X}function dn(X,Le,oe="-",ge,st){let Ht="";(X<0||st&&X<=0)&&(st?X=1-X:(X=-X,Ht=oe));let Qt=String(X);for(;Qt.length0||wn>-oe)&&(wn+=oe),X===De.Hours)0===wn&&-12===oe&&(wn=12);else if(X===De.FractionalSeconds)return function cn(X,Le){return dn(X,3).substring(0,Le)}(wn,Le);const ci=ue(Qt,A.MinusSign);return dn(wn,Le,ci,ge,st)}}function Nt(X,Le,oe=S.Format,ge=!1){return function(st,Ht){return function Bt(X,Le,oe,ge,st,Ht){switch(oe){case ot.Months:return $(Le,st,ge)[X.getMonth()];case ot.Days:return ie(Le,st,ge)[X.getDay()];case ot.DayPeriods:const Qt=X.getHours(),wn=X.getMinutes();if(Ht){const Si=fe(Le),Di=We(Le,st,ge),Qn=Si.findIndex(Yi=>{if(Array.isArray(Yi)){const[Ci,tr]=Yi,jr=Qt>=Ci.hours&&wn>=Ci.minutes,fi=Qt0?Math.floor(st/60):Math.ceil(st/60);switch(X){case Ge.Short:return(st>=0?"+":"")+dn(Qt,2,Ht)+dn(Math.abs(st%60),2,Ht);case Ge.ShortGMT:return"GMT"+(st>=0?"+":"")+dn(Qt,1,Ht);case Ge.Long:return"GMT"+(st>=0?"+":"")+dn(Qt,2,Ht)+":"+dn(Math.abs(st%60),2,Ht);case Ge.Extended:return 0===ge?"Z":(st>=0?"+":"")+dn(Qt,2,Ht)+":"+dn(Math.abs(st%60),2,Ht);default:throw new Error(`Unknown zone width "${X}"`)}}}const Qe=0,Xe=4;function nt(X){const Le=X.getDay(),oe=0===Le?-3:Xe-Le;return jt(X.getFullYear(),X.getMonth(),X.getDate()+oe)}function ft(X,Le=!1){return function(oe,ge){let st;if(Le){const Ht=new Date(oe.getFullYear(),oe.getMonth(),1).getDay()-1,Qt=oe.getDate();st=1+Math.floor((Qt+Ht)/7)}else{const Ht=nt(oe),Qt=function Ot(X){const Le=jt(X,Qe,1).getDay();return jt(X,0,1+(Le<=Xe?Xe:Xe+7)-Le)}(Ht.getFullYear()),wn=Ht.getTime()-Qt.getTime();st=1+Math.round(wn/6048e5)}return dn(st,X,ue(ge,A.MinusSign))}}function Re(X,Le=!1){return function(oe,ge){return dn(nt(oe).getFullYear(),X,ue(ge,A.MinusSign),Le)}}const me={};function te(X,Le){X=X.replace(/:/g,"");const oe=Date.parse("Jan 01, 1970 00:00:00 "+X)/6e4;return isNaN(oe)?Le:oe}function Gt(X){return X instanceof Date&&!isNaN(X.valueOf())}const an=/^(\d+)?\.((\d+)(-(\d+))?)?$/,_t=22,Lt=".",qe="0",Fe=";",tt=",",He="#",dt="\xa4",At="%";function qt(X,Le,oe,ge,st,Ht,Qt=!1){let wn="",ci=!1;if(isFinite(X)){let Si=function at(X){let ge,st,Ht,Qt,wn,Le=Math.abs(X)+"",oe=0;for((st=Le.indexOf(Lt))>-1&&(Le=Le.replace(Lt,"")),(Ht=Le.search(/e/i))>0?(st<0&&(st=Ht),st+=+Le.slice(Ht+1),Le=Le.substring(0,Ht)):st<0&&(st=Le.length),Ht=0;Le.charAt(Ht)===qe;Ht++);if(Ht===(wn=Le.length))ge=[0],st=1;else{for(wn--;Le.charAt(wn)===qe;)wn--;for(st-=Ht,ge=[],Qt=0;Ht<=wn;Ht++,Qt++)ge[Qt]=Number(Le.charAt(Ht))}return st>_t&&(ge=ge.splice(0,_t-1),oe=st-1,st=1),{digits:ge,exponent:oe,integerLen:st}}(X);Qt&&(Si=function jn(X){if(0===X.digits[0])return X;const Le=X.digits.length-X.integerLen;return X.exponent?X.exponent+=2:(0===Le?X.digits.push(0,0):1===Le&&X.digits.push(0),X.integerLen+=2),X}(Si));let Di=Le.minInt,Qn=Le.minFrac,Yi=Le.maxFrac;if(Ht){const kn=Ht.match(an);if(null===kn)throw new Error(`${Ht} is not a valid digit info`);const Ai=kn[1],cr=kn[3],nr=kn[5];null!=Ai&&(Di=Be(Ai)),null!=cr&&(Qn=Be(cr)),null!=nr?Yi=Be(nr):null!=cr&&Qn>Yi&&(Yi=Qn)}!function Jt(X,Le,oe){if(Le>oe)throw new Error(`The minimum number of digits after fraction (${Le}) is higher than the maximum (${oe}).`);let ge=X.digits,st=ge.length-X.integerLen;const Ht=Math.min(Math.max(Le,st),oe);let Qt=Ht+X.integerLen,wn=ge[Qt];if(Qt>0){ge.splice(Math.max(X.integerLen,Qt));for(let Qn=Qt;Qn=5)if(Qt-1<0){for(let Qn=0;Qn>Qt;Qn--)ge.unshift(0),X.integerLen++;ge.unshift(1),X.integerLen++}else ge[Qt-1]++;for(;st=Si?tr.pop():ci=!1),Yi>=10?1:0},0);Di&&(ge.unshift(Di),X.integerLen++)}(Si,Qn,Yi);let Ci=Si.digits,tr=Si.integerLen;const jr=Si.exponent;let fi=[];for(ci=Ci.every(kn=>!kn);tr0?fi=Ci.splice(tr,Ci.length):(fi=Ci,Ci=[0]);const mn=[];for(Ci.length>=Le.lgSize&&mn.unshift(Ci.splice(-Le.lgSize,Ci.length).join(""));Ci.length>Le.gSize;)mn.unshift(Ci.splice(-Le.gSize,Ci.length).join(""));Ci.length&&mn.unshift(Ci.join("")),wn=mn.join(ue(oe,ge)),fi.length&&(wn+=ue(oe,st)+fi.join("")),jr&&(wn+=ue(oe,A.Exponential)+"+"+jr)}else wn=ue(oe,A.Infinity);return wn=X<0&&!ci?Le.negPre+wn+Le.negSuf:Le.posPre+wn+Le.posSuf,wn}function Cn(X,Le,oe,ge,st){const Qt=Ei(be(Le,T.Currency),ue(Le,A.MinusSign));return Qt.minFrac=Oe(ge),Qt.maxFrac=Qt.minFrac,qt(X,Qt,Le,A.CurrencyGroup,A.CurrencyDecimal,st).replace(dt,oe).replace(dt,"").trim()}function Ln(X,Le,oe){return qt(X,Ei(be(Le,T.Percent),ue(Le,A.MinusSign)),Le,A.Group,A.Decimal,oe,!0).replace(new RegExp(At,"g"),ue(Le,A.PercentSign))}function Oi(X,Le,oe){return qt(X,Ei(be(Le,T.Decimal),ue(Le,A.MinusSign)),Le,A.Group,A.Decimal,oe)}function Ei(X,Le="-"){const oe={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ge=X.split(Fe),st=ge[0],Ht=ge[1],Qt=-1!==st.indexOf(Lt)?st.split(Lt):[st.substring(0,st.lastIndexOf(qe)+1),st.substring(st.lastIndexOf(qe)+1)],wn=Qt[0],ci=Qt[1]||"";oe.posPre=wn.substring(0,wn.indexOf(He));for(let Di=0;Di{class X{static#e=this.\u0275fac=function(ge){return new(ge||X)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:X,factory:function(ge){let st=null;return ge?st=new ge:(Ht=t.\u0275\u0275inject(t.LOCALE_ID),st=new nn(Ht)),st;var Ht},providedIn:"root"})}return X})();function Et(X,Le,oe,ge){let st=`=${X}`;if(Le.indexOf(st)>-1||(st=oe.getPluralCategory(X,ge),Le.indexOf(st)>-1))return st;if(Le.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${X}"`)}let nn=(()=>{class X extends lt{constructor(oe){super(),this.locale=oe}getPluralCategory(oe,ge){switch(Ne(ge||this.locale)(oe)){case U.Zero:return"zero";case U.One:return"one";case U.Two:return"two";case U.Few:return"few";case U.Many:return"many";default:return"other"}}static#e=this.\u0275fac=function(ge){return new(ge||X)(t.\u0275\u0275inject(t.LOCALE_ID))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac})}return X})();function _n(X,Le,oe){return(0,t.\u0275registerLocaleData)(X,Le,oe)}function Ue(X,Le){Le=encodeURIComponent(Le);for(const oe of X.split(";")){const ge=oe.indexOf("="),[st,Ht]=-1==ge?[oe,""]:[oe.slice(0,ge),oe.slice(ge+1)];if(st.trim()===Le)return decodeURIComponent(Ht)}return null}const ut=/\s+/,Ye=[];let mt=(()=>{class X{constructor(oe,ge){this._ngEl=oe,this._renderer=ge,this.initialClasses=Ye,this.stateMap=new Map}set klass(oe){this.initialClasses=null!=oe?oe.trim().split(ut):Ye}set ngClass(oe){this.rawClass="string"==typeof oe?oe.trim().split(ut):oe}ngDoCheck(){for(const ge of this.initialClasses)this._updateState(ge,!0);const oe=this.rawClass;if(Array.isArray(oe)||oe instanceof Set)for(const ge of oe)this._updateState(ge,!0);else if(null!=oe)for(const ge of Object.keys(oe))this._updateState(ge,!!oe[ge]);this._applyStateDiff()}_updateState(oe,ge){const st=this.stateMap.get(oe);void 0!==st?(st.enabled!==ge&&(st.changed=!0,st.enabled=ge),st.touched=!0):this.stateMap.set(oe,{enabled:ge,changed:!0,touched:!0})}_applyStateDiff(){for(const oe of this.stateMap){const ge=oe[0],st=oe[1];st.changed?(this._toggleClass(ge,st.enabled),st.changed=!1):st.touched||(st.enabled&&this._toggleClass(ge,!1),this.stateMap.delete(ge)),st.touched=!1}}_toggleClass(oe,ge){(oe=oe.trim()).length>0&&oe.split(ut).forEach(st=>{ge?this._renderer.addClass(this._ngEl.nativeElement,st):this._renderer.removeClass(this._ngEl.nativeElement,st)})}static#e=this.\u0275fac=function(ge){return new(ge||X)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:X,selectors:[["","ngClass",""]],inputs:{klass:[t.\u0275\u0275InputFlags.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return X})(),Ee=(()=>{class X{constructor(oe){this._viewContainerRef=oe,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(oe){return void 0!==oe.ngComponentOutletNgModule||void 0!==oe.ngComponentOutletNgModuleFactory}_needToReCreateComponentInstance(oe){return void 0!==oe.ngComponentOutlet||void 0!==oe.ngComponentOutletContent||void 0!==oe.ngComponentOutletInjector||this._needToReCreateNgModuleInstance(oe)}ngOnChanges(oe){if(this._needToReCreateComponentInstance(oe)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){const ge=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(oe)&&(this._moduleRef?.destroy(),this._moduleRef=this.ngComponentOutletNgModule?(0,t.createNgModule)(this.ngComponentOutletNgModule,Mt(ge)):this.ngComponentOutletNgModuleFactory?this.ngComponentOutletNgModuleFactory.create(Mt(ge)):void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:ge,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(const oe of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(oe,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(oe){for(const[ge,st]of this._inputsUsed)st?(oe.setInput(ge,this.ngComponentOutletInputs[ge]),this._inputsUsed.set(ge,!1)):(oe.setInput(ge,void 0),this._inputsUsed.delete(ge))}static#e=this.\u0275fac=function(ge){return new(ge||X)(t.\u0275\u0275directiveInject(t.ViewContainerRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:X,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[t.\u0275\u0275NgOnChangesFeature]})}return X})();function Mt(X){return X.get(t.NgModuleRef).injector}class H{constructor(Le,oe,ge,st){this.$implicit=Le,this.ngForOf=oe,this.index=ge,this.count=st}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let pe=(()=>{class X{set ngForOf(oe){this._ngForOf=oe,this._ngForOfDirty=!0}set ngForTrackBy(oe){this._trackByFn=oe}get ngForTrackBy(){return this._trackByFn}constructor(oe,ge,st){this._viewContainer=oe,this._template=ge,this._differs=st,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(oe){oe&&(this._template=oe)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const oe=this._ngForOf;!this._differ&&oe&&(this._differ=this._differs.find(oe).create(this.ngForTrackBy))}if(this._differ){const oe=this._differ.diff(this._ngForOf);oe&&this._applyChanges(oe)}}_applyChanges(oe){const ge=this._viewContainer;oe.forEachOperation((st,Ht,Qt)=>{if(null==st.previousIndex)ge.createEmbeddedView(this._template,new H(st.item,this._ngForOf,-1,-1),null===Qt?void 0:Qt);else if(null==Qt)ge.remove(null===Ht?void 0:Ht);else if(null!==Ht){const wn=ge.get(Ht);ge.move(wn,Qt),le(wn,st)}});for(let st=0,Ht=ge.length;st{le(ge.get(st.currentIndex),st)})}static ngTemplateContextGuard(oe,ge){return!0}static#e=this.\u0275fac=function(ge){return new(ge||X)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.IterableDiffers))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:X,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return X})();function le(X,Le){X.context.$implicit=Le.item}let wt=(()=>{class X{constructor(oe,ge){this._viewContainer=oe,this._context=new ln,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ge}set ngIf(oe){this._context.$implicit=this._context.ngIf=oe,this._updateView()}set ngIfThen(oe){Gn("ngIfThen",oe),this._thenTemplateRef=oe,this._thenViewRef=null,this._updateView()}set ngIfElse(oe){Gn("ngIfElse",oe),this._elseTemplateRef=oe,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(oe,ge){return!0}static#e=this.\u0275fac=function(ge){return new(ge||X)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.TemplateRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:X,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return X})();class ln{constructor(){this.$implicit=null,this.ngIf=null}}function Gn(X,Le){if(Le&&!Le.createEmbeddedView)throw new Error(`${X} must be a TemplateRef, but received '${(0,t.\u0275stringify)(Le)}'.`)}class ti{constructor(Le,oe){this._viewContainerRef=Le,this._templateRef=oe,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Le){Le&&!this._created?this.create():!Le&&this._created&&this.destroy()}}let In=(()=>{class X{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(oe){this._ngSwitch=oe,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(oe){this._defaultViews.push(oe)}_matchCase(oe){const ge=oe===this._ngSwitch;return this._lastCasesMatched||=ge,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ge}_updateDefaultCases(oe){if(this._defaultViews.length>0&&oe!==this._defaultUsed){this._defaultUsed=oe;for(const ge of this._defaultViews)ge.enforceState(oe)}}static#e=this.\u0275fac=function(ge){return new(ge||X)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:X,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return X})(),Fn=(()=>{class X{constructor(oe,ge,st){this.ngSwitch=st,st._addCase(),this._view=new ti(oe,ge)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(ge){return new(ge||X)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(In,9))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:X,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return X})(),yi=(()=>{class X{constructor(oe,ge,st){st._addDefault(new ti(oe,ge))}static#e=this.\u0275fac=function(ge){return new(ge||X)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(In,9))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:X,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return X})(),hi=(()=>{class X{constructor(oe){this._localization=oe,this._caseViews={}}set ngPlural(oe){this._updateView(oe)}addCase(oe,ge){this._caseViews[oe]=ge}_updateView(oe){this._clearViews();const st=Et(oe,Object.keys(this._caseViews),this._localization);this._activateView(this._caseViews[st])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(oe){oe&&(this._activeView=oe,this._activeView.create())}static#e=this.\u0275fac=function(ge){return new(ge||X)(t.\u0275\u0275directiveInject(lt))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:X,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0})}return X})(),xi=(()=>{class X{constructor(oe,ge,st,Ht){this.value=oe;const Qt=!isNaN(Number(oe));Ht.addCase(Qt?`=${oe}`:oe,new ti(st,ge))}static#e=this.\u0275fac=function(ge){return new(ge||X)(t.\u0275\u0275injectAttribute("ngPluralCase"),t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(hi,1))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:X,selectors:[["","ngPluralCase",""]],standalone:!0})}return X})(),Ri=(()=>{class X{constructor(oe,ge,st){this._ngEl=oe,this._differs=ge,this._renderer=st,this._ngStyle=null,this._differ=null}set ngStyle(oe){this._ngStyle=oe,!this._differ&&oe&&(this._differ=this._differs.find(oe).create())}ngDoCheck(){if(this._differ){const oe=this._differ.diff(this._ngStyle);oe&&this._applyChanges(oe)}}_setStyle(oe,ge){const[st,Ht]=oe.split("."),Qt=-1===st.indexOf("-")?void 0:t.RendererStyleFlags2.DashCase;null!=ge?this._renderer.setStyle(this._ngEl.nativeElement,st,Ht?`${ge}${Ht}`:ge,Qt):this._renderer.removeStyle(this._ngEl.nativeElement,st,Qt)}_applyChanges(oe){oe.forEachRemovedItem(ge=>this._setStyle(ge.key,null)),oe.forEachAddedItem(ge=>this._setStyle(ge.key,ge.currentValue)),oe.forEachChangedItem(ge=>this._setStyle(ge.key,ge.currentValue))}static#e=this.\u0275fac=function(ge){return new(ge||X)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.KeyValueDiffers),t.\u0275\u0275directiveInject(t.Renderer2))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:X,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return X})(),On=(()=>{class X{constructor(oe){this._viewContainerRef=oe,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(oe){if(this._shouldRecreateView(oe)){const ge=this._viewContainerRef;if(this._viewRef&&ge.remove(ge.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const st=this._createContextForwardProxy();this._viewRef=ge.createEmbeddedView(this.ngTemplateOutlet,st,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(oe){return!!oe.ngTemplateOutlet||!!oe.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(oe,ge,st)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,ge,st),get:(oe,ge,st)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,ge,st)}})}static#e=this.\u0275fac=function(ge){return new(ge||X)(t.\u0275\u0275directiveInject(t.ViewContainerRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:X,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[t.\u0275\u0275NgOnChangesFeature]})}return X})();function $i(X,Le){return new t.\u0275RuntimeError(2100,!1)}class qn{createSubscription(Le,oe){return(0,t.untracked)(()=>Le.subscribe({next:oe,error:ge=>{throw ge}}))}dispose(Le){(0,t.untracked)(()=>Le.unsubscribe())}}class Zn{createSubscription(Le,oe){return Le.then(oe,ge=>{throw ge})}dispose(Le){}}const ii=new Zn,Wi=new qn;let Ui=(()=>{class X{constructor(oe){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=oe}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(oe){if(!this._obj){if(oe)try{this.markForCheckOnValueUpdate=!1,this._subscribe(oe)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return oe!==this._obj?(this._dispose(),this.transform(oe)):this._latestValue}_subscribe(oe){this._obj=oe,this._strategy=this._selectStrategy(oe),this._subscription=this._strategy.createSubscription(oe,ge=>this._updateLatestValue(oe,ge))}_selectStrategy(oe){if((0,t.\u0275isPromise)(oe))return ii;if((0,t.\u0275isSubscribable)(oe))return Wi;throw $i()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(oe,ge){oe===this._obj&&(this._latestValue=ge,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static#e=this.\u0275fac=function(ge){return new(ge||X)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef,16))};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"async",type:X,pure:!1,standalone:!0})}return X})(),Un=(()=>{class X{transform(oe){if(null==oe)return null;if("string"!=typeof oe)throw $i();return oe.toLowerCase()}static#e=this.\u0275fac=function(ge){return new(ge||X)};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"lowercase",type:X,pure:!0,standalone:!0})}return X})();const vn=/(?:[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 Dn=(()=>{class X{transform(oe){if(null==oe)return null;if("string"!=typeof oe)throw $i();return oe.replace(vn,ge=>ge[0].toUpperCase()+ge.slice(1).toLowerCase())}static#e=this.\u0275fac=function(ge){return new(ge||X)};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"titlecase",type:X,pure:!0,standalone:!0})}return X})(),Rn=(()=>{class X{transform(oe){if(null==oe)return null;if("string"!=typeof oe)throw $i();return oe.toUpperCase()}static#e=this.\u0275fac=function(ge){return new(ge||X)};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"uppercase",type:X,pure:!0,standalone:!0})}return X})();const ji=new t.InjectionToken(""),Ji=new t.InjectionToken("");let Gi=(()=>{class X{constructor(oe,ge,st){this.locale=oe,this.defaultTimezone=ge,this.defaultOptions=st}transform(oe,ge,st,Ht){if(null==oe||""===oe||oe!=oe)return null;try{return xt(oe,ge??this.defaultOptions?.dateFormat??"mediumDate",Ht||this.locale,st??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Qt){throw $i()}}static#e=this.\u0275fac=function(ge){return new(ge||X)(t.\u0275\u0275directiveInject(t.LOCALE_ID,16),t.\u0275\u0275directiveInject(ji,24),t.\u0275\u0275directiveInject(Ji,24))};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"date",type:X,pure:!0,standalone:!0})}return X})();const lr=/#/g;let Hr=(()=>{class X{constructor(oe){this._localization=oe}transform(oe,ge,st){if(null==oe)return"";if("object"!=typeof ge||null===ge)throw $i();return ge[Et(oe,Object.keys(ge),this._localization,st)].replace(lr,oe.toString())}static#e=this.\u0275fac=function(ge){return new(ge||X)(t.\u0275\u0275directiveInject(lt,16))};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"i18nPlural",type:X,pure:!0,standalone:!0})}return X})(),Tr=(()=>{class X{transform(oe,ge){if(null==oe)return"";if("object"!=typeof ge||"string"!=typeof oe)throw $i();return ge.hasOwnProperty(oe)?ge[oe]:ge.hasOwnProperty("other")?ge.other:""}static#e=this.\u0275fac=function(ge){return new(ge||X)};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"i18nSelect",type:X,pure:!0,standalone:!0})}return X})(),wr=(()=>{class X{transform(oe){return JSON.stringify(oe,null,2)}static#e=this.\u0275fac=function(ge){return new(ge||X)};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"json",type:X,pure:!1,standalone:!0})}return X})(),Sr=(()=>{class X{constructor(oe){this.differs=oe,this.keyValues=[],this.compareFn=Fr}transform(oe,ge=Fr){if(!oe||!(oe instanceof Map)&&"object"!=typeof oe)return null;this.differ??=this.differs.find(oe).create();const st=this.differ.diff(oe),Ht=ge!==this.compareFn;return st&&(this.keyValues=[],st.forEachItem(Qt=>{this.keyValues.push(function _s(X,Le){return{key:X,value:Le}}(Qt.key,Qt.currentValue))})),(st||Ht)&&(this.keyValues.sort(ge),this.compareFn=ge),this.keyValues}static#e=this.\u0275fac=function(ge){return new(ge||X)(t.\u0275\u0275directiveInject(t.KeyValueDiffers,16))};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"keyvalue",type:X,pure:!1,standalone:!0})}return X})();function Fr(X,Le){const oe=X.key,ge=Le.key;if(oe===ge)return 0;if(void 0===oe)return 1;if(void 0===ge)return-1;if(null===oe)return 1;if(null===ge)return-1;if("string"==typeof oe&&"string"==typeof ge)return oe{class X{constructor(oe){this._locale=oe}transform(oe,ge,st){if(!Li(oe))return null;st||=this._locale;try{return Oi(ts(oe),st,ge)}catch(Ht){throw $i()}}static#e=this.\u0275fac=function(ge){return new(ge||X)(t.\u0275\u0275directiveInject(t.LOCALE_ID,16))};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"number",type:X,pure:!0,standalone:!0})}return X})(),mr=(()=>{class X{constructor(oe){this._locale=oe}transform(oe,ge,st){if(!Li(oe))return null;st||=this._locale;try{return Ln(ts(oe),st,ge)}catch(Ht){throw $i()}}static#e=this.\u0275fac=function(ge){return new(ge||X)(t.\u0275\u0275directiveInject(t.LOCALE_ID,16))};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"percent",type:X,pure:!0,standalone:!0})}return X})(),es=(()=>{class X{constructor(oe,ge="USD"){this._locale=oe,this._defaultCurrencyCode=ge}transform(oe,ge=this._defaultCurrencyCode,st="symbol",Ht,Qt){if(!Li(oe))return null;Qt||=this._locale,"boolean"==typeof st&&(st=st?"symbol":"code");let wn=ge||this._defaultCurrencyCode;"code"!==st&&(wn="symbol"===st||"symbol-narrow"===st?q(wn,"symbol"===st?"wide":"narrow",Qt):st);try{return Cn(ts(oe),Qt,wn,ge,Ht)}catch(ci){throw $i()}}static#e=this.\u0275fac=function(ge){return new(ge||X)(t.\u0275\u0275directiveInject(t.LOCALE_ID,16),t.\u0275\u0275directiveInject(t.DEFAULT_CURRENCY_CODE,16))};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"currency",type:X,pure:!0,standalone:!0})}return X})();function Li(X){return!(null==X||""===X||X!=X)}function ts(X){if("string"==typeof X&&!isNaN(Number(X)-parseFloat(X)))return Number(X);if("number"!=typeof X)throw new Error(`${X} is not a number`);return X}let Bn=(()=>{class X{transform(oe,ge,st){if(null==oe)return null;if(!this.supports(oe))throw $i();return oe.slice(ge,st)}supports(oe){return"string"==typeof oe||Array.isArray(oe)}static#e=this.\u0275fac=function(ge){return new(ge||X)};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"slice",type:X,pure:!1,standalone:!0})}return X})(),us=(()=>{class X{static#e=this.\u0275fac=function(ge){return new(ge||X)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:X});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({})}return X})();const br="browser",vs="server",Dt="browserWorkerApp",bt="browserWorkerUi";function Tt(X){return X===br}function kt(X){return X===vs}function $t(X){return X===Dt}function Wt(X){return X===bt}const sn=new t.Version("17.3.3");let fn=(()=>{class X{static#e=this.\u0275prov=(0,t.\u0275\u0275defineInjectable)({token:X,providedIn:"root",factory:()=>Tt((0,t.inject)(t.PLATFORM_ID))?new bn((0,t.inject)(s),window):new $n})}return X})();class bn{constructor(Le,oe){this.document=Le,this.window=oe,this.offset=()=>[0,0]}setOffset(Le){this.offset=Array.isArray(Le)?()=>Le:Le}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(Le){this.window.scrollTo(Le[0],Le[1])}scrollToAnchor(Le){const oe=function Tn(X,Le){const oe=X.getElementById(Le)||X.getElementsByName(Le)[0];if(oe)return oe;if("function"==typeof X.createTreeWalker&&X.body&&"function"==typeof X.body.attachShadow){const ge=X.createTreeWalker(X.body,NodeFilter.SHOW_ELEMENT);let st=ge.currentNode;for(;st;){const Ht=st.shadowRoot;if(Ht){const Qt=Ht.getElementById(Le)||Ht.querySelector(`[name="${Le}"]`);if(Qt)return Qt}st=ge.nextNode()}}return null}(this.document,Le);oe&&(this.scrollToElement(oe),oe.focus())}setHistoryScrollRestoration(Le){this.window.history.scrollRestoration=Le}scrollToElement(Le){const oe=Le.getBoundingClientRect(),ge=oe.left+this.window.pageXOffset,st=oe.top+this.window.pageYOffset,Ht=this.offset();this.window.scrollTo(ge-Ht[0],st-Ht[1])}}class $n{setOffset(Le){}getScrollPosition(){return[0,0]}scrollToPosition(Le){}scrollToAnchor(Le){}setHistoryScrollRestoration(Le){}}class Mi{}const Xn="20";function Vn(X){return/^https?:\/\//.test(X)}function li(X){if("string"!=typeof X||""===X.trim())return!1;try{return new URL(X),!0}catch{return!1}}function Bi(X){return X.startsWith("/")?X.slice(1):X}const Ar=X=>X.src,Wr=new t.InjectionToken("",{providedIn:"root",factory:()=>Ar});function to(X,Le){return function(ge){return li(ge)||function Br(X,Le){throw new t.\u0275RuntimeError(2959,!1)}(),ge=function ur(X){return X.endsWith("/")?X.slice(0,-1):X}(ge),[{provide:Wr,useValue:Qt=>(Vn(Qt.src)&&function qi(X,Le){throw new t.\u0275RuntimeError(2959,!1)}(),X(ge,{...Qt,src:Bi(Qt.src)}))}]}}const di=to(ns);function ns(X,Le){let oe="format=auto";return Le.width&&(oe+=`,width=${Le.width}`),Le.isPlaceholder&&(oe+=`,quality=${Xn}`),`${X}/cdn-cgi/image/${oe}/${Le.src}`}const Yr=to(Zr);function Zr(X,Le){let ge="f_auto,"+(Le.isPlaceholder?"q_auto:low":"q_auto");return Le.width&&(ge+=`,w_${Le.width}`),`${X}/image/upload/${ge}/${Le.src}`}const Te=to(ae);function ae(X,Le){const{src:oe,width:ge}=Le;let st;st=ge?[X,`tr:w-${ge}`,oe]:[X,oe];const Ht=new URL(st.join("/"));return Le.isPlaceholder&&Ht.searchParams.set("q",Xn),Ht.href}const ni=to(Er);function Er(X,Le){const oe=new URL(`${X}/${Le.src}`);return oe.searchParams.set("auto","format"),Le.width&&oe.searchParams.set("w",Le.width.toString()),Le.isPlaceholder&&oe.searchParams.set("q",Xn),oe.href}function Bo(X){if(X&&!li(X))throw new t.\u0275RuntimeError(2959,!1);return X&&(X=new URL(X).origin),[{provide:Wr,useValue:ge=>function Io(X,Le){const oe=new URL(Le??"https://a/");oe.pathname="/.netlify/images",!Vn(X.src)&&!X.src.startsWith("/")&&(X.src="/"+X.src),oe.searchParams.set("url",X.src),X.width&&oe.searchParams.set("w",X.width.toString());X.isPlaceholder&&!(X.loaderParams?.quality??X.loaderParams?.q)&&oe.searchParams.set("q",Xn);for(const[st,Ht]of Object.entries(X.loaderParams??{}))Ns.has(st)&&oe.searchParams.set(Ns.get(st),Ht.toString());return"a"===oe.hostname?oe.href.replace(oe.origin,""):oe.href}(ge,X)}]}const Ns=new Map([["height","h"],["fit","fit"],["quality","q"],["q","q"],["position","position"]]),Vo=new t.InjectionToken(""),Us=new t.InjectionToken("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:()=>new Set});let Bs=(()=>{class X{constructor(){this.preloadedImages=(0,t.inject)(Us),this.document=(0,t.inject)(s)}createPreloadLinkTag(oe,ge,st,Ht){if(this.preloadedImages.has(ge))return;this.preloadedImages.add(ge);const Qt=oe.createElement("link");oe.setAttribute(Qt,"as","image"),oe.setAttribute(Qt,"href",ge),oe.setAttribute(Qt,"rel","preload"),oe.setAttribute(Qt,"fetchpriority","high"),Ht&&oe.setAttribute(Qt,"imageSizes",Ht),st&&oe.setAttribute(Qt,"imageSrcset",st),oe.appendChild(this.document.head,Qt)}static#e=this.\u0275fac=function(ge){return new(ge||X)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac,providedIn:"root"})}return X})();const To=/^((\s*\d+w\s*(,|$)){1,})$/,Or=[1,2];let zo=(()=>{class X{constructor(){this.imageLoader=(0,t.inject)(Wr),this.config=function js(X){let Le={};return X.breakpoints&&(Le.breakpoints=X.breakpoints.sort((oe,ge)=>oe-ge)),Object.assign({},t.\u0275IMAGE_CONFIG_DEFAULTS,X,Le)}((0,t.inject)(t.\u0275IMAGE_CONFIG)),this.renderer=(0,t.inject)(t.Renderer2),this.imgElement=(0,t.inject)(t.ElementRef).nativeElement,this.injector=(0,t.inject)(t.Injector),this.isServer=kt((0,t.inject)(t.PLATFORM_ID)),this.preloadLinkCreator=(0,t.inject)(Bs),this.lcpObserver=null,this._renderedSrc=null,this.priority=!1,this.disableOptimizedSrcset=!1,this.fill=!1}ngOnInit(){(0,t.\u0275performanceMarkFeature)("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");const oe=this.updateSrcAndSrcset();this.sizes&&this.setHostAttribute("sizes",this.sizes),this.isServer&&this.priority&&this.preloadLinkCreator.createPreloadLinkTag(this.renderer,this.getRewrittenSrc(),oe,this.sizes)}ngOnChanges(oe){if(oe.ngSrc&&!oe.ngSrc.isFirstChange()){const ge=this._renderedSrc;this.updateSrcAndSrcset(!0);const st=this._renderedSrc;null!==this.lcpObserver&&ge&&st&&ge!==st&&this.injector.get(t.NgZone).runOutsideAngular(()=>{this.lcpObserver?.updateImage(ge,st)})}}callImageLoader(oe){let ge=oe;return this.loaderParams&&(ge.loaderParams=this.loaderParams),this.imageLoader(ge)}getLoadingBehavior(){return this.priority||void 0===this.loading?this.priority?"eager":"lazy":this.loading}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){return this._renderedSrc||(this._renderedSrc=this.callImageLoader({src:this.ngSrc})),this._renderedSrc}getRewrittenSrcset(){const oe=To.test(this.ngSrcset);return this.ngSrcset.split(",").filter(st=>""!==st).map(st=>{st=st.trim();const Ht=oe?parseFloat(st):parseFloat(st)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:Ht})} ${st}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){const{breakpoints:oe}=this.config;let ge=oe;return"100vw"===this.sizes?.trim()&&(ge=oe.filter(Ht=>Ht>=640)),ge.map(Ht=>`${this.callImageLoader({src:this.ngSrc,width:Ht})} ${Ht}w`).join(", ")}updateSrcAndSrcset(oe=!1){oe&&(this._renderedSrc=null);const ge=this.getRewrittenSrc();let st;return this.setHostAttribute("src",ge),this.ngSrcset?st=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(st=this.getAutomaticSrcset()),st&&this.setHostAttribute("srcset",st),st}getFixedSrcset(){return Or.map(ge=>`${this.callImageLoader({src:this.ngSrc,width:this.width*ge})} ${ge}x`).join(", ")}shouldGenerateAutomaticSrcset(){let oe=!1;return this.sizes||(oe=this.width>1920||this.height>1080),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==Ar&&!oe}generatePlaceholder(oe){const{placeholderResolution:ge}=this.config;return!0===oe?`url(${this.callImageLoader({src:this.ngSrc,width:ge,isPlaceholder:!0})})`:"string"==typeof oe&&oe.startsWith("data:")?`url(${oe})`:null}shouldBlurPlaceholder(oe){return!oe||!oe.hasOwnProperty("blur")||!!oe.blur}removePlaceholderOnLoad(oe){const ge=()=>{const Qt=this.injector.get(t.ChangeDetectorRef);st(),Ht(),this.placeholder=!1,Qt.markForCheck()},st=this.renderer.listen(oe,"load",ge),Ht=this.renderer.listen(oe,"error",ge)}ngOnDestroy(){}setHostAttribute(oe,ge){this.renderer.setAttribute(this.imgElement,oe,ge)}static#e=this.\u0275fac=function(ge){return new(ge||X)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:X,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(ge,st){2&ge&&t.\u0275\u0275styleProp("position",st.fill?"absolute":null)("width",st.fill?"100%":null)("height",st.fill?"100%":null)("inset",st.fill?"0":null)("background-size",st.placeholder?"cover":null)("background-position",st.placeholder?"50% 50%":null)("background-repeat",st.placeholder?"no-repeat":null)("background-image",st.placeholder?st.generatePlaceholder(st.placeholder):null)("filter",st.placeholder&&st.shouldBlurPlaceholder(st.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"ngSrc","ngSrc",uo],ngSrcset:"ngSrcset",sizes:"sizes",width:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"width","width",t.numberAttribute],height:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"height","height",t.numberAttribute],loading:"loading",priority:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"priority","priority",t.booleanAttribute],loaderParams:"loaderParams",disableOptimizedSrcset:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableOptimizedSrcset","disableOptimizedSrcset",t.booleanAttribute],fill:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"fill","fill",t.booleanAttribute],placeholder:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"placeholder","placeholder",Ko],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275NgOnChangesFeature]})}return X})();function uo(X){return"string"==typeof X?X:(0,t.\u0275unwrapSafeValue)(X)}function Ko(X){return"string"==typeof X&&X.startsWith("data:")?X:(0,t.booleanAttribute)(X)}},1626:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{FetchBackend:()=>Ze,HTTP_INTERCEPTORS:()=>We,HttpBackend:()=>h,HttpClient:()=>K,HttpClientJsonpModule:()=>He,HttpClientModule:()=>tt,HttpClientXsrfModule:()=>Fe,HttpContext:()=>U,HttpContextToken:()=>T,HttpErrorResponse:()=>G,HttpEventType:()=>ee,HttpFeatureKind:()=>Ke,HttpHandler:()=>u,HttpHeaderResponse:()=>$,HttpHeaders:()=>p,HttpParams:()=>O,HttpRequest:()=>Y,HttpResponse:()=>j,HttpResponseBase:()=>ie,HttpStatusCode:()=>V,HttpUrlEncodingCodec:()=>y,HttpXhrBackend:()=>Nt,HttpXsrfTokenExtractor:()=>nt,JsonpClientBackend:()=>un,JsonpInterceptor:()=>cn,provideHttpClient:()=>de,withFetch:()=>qe,withInterceptors:()=>Se,withInterceptorsFromDi:()=>It,withJsonpSupport:()=>_t,withNoXsrfProtection:()=>an,withRequestsMadeViaParent:()=>Lt,withXsrfConfiguration:()=>Gt,\u0275HTTP_ROOT_INTERCEPTOR_FNS:()=>Me,\u0275HttpInterceptingHandler:()=>vt,\u0275HttpInterceptorHandler:()=>vt,\u0275PRIMARY_HTTP_BACKEND:()=>$e,\u0275withHttpTransferCache:()=>nn});var t=g(467),_=g(4438),C=g(7673),E=g(1985),c=g(8455),b=g(274),s=g(5964),f=g(6354),d=g(980),a=g(5558),l=g(8141),r=g(177);class u{}class h{}class p{constructor(ut){this.normalizedNames=new Map,this.lazyUpdate=null,ut?"string"==typeof ut?this.lazyInit=()=>{this.headers=new Map,ut.split("\n").forEach(Ye=>{const mt=Ye.indexOf(":");if(mt>0){const Ee=Ye.slice(0,mt),Mt=Ee.toLowerCase(),H=Ye.slice(mt+1).trim();this.maybeSetNormalizedName(Ee,Mt),this.headers.has(Mt)?this.headers.get(Mt).push(H):this.headers.set(Mt,[H])}})}:typeof Headers<"u"&&ut instanceof Headers?(this.headers=new Map,ut.forEach((Ye,mt)=>{this.setHeaderEntries(mt,Ye)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(ut).forEach(([Ye,mt])=>{this.setHeaderEntries(Ye,mt)})}:this.headers=new Map}has(ut){return this.init(),this.headers.has(ut.toLowerCase())}get(ut){this.init();const Ye=this.headers.get(ut.toLowerCase());return Ye&&Ye.length>0?Ye[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ut){return this.init(),this.headers.get(ut.toLowerCase())||null}append(ut,Ye){return this.clone({name:ut,value:Ye,op:"a"})}set(ut,Ye){return this.clone({name:ut,value:Ye,op:"s"})}delete(ut,Ye){return this.clone({name:ut,value:Ye,op:"d"})}maybeSetNormalizedName(ut,Ye){this.normalizedNames.has(Ye)||this.normalizedNames.set(Ye,ut)}init(){this.lazyInit&&(this.lazyInit instanceof p?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ut=>this.applyUpdate(ut)),this.lazyUpdate=null))}copyFrom(ut){ut.init(),Array.from(ut.headers.keys()).forEach(Ye=>{this.headers.set(Ye,ut.headers.get(Ye)),this.normalizedNames.set(Ye,ut.normalizedNames.get(Ye))})}clone(ut){const Ye=new p;return Ye.lazyInit=this.lazyInit&&this.lazyInit instanceof p?this.lazyInit:this,Ye.lazyUpdate=(this.lazyUpdate||[]).concat([ut]),Ye}applyUpdate(ut){const Ye=ut.name.toLowerCase();switch(ut.op){case"a":case"s":let mt=ut.value;if("string"==typeof mt&&(mt=[mt]),0===mt.length)return;this.maybeSetNormalizedName(ut.name,Ye);const Ee=("a"===ut.op?this.headers.get(Ye):void 0)||[];Ee.push(...mt),this.headers.set(Ye,Ee);break;case"d":const Mt=ut.value;if(Mt){let H=this.headers.get(Ye);if(!H)return;H=H.filter(pe=>-1===Mt.indexOf(pe)),0===H.length?(this.headers.delete(Ye),this.normalizedNames.delete(Ye)):this.headers.set(Ye,H)}else this.headers.delete(Ye),this.normalizedNames.delete(Ye)}}setHeaderEntries(ut,Ye){const mt=(Array.isArray(Ye)?Ye:[Ye]).map(Mt=>Mt.toString()),Ee=ut.toLowerCase();this.headers.set(Ee,mt),this.maybeSetNormalizedName(ut,Ee)}forEach(ut){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ye=>ut(this.normalizedNames.get(Ye),this.headers.get(Ye)))}}class y{encodeKey(ut){return I(ut)}encodeValue(ut){return I(ut)}decodeKey(ut){return decodeURIComponent(ut)}decodeValue(ut){return decodeURIComponent(ut)}}const w=/%(\d[a-f0-9])/gi,k={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function I(Ue){return encodeURIComponent(Ue).replace(w,(ut,Ye)=>k[Ye]??ut)}function D(Ue){return`${Ue}`}class O{constructor(ut={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ut.encoder||new y,ut.fromString){if(ut.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function M(Ue,ut){const Ye=new Map;return Ue.length>0&&Ue.replace(/^\?/,"").split("&").forEach(Ee=>{const Mt=Ee.indexOf("="),[H,pe]=-1==Mt?[ut.decodeKey(Ee),""]:[ut.decodeKey(Ee.slice(0,Mt)),ut.decodeValue(Ee.slice(Mt+1))],le=Ye.get(H)||[];le.push(pe),Ye.set(H,le)}),Ye}(ut.fromString,this.encoder)}else ut.fromObject?(this.map=new Map,Object.keys(ut.fromObject).forEach(Ye=>{const mt=ut.fromObject[Ye],Ee=Array.isArray(mt)?mt.map(D):[D(mt)];this.map.set(Ye,Ee)})):this.map=null}has(ut){return this.init(),this.map.has(ut)}get(ut){this.init();const Ye=this.map.get(ut);return Ye?Ye[0]:null}getAll(ut){return this.init(),this.map.get(ut)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ut,Ye){return this.clone({param:ut,value:Ye,op:"a"})}appendAll(ut){const Ye=[];return Object.keys(ut).forEach(mt=>{const Ee=ut[mt];Array.isArray(Ee)?Ee.forEach(Mt=>{Ye.push({param:mt,value:Mt,op:"a"})}):Ye.push({param:mt,value:Ee,op:"a"})}),this.clone(Ye)}set(ut,Ye){return this.clone({param:ut,value:Ye,op:"s"})}delete(ut,Ye){return this.clone({param:ut,value:Ye,op:"d"})}toString(){return this.init(),this.keys().map(ut=>{const Ye=this.encoder.encodeKey(ut);return this.map.get(ut).map(mt=>Ye+"="+this.encoder.encodeValue(mt)).join("&")}).filter(ut=>""!==ut).join("&")}clone(ut){const Ye=new O({encoder:this.encoder});return Ye.cloneFrom=this.cloneFrom||this,Ye.updates=(this.updates||[]).concat(ut),Ye}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ut=>this.map.set(ut,this.cloneFrom.map.get(ut))),this.updates.forEach(ut=>{switch(ut.op){case"a":case"s":const Ye=("a"===ut.op?this.map.get(ut.param):void 0)||[];Ye.push(D(ut.value)),this.map.set(ut.param,Ye);break;case"d":if(void 0===ut.value){this.map.delete(ut.param);break}{let mt=this.map.get(ut.param)||[];const Ee=mt.indexOf(D(ut.value));-1!==Ee&&mt.splice(Ee,1),mt.length>0?this.map.set(ut.param,mt):this.map.delete(ut.param)}}}),this.cloneFrom=this.updates=null)}}class T{constructor(ut){this.defaultValue=ut}}class U{constructor(){this.map=new Map}set(ut,Ye){return this.map.set(ut,Ye),this}get(ut){return this.map.has(ut)||this.map.set(ut,ut.defaultValue()),this.map.get(ut)}delete(ut){return this.map.delete(ut),this}has(ut){return this.map.has(ut)}keys(){return this.map.keys()}}function R(Ue){return typeof ArrayBuffer<"u"&&Ue instanceof ArrayBuffer}function N(Ue){return typeof Blob<"u"&&Ue instanceof Blob}function A(Ue){return typeof FormData<"u"&&Ue instanceof FormData}class Y{constructor(ut,Ye,mt,Ee){let Mt;if(this.url=Ye,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ut.toUpperCase(),function S(Ue){switch(Ue){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ee?(this.body=void 0!==mt?mt:null,Mt=Ee):Mt=mt,Mt&&(this.reportProgress=!!Mt.reportProgress,this.withCredentials=!!Mt.withCredentials,Mt.responseType&&(this.responseType=Mt.responseType),Mt.headers&&(this.headers=Mt.headers),Mt.context&&(this.context=Mt.context),Mt.params&&(this.params=Mt.params),this.transferCache=Mt.transferCache),this.headers??=new p,this.context??=new U,this.params){const H=this.params.toString();if(0===H.length)this.urlWithParams=Ye;else{const pe=Ye.indexOf("?");this.urlWithParams=Ye+(-1===pe?"?":peGn.set(Jn,ut.setHeaders[Jn]),Ve)),ut.setParams&&(wt=Object.keys(ut.setParams).reduce((Gn,Jn)=>Gn.set(Jn,ut.setParams[Jn]),wt)),new Y(Ye,mt,H,{params:wt,headers:Ve,context:ln,reportProgress:le,responseType:Ee,withCredentials:pe,transferCache:Mt})}}var ee=function(Ue){return Ue[Ue.Sent=0]="Sent",Ue[Ue.UploadProgress=1]="UploadProgress",Ue[Ue.ResponseHeader=2]="ResponseHeader",Ue[Ue.DownloadProgress=3]="DownloadProgress",Ue[Ue.Response=4]="Response",Ue[Ue.User=5]="User",Ue}(ee||{});class ie{constructor(ut,Ye=V.Ok,mt="OK"){this.headers=ut.headers||new p,this.status=void 0!==ut.status?ut.status:Ye,this.statusText=ut.statusText||mt,this.url=ut.url||null,this.ok=this.status>=200&&this.status<300}}class $ extends ie{constructor(ut={}){super(ut),this.type=ee.ResponseHeader}clone(ut={}){return new $({headers:ut.headers||this.headers,status:void 0!==ut.status?ut.status:this.status,statusText:ut.statusText||this.statusText,url:ut.url||this.url||void 0})}}class j extends ie{constructor(ut={}){super(ut),this.type=ee.Response,this.body=void 0!==ut.body?ut.body:null}clone(ut={}){return new j({body:void 0!==ut.body?ut.body:this.body,headers:ut.headers||this.headers,status:void 0!==ut.status?ut.status:this.status,statusText:ut.statusText||this.statusText,url:ut.url||this.url||void 0})}}class G extends ie{constructor(ut){super(ut,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ut.url||"(unknown url)"}`:`Http failure response for ${ut.url||"(unknown url)"}: ${ut.status} ${ut.statusText}`,this.error=ut.error||null}}var V=function(Ue){return Ue[Ue.Continue=100]="Continue",Ue[Ue.SwitchingProtocols=101]="SwitchingProtocols",Ue[Ue.Processing=102]="Processing",Ue[Ue.EarlyHints=103]="EarlyHints",Ue[Ue.Ok=200]="Ok",Ue[Ue.Created=201]="Created",Ue[Ue.Accepted=202]="Accepted",Ue[Ue.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",Ue[Ue.NoContent=204]="NoContent",Ue[Ue.ResetContent=205]="ResetContent",Ue[Ue.PartialContent=206]="PartialContent",Ue[Ue.MultiStatus=207]="MultiStatus",Ue[Ue.AlreadyReported=208]="AlreadyReported",Ue[Ue.ImUsed=226]="ImUsed",Ue[Ue.MultipleChoices=300]="MultipleChoices",Ue[Ue.MovedPermanently=301]="MovedPermanently",Ue[Ue.Found=302]="Found",Ue[Ue.SeeOther=303]="SeeOther",Ue[Ue.NotModified=304]="NotModified",Ue[Ue.UseProxy=305]="UseProxy",Ue[Ue.Unused=306]="Unused",Ue[Ue.TemporaryRedirect=307]="TemporaryRedirect",Ue[Ue.PermanentRedirect=308]="PermanentRedirect",Ue[Ue.BadRequest=400]="BadRequest",Ue[Ue.Unauthorized=401]="Unauthorized",Ue[Ue.PaymentRequired=402]="PaymentRequired",Ue[Ue.Forbidden=403]="Forbidden",Ue[Ue.NotFound=404]="NotFound",Ue[Ue.MethodNotAllowed=405]="MethodNotAllowed",Ue[Ue.NotAcceptable=406]="NotAcceptable",Ue[Ue.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",Ue[Ue.RequestTimeout=408]="RequestTimeout",Ue[Ue.Conflict=409]="Conflict",Ue[Ue.Gone=410]="Gone",Ue[Ue.LengthRequired=411]="LengthRequired",Ue[Ue.PreconditionFailed=412]="PreconditionFailed",Ue[Ue.PayloadTooLarge=413]="PayloadTooLarge",Ue[Ue.UriTooLong=414]="UriTooLong",Ue[Ue.UnsupportedMediaType=415]="UnsupportedMediaType",Ue[Ue.RangeNotSatisfiable=416]="RangeNotSatisfiable",Ue[Ue.ExpectationFailed=417]="ExpectationFailed",Ue[Ue.ImATeapot=418]="ImATeapot",Ue[Ue.MisdirectedRequest=421]="MisdirectedRequest",Ue[Ue.UnprocessableEntity=422]="UnprocessableEntity",Ue[Ue.Locked=423]="Locked",Ue[Ue.FailedDependency=424]="FailedDependency",Ue[Ue.TooEarly=425]="TooEarly",Ue[Ue.UpgradeRequired=426]="UpgradeRequired",Ue[Ue.PreconditionRequired=428]="PreconditionRequired",Ue[Ue.TooManyRequests=429]="TooManyRequests",Ue[Ue.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",Ue[Ue.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",Ue[Ue.InternalServerError=500]="InternalServerError",Ue[Ue.NotImplemented=501]="NotImplemented",Ue[Ue.BadGateway=502]="BadGateway",Ue[Ue.ServiceUnavailable=503]="ServiceUnavailable",Ue[Ue.GatewayTimeout=504]="GatewayTimeout",Ue[Ue.HttpVersionNotSupported=505]="HttpVersionNotSupported",Ue[Ue.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",Ue[Ue.InsufficientStorage=507]="InsufficientStorage",Ue[Ue.LoopDetected=508]="LoopDetected",Ue[Ue.NotExtended=510]="NotExtended",Ue[Ue.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",Ue}(V||{});function W(Ue,ut){return{body:ut,headers:Ue.headers,context:Ue.context,observe:Ue.observe,params:Ue.params,reportProgress:Ue.reportProgress,responseType:Ue.responseType,withCredentials:Ue.withCredentials,transferCache:Ue.transferCache}}let K=(()=>{class Ue{constructor(Ye){this.handler=Ye}request(Ye,mt,Ee={}){let Mt;if(Ye instanceof Y)Mt=Ye;else{let le,Ve;le=Ee.headers instanceof p?Ee.headers:new p(Ee.headers),Ee.params&&(Ve=Ee.params instanceof O?Ee.params:new O({fromObject:Ee.params})),Mt=new Y(Ye,mt,void 0!==Ee.body?Ee.body:null,{headers:le,context:Ee.context,params:Ve,reportProgress:Ee.reportProgress,responseType:Ee.responseType||"json",withCredentials:Ee.withCredentials,transferCache:Ee.transferCache})}const H=(0,C.of)(Mt).pipe((0,b.H)(le=>this.handler.handle(le)));if(Ye instanceof Y||"events"===Ee.observe)return H;const pe=H.pipe((0,s.p)(le=>le instanceof j));switch(Ee.observe||"body"){case"body":switch(Mt.responseType){case"arraybuffer":return pe.pipe((0,f.T)(le=>{if(null!==le.body&&!(le.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return le.body}));case"blob":return pe.pipe((0,f.T)(le=>{if(null!==le.body&&!(le.body instanceof Blob))throw new Error("Response is not a Blob.");return le.body}));case"text":return pe.pipe((0,f.T)(le=>{if(null!==le.body&&"string"!=typeof le.body)throw new Error("Response is not a string.");return le.body}));default:return pe.pipe((0,f.T)(le=>le.body))}case"response":return pe;default:throw new Error(`Unreachable: unhandled observe type ${Ee.observe}}`)}}delete(Ye,mt={}){return this.request("DELETE",Ye,mt)}get(Ye,mt={}){return this.request("GET",Ye,mt)}head(Ye,mt={}){return this.request("HEAD",Ye,mt)}jsonp(Ye,mt){return this.request("JSONP",Ye,{params:(new O).append(mt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ye,mt={}){return this.request("OPTIONS",Ye,mt)}patch(Ye,mt,Ee={}){return this.request("PATCH",Ye,W(Ee,mt))}post(Ye,mt,Ee={}){return this.request("POST",Ye,W(Ee,mt))}put(Ye,mt,Ee={}){return this.request("PUT",Ye,W(Ee,mt))}static#e=this.\u0275fac=function(mt){return new(mt||Ue)(_.\u0275\u0275inject(u))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac})}return Ue})();const ce=/^\)\]\}',?\n/;function be(Ue){if(Ue.url)return Ue.url;const ut="X-Request-URL".toLocaleLowerCase();return Ue.headers.get(ut)}let Ze=(()=>{class Ue{constructor(){this.fetchImpl=(0,_.inject)(pt,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=(0,_.inject)(_.NgZone)}handle(Ye){return new E.c(mt=>{const Ee=new AbortController;return this.doRequest(Ye,Ee.signal,mt).then(ct,Mt=>mt.error(new G({error:Mt}))),()=>Ee.abort()})}doRequest(Ye,mt,Ee){var Mt=this;return(0,t.A)(function*(){const H=Mt.createRequestInit(Ye);let pe;try{const ti=Mt.fetchImpl(Ye.urlWithParams,{signal:mt,...H});(function Ct(Ue){Ue.then(ct,ct)})(ti),Ee.next({type:ee.Sent}),pe=yield ti}catch(ti){return void Ee.error(new G({error:ti,status:ti.status??0,statusText:ti.statusText,url:Ye.urlWithParams,headers:ti.headers}))}const le=new p(pe.headers),Ve=pe.statusText,wt=be(pe)??Ye.urlWithParams;let ln=pe.status,Gn=null;if(Ye.reportProgress&&Ee.next(new $({headers:le,status:ln,statusText:Ve,url:wt})),pe.body){const ti=pe.headers.get("content-length"),In=[],Fn=pe.body.getReader();let ar,_i,yi=0;const hi=typeof Zone<"u"&&Zone.current;yield Mt.ngZone.runOutsideAngular((0,t.A)(function*(){for(;;){const{done:Ri,value:On}=yield Fn.read();if(Ri)break;if(In.push(On),yi+=On.length,Ye.reportProgress){_i="text"===Ye.responseType?(_i??"")+(ar??=new TextDecoder).decode(On,{stream:!0}):void 0;const yn=()=>Ee.next({type:ee.DownloadProgress,total:ti?+ti:void 0,loaded:yi,partialText:_i});hi?hi.run(yn):yn()}}}));const xi=Mt.concatChunks(In,yi);try{const Ri=pe.headers.get("Content-Type")??"";Gn=Mt.parseBody(Ye,xi,Ri)}catch(Ri){return void Ee.error(new G({error:Ri,headers:new p(pe.headers),status:pe.status,statusText:pe.statusText,url:be(pe)??Ye.urlWithParams}))}}0===ln&&(ln=Gn?V.Ok:0),ln>=200&&ln<300?(Ee.next(new j({body:Gn,headers:le,status:ln,statusText:Ve,url:wt})),Ee.complete()):Ee.error(new G({error:Gn,headers:le,status:ln,statusText:Ve,url:wt}))})()}parseBody(Ye,mt,Ee){switch(Ye.responseType){case"json":const Mt=(new TextDecoder).decode(mt).replace(ce,"");return""===Mt?null:JSON.parse(Mt);case"text":return(new TextDecoder).decode(mt);case"blob":return new Blob([mt],{type:Ee});case"arraybuffer":return mt.buffer}}createRequestInit(Ye){const mt={},Ee=Ye.withCredentials?"include":void 0;if(Ye.headers.forEach((Mt,H)=>mt[Mt]=H.join(",")),mt.Accept??="application/json, text/plain, */*",!mt["Content-Type"]){const Mt=Ye.detectContentTypeHeader();null!==Mt&&(mt["Content-Type"]=Mt)}return{body:Ye.serializeBody(),method:Ye.method,headers:mt,credentials:Ee}}concatChunks(Ye,mt){const Ee=new Uint8Array(mt);let Mt=0;for(const H of Ye)Ee.set(H,Mt),Mt+=H.length;return Ee}static#e=this.\u0275fac=function(mt){return new(mt||Ue)};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac})}return Ue})();class pt{}function ct(){}function Ne(Ue,ut){return ut(Ue)}function Ae(Ue,ut){return(Ye,mt)=>ut.intercept(Ye,{handle:Ee=>Ue(Ee,mt)})}const We=new _.InjectionToken(""),Pe=new _.InjectionToken(""),Me=new _.InjectionToken(""),$e=new _.InjectionToken("");function q(){let Ue=null;return(ut,Ye)=>{null===Ue&&(Ue=((0,_.inject)(We,{optional:!0})??[]).reduceRight(Ae,Ne));const mt=(0,_.inject)(_.\u0275PendingTasks),Ee=mt.add();return Ue(ut,Ye).pipe((0,d.j)(()=>mt.remove(Ee)))}}let we,vt=(()=>{class Ue extends u{constructor(Ye,mt){super(),this.backend=Ye,this.injector=mt,this.chain=null,this.pendingTasks=(0,_.inject)(_.\u0275PendingTasks);const Ee=(0,_.inject)($e,{optional:!0});this.backend=Ee??Ye}handle(Ye){if(null===this.chain){const Ee=Array.from(new Set([...this.injector.get(Pe),...this.injector.get(Me,[])]));this.chain=Ee.reduceRight((Mt,H)=>function fe(Ue,ut,Ye){return(mt,Ee)=>(0,_.runInInjectionContext)(Ye,()=>ut(mt,Mt=>Ue(Mt,Ee)))}(Mt,H,this.injector),Ne)}const mt=this.pendingTasks.add();return this.chain(Ye,Ee=>this.backend.handle(Ee)).pipe((0,d.j)(()=>this.pendingTasks.remove(mt)))}static#e=this.\u0275fac=function(mt){return new(mt||Ue)(_.\u0275\u0275inject(h),_.\u0275\u0275inject(_.EnvironmentInjector))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac})}return Ue})(),rt=0;class jt{}function Xt(){return"object"==typeof window?window:{}}let un=(()=>{class Ue{constructor(Ye,mt){this.callbackMap=Ye,this.document=mt,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+rt++}handle(Ye){if("JSONP"!==Ye.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==Ye.responseType)throw new Error("JSONP requests must use Json response type.");if(Ye.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new E.c(mt=>{const Ee=this.nextCallback(),Mt=Ye.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${Ee}$1`),H=this.document.createElement("script");H.src=Mt;let pe=null,le=!1;this.callbackMap[Ee]=Gn=>{delete this.callbackMap[Ee],pe=Gn,le=!0};const Ve=()=>{H.parentNode&&H.parentNode.removeChild(H),delete this.callbackMap[Ee]};return H.addEventListener("load",Gn=>{this.resolvedPromise.then(()=>{Ve(),le?(mt.next(new j({body:pe,status:V.Ok,statusText:"OK",url:Mt})),mt.complete()):mt.error(new G({url:Mt,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),H.addEventListener("error",Gn=>{Ve(),mt.error(new G({error:Gn,status:0,statusText:"JSONP Error",url:Mt}))}),this.document.body.appendChild(H),mt.next({type:ee.Sent}),()=>{le||this.removeListeners(H),Ve()}})}removeListeners(Ye){we??=this.document.implementation.createHTMLDocument(),we.adoptNode(Ye)}static#e=this.\u0275fac=function(mt){return new(mt||Ue)(_.\u0275\u0275inject(jt),_.\u0275\u0275inject(r.DOCUMENT))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac})}return Ue})();function dn(Ue,ut){return"JSONP"===Ue.method?(0,_.inject)(un).handle(Ue):ut(Ue)}let cn=(()=>{class Ue{constructor(Ye){this.injector=Ye}intercept(Ye,mt){return(0,_.runInInjectionContext)(this.injector,()=>dn(Ye,Ee=>mt.handle(Ee)))}static#e=this.\u0275fac=function(mt){return new(mt||Ue)(_.\u0275\u0275inject(_.EnvironmentInjector))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac})}return Ue})();const rn=/^\)\]\}',?\n/;let Nt=(()=>{class Ue{constructor(Ye){this.xhrFactory=Ye}handle(Ye){if("JSONP"===Ye.method)throw new _.\u0275RuntimeError(-2800,!1);const mt=this.xhrFactory;return(mt.\u0275loadImpl?(0,c.H)(mt.\u0275loadImpl()):(0,C.of)(null)).pipe((0,a.n)(()=>new E.c(Mt=>{const H=mt.build();if(H.open(Ye.method,Ye.urlWithParams),Ye.withCredentials&&(H.withCredentials=!0),Ye.headers.forEach((In,Fn)=>H.setRequestHeader(In,Fn.join(","))),Ye.headers.has("Accept")||H.setRequestHeader("Accept","application/json, text/plain, */*"),!Ye.headers.has("Content-Type")){const In=Ye.detectContentTypeHeader();null!==In&&H.setRequestHeader("Content-Type",In)}if(Ye.responseType){const In=Ye.responseType.toLowerCase();H.responseType="json"!==In?In:"text"}const pe=Ye.serializeBody();let le=null;const Ve=()=>{if(null!==le)return le;const In=H.statusText||"OK",Fn=new p(H.getAllResponseHeaders()),yi=function hn(Ue){return"responseURL"in Ue&&Ue.responseURL?Ue.responseURL:/^X-Request-URL:/m.test(Ue.getAllResponseHeaders())?Ue.getResponseHeader("X-Request-URL"):null}(H)||Ye.url;return le=new $({headers:Fn,status:H.status,statusText:In,url:yi}),le},wt=()=>{let{headers:In,status:Fn,statusText:yi,url:ar}=Ve(),_i=null;Fn!==V.NoContent&&(_i=typeof H.response>"u"?H.responseText:H.response),0===Fn&&(Fn=_i?V.Ok:0);let hi=Fn>=200&&Fn<300;if("json"===Ye.responseType&&"string"==typeof _i){const xi=_i;_i=_i.replace(rn,"");try{_i=""!==_i?JSON.parse(_i):null}catch(Ri){_i=xi,hi&&(hi=!1,_i={error:Ri,text:_i})}}hi?(Mt.next(new j({body:_i,headers:In,status:Fn,statusText:yi,url:ar||void 0})),Mt.complete()):Mt.error(new G({error:_i,headers:In,status:Fn,statusText:yi,url:ar||void 0}))},ln=In=>{const{url:Fn}=Ve(),yi=new G({error:In,status:H.status||0,statusText:H.statusText||"Unknown Error",url:Fn||void 0});Mt.error(yi)};let Gn=!1;const Jn=In=>{Gn||(Mt.next(Ve()),Gn=!0);let Fn={type:ee.DownloadProgress,loaded:In.loaded};In.lengthComputable&&(Fn.total=In.total),"text"===Ye.responseType&&H.responseText&&(Fn.partialText=H.responseText),Mt.next(Fn)},ti=In=>{let Fn={type:ee.UploadProgress,loaded:In.loaded};In.lengthComputable&&(Fn.total=In.total),Mt.next(Fn)};return H.addEventListener("load",wt),H.addEventListener("error",ln),H.addEventListener("timeout",ln),H.addEventListener("abort",ln),Ye.reportProgress&&(H.addEventListener("progress",Jn),null!==pe&&H.upload&&H.upload.addEventListener("progress",ti)),H.send(pe),Mt.next({type:ee.Sent}),()=>{H.removeEventListener("error",ln),H.removeEventListener("abort",ln),H.removeEventListener("load",wt),H.removeEventListener("timeout",ln),Ye.reportProgress&&(H.removeEventListener("progress",Jn),null!==pe&&H.upload&&H.upload.removeEventListener("progress",ti)),H.readyState!==H.DONE&&H.abort()}})))}static#e=this.\u0275fac=function(mt){return new(mt||Ue)(_.\u0275\u0275inject(r.XhrFactory))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac})}return Ue})();const Bt=new _.InjectionToken(""),ve="XSRF-TOKEN",Qe=new _.InjectionToken("",{providedIn:"root",factory:()=>ve}),Xe="X-XSRF-TOKEN",Ot=new _.InjectionToken("",{providedIn:"root",factory:()=>Xe});class nt{}let ft=(()=>{class Ue{constructor(Ye,mt,Ee){this.doc=Ye,this.platform=mt,this.cookieName=Ee,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Ye=this.doc.cookie||"";return Ye!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,r.\u0275parseCookieValue)(Ye,this.cookieName),this.lastCookieString=Ye),this.lastToken}static#e=this.\u0275fac=function(mt){return new(mt||Ue)(_.\u0275\u0275inject(r.DOCUMENT),_.\u0275\u0275inject(_.PLATFORM_ID),_.\u0275\u0275inject(Qe))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac})}return Ue})();function Re(Ue,ut){const Ye=Ue.url.toLowerCase();if(!(0,_.inject)(Bt)||"GET"===Ue.method||"HEAD"===Ue.method||Ye.startsWith("http://")||Ye.startsWith("https://"))return ut(Ue);const mt=(0,_.inject)(nt).getToken(),Ee=(0,_.inject)(Ot);return null!=mt&&!Ue.headers.has(Ee)&&(Ue=Ue.clone({headers:Ue.headers.set(Ee,mt)})),ut(Ue)}let me=(()=>{class Ue{constructor(Ye){this.injector=Ye}intercept(Ye,mt){return(0,_.runInInjectionContext)(this.injector,()=>Re(Ye,Ee=>mt.handle(Ee)))}static#e=this.\u0275fac=function(mt){return new(mt||Ue)(_.\u0275\u0275inject(_.EnvironmentInjector))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac})}return Ue})();var Ke=function(Ue){return Ue[Ue.Interceptors=0]="Interceptors",Ue[Ue.LegacyInterceptors=1]="LegacyInterceptors",Ue[Ue.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ue[Ue.NoXsrfProtection=3]="NoXsrfProtection",Ue[Ue.JsonpSupport=4]="JsonpSupport",Ue[Ue.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ue[Ue.Fetch=6]="Fetch",Ue}(Ke||{});function te(Ue,ut){return{\u0275kind:Ue,\u0275providers:ut}}function de(...Ue){const ut=[K,Nt,vt,{provide:u,useExisting:vt},{provide:h,useExisting:Nt},{provide:Pe,useValue:Re,multi:!0},{provide:Bt,useValue:!0},{provide:nt,useClass:ft}];for(const Ye of Ue)ut.push(...Ye.\u0275providers);return(0,_.makeEnvironmentProviders)(ut)}function Se(Ue){return te(Ke.Interceptors,Ue.map(ut=>({provide:Pe,useValue:ut,multi:!0})))}const it=new _.InjectionToken("");function It(){return te(Ke.LegacyInterceptors,[{provide:it,useFactory:q},{provide:Pe,useExisting:it,multi:!0}])}function Gt({cookieName:Ue,headerName:ut}){const Ye=[];return void 0!==Ue&&Ye.push({provide:Qe,useValue:Ue}),void 0!==ut&&Ye.push({provide:Ot,useValue:ut}),te(Ke.CustomXsrfConfiguration,Ye)}function an(){return te(Ke.NoXsrfProtection,[{provide:Bt,useValue:!1}])}function _t(){return te(Ke.JsonpSupport,[un,{provide:jt,useFactory:Xt},{provide:Pe,useValue:dn,multi:!0}])}function Lt(){return te(Ke.RequestsMadeViaParent,[{provide:h,useFactory:()=>(0,_.inject)(u,{skipSelf:!0,optional:!0})}])}function qe(){return te(Ke.Fetch,[Ze,{provide:h,useExisting:Ze},{provide:$e,useExisting:Ze}])}let Fe=(()=>{class Ue{static disable(){return{ngModule:Ue,providers:[an().\u0275providers]}}static withOptions(Ye={}){return{ngModule:Ue,providers:Gt(Ye).\u0275providers}}static#e=this.\u0275fac=function(mt){return new(mt||Ue)};static#t=this.\u0275mod=_.\u0275\u0275defineNgModule({type:Ue});static#n=this.\u0275inj=_.\u0275\u0275defineInjector({providers:[me,{provide:We,useExisting:me,multi:!0},{provide:nt,useClass:ft},Gt({cookieName:ve,headerName:Xe}).\u0275providers,{provide:Bt,useValue:!0}]})}return Ue})(),tt=(()=>{class Ue{static#e=this.\u0275fac=function(mt){return new(mt||Ue)};static#t=this.\u0275mod=_.\u0275\u0275defineNgModule({type:Ue});static#n=this.\u0275inj=_.\u0275\u0275defineInjector({providers:[de(It())]})}return Ue})(),He=(()=>{class Ue{static#e=this.\u0275fac=function(mt){return new(mt||Ue)};static#t=this.\u0275mod=_.\u0275\u0275defineNgModule({type:Ue});static#n=this.\u0275inj=_.\u0275\u0275defineInjector({providers:[_t().\u0275providers]})}return Ue})();const dt="b",At="h",qt="s",Cn="st",Ln="u",Oi="rt",Ei=new _.InjectionToken(""),jn=["GET","HEAD"];function at(Ue,ut){const{isCacheActive:Ye,...mt}=(0,_.inject)(Ei),{transferCache:Ee,method:Mt}=Ue;if(!Ye||"POST"===Mt&&!mt.includePostRequests&&!Ee||"POST"!==Mt&&!jn.includes(Mt)||!1===Ee||!1===mt.filter?.(Ue))return ut(Ue);const H=(0,_.inject)(_.TransferState),pe=function lt(Ue){const{params:ut,method:Ye,responseType:mt,url:Ee}=Ue,Mt=Be(ut);let H=Ue.serializeBody();H instanceof URLSearchParams?H=Be(H):"string"!=typeof H&&(H="");const le=function Et(Ue){let ut=0;for(const Ye of Ue)ut=Math.imul(31,ut)+Ye.charCodeAt(0)|0;return ut+=2147483648,ut.toString()}([Ye,mt,Ee,H,Mt].join("|"));return(0,_.makeStateKey)(le)}(Ue),le=H.get(pe,null);let Ve=mt.includeHeaders;if("object"==typeof Ee&&Ee.includeHeaders&&(Ve=Ee.includeHeaders),le){const{[dt]:wt,[Oi]:ln,[At]:Gn,[qt]:Jn,[Cn]:ti,[Ln]:In}=le;let Fn=wt;switch(ln){case"arraybuffer":Fn=(new TextEncoder).encode(wt).buffer;break;case"blob":Fn=new Blob([wt])}let yi=new p(Gn);return(0,C.of)(new j({body:Fn,headers:yi,status:Jn,statusText:ti,url:In}))}return ut(Ue).pipe((0,l.M)(wt=>{wt instanceof j&&H.set(pe,{[dt]:wt.body,[At]:Jt(wt.headers,Ve),[qt]:wt.status,[Cn]:wt.statusText,[Ln]:wt.url||"",[Oi]:Ue.responseType})}))}function Jt(Ue,ut){if(!ut)return{};const Ye={};for(const mt of ut){const Ee=Ue.getAll(mt);null!==Ee&&(Ye[mt]=Ee)}return Ye}function Be(Ue){return[...Ue.keys()].sort().map(ut=>`${ut}=${Ue.getAll(ut)}`).join("&")}function nn(Ue){return[{provide:Ei,useFactory:()=>((0,_.\u0275performanceMarkFeature)("NgHttpTransferCache"),{isCacheActive:!0,...Ue})},{provide:Me,useValue:at,multi:!0,deps:[_.TransferState,Ei]},{provide:_.APP_BOOTSTRAP_LISTENER,multi:!0,useFactory:()=>{const ut=(0,_.inject)(_.ApplicationRef),Ye=(0,_.inject)(Ei);return()=>{(0,_.\u0275whenStable)(ut).then(()=>{Ye.isCacheActive=!1})}}}]}},4438:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{ANIMATION_MODULE_TYPE:()=>Lw,APP_BOOTSTRAP_LISTENER:()=>Im,APP_ID:()=>e0,APP_INITIALIZER:()=>_1,AfterRenderPhase:()=>ta,ApplicationInitStatus:()=>Gu,ApplicationModule:()=>KS,ApplicationRef:()=>sa,Attribute:()=>xp,COMPILER_OPTIONS:()=>M1,CSP_NONCE:()=>Nw,CUSTOM_ELEMENTS_SCHEMA:()=>L0,ChangeDetectionStrategy:()=>Yr,ChangeDetectorRef:()=>Om,Compiler:()=>pS,CompilerFactory:()=>gS,Component:()=>RT,ComponentFactory:()=>uu,ComponentFactoryResolver:()=>ec,ComponentRef:()=>Rg,ContentChild:()=>$M,ContentChildren:()=>BM,DEFAULT_CURRENCY_CODE:()=>CS,DebugElement:()=>yc,DebugEventListener:()=>OS,DebugNode:()=>Rm,DefaultIterableDiffer:()=>H1,DestroyRef:()=>ga,Directive:()=>s1,ENVIRONMENT_INITIALIZER:()=>ns,ElementRef:()=>Al,EmbeddedViewRef:()=>kS,EnvironmentInjector:()=>Lr,ErrorHandler:()=>Lo,EventEmitter:()=>wo,Host:()=>sn,HostAttributeToken:()=>iw,HostBinding:()=>FT,HostListener:()=>UT,INJECTOR:()=>Gr,Inject:()=>Tt,InjectFlags:()=>Un,Injectable:()=>nw,InjectionToken:()=>Ee,Injector:()=>xs,Input:()=>NT,IterableDiffers:()=>Um,KeyValueDiffers:()=>Bm,LOCALE_ID:()=>Zu,MissingTranslationStrategy:()=>k1,ModuleWithComponentFactories:()=>x1,NO_ERRORS_SCHEMA:()=>N0,NgModule:()=>BT,NgModuleFactory:()=>F_,NgModuleRef:()=>ya,NgProbeToken:()=>fS,NgZone:()=>gr,Optional:()=>kt,Output:()=>PT,OutputEmitterRef:()=>xd,PACKAGE_ROOT_URL:()=>Rw,PLATFORM_ID:()=>kd,PLATFORM_INITIALIZER:()=>t0,Pipe:()=>LT,PlatformRef:()=>Am,Query:()=>nc,QueryList:()=>Lc,Renderer2:()=>qx,RendererFactory2:()=>Ng,RendererStyleFlags2:()=>Yc,Sanitizer:()=>Pg,SecurityContext:()=>va,Self:()=>$t,SimpleChange:()=>An,SkipSelf:()=>Wt,TRANSLATIONS:()=>wS,TRANSLATIONS_FORMAT:()=>ES,TemplateRef:()=>Zl,Testability:()=>hS,TestabilityRegistry:()=>m1,TransferState:()=>Rl,Type:()=>Qt,VERSION:()=>$T,Version:()=>o1,ViewChild:()=>jM,ViewChildren:()=>VM,ViewContainerRef:()=>_u,ViewEncapsulation:()=>Zr,ViewRef:()=>B1,afterNextRender:()=>Hg,afterRender:()=>jg,asNativeElements:()=>RS,assertInInjectionContext:()=>X,assertNotInReactiveContext:()=>tM,assertPlatform:()=>N1,booleanAttribute:()=>IA,computed:()=>UA,contentChild:()=>NM,contentChildren:()=>PM,createComponent:()=>HA,createEnvironmentInjector:()=>zh,createNgModule:()=>U_,createNgModuleRef:()=>sD,createPlatform:()=>O1,createPlatformFactory:()=>R1,defineInjectable:()=>at,destroyPlatform:()=>xS,effect:()=>_C,enableProdMode:()=>IS,forwardRef:()=>Re,getDebugNode:()=>_l,getModuleFactory:()=>TS,getNgModuleById:()=>SS,getPlatform:()=>Qu,importProvidersFrom:()=>ro,inject:()=>Bn,input:()=>cw,isDevMode:()=>DS,isSignal:()=>$h,isStandalone:()=>Or,makeEnvironmentProviders:()=>ys,makeStateKey:()=>Pw,mergeApplicationConfig:()=>WA,model:()=>UM,numberAttribute:()=>TA,output:()=>aw,platformCore:()=>GS,provideZoneChangeDetection:()=>S1,reflectComponentType:()=>zA,resolveForwardRef:()=>me,runInInjectionContext:()=>uo,setTestabilityGetter:()=>p1,signal:()=>d_,untracked:()=>BA,viewChild:()=>OM,viewChildren:()=>RM,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>km,\u0275AfterRenderEventManager:()=>Ga,\u0275CONTAINER_HEADER_OFFSET:()=>rr,\u0275ChangeDetectionScheduler:()=>cu,\u0275ComponentFactory:()=>uu,\u0275Console:()=>a1,\u0275DEFAULT_LOCALE_ID:()=>Ma,\u0275DEFER_BLOCK_CONFIG:()=>rv,\u0275DEFER_BLOCK_DEPENDENCY_INTERCEPTOR:()=>ID,\u0275DeferBlockBehavior:()=>Gh,\u0275DeferBlockState:()=>fr,\u0275EffectScheduler:()=>gC,\u0275IMAGE_CONFIG:()=>r0,\u0275IMAGE_CONFIG_DEFAULTS:()=>n0,\u0275INJECTOR_SCOPE:()=>Ws,\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE:()=>Ge,\u0275IS_HYDRATION_DOM_REUSE_ENABLED:()=>Ul,\u0275LContext:()=>Fp,\u0275LifecycleHooksFeature:()=>Xg,\u0275LocaleDataIndex:()=>pl,\u0275NG_COMP_DEF:()=>Fn,\u0275NG_DIR_DEF:()=>yi,\u0275NG_ELEMENT_ID:()=>xi,\u0275NG_INJ_DEF:()=>ut,\u0275NG_MOD_DEF:()=>_i,\u0275NG_PIPE_DEF:()=>ar,\u0275NG_PROV_DEF:()=>Ue,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>du,\u0275NO_CHANGE:()=>ai,\u0275NgModuleFactory:()=>Cu,\u0275NoopNgZone:()=>Sh,\u0275PendingTasks:()=>Qa,\u0275ReflectionCapabilities:()=>Ci,\u0275Render3ComponentFactory:()=>Ya,\u0275Render3ComponentRef:()=>Qg,\u0275Render3NgModuleRef:()=>yu,\u0275RuntimeError:()=>_e,\u0275SSR_CONTENT_INTEGRITY_MARKER:()=>s0,\u0275TESTABILITY:()=>h1,\u0275TESTABILITY_GETTER:()=>f1,\u0275USE_RUNTIME_DEPS_TRACKER_FOR_JIT:()=>mu,\u0275ViewRef:()=>za,\u0275XSS_SECURITY_URL:()=>q,\u0275_sanitizeHtml:()=>D0,\u0275_sanitizeUrl:()=>zc,\u0275allowSanitizationBypassAndThrow:()=>Ua,\u0275annotateForHydration:()=>CA,\u0275bypassSanitizationTrustHtml:()=>Jw,\u0275bypassSanitizationTrustResourceUrl:()=>nE,\u0275bypassSanitizationTrustScript:()=>eE,\u0275bypassSanitizationTrustStyle:()=>qw,\u0275bypassSanitizationTrustUrl:()=>tE,\u0275clearResolutionOfComponentResourcesQueue:()=>D_,\u0275compileComponent:()=>Gy,\u0275compileDirective:()=>Em,\u0275compileNgModule:()=>$y,\u0275compileNgModuleDefs:()=>Vy,\u0275compileNgModuleFactory:()=>D1,\u0275compilePipe:()=>n1,\u0275convertToBitFlags:()=>zr,\u0275createInjector:()=>wd,\u0275defaultIterableDiffers:()=>zS,\u0275defaultKeyValueDiffers:()=>WS,\u0275depsTracker:()=>Ka,\u0275detectChangesInViewIfRequired:()=>E1,\u0275devModeEqual:()=>V_,\u0275findLocaleData:()=>Sf,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>Uy,\u0275formatRuntimeError:()=>Oe,\u0275generateStandaloneInDeclarationsError:()=>jy,\u0275getAsyncClassMetadataFn:()=>lD,\u0275getDebugNode:()=>_l,\u0275getDeferBlocks:()=>jm,\u0275getDirectives:()=>Xp,\u0275getEnsureDirtyViewsAreAlwaysReachable:()=>gi,\u0275getHostElement:()=>Sd,\u0275getInjectableDef:()=>Be,\u0275getLContext:()=>ls,\u0275getLocaleCurrencyCode:()=>fI,\u0275getLocalePluralCase:()=>lb,\u0275getOutputDestroyRef:()=>ow,\u0275getSanitizationBypassType:()=>_0,\u0275getUnknownElementStrictMode:()=>xE,\u0275getUnknownPropertyStrictMode:()=>DE,\u0275global:()=>hn,\u0275injectChangeDetectorRef:()=>U1,\u0275internalAfterNextRender:()=>hu,\u0275internalCreateApplication:()=>cA,\u0275isBoundToModule:()=>b1,\u0275isComponentDefPendingResolution:()=>zM,\u0275isEnvironmentProviders:()=>In,\u0275isInjectable:()=>lt,\u0275isNgModule:()=>na,\u0275isPromise:()=>Dm,\u0275isSubscribable:()=>g1,\u0275noSideEffects:()=>ot,\u0275patchComponentDefWithScope:()=>Cm,\u0275performanceMarkFeature:()=>Xs,\u0275provideZonelessChangeDetection:()=>dA,\u0275queueStateUpdate:()=>pC,\u0275readHydrationInfo:()=>c0,\u0275registerLocaleData:()=>hI,\u0275renderDeferBlockState:()=>Uo,\u0275resetCompiledComponents:()=>wT,\u0275resetJitOptions:()=>bT,\u0275resolveComponentResources:()=>x_,\u0275restoreComponentResolutionQueue:()=>WM,\u0275setAllowDuplicateNgModuleIdsForTest:()=>QM,\u0275setAlternateWeakRefImpl:()=>sA,\u0275setClassDebugInfo:()=>Fy,\u0275setClassMetadata:()=>$_,\u0275setClassMetadataAsync:()=>cD,\u0275setCurrentInjector:()=>mr,\u0275setDocument:()=>kw,\u0275setEnsureDirtyViewsAreAlwaysReachable:()=>ko,\u0275setInjectorProfilerContext:()=>pe,\u0275setLocaleId:()=>Af,\u0275setUnknownElementStrictMode:()=>EE,\u0275setUnknownPropertyStrictMode:()=>ME,\u0275store:()=>Yb,\u0275stringify:()=>Xe,\u0275transitiveScopesFor:()=>Da,\u0275triggerResourceLoading:()=>Au,\u0275truncateMiddle:()=>nt,\u0275unregisterLocaleData:()=>mI,\u0275unwrapSafeValue:()=>No,\u0275unwrapWritableSignal:()=>SM,\u0275whenStable:()=>w1,\u0275withDomHydration:()=>mA,\u0275withI18nHydration:()=>pA,\u0275\u0275CopyDefinitionFeature:()=>k_,\u0275\u0275FactoryTarget:()=>Le,\u0275\u0275HostDirectivesFeature:()=>O_,\u0275\u0275InheritDefinitionFeature:()=>Hh,\u0275\u0275InputFlags:()=>Qr,\u0275\u0275InputTransformsFeature:()=>P_,\u0275\u0275NgOnChangesFeature:()=>zn,\u0275\u0275ProvidersFeature:()=>cy,\u0275\u0275StandaloneFeature:()=>uy,\u0275\u0275advance:()=>rg,\u0275\u0275attribute:()=>tf,\u0275\u0275attributeInterpolate1:()=>nf,\u0275\u0275attributeInterpolate2:()=>rf,\u0275\u0275attributeInterpolate3:()=>sf,\u0275\u0275attributeInterpolate4:()=>af,\u0275\u0275attributeInterpolate5:()=>lf,\u0275\u0275attributeInterpolate6:()=>cf,\u0275\u0275attributeInterpolate7:()=>uf,\u0275\u0275attributeInterpolate8:()=>df,\u0275\u0275attributeInterpolateV:()=>hf,\u0275\u0275classMap:()=>Lv,\u0275\u0275classMapInterpolate1:()=>Vv,\u0275\u0275classMapInterpolate2:()=>jv,\u0275\u0275classMapInterpolate3:()=>Hv,\u0275\u0275classMapInterpolate4:()=>zv,\u0275\u0275classMapInterpolate5:()=>Wv,\u0275\u0275classMapInterpolate6:()=>Gv,\u0275\u0275classMapInterpolate7:()=>Kv,\u0275\u0275classMapInterpolate8:()=>Yv,\u0275\u0275classMapInterpolateV:()=>Zv,\u0275\u0275classProp:()=>bf,\u0275\u0275componentInstance:()=>Qv,\u0275\u0275conditional:()=>eb,\u0275\u0275contentQuery:()=>Vb,\u0275\u0275contentQuerySignal:()=>Wb,\u0275\u0275defer:()=>ov,\u0275\u0275deferEnableTimerScheduling:()=>sv,\u0275\u0275deferOnHover:()=>pv,\u0275\u0275deferOnIdle:()=>cv,\u0275\u0275deferOnImmediate:()=>dv,\u0275\u0275deferOnInteraction:()=>_v,\u0275\u0275deferOnTimer:()=>fv,\u0275\u0275deferOnViewport:()=>bv,\u0275\u0275deferPrefetchOnHover:()=>gv,\u0275\u0275deferPrefetchOnIdle:()=>uv,\u0275\u0275deferPrefetchOnImmediate:()=>hv,\u0275\u0275deferPrefetchOnInteraction:()=>vv,\u0275\u0275deferPrefetchOnTimer:()=>mv,\u0275\u0275deferPrefetchOnViewport:()=>yv,\u0275\u0275deferPrefetchWhen:()=>lv,\u0275\u0275deferWhen:()=>av,\u0275\u0275defineComponent:()=>jo,\u0275\u0275defineDirective:()=>Xr,\u0275\u0275defineInjectable:()=>jn,\u0275\u0275defineInjector:()=>Jt,\u0275\u0275defineNgModule:()=>Us,\u0275\u0275definePipe:()=>To,\u0275\u0275directiveInject:()=>Va,\u0275\u0275disableBindings:()=>Ym,\u0275\u0275element:()=>Mf,\u0275\u0275elementContainer:()=>Df,\u0275\u0275elementContainerEnd:()=>Pu,\u0275\u0275elementContainerStart:()=>Nu,\u0275\u0275elementEnd:()=>Lu,\u0275\u0275elementStart:()=>Ru,\u0275\u0275enableBindings:()=>Km,\u0275\u0275getComponentDepsFactory:()=>Py,\u0275\u0275getCurrentView:()=>ab,\u0275\u0275getInheritedFactory:()=>wp,\u0275\u0275hostProperty:()=>If,\u0275\u0275i18n:()=>Ob,\u0275\u0275i18nApply:()=>Lb,\u0275\u0275i18nAttributes:()=>Rb,\u0275\u0275i18nEnd:()=>Lf,\u0275\u0275i18nExp:()=>Nf,\u0275\u0275i18nPostprocess:()=>Nb,\u0275\u0275i18nStart:()=>Rf,\u0275\u0275inject:()=>Li,\u0275\u0275injectAttribute:()=>Oc,\u0275\u0275invalidFactory:()=>og,\u0275\u0275invalidFactoryDep:()=>ts,\u0275\u0275listener:()=>Pf,\u0275\u0275loadQuery:()=>zb,\u0275\u0275namespaceHTML:()=>lp,\u0275\u0275namespaceMathML:()=>ap,\u0275\u0275namespaceSVG:()=>op,\u0275\u0275nextContext:()=>Ub,\u0275\u0275ngDeclareClassMetadata:()=>AA,\u0275\u0275ngDeclareComponent:()=>kA,\u0275\u0275ngDeclareDirective:()=>SA,\u0275\u0275ngDeclareFactory:()=>OA,\u0275\u0275ngDeclareInjectable:()=>LA,\u0275\u0275ngDeclareInjector:()=>NA,\u0275\u0275ngDeclareNgModule:()=>PA,\u0275\u0275ngDeclarePipe:()=>FA,\u0275\u0275pipe:()=>Sy,\u0275\u0275pipeBind1:()=>Ay,\u0275\u0275pipeBind2:()=>ky,\u0275\u0275pipeBind3:()=>Oy,\u0275\u0275pipeBind4:()=>Ry,\u0275\u0275pipeBindV:()=>Ly,\u0275\u0275projection:()=>$b,\u0275\u0275projectionDef:()=>Bb,\u0275\u0275property:()=>gf,\u0275\u0275propertyInterpolate:()=>Bf,\u0275\u0275propertyInterpolate1:()=>Vu,\u0275\u0275propertyInterpolate2:()=>$f,\u0275\u0275propertyInterpolate3:()=>Vf,\u0275\u0275propertyInterpolate4:()=>jf,\u0275\u0275propertyInterpolate5:()=>Hf,\u0275\u0275propertyInterpolate6:()=>zf,\u0275\u0275propertyInterpolate7:()=>Wf,\u0275\u0275propertyInterpolate8:()=>Gf,\u0275\u0275propertyInterpolateV:()=>Kf,\u0275\u0275pureFunction0:()=>my,\u0275\u0275pureFunction1:()=>py,\u0275\u0275pureFunction2:()=>gy,\u0275\u0275pureFunction3:()=>_y,\u0275\u0275pureFunction4:()=>vy,\u0275\u0275pureFunction5:()=>by,\u0275\u0275pureFunction6:()=>yy,\u0275\u0275pureFunction7:()=>Cy,\u0275\u0275pureFunction8:()=>wy,\u0275\u0275pureFunctionV:()=>Ey,\u0275\u0275queryAdvance:()=>Kb,\u0275\u0275queryRefresh:()=>Hb,\u0275\u0275reference:()=>Zb,\u0275\u0275registerNgModuleType:()=>jh,\u0275\u0275repeater:()=>rb,\u0275\u0275repeaterCreate:()=>ib,\u0275\u0275repeaterTrackByIdentity:()=>nb,\u0275\u0275repeaterTrackByIndex:()=>tb,\u0275\u0275resetView:()=>Qm,\u0275\u0275resolveBody:()=>qd,\u0275\u0275resolveDocument:()=>B0,\u0275\u0275resolveWindow:()=>U0,\u0275\u0275restoreView:()=>Zm,\u0275\u0275sanitizeHtml:()=>I0,\u0275\u0275sanitizeResourceUrl:()=>Zd,\u0275\u0275sanitizeScript:()=>S0,\u0275\u0275sanitizeStyle:()=>T0,\u0275\u0275sanitizeUrl:()=>Yd,\u0275\u0275sanitizeUrlOrResourceUrl:()=>O0,\u0275\u0275setComponentScope:()=>dy,\u0275\u0275setNgModuleScope:()=>hy,\u0275\u0275styleMap:()=>Js,\u0275\u0275styleMapInterpolate1:()=>Qb,\u0275\u0275styleMapInterpolate2:()=>Xb,\u0275\u0275styleMapInterpolate3:()=>Jb,\u0275\u0275styleMapInterpolate4:()=>qb,\u0275\u0275styleMapInterpolate5:()=>ey,\u0275\u0275styleMapInterpolate6:()=>ty,\u0275\u0275styleMapInterpolate7:()=>ny,\u0275\u0275styleMapInterpolate8:()=>iy,\u0275\u0275styleMapInterpolateV:()=>ry,\u0275\u0275styleProp:()=>vf,\u0275\u0275stylePropInterpolate1:()=>Yf,\u0275\u0275stylePropInterpolate2:()=>Zf,\u0275\u0275stylePropInterpolate3:()=>Qf,\u0275\u0275stylePropInterpolate4:()=>Xf,\u0275\u0275stylePropInterpolate5:()=>Jf,\u0275\u0275stylePropInterpolate6:()=>qf,\u0275\u0275stylePropInterpolate7:()=>em,\u0275\u0275stylePropInterpolate8:()=>tm,\u0275\u0275stylePropInterpolateV:()=>nm,\u0275\u0275syntheticHostListener:()=>Ff,\u0275\u0275syntheticHostProperty:()=>Tf,\u0275\u0275template:()=>Xa,\u0275\u0275templateRefExtractor:()=>Ny,\u0275\u0275text:()=>sy,\u0275\u0275textInterpolate:()=>im,\u0275\u0275textInterpolate1:()=>ju,\u0275\u0275textInterpolate2:()=>rm,\u0275\u0275textInterpolate3:()=>sm,\u0275\u0275textInterpolate4:()=>om,\u0275\u0275textInterpolate5:()=>am,\u0275\u0275textInterpolate6:()=>lm,\u0275\u0275textInterpolate7:()=>cm,\u0275\u0275textInterpolate8:()=>um,\u0275\u0275textInterpolateV:()=>dm,\u0275\u0275trustConstantHtml:()=>A0,\u0275\u0275trustConstantResourceUrl:()=>k0,\u0275\u0275twoWayBindingSet:()=>ay,\u0275\u0275twoWayListener:()=>fm,\u0275\u0275twoWayProperty:()=>hm,\u0275\u0275validateIframeAttribute:()=>S_,\u0275\u0275viewQuery:()=>jb,\u0275\u0275viewQuerySignal:()=>Gb});var t=g(467);function _(e,n){return Object.is(e,n)}let C=null,E=!1,c=1;const b=Symbol("SIGNAL");function s(e){const n=C;return C=e,n}const l={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function r(e){if(E)throw new Error("");if(null===C)return;C.consumerOnSignalRead(e);const n=C.nextProducerIndex++;U(C),ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function k(e){U(e);for(let n=0;n0}function U(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function S(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function R(e){const n=Object.create(Y);n.computation=e;const i=()=>{if(h(n),r(n),n.value===F)throw n.error;return n.value};return i[b]=n,i}const N=Symbol("UNSET"),A=Symbol("COMPUTING"),F=Symbol("ERRORED"),Y={...l,value:N,dirty:!0,error:null,equal:_,producerMustRecompute:e=>e.value===N||e.value===A,producerRecomputeValue(e){if(e.value===A)throw new Error("Detected cycle in computations.");const n=e.value;e.value=A;const i=M(e);let o;try{o=e.computation()}catch(m){o=F,e.error=m}finally{w(e,i)}n!==N&&n!==F&&o!==F&&e.equal(n,o)?e.value=n:(e.value=o,e.version++)}};let ie=function ee(){throw new Error};function $(){ie()}let G=null;function ce(e,n){v()||$(),e.equal(e.value,n)||(e.value=n,function Ze(e){e.version++,function u(){c++}(),p(e),G?.()}(e))}const be={...l,equal:_,value:void 0};const ct=()=>{},Ct={...l,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:ct};var Ae=g(1413),fe=g(8359),We=g(4412),Pe=g(6354),Me=g(1594);const q="https://g.co/ng/security#xss";class _e extends Error{constructor(n,i){super(Oe(n,i)),this.code=n}}function Oe(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}const vt=Symbol("InputSignalNode#UNSET"),rt={...be,transformFn:void 0,applyValueToInputSignal(e,n){ce(e,n)}},Ge=Symbol();function De(e,n){const i=Object.create(rt);function o(){if(r(i),i.value===vt)throw new _e(-950,!1);return i.value}return i.value=e,i.transformFn=n?.transform,o[b]=i,o}function ot(e){return{toString:e}.toString()}const xt="__annotations__",jt="__parameters__",Xt="__prop__metadata__";function un(e,n,i,o,m){return ot(()=>{const x=dn(n);function P(...B){if(this instanceof P)return x.call(this,...B),this;const J=new P(...B);return function(ke){return m&&m(ke,...B),(ke.hasOwnProperty(xt)?ke[xt]:Object.defineProperty(ke,xt,{value:[]})[xt]).push(J),o&&o(ke),ke}}return i&&(P.prototype=Object.create(i.prototype)),P.prototype.ngMetadataName=e,P.annotationCls=P,P})}function dn(e){return function(...i){if(e){const o=e(...i);for(const m in o)this[m]=o[m]}}}function cn(e,n,i){return ot(()=>{const o=dn(n);function m(...x){if(this instanceof m)return o.apply(this,x),this;const P=new m(...x);return B.annotation=P,B;function B(J,he,ke){const et=J.hasOwnProperty(jt)?J[jt]:Object.defineProperty(J,jt,{value:[]})[jt];for(;et.length<=ke;)et.push(null);return(et[ke]=et[ke]||[]).push(P),J}}return i&&(m.prototype=Object.create(i.prototype)),m.prototype.ngMetadataName=e,m.annotationCls=m,m})}function rn(e,n,i,o){return ot(()=>{const m=dn(n);function x(...P){if(this instanceof x)return m.apply(this,P),this;const B=new x(...P);return function J(he,ke){if(void 0===he)throw new Error("Standard Angular field decorators are not supported in JIT mode.");const et=he.constructor,Rt=et.hasOwnProperty(Xt)?et[Xt]:Object.defineProperty(et,Xt,{value:{}})[Xt];Rt[ke]=Rt.hasOwnProperty(ke)&&Rt[ke]||[],Rt[ke].unshift(B),o&&o(he,ke,...P)}}return i&&(x.prototype=Object.create(i.prototype)),x.prototype.ngMetadataName=e,x.annotationCls=x,x})}const hn=globalThis;function ve(e){for(let n in e)if(e[n]===ve)return n;throw Error("Could not find renamed property on target object.")}function Qe(e,n){for(const i in n)n.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=n[i])}function Xe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Xe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const i=n.indexOf("\n");return-1===i?n:n.substring(0,i)}function Ot(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}function nt(e,n=100){if(!e||n<1||e.length<=n)return e;if(1==n)return e.substring(0,1)+"...";const i=Math.round(n/2);return e.substring(0,i)+"..."+e.substring(e.length-i)}const ft=ve({__forward_ref__:ve});function Re(e){return e.__forward_ref__=Re,e.toString=function(){return Xe(this())},e}function me(e){return Ke(e)?e():e}function Ke(e){return"function"==typeof e&&e.hasOwnProperty(ft)&&e.__forward_ref__===Re}function At(e,n,i,o){throw new Error(`ASSERTION ERROR: ${e}`+(null==o?"":` [Expected=> ${i} ${o} ${n} <=Actual]`))}function jn(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const at=jn;function Jt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Be(e){return Et(e,Ue)||Et(e,Ye)}function lt(e){return null!==Be(e)}function Et(e,n){return e.hasOwnProperty(n)?e[n]:null}function _n(e){return e&&(e.hasOwnProperty(ut)||e.hasOwnProperty(mt))?e[ut]:null}const Ue=ve({\u0275prov:ve}),ut=ve({\u0275inj:ve}),Ye=ve({ngInjectableDef:ve}),mt=ve({ngInjectorDef:ve});class Ee{constructor(n,i){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=jn({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}let Mt;function pe(e){At("setInjectorProfilerContext should never be called in production mode");const n=Mt;return Mt=e,n}function In(e){return e&&!!e.\u0275providers}const Fn=ve({\u0275cmp:ve}),yi=ve({\u0275dir:ve}),ar=ve({\u0275pipe:ve}),_i=ve({\u0275mod:ve}),hi=ve({\u0275fac:ve}),xi=ve({__NG_ELEMENT_ID__:ve}),Ri=ve({__NG_ENV_ID__:ve});function On(e){return"string"==typeof e?e:null==e?"":String(e)}function yn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():On(e)}function Ui(e,n){throw new _e(-201,!1)}var Un=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Un||{});let vn;function Dn(){return vn}function Rn(e){const n=vn;return vn=e,n}function Hn(e,n,i){const o=Be(e);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:i&Un.Optional?null:void 0!==n?n:void Ui()}const Gi={},lr="__NG_DI_FLAG__",Hr="ngTempTokenPath",wr=/\n/gm,Sr="__source";let Fr;function mr(e){const n=Fr;return Fr=e,n}function es(e,n=Un.Default){if(void 0===Fr)throw new _e(-203,!1);return null===Fr?Hn(e,void 0,n):Fr.get(e,n&Un.Optional?null:void 0,n)}function Li(e,n=Un.Default){return(Dn()||es)(me(e),n)}function ts(e){throw new _e(202,!1)}function Bn(e,n=Un.Default){return Li(e,zr(n))}function zr(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function us(e){const n=[];for(let i=0;i({token:e})),-1),kt=br(cn("Optional"),8),$t=br(cn("Self"),2),Wt=br(cn("SkipSelf"),4),sn=br(cn("Host"),1);function fn(e,n){return e.hasOwnProperty(hi)?e[hi]:null}function Tn(e){return e.flat(Number.POSITIVE_INFINITY)}function $n(e,n){e.forEach(i=>Array.isArray(i)?$n(i,n):n(i))}function Mi(e,n,i){n>=e.length?e.push(i):e.splice(n,0,i)}function Xn(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Ti(e,n){const i=[];for(let o=0;on;)e[m]=e[m-2],m--;e[n]=i,e[n+1]=o}}function Bi(e,n,i){let o=Wr(e,n);return o>=0?e[1|o]=i:(o=~o,li(e,o,n,i)),o}function Ar(e,n){const i=Wr(e,n);if(i>=0)return e[1|i]}function Wr(e,n){return function Br(e,n,i){let o=0,m=e.length>>i;for(;m!==o;){const x=o+(m-o>>1),P=e[x<n?m=x:o=x+1}return~(m<n){P=x-1;break}}}for(;x-1){let x;for(;++mx?"":m[ke+1].toLowerCase(),2&o&&he!==et){if(kr(o))return!1;P=!0}}}}else{if(!P&&!kr(o)&&!kr(J))return!1;if(P&&kr(J))continue;P=!1,o=J|1&o}}return kr(o)||P}function kr(e){return!(1&e)}function Bo(e,n,i,o){if(null===n)return-1;let m=0;if(o||!i){let x=!1;for(;m-1)for(i++;i0?'="'+B+'"':"")+"]"}else 8&o?m+="."+P:4&o&&(m+=" "+P);else""!==m&&!kr(P)&&(n+=bs(x,m),m=""),o=P,x=x||!kr(o);i++}return""!==m&&(n+=bs(x,m)),n}function jo(e){return ot(()=>{const n=io(e),i={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Yr.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Zr.Emulated,styles:e.styles||di,_:null,schemas:e.schemas||null,tView:null,id:""};Ts(i);const o=e.dependencies;return i.directiveDefs=$s(o,!1),i.pipeDefs=$s(o,!0),i.id=function la(e){let n=0;const i=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const m of i)n=Math.imul(31,n)+m.charCodeAt(0)|0;return n+=2147483648,"c"+n}(i),i})}function Fs(e){return oi(e)||pi(e)}function aa(e){return null!==e}function Us(e){return ot(()=>({type:e.type,bootstrap:e.bootstrap||di,declarations:e.declarations||di,imports:e.imports||di,exports:e.exports||di,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Bs(e,n){if(null==e)return qi;const i={};for(const o in e)if(e.hasOwnProperty(o)){const m=e[o];let x,P,B=Qr.None;Array.isArray(m)?(B=m[0],x=m[1],P=m[2]??x):(x=m,P=m),n?(i[x]=B!==Qr.None?[o,B]:o,n[x]=P):i[x]=o}return i}function Xr(e){return ot(()=>{const n=io(e);return Ts(n),n})}function To(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function oi(e){return e[Fn]||null}function pi(e){return e[yi]||null}function er(e){return e[ar]||null}function Or(e){const n=oi(e)||pi(e)||er(e);return null!==n&&n.standalone}function dr(e,n){const i=e[_i]||null;if(!i&&!0===n)throw new Error(`Type ${Xe(e)} does not have '\u0275mod' property.`);return i}function io(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||qi,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||di,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Bs(e.inputs,n),outputs:Bs(e.outputs),debugInfo:null}}function Ts(e){e.features?.forEach(n=>n(e))}function $s(e,n){if(!e)return null;const i=n?er:Fs;return()=>("function"==typeof e?e():e).map(o=>i(o)).filter(aa)}const Ho=new Map;function ys(e){return{\u0275providers:e}}function ro(...e){return{\u0275providers:Vs(0,e),\u0275fromNgModule:!0}}function Vs(e,...n){const i=[],o=new Set;let m;const x=P=>{i.push(P)};return $n(n,P=>{const B=P;js(B,x,[],o)&&(m||=[],m.push(B))}),void 0!==m&&zo(m,x),i}function zo(e,n){for(let i=0;i{n(x,o)})}}function js(e,n,i,o){if(!(e=me(e)))return!1;let m=null,x=_n(e);const P=!x&&oi(e);if(x||P){if(P&&!P.standalone)return!1;m=e}else{const J=e.ngModule;if(x=_n(J),!x)return!1;m=J}const B=o.has(m);if(P){if(B)return!1;if(o.add(m),P.dependencies){const J="function"==typeof P.dependencies?P.dependencies():P.dependencies;for(const he of J)js(he,n,i,o)}}else{if(!x)return!1;{if(null!=x.imports&&!B){let he;o.add(m);try{$n(x.imports,ke=>{js(ke,n,i,o)&&(he||=[],he.push(ke))})}finally{}void 0!==he&&zo(he,n)}if(!B){const he=fn(m)||(()=>new m);n({provide:m,useFactory:he,deps:di},m),n({provide:$r,useValue:m,multi:!0},m),n({provide:ns,useValue:()=>Li(m),multi:!0},m)}const J=x.providers;if(null!=J&&!B){const he=e;Hs(J,ke=>{n(ke,he)})}}}return m!==e&&void 0!==e.providers}function Hs(e,n){for(let i of e)In(i)&&(i=i.\u0275providers),Array.isArray(i)?Hs(i,n):n(i)}const ds=ve({provide:String,useValue:ve});function zs(e){return null!==e&&"object"==typeof e&&ds in e}function hs(e){return"function"==typeof e}const Ws=new Ee(""),Ss={},is={};let Rr;function Cs(){return void 0===Rr&&(Rr=new Kr),Rr}class Lr{}class As extends Lr{get destroyed(){return this._destroyed}constructor(n,i,o,m){super(),this.parent=i,this.source=o,this.scopes=m,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ks(n,P=>this.processProvider(P)),this.records.set(Gr,ws(void 0,this)),m.has("environment")&&this.records.set(Lr,ws(void 0,this));const x=this.records.get(Ws);null!=x&&"string"==typeof x.value&&this.scopes.add(x.value),this.injectorDefTypes=new Set(this.get($r,di,Un.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=s(null);try{for(const o of this._ngOnDestroyHooks)o.ngOnDestroy();const i=this._onDestroyHooks;this._onDestroyHooks=[];for(const o of i)o()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),s(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const i=mr(this),o=Rn(void 0);try{return n()}finally{mr(i),Rn(o)}}get(n,i=Gi,o=Un.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Ri))return n[Ri](this);o=zr(o);const x=mr(this),P=Rn(void 0);try{if(!(o&Un.SkipSelf)){let J=this.records.get(n);if(void 0===J){const he=function co(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ee}(n)&&Be(n);J=he&&this.injectableDefInScope(he)?ws(ao(n),Ss):null,this.records.set(n,J)}if(null!=J)return this.hydrate(n,J)}return(o&Un.Self?Cs():this.parent).get(n,i=o&Un.Optional&&i===Gi?null:i)}catch(B){if("NullInjectorError"===B.name){if((B[Hr]=B[Hr]||[]).unshift(Xe(n)),x)throw B;return function Dt(e,n,i,o){const m=e[Hr];throw n[Sr]&&m.unshift(n[Sr]),e.message=function bt(e,n,i,o=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let m=Xe(n);if(Array.isArray(n))m=n.map(Xe).join(" -> ");else if("object"==typeof n){let x=[];for(let P in n)if(n.hasOwnProperty(P)){let B=n[P];x.push(P+":"+("string"==typeof B?JSON.stringify(B):Xe(B)))}m=`{${x.join(", ")}}`}return`${i}${o?"("+o+")":""}[${m}]: ${e.replace(wr,"\n ")}`}("\n"+e.message,m,i,o),e.ngTokenPath=m,e[Hr]=null,e}(B,n,"R3InjectorError",this.source)}throw B}finally{Rn(P),mr(x)}}resolveInjectorInitializers(){const n=s(null),i=mr(this),o=Rn(void 0);try{const x=this.get(ns,di,Un.Self);for(const P of x)P()}finally{mr(i),Rn(o),s(n)}}toString(){const n=[],i=this.records;for(const o of i.keys())n.push(Xe(o));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new _e(205,!1)}processProvider(n){let i=hs(n=me(n))?n:me(n&&n.provide);const o=function Go(e){return zs(e)?ws(void 0,e.useValue):ws(So(e),Ss)}(n);if(!hs(n)&&!0===n.multi){let m=this.records.get(i);m||(m=ws(void 0,Ss,!0),m.factory=()=>us(m.multi),this.records.set(i,m)),i=n,m.multi.push(n)}this.records.set(i,o)}hydrate(n,i){const o=s(null);try{return i.value===Ss&&(i.value=is,i.value=i.factory()),"object"==typeof i.value&&i.value&&function ca(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}finally{s(o)}}injectableDefInScope(n){if(!n.providedIn)return!1;const i=me(n.providedIn);return"string"==typeof i?"any"===i||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(n){const i=this._onDestroyHooks.indexOf(n);-1!==i&&this._onDestroyHooks.splice(i,1)}}function ao(e){const n=Be(e),i=null!==n?n.factory:fn(e);if(null!==i)return i;if(e instanceof Ee)throw new _e(204,!1);if(e instanceof Function)return function lo(e){if(e.length>0)throw new _e(204,!1);const i=function nn(e){return e&&(e[Ue]||e[Ye])||null}(e);return null!==i?()=>i.factory(e):()=>new e}(e);throw new _e(204,!1)}function So(e,n,i){let o;if(hs(e)){const m=me(e);return fn(m)||ao(m)}if(zs(e))o=()=>me(e.useValue);else if(function so(e){return!(!e||!e.useFactory)}(e))o=()=>e.useFactory(...us(e.deps||[]));else if(function Wo(e){return!(!e||!e.useExisting)}(e))o=()=>Li(me(e.useExisting));else{const m=me(e&&(e.useClass||e.provide));if(!function Ki(e){return!!e.deps}(e))return fn(m)||ao(m);o=()=>new m(...us(e.deps))}return o}function ws(e,n,i=!1){return{factory:e,value:n,multi:i?[]:void 0}}function ks(e,n){for(const i of e)Array.isArray(i)?ks(i,n):i&&In(i)?ks(i.\u0275providers,n):n(i)}function uo(e,n){e instanceof As&&e.assertNotDestroyed();const o=mr(e),m=Rn(void 0);try{return n()}finally{mr(o),Rn(m)}}function Ko(){return void 0!==Dn()||null!=function Ur(){return Fr}()}function X(e){if(!Ko())throw new _e(-203,!1)}var Le=function(e){return e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule",e}(Le||{});function st(e){const n=hn.ng;if(n&&n.\u0275compilerFacade)return n.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Ht={\u0275\u0275defineInjectable:jn,\u0275\u0275defineInjector:Jt,\u0275\u0275inject:Li,\u0275\u0275invalidFactoryDep:ts,resolveForwardRef:me},Qt=Function;function wn(e){return"function"==typeof e}const ci=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,Si=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Di=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Qn=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class Ci{constructor(n){this._reflect=n||hn.Reflect}factory(n){return(...i)=>new n(...i)}_zipTypesAndAnnotations(n,i){let o;o=Ti(typeof n>"u"?i.length:n.length);for(let m=0;m"u"?[]:n[m]&&n[m]!=Object?[n[m]]:[],i&&null!=i[m]&&(o[m]=o[m].concat(i[m]));return o}_ownParameters(n,i){if(function Yi(e){return ci.test(e)||Qn.test(e)||Si.test(e)&&!Di.test(e)}(n.toString()))return null;if(n.parameters&&n.parameters!==i.parameters)return n.parameters;const m=n.ctorParameters;if(m&&m!==i.ctorParameters){const B="function"==typeof m?m():m,J=B.map(ke=>ke&&ke.type),he=B.map(ke=>ke&&tr(ke.decorators));return this._zipTypesAndAnnotations(J,he)}const x=n.hasOwnProperty(jt)&&n[jt],P=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",n);return P||x?this._zipTypesAndAnnotations(P,x):Ti(n.length)}parameters(n){if(!wn(n))return[];const i=jr(n);let o=this._ownParameters(n,i);return!o&&i!==Object&&(o=this.parameters(i)),o||[]}_ownAnnotations(n,i){if(n.annotations&&n.annotations!==i.annotations){let o=n.annotations;return"function"==typeof o&&o.annotations&&(o=o.annotations),o}return n.decorators&&n.decorators!==i.decorators?tr(n.decorators):n.hasOwnProperty(xt)?n[xt]:null}annotations(n){if(!wn(n))return[];const i=jr(n),o=this._ownAnnotations(n,i)||[];return(i!==Object?this.annotations(i):[]).concat(o)}_ownPropMetadata(n,i){if(n.propMetadata&&n.propMetadata!==i.propMetadata){let o=n.propMetadata;return"function"==typeof o&&o.propMetadata&&(o=o.propMetadata),o}if(n.propDecorators&&n.propDecorators!==i.propDecorators){const o=n.propDecorators,m={};return Object.keys(o).forEach(x=>{m[x]=tr(o[x])}),m}return n.hasOwnProperty(Xt)?n[Xt]:null}propMetadata(n){if(!wn(n))return{};const i=jr(n),o={};if(i!==Object){const x=this.propMetadata(i);Object.keys(x).forEach(P=>{o[P]=x[P]})}const m=this._ownPropMetadata(n,i);return m&&Object.keys(m).forEach(x=>{const P=[];o.hasOwnProperty(x)&&P.push(...o[x]),P.push(...m[x]),o[x]=P}),o}ownPropMetadata(n){return wn(n)&&this._ownPropMetadata(n,jr(n))||{}}hasLifecycleHook(n,i){return n instanceof Qt&&i in n.prototype}}function tr(e){return e?e.map(n=>new(0,n.type.annotationCls)(...n.args?n.args:[])):[]}function jr(e){const n=e.prototype?Object.getPrototypeOf(e.prototype):null;return(n?n.constructor:null)||Object}const fi=0,mn=1,kn=2,Ai=3,cr=4,nr=5,Hi=6,ho=7,Zi=8,pr=9,rs=10,Wn=11,Nr=12,Yo=13,Gs=14,Qi=15,Ao=16,Ks=17,Pr=18,Ys=19,Zo=20,Os=21,fo=22,Rs=23,Kn=25,mo=1,po=6,fs=7,go=9,rr=10;var ua=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(ua||{});function yr(e){return Array.isArray(e)&&"object"==typeof e[mo]}function hr(e){return Array.isArray(e)&&!0===e[mo]}function da(e){return!!(4&e.flags)}function Zs(e){return e.componentOffset>-1}function Xo(e){return!(1&~e.flags)}function ss(e){return!!e.template}function ha(e){return!!(512&e[kn])}function Cl(e){return!(16&~e.type)}function z(e){return!(256&~e[kn])}class An{constructor(n,i,o){this.previousValue=n,this.currentValue=i,this.firstChange=o}isFirstChange(){return this.firstChange}}function pn(e,n,i,o){null!==n?n.applyValueToInputSignal(n,o):e[i]=o}function zn(){return sr}function sr(e){return e.type.prototype.ngOnChanges&&(e.setInput=ui),wi}function wi(){const e=mi(this),n=e?.current;if(n){const i=e.previous;if(i===qi)e.previous=n;else for(let o in n)i[o]=n[o];e.current=null,this.ngOnChanges(n)}}function ui(e,n,i,o,m){const x=this.declaredInputs[o],P=mi(e)||function Sn(e,n){return e[Fi]=n}(e,{previous:qi,current:null}),B=P.current||(P.current={}),J=P.previous,he=J[x];B[x]=new An(he&&he.currentValue,i,J===qi),pn(e,n,m,i)}zn.ngInherit=!0;const Fi="__ngSimpleChanges__";function mi(e){return e[Fi]||null}const Pn=function(e,n,i){},zi="svg",vi="math";let si=!1;function gi(){return si}function ko(e){si=e}function Vi(e){for(;Array.isArray(e);)e=e[fi];return e}function Jo(e){for(;Array.isArray(e);){if("object"==typeof e[mo])return e;e=e[fi]}return null}function _o(e,n){return Vi(n[e])}function os(e,n){return Vi(n[e.index])}function El(e,n){return e.data[n]}function Sa(e,n){return e[n]}function Es(e,n){const i=n[e];return yr(i)?i:i[fi]}function id(e){return!(128&~e[kn])}function vo(e,n){return null==n?null:e[n]}function Hm(e){e[Ks]=0}function wC(e){1024&e[kn]||(e[kn]|=1024,id(e)&&xl(e))}function zm(e,n){for(;e>0;)n=n[Gs],e--;return n}function rd(e){return!!(9216&e[kn]||e[Rs]?.dirty)}function sd(e){e[rs].changeDetectionScheduler?.notify(1),rd(e)?xl(e):64&e[kn]&&(gi()?(e[kn]|=1024,xl(e)):e[rs].changeDetectionScheduler?.notify())}function xl(e){e[rs].changeDetectionScheduler?.notify();let n=fa(e);for(;null!==n&&!(8192&n[kn])&&(n[kn]|=8192,id(n));)n=fa(n)}function Ec(e,n){if(!(256&~e[kn]))throw new _e(911,!1);null===e[Os]&&(e[Os]=[]),e[Os].push(n)}function od(e,n){if(null===e[Os])return;const i=e[Os].indexOf(n);-1!==i&&e[Os].splice(i,1)}function fa(e){const n=e[Ai];return hr(n)?n[Ai]:n}const ei={lFrame:ip(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Gm(){return ei.bindingsEnabled}function Aa(){return null!==ei.skipHydrationRootTNode}function Km(){ei.bindingsEnabled=!0}function Ym(){ei.bindingsEnabled=!1}function tn(){return ei.lFrame.lView}function bi(){return ei.lFrame.tView}function Zm(e){return ei.lFrame.contextLView=e,e[Zi]}function Qm(e){return ei.lFrame.contextLView=null,e}function Xi(){let e=Xm();for(;null!==e&&64===e.type;)e=e.parent;return e}function Xm(){return ei.lFrame.currentTNode}function Ml(){const e=ei.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}function bo(e,n){const i=ei.lFrame;i.currentTNode=e,i.isParent=n}function ad(){return ei.lFrame.isParent}function ld(){ei.lFrame.isParent=!1}function as(){const e=ei.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Oo(){return ei.lFrame.bindingIndex}function qm(e){return ei.lFrame.bindingIndex=e}function Qs(){return ei.lFrame.bindingIndex++}function Ro(e){const n=ei.lFrame,i=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,i}function ep(e){ei.lFrame.inI18n=e}function kC(e,n){const i=ei.lFrame;i.bindingIndex=i.bindingRootIndex=e,cd(n)}function cd(e){ei.lFrame.currentDirectiveIndex=e}function ud(e){const n=ei.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}function dd(){return ei.lFrame.currentQueryIndex}function xc(e){ei.lFrame.currentQueryIndex=e}function RC(e){const n=e[mn];return 2===n.type?n.declTNode:1===n.type?e[nr]:null}function tp(e,n,i){if(i&Un.SkipSelf){let m=n,x=e;for(;!(m=m.parent,null!==m||i&Un.Host||(m=RC(x),null===m||(x=x[Gs],10&m.type))););if(null===m)return!1;n=m,e=x}const o=ei.lFrame=np();return o.currentTNode=n,o.lView=e,!0}function hd(e){const n=np(),i=e[mn];ei.lFrame=n,n.currentTNode=i.firstChild,n.lView=e,n.tView=i,n.contextLView=e,n.bindingIndex=i.bindingStartIndex,n.inI18n=!1}function np(){const e=ei.lFrame,n=null===e?null:e.child;return null===n?ip(e):n}function ip(e){const n={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=n),n}function rp(){const e=ei.lFrame;return ei.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const sp=rp;function fd(){const e=rp();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 Jr(){return ei.lFrame.selectedIndex}function ma(e){ei.lFrame.selectedIndex=e}function or(){const e=ei.lFrame;return El(e.tView,e.selectedIndex)}function op(){ei.lFrame.currentNamespace=zi}function ap(){ei.lFrame.currentNamespace=vi}function lp(){!function NC(){ei.lFrame.currentNamespace=null}()}function cp(){return ei.lFrame.currentNamespace}let up=!0;function Dl(){return up}function yo(e){up=e}function Mc(e,n){for(let i=n.directiveStart,o=n.directiveEnd;i=o)break}else n[J]<0&&(e[Ks]+=65536),(B>14>16&&(3&e[kn])===n&&(e[kn]+=16384,hp(B,x)):hp(B,x)}const ka=-1;class Il{constructor(n,i,o){this.factory=n,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=o}}function BC(e){return null!=e&&"object"==typeof e&&(null===e.insertBeforeIndex||"number"==typeof e.insertBeforeIndex||Array.isArray(e.insertBeforeIndex))}function gd(e){return e!==ka}function Tl(e){return 32767&e}function Sl(e,n){let i=function jC(e){return e>>16}(e),o=n;for(;i>0;)o=o[Gs],i--;return o}let _d=!0;function Tc(e){const n=_d;return _d=e,n}const fp=255,mp=5;let HC=0;const Co={};function Sc(e,n){const i=pp(e,n);if(-1!==i)return i;const o=n[mn];o.firstCreatePass&&(e.injectorIndex=n.length,vd(o.data,e),vd(n,null),vd(o.blueprint,null));const m=Ac(e,n),x=e.injectorIndex;if(gd(m)){const P=Tl(m),B=Sl(m,n),J=B[mn].data;for(let he=0;he<8;he++)n[x+he]=B[P+he]|J[P+he]}return n[x+8]=m,x}function vd(e,n){e.push(0,0,0,0,0,0,0,0,n)}function pp(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Ac(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let i=0,o=null,m=n;for(;null!==m;){if(o=Ep(m),null===o)return ka;if(i++,m=m[Gs],-1!==o.injectorIndex)return o.injectorIndex|i<<16}return ka}function bd(e,n,i){!function zC(e,n,i){let o;"string"==typeof i?o=i.charCodeAt(0)||0:i.hasOwnProperty(xi)&&(o=i[xi]),null==o&&(o=i[xi]=HC++);const m=o&fp;n.data[e+(m>>mp)]|=1<=0?n&fp:YC:n}(i);if("function"==typeof x){if(!tp(n,e,o))return o&Un.Host?gp(m,0,o):_p(n,i,o,m);try{let P;if(P=x(o),null!=P||o&Un.Optional)return P;Ui()}finally{sp()}}else if("number"==typeof x){let P=null,B=pp(e,n),J=ka,he=o&Un.Host?n[Qi][nr]:null;for((-1===B||o&Un.SkipSelf)&&(J=-1===B?Ac(e,n):n[B+8],J!==ka&&Cp(o,!1)?(P=n[mn],B=Tl(J),n=Sl(J,n)):B=-1);-1!==B;){const ke=n[mn];if(yp(x,B,ke.data)){const et=GC(B,n,i,P,o,he);if(et!==Co)return et}J=n[B+8],J!==ka&&Cp(o,n[mn].data[B+8]===he)&&yp(x,B,n)?(P=ke,B=Tl(J),n=Sl(J,n)):B=-1}}return m}function GC(e,n,i,o,m,x){const P=n[mn],B=P.data[e+8],ke=kc(B,P,i,null==o?Zs(B)&&_d:o!=P&&!!(3&B.type),m&Un.Host&&x===B);return null!==ke?pa(n,P,ke,B):Co}function kc(e,n,i,o,m){const x=e.providerIndexes,P=n.data,B=1048575&x,J=e.directiveStart,ke=x>>20,Rt=m?B+ke:e.directiveEnd;for(let Ft=o?B:B+ke;Ft=J&&Vt.type===i)return Ft}if(m){const Ft=P[J];if(Ft&&ss(Ft)&&Ft.type===i)return J}return null}function pa(e,n,i,o){let m=e[i];const x=n.data;if(function UC(e){return e instanceof Il}(m)){const P=m;P.resolving&&function Zn(e,n){throw n&&n.join(" > "),new _e(-200,e)}(yn(x[i]));const B=Tc(P.canSeeViewProviders);P.resolving=!0;const he=P.injectImpl?Rn(P.injectImpl):null;tp(e,o,Un.Default);try{m=e[i]=P.factory(void 0,x,e,o),n.firstCreatePass&&i>=o.directiveStart&&function PC(e,n,i){const{ngOnChanges:o,ngOnInit:m,ngDoCheck:x}=n.type.prototype;if(o){const P=sr(n);(i.preOrderHooks??=[]).push(e,P),(i.preOrderCheckHooks??=[]).push(e,P)}m&&(i.preOrderHooks??=[]).push(0-e,m),x&&((i.preOrderHooks??=[]).push(e,x),(i.preOrderCheckHooks??=[]).push(e,x))}(i,x[i],n)}finally{null!==he&&Rn(he),Tc(B),P.resolving=!1,sp()}}return m}function yp(e,n,i){return!!(i[n+(e>>mp)]&1<{const n=e.prototype.constructor,i=n[hi]||yd(n),o=Object.prototype;let m=Object.getPrototypeOf(e.prototype).constructor;for(;m&&m!==o;){const x=m[hi]||yd(m);if(x&&x!==i)return x;m=Object.getPrototypeOf(m)}return x=>new x})}function yd(e){return Ke(e)?()=>{const n=yd(me(e));return n&&n()}:fn(e)}function Ep(e){const n=e[mn],i=n.type;return 2===i?n.declTNode:1===i?e[nr]:null}function Oc(e){return function WC(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const i=e.attrs;if(i){const o=i.length;let m=0;for(;m({attributeName:e,__NG_ELEMENT_ID__:()=>Oc(e)}));let Mp=null;function Cd(){return Mp=Mp||new Ci}function Rc(e){return Dp(Cd().parameters(e))}function Dp(e){return e.map(n=>function QC(e){const n={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let i=0;ifunction XC(e,n){let i=null,o=null;e.hasOwnProperty(Ue)||Object.defineProperty(e,Ue,{get:()=>(null===i&&(i=st().compileInjectable(Ht,`ng:///${e.name}/\u0275prov.js`,function tw(e,n){const i=n||{providedIn:null},o={name:e.name,type:e,typeArgumentCount:0,providedIn:i.providedIn};return(Ip(i)||Tp(i))&&void 0!==i.deps&&(o.deps=Dp(i.deps)),Ip(i)?o.useClass=i.useClass:function qC(e){return JC in e}(i)?o.useValue=i.useValue:Tp(i)?o.useFactory=i.useFactory:function ew(e){return void 0!==e.useExisting}(i)&&(o.useExisting=i.useExisting),o}(e,n))),i)}),e.hasOwnProperty(hi)||Object.defineProperty(e,hi,{get:()=>{if(null===o){const m=st();o=m.compileFactory(Ht,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:Rc(e),target:m.FactoryTarget.Injectable})}return o},configurable:!0})}(e,n));function wd(e,n=null,i=null,o){const m=Sp(e,n,i,o);return m.resolveInjectorInitializers(),m}function Sp(e,n=null,i=null,o,m=new Set){const x=[i||di,ro(e)];return o=o||("object"==typeof e?void 0:Xe(e)),new As(x,n||Cs(),o||null,m)}let xs=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=Gi;static#t=this.NULL=new Kr;static create(i,o){if(Array.isArray(i))return wd({name:""},o,i,"");{const m=i.name??"";return wd({name:m},i.parent,i.providers,m)}}static#n=this.\u0275prov=jn({token:e,providedIn:"any",factory:()=>Li(Gr)});static#i=this.__NG_ELEMENT_ID__=-1}return e})();class iw{constructor(n){this.attributeName=n,this.__NG_ELEMENT_ID__=()=>Oc(this.attributeName)}toString(){return`HostAttributeToken ${this.attributeName}`}}function Ed(e){return e.ngOriginalError}class Lo{constructor(){this._console=console}handleError(n){const i=this._findOriginalError(n);this._console.error("ERROR",n),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(n){let i=n&&Ed(n);for(;i&&Ed(i);)i=Ed(i);return i||null}}const kp=new Ee("",{providedIn:"root",factory:()=>Bn(Lo).handleError.bind(void 0)});let ga=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=sw;static#t=this.__NG_ENV_ID__=i=>i}return e})();class rw extends ga{constructor(n){super(),this._lView=n}onDestroy(n){return Ec(this._lView,n),()=>od(this._lView,n)}}function sw(){return new rw(tn())}class xd{constructor(){this.destroyed=!1,this.listeners=null,this.errorHandler=Bn(Lo,{optional:!0}),this.destroyRef=Bn(ga),this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(n){if(this.destroyed)throw new _e(953,!1);return(this.listeners??=[]).push(n),{unsubscribe:()=>{const i=this.listeners?.indexOf(n);void 0!==i&&-1!==i&&this.listeners?.splice(i,1)}}}emit(n){if(this.destroyed)throw new _e(953,!1);if(null===this.listeners)return;const i=s(null);try{for(const o of this.listeners)try{o(n)}catch(m){this.errorHandler?.handleError(m)}}finally{s(i)}}}function ow(e){return e.destroyRef}function aw(e){return new xd}function Op(e,n){return De(e,n)}const cw=(Op.required=function lw(e){return De(vt,e)},Op);function uw(){return La(Xi(),tn())}function La(e,n){return new Al(os(e,n))}let Al=(()=>{class e{constructor(i){this.nativeElement=i}static#e=this.__NG_ELEMENT_ID__=uw}return e})();function Rp(e){return e instanceof Al?e.nativeElement:e}function Md(e){return n=>{setTimeout(e,void 0,n)}}const wo=class dw extends Ae.B{constructor(n=!1){super(),this.destroyRef=void 0,this.__isAsync=n,Ko()&&(this.destroyRef=Bn(ga,{optional:!0})??void 0)}emit(n){const i=s(null);try{super.next(n)}finally{s(i)}}subscribe(n,i,o){let m=n,x=i||(()=>null),P=o;if(n&&"object"==typeof n){const J=n;m=J.next?.bind(J),x=J.error?.bind(J),P=J.complete?.bind(J)}this.__isAsync&&(x=Md(x),m&&(m=Md(m)),P&&(P=Md(P)));const B=super.subscribe({next:m,error:x,complete:P});return n instanceof fe.yU&&n.add(B),B}};function hw(){return this._results[Symbol.iterator]()}class Lc{static#e=Symbol.iterator;get changes(){return this._changes??=new wo}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const i=Lc.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=hw)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,i){return this._results.reduce(n,i)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,i){this.dirty=!1;const o=Tn(n);(this._changesDetected=!function bn(e,n,i){if(e.length!==n.length)return!1;for(let o=0;o=0){const B=Vi(x[P]),J=Id(x,P,B);qr(B,J),n=J;break}}}}return n||null}function Id(e,n,i){return new Fp(e[Ys],n,i)}const Td="__ngContext__";function qr(e,n){yr(n)?(e[Td]=n[Ys],function gw(e){Dd.set(e[Ys],e)}(n)):e[Td]=n}function Ol(e){const n=e[Td];return"number"==typeof n?Pp(n):n||null}function $p(e){return e&&e.constructor&&e.constructor.\u0275cmp}function Vp(e,n){const i=e[mn];for(let o=Kn;o-1?n[o+m]:null}(n.nodeIndex,i)}return n.component}function Xp(e){if(e instanceof Text)return[];const n=ls(e),i=n?n.lView:null;if(null===i)return[];const o=i[mn],m=n.nodeIndex;return o?.data[m]?(void 0===n.directives&&(n.directives=Hp(m,i)),null===n.directives?[]:[...n.directives]):[]}function Sd(e){return ls(e).native}function Tw(e,n){return e.name==n.name?0:e.nameOw}),Ow="ng",t0=new Ee(""),kd=new Ee("",{providedIn:"platform",factory:()=>"unknown"}),Rw=new Ee(""),Lw=new Ee(""),Nw=new Ee("",{providedIn:"root",factory:()=>qo().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),n0={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},r0=new Ee("",{providedIn:"root",factory:()=>n0});function Pw(e){return e}function Fw(){const e=new Rl;return"browser"===Bn(kd)&&(e.store=function Uw(e,n){const i=e.getElementById(n+"-state");if(i?.textContent)try{return JSON.parse(i.textContent)}catch(o){console.warn("Exception while restoring TransferState for app "+n,o)}return{}}(qo(),Bn(e0))),e}let Rl=(()=>{class e{constructor(){this.store={},this.onSerializeCallbacks={}}static#e=this.\u0275prov=jn({token:e,providedIn:"root",factory:Fw});get(i,o){return void 0!==this.store[i]?this.store[i]:o}set(i,o){this.store[i]=o}remove(i){delete this.store[i]}hasKey(i){return this.store.hasOwnProperty(i)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(i,o){this.onSerializeCallbacks[i]=o}toJson(){for(const i in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(i))try{this.store[i]=this.onSerializeCallbacks[i]()}catch(o){console.warn("Exception in onSerialize callback: ",o)}return JSON.stringify(this.store).replace(/null;function Bw(e,n,i=!1){let o=e.getAttribute(Nl);if(null==o)return null;const[m,x]=o.split("|");if(o=i?x:m,!o)return null;const B=i?m:x?`|${x}`:"";let J={};if(""!==o){const ke=n.get(Rl,null,{optional:!0});null!==ke&&(J=ke.get(Ud,[])[Number(o)])}const he={data:J,firstChild:e.firstChild??null};return i&&(he.firstChild=e,$c(he,0,e.nextSibling)),B?e.setAttribute(Nl,B):e.removeAttribute(Nl),he}function Bd(e,n,i=!1){return o0(e,n,i)}function a0(e){let n=e._lView;return 2===n[mn].type?null:(ha(n)&&(n=n[Kn]),n)}const l0="__ngDebugHydrationInfo__";function c0(e){return e[l0]??null}function $c(e,n,i){e.segmentHeads??={},e.segmentHeads[n]=i}function Vd(e,n){return e.segmentHeads?.[n]??null}function u0(e,n){return e.data[Ll]?.[n]??null}function jd(e,n){const i=u0(e,n)??[];let o=0;for(let m of i)o+=m[Pa]*(m[Uc]??1);return o}function Vc(e,n){if(typeof e.disconnectedNodes>"u"){const i=e.data[Bc];e.disconnectedNodes=i?new Set(i):null}return!!e.disconnectedNodes?.has(n)}const Ul=new Ee(""),h0=new Ee("",{providedIn:"root",factory:()=>!1}),f0=new Ee("");let jc,Hc;function Hd(){if(void 0===jc&&(jc=null,hn.trustedTypes))try{jc=hn.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return jc}function Fa(e){return Hd()?.createHTML(e)||e}function zd(){if(void 0===Hc&&(Hc=null,hn.trustedTypes))try{Hc=hn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Hc}function m0(e){return zd()?.createHTML(e)||e}function p0(e){return zd()?.createScript(e)||e}function g0(e){return zd()?.createScriptURL(e)||e}class _a{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${q})`}}class Kw extends _a{getTypeName(){return"HTML"}}class Yw extends _a{getTypeName(){return"Style"}}class Zw extends _a{getTypeName(){return"Script"}}class Qw extends _a{getTypeName(){return"URL"}}class Xw extends _a{getTypeName(){return"ResourceURL"}}function No(e){return e instanceof _a?e.changingThisBreaksApplicationSecurity:e}function Ua(e,n){const i=_0(e);if(null!=i&&i!==n){if("ResourceURL"===i&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${i} (see ${q})`)}return i===n}function _0(e){return e instanceof _a&&e.getTypeName()||null}function Jw(e){return new Kw(e)}function qw(e){return new Yw(e)}function eE(e){return new Zw(e)}function tE(e){return new Qw(e)}function nE(e){return new Xw(e)}function v0(e){const n=new rE(e);return function sE(){try{return!!(new window.DOMParser).parseFromString(Fa(""),"text/html")}catch{return!1}}()?new iE(n):n}class iE{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const i=(new window.DOMParser).parseFromString(Fa(n),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(n):(i.removeChild(i.firstChild),i)}catch{return null}}}class rE{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const i=this.inertDocument.createElement("template");return i.innerHTML=Fa(n),i}}const oE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function zc(e){return(e=String(e)).match(oE)?e:"unsafe:"+e}function Po(e){const n={};for(const i of e.split(","))n[i]=!0;return n}function Bl(...e){const n={};for(const i of e)for(const o in i)i.hasOwnProperty(o)&&(n[o]=!0);return n}const b0=Po("area,br,col,hr,img,wbr"),y0=Po("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),C0=Po("rp,rt"),Wd=Bl(b0,Bl(y0,Po("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")),Bl(C0,Po("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")),Bl(C0,y0)),Gd=Po("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),w0=Bl(Gd,Po("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,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Po("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")),aE=Po("script,style,template");class lE{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let i=n.firstChild,o=!0,m=[];for(;i;)if(i.nodeType===Node.ELEMENT_NODE?o=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,o&&i.firstChild)m.push(i),i=dE(i);else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let x=uE(i);if(x){i=x;break}i=m.pop()}return this.buf.join("")}startElement(n){const i=E0(n).toLowerCase();if(!Wd.hasOwnProperty(i))return this.sanitizedSomething=!0,!aE.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const o=n.attributes;for(let m=0;m"),!0}endElement(n){const i=E0(n).toLowerCase();Wd.hasOwnProperty(i)&&!b0.hasOwnProperty(i)&&(this.buf.push(""))}chars(n){this.buf.push(M0(n))}}function uE(e){const n=e.nextSibling;if(n&&e!==n.previousSibling)throw x0(n);return n}function dE(e){const n=e.firstChild;if(n&&function cE(e,n){return(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,n))throw x0(n);return n}function E0(e){const n=e.nodeName;return"string"==typeof n?n:"FORM"}function x0(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const hE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fE=/([^\#-~ |!])/g;function M0(e){return e.replace(/&/g,"&").replace(hE,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(fE,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Wc;function D0(e,n){let i=null;try{Wc=Wc||v0(e);let o=n?String(n):"";i=Wc.getInertBodyElement(o);let m=5,x=o;do{if(0===m)throw new Error("Failed to sanitize html because the input is unstable");m--,o=x,x=i.innerHTML,i=Wc.getInertBodyElement(o)}while(o!==x);return Fa((new lE).sanitizeChildren(Kd(i)||i))}finally{if(i){const o=Kd(i)||i;for(;o.firstChild;)o.removeChild(o.firstChild)}}}function Kd(e){return"content"in e&&function mE(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var va=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(va||{});function I0(e){const n=$l();return n?m0(n.sanitize(va.HTML,e)||""):Ua(e,"HTML")?m0(No(e)):D0(qo(),On(e))}function T0(e){const n=$l();return n?n.sanitize(va.STYLE,e)||"":Ua(e,"Style")?No(e):On(e)}function Yd(e){const n=$l();return n?n.sanitize(va.URL,e)||"":Ua(e,"URL")?No(e):zc(On(e))}function Zd(e){const n=$l();if(n)return g0(n.sanitize(va.RESOURCE_URL,e)||"");if(Ua(e,"ResourceURL"))return g0(No(e));throw new _e(904,!1)}function S0(e){const n=$l();if(n)return p0(n.sanitize(va.SCRIPT,e)||"");if(Ua(e,"Script"))return p0(No(e));throw new _e(905,!1)}function A0(e){return Fa(e[0])}function k0(e){return function Gw(e){return Hd()?.createScriptURL(e)||e}(e[0])}function O0(e,n,i){return function pE(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?Zd:Yd}(n,i)(e)}function $l(){const e=tn();return e&&e[rs].sanitizer}const gE=/^>|^->||--!>|)/g,vE="\u200b$1\u200b";const L0={name:"custom-elements"},N0={name:"no-errors-schema"};let Qd=!1;function EE(e){Qd=e}function xE(){return Qd}let Xd=!1;function ME(e){Xd=e}function DE(){return Xd}function Jd(e){At("Must never be called in production mode");const i=function Gc(e){At("Must never be called in production mode");const i=e[Qi][Zi];return i&&i.constructor?oi(i.constructor):null}(e)?.type?.name;return i?` (used in the '${i}' component template)`:""}function U0(e){return e.ownerDocument.defaultView}function B0(e){return e.ownerDocument}function qd(e){return e.ownerDocument.body}function Ms(e){return e instanceof Function?e():e}function ea(e){return"browser"===(e??Bn(xs)).get(kd)}var Yc=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Yc||{});let eh;function th(e,n){return eh(e,n)}function $a(e,n,i,o,m){if(null!=o){let x,P=!1;hr(o)?x=o:yr(o)&&(P=!0,o=o[fi]);const B=Vi(o);0===e&&null!==i?null==m?K0(n,i,B):ba(n,i,B,m||null,!0):1===e&&null!==i?ba(n,i,B,m||null,!0):2===e?Hl(n,B,P):3===e&&n.destroyNode(B),null!=x&&function $E(e,n,i,o,m){const x=i[fs];x!==Vi(i)&&$a(n,e,o,x,m);for(let B=rr;Bn.replace(_E,vE))}(n))}function Zc(e,n,i){return e.createElement(n,i)}function z0(e,n){n[rs].changeDetectionScheduler?.notify(1),qc(e,n,n[Wn],2,null,null)}function W0(e,n){const i=e[go],o=i.indexOf(n);i.splice(o,1)}function Vl(e,n){if(e.length<=rr)return;const i=rr+n,o=e[i];if(o){const m=o[Ao];null!==m&&m!==e&&W0(m,o),n>0&&(e[i-1][cr]=o[cr]);const x=Xn(e,rr+n);!function AE(e,n){z0(e,n),n[fi]=null,n[nr]=null}(o[mn],o);const P=x[Pr];null!==P&&P.detachView(x[mn]),o[Ai]=null,o[cr]=null,o[kn]&=-129}return o}function Qc(e,n){if(!(256&n[kn])){const i=n[Wn];i.destroyNode&&qc(e,n,i,3,null,null),function OE(e){let n=e[Nr];if(!n)return rh(e[mn],e);for(;n;){let i=null;if(yr(n))i=n[Nr];else{const o=n[rr];o&&(i=o)}if(!i){for(;n&&!n[cr]&&n!==e;)yr(n)&&rh(n[mn],n),n=n[Ai];null===n&&(n=e),yr(n)&&rh(n[mn],n),i=n&&n[cr]}n=i}}(n)}}function rh(e,n){if(256&n[kn])return;const i=s(null);try{n[kn]&=-129,n[kn]|=256,n[Rs]&&I(n[Rs]),function PE(e,n){let i;if(null!=e&&null!=(i=e.destroyHooks))for(let o=0;o=0?o[P]():o[-P].unsubscribe(),x+=2}else i[x].call(o[i[x+1]]);null!==o&&(n[ho]=null);const m=n[Os];if(null!==m){n[Os]=null;for(let x=0;x-1){const{encapsulation:x}=e.data[o.directiveStart+m];if(x===Zr.None||x===Zr.Emulated)return null}return os(o,i)}}function ba(e,n,i,o,m){e.insertBefore(n,i,o,m)}function K0(e,n,i){e.appendChild(n,i)}function Y0(e,n,i,o,m){null!==o?ba(e,n,i,o,m):K0(e,n,i)}function Xc(e,n){return e.parentNode(n)}function Z0(e,n,i){return X0(e,n,i)}function Q0(e,n,i){return 40&e.type?os(e,i):null}let oh,X0=Q0;function J0(e,n){X0=e,oh=n}function Jc(e,n,i,o){const m=sh(e,o,n),x=n[Wn],B=Z0(o.parent||n[nr],o,n);if(null!=m)if(Array.isArray(i))for(let J=0;JKn&&sg(e,n,Kn,!1),Pn(P?2:0,m),i(o,m)}finally{ma(x),Pn(P?3:1,m)}}function uh(e,n,i){if(da(n)){const o=s(null);try{const x=n.directiveEnd;for(let P=n.directiveStart;Pnull;function KE(e){Np(e)?eg(e):function jw(e){const n=qo(),i=n.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(x){const P=function Vw(e){return e.textContent?.replace(/\s/gm,"")}(x);return"ngetn"===P||"ngtns"===P?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let o;const m=[];for(;o=i.nextNode();)m.push(o);for(const x of m)"ngetn"===x.textContent?x.replaceWith(n.createTextNode("")):x.remove()}(e)}function dg(e,n,i,o,m){for(let x in n){if(!n.hasOwnProperty(x))continue;const P=n[x];if(void 0===P)continue;o??={};let B,J=Qr.None;Array.isArray(P)?(B=P[0],J=P[1]):B=P;let he=x;if(null!==m){if(!m.hasOwnProperty(x))continue;he=m[x]}0===e?hg(o,i,he,B,J):hg(o,i,he,B)}return o}function hg(e,n,i,o,m){let x;e.hasOwnProperty(i)?(x=e[i]).push(n,o):x=e[i]=[n,o],void 0!==m&&x.push(m)}function ms(e,n,i,o,m,x,P,B){const J=os(n,i);let ke,he=n.inputs;!B&&null!=he&&(ke=he[o])?(vh(e,i,ke,o,m),Zs(n)&&function qE(e,n){const i=Es(n,e);16&i[kn]||(i[kn]|=64)}(i,n.index)):3&n.type&&(o=function JE(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(o),m=null!=P?P(m,n.value||"",o):m,x.setProperty(J,o,m))}function mh(e,n,i,o){if(Gm()){const m=null===o?null:{"":-1},x=function sx(e,n){const i=e.directiveRegistry;let o=null,m=null;if(i)for(let x=0;x0;){const i=e[--n];if("number"==typeof i&&i<0)return i}return 0})(P)!=B&&P.push(B),P.push(i,o,x)}}(e,n,o,zl(e,i,m.hostVars,ai),m)}function Eo(e,n,i,o,m,x){const P=os(e,n);gh(n[Wn],P,x,e.value,i,o,m)}function gh(e,n,i,o,m,x,P){if(null==x)e.removeAttribute(n,m,i);else{const B=null==P?On(x):P(x,o||"",m);e.setAttribute(n,m,B,i)}}function dx(e,n,i,o,m,x){const P=x[n];if(null!==P)for(let B=0;B0&&(i[m-1][cr]=n),o{xl(e.lView)},consumerOnSignalRead(){this.lView[Rs]=this}},Eg=100;function iu(e,n=!0,i=0){const o=e[rs],m=o.rendererFactory;m.begin?.();try{!function yx(e,n){Ch(e,n);let i=0;for(;rd(e);){if(i===Eg)throw new _e(103,!1);i++,Ch(e,1)}}(e,i)}catch(P){throw n&&nu(e,P),P}finally{m.end?.(),o.inlineEffectRunner?.flush()}}function Cx(e,n,i,o){const m=n[kn];if(!(256&~m))return;n[rs].inlineEffectRunner?.flush(),hd(n);let P=null,B=null;(function wx(e){return 2!==e.type})(e)&&(B=function gx(e){return e[Rs]??function _x(e){const n=wg.pop()??Object.create(bx);return n.lView=e,n}(e)}(n),P=M(B));try{Hm(n),qm(e.bindingStartIndex),null!==i&&lg(e,n,i,2,o);const J=!(3&~m);if(J){const et=e.preOrderCheckHooks;null!==et&&Dc(n,et,null)}else{const et=e.preOrderHooks;null!==et&&Ic(n,et,0,null),md(n,0)}if(function Ex(e){for(let n=zp(e);null!==n;n=Wp(n)){if(!(n[kn]&ua.HasTransplantedViews))continue;const i=n[go];for(let o=0;o-1&&(Vl(n,o),Xn(i,o))}this._attachedToViewContainer=!1}Qc(this._lView[mn],this._lView)}onDestroy(n){Ec(this._lView,n)}markForCheck(){Yl(this._cdRefInjectingView||this._lView)}detach(){this._lView[kn]&=-129}reattach(){sd(this._lView),this._lView[kn]|=128}detectChanges(){this._lView[kn]|=1024,iu(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new _e(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,z0(this._lView[mn],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new _e(902,!1);this._appRef=n,sd(this._lView)}}let Zl=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=Ix}return e})();const Mx=Zl,Dx=class extends Mx{constructor(n,i,o){super(),this._declarationLView=n,this._declarationTContainer=i,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,i){return this.createEmbeddedViewImpl(n,i)}createEmbeddedViewImpl(n,i,o){const m=Wl(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:i,dehydratedView:o});return new za(m)}};function Ix(){return ru(Xi(),tn())}function ru(e,n){return 4&e.type?new Dx(n,e,La(e,n)):null}const wh="<-- AT THIS LOCATION";function kx(e){const o=`During serialization, Angular detected DOM nodes that were created outside of Angular context and provided as projectable nodes (likely via \`ViewContainerRef.createComponent\` or \`createComponent\` APIs). Hydration is not supported for such cases, consider refactoring the code to avoid this pattern or using \`ngSkipHydration\` on the host element of the component.\n\n${function su(e){const n=" ";let i="";const o=e;return o.previousSibling&&(i+=" \u2026\n",i+=n+Ql(o.previousSibling)+"\n"),i+=n+Ql(o)+` ${wh}\n`,e.nextSibling&&(i+=" \u2026\n"),e.parentNode&&(i=Ql(o.parentNode,"\n"+i)),i}(e)}\n\nNote: attributes are only displayed to better represent the DOM but have no effect on hydration mismatches.\n\n`;return new _e(-503,o)}const Rx=new Set(["ngh","ng-version","ng-server-context"]);function Eh(e,n="\u2026"){switch(e.type){case 1:return"#text"+(e.value?`(${e.value})`:"");case 2:const o=function Ox(e){const n=[];if(e.attrs)for(let i=0;i${n}`;case 8:return"\x3c!-- ng-container --\x3e";case 4:return"\x3c!-- container --\x3e";default:return`#node(${function Tx(e){switch(e){case 4:return"view container";case 2:return"element";case 8:return"ng-container";case 32:return"icu";case 64:return"i18n";case 16:return"projection";case 1:return"text";default:return""}}(e.type)})`}}function Ql(e,n="\u2026"){const i=e;switch(i.nodeType){case Node.ELEMENT_NODE:const o=i.tagName.toLowerCase(),m=function Lx(e){const n=[];for(let i=0;i${n}`;case Node.TEXT_NODE:const x=i.textContent?Jl(i.textContent):"";return"#text"+(x?`(${x})`:"");case Node.COMMENT_NODE:return`\x3c!-- ${Jl(i.textContent??"")} --\x3e`;default:return`#node(${i.nodeType})`}}function Jl(e,n=50){return e?(e=function Nx(e){return e.replace(/\s+/gm,"")}(e)).length>n?`${e.substring(0,n-1)}\u2026`:e:""}function Sg(e){const n=e[po]??[],o=e[Ai][Wn];for(const m of n)Px(m,o);e[po]=di}function Px(e,n){let i=0,o=e.firstChild;if(o){const m=e.data[Pa];for(;i0&&i[m-1]===o?i[m]=(i[m]||1)+1:i.push(o,"")}return i.join("")}(i,o)}function Kx(e,n){let o,m,x,i=e.parent;for(;null!==i&&ql(i,n);)i=i.parent;null!==i&&3&i.type?(o=i.index,m=Vi(n[o]),x=On(o-Kn)):(o=x=Od,m=n[Qi][fi]);let P=Vi(n[e.index]);if(12&e.type){const J=jl(n,e);J&&(P=J)}let B=kg(m,P,x);if(null===B&&m!==P&&(B=kg(m.ownerDocument.body,P,Rd),null===B))throw function Ax(e,n){const o=`${function xh(e,n,i){const o=" ";let m="";n.prev?(m+=" \u2026\n",m+=o+Eh(n.prev)+"\n"):n.type&&12&n.type&&(m+=" \u2026\n"),i?(m+=o+Eh(n)+"\n",m+=o+`\x3c!-- container --\x3e ${wh}\n`):m+=o+Eh(n)+` ${wh}\n`,m+=" \u2026\n";const x=n.type?sh(e[mn],n,e):null;return x&&(m=Ql(x,"\n"+m)),m}(e,n,!1)}\n\n`,m=function Xl(e){return`To fix this problem:\n * check ${e?`the "${e}"`:"corresponding"} component for hydration-related issues\n * check to see if your template has valid HTML structure\n * or skip hydration by adding the \`ngSkipHydration\` attribute to its host node in a template\n\n`}();throw new _e(-502,"During serialization, Angular was unable to find an element in the DOM:\n\n"+o+m)}(n,e);return B}let Og=()=>null;function Zx(e,n){const i=e[po];return n&&null!==i&&0!==i.length?i[0].data[Pd]===n?i.shift():(Sg(e),null):null}function Wa(e,n){return Og(e,n)}class cu{}class Rg{}class uu{}class Jx{resolveComponentFactory(n){throw function Xx(e){const n=Error(`No component factory found for ${Xe(e)}.`);return n.ngComponent=e,n}(n)}}let ec=(()=>{class e{static#e=this.NULL=new Jx}return e})();class Ng{}let qx=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function eM(){const e=tn(),i=Es(Xi().index,e);return(yr(i)?i:e)[Wn]}()}return e})(),Pg=(()=>{class e{static#e=this.\u0275prov=jn({token:e,providedIn:"root",factory:()=>null})}return e})();const du={};function tM(e,n){if(null!==function f(){return C}())throw new _e(-602,!1)}const Fg=new Set;function Xs(e){Fg.has(e)||(Fg.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Ug(...e){}class gr{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new wo(!1),this.onMicrotaskEmpty=new wo(!1),this.onStable=new wo(!1),this.onError=new wo(!1),typeof Zone>"u")throw new _e(908,!1);Zone.assertZonePatched();const m=this;m._nesting=0,m._outer=m._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(m._inner=m._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(m._inner=m._inner.fork(Zone.longStackTraceZoneSpec)),m.shouldCoalesceEventChangeDetection=!o&&i,m.shouldCoalesceRunChangeDetection=o,m.lastRequestAnimationFrameId=-1,m.nativeRequestAnimationFrame=function nM(){const e="function"==typeof hn.requestAnimationFrame;let n=hn[e?"requestAnimationFrame":"setTimeout"],i=hn[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&i){const o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o);const m=i[Zone.__symbol__("OriginalDelegate")];m&&(i=m)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function sM(e){const n=()=>{!function rM(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(hn,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Th(e),e.isCheckStableRunning=!0,Ih(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Th(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,o,m,x,P,B)=>{if(function oM(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(B))return i.invokeTask(m,x,P,B);try{return Bg(e),i.invokeTask(m,x,P,B)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===x.type||e.shouldCoalesceRunChangeDetection)&&n(),$g(e)}},onInvoke:(i,o,m,x,P,B,J)=>{try{return Bg(e),i.invoke(m,x,P,B,J)}finally{e.shouldCoalesceRunChangeDetection&&n(),$g(e)}},onHasTask:(i,o,m,x)=>{i.hasTask(m,x),o===m&&("microTask"==x.change?(e._hasPendingMicrotasks=x.microTask,Th(e),Ih(e)):"macroTask"==x.change&&(e.hasPendingMacrotasks=x.macroTask))},onHandleError:(i,o,m,x)=>(i.handleError(m,x),e.runOutsideAngular(()=>e.onError.emit(x)),!1)})}(m)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!gr.isInAngularZone())throw new _e(909,!1)}static assertNotInAngularZone(){if(gr.isInAngularZone())throw new _e(909,!1)}run(n,i,o){return this._inner.run(n,i,o)}runTask(n,i,o,m){const x=this._inner,P=x.scheduleEventTask("NgZoneEvent: "+m,n,iM,Ug,Ug);try{return x.runTask(P,i,o)}finally{x.cancelTask(P)}}runGuarded(n,i,o){return this._inner.runGuarded(n,i,o)}runOutsideAngular(n){return this._outer.run(n)}}const iM={};function Ih(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 Th(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Bg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function $g(e){e._nesting--,Ih(e)}class Sh{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new wo,this.onMicrotaskEmpty=new wo,this.onStable=new wo,this.onError=new wo}run(n,i,o){return n.apply(i,o)}runGuarded(n,i,o){return n.apply(i,o)}runOutsideAngular(n){return n()}runTask(n,i,o,m){return n.apply(i,o)}}var ta=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(ta||{});const Vg={destroy(){}};function hu(e,n){const i=n?.injector??Bn(xs);(n?.runOnServer||ea(i))&&i.get(Ga).internalCallbacks.push(e)}function jg(e,n){!n&&X();const i=n?.injector??Bn(xs);if(!ea(i))return Vg;Xs("NgAfterRender");const o=i.get(Ga),m=o.handler??=new Wg,x=n?.phase??ta.MixedReadWrite,P=()=>{m.unregister(J),B()},B=i.get(ga).onDestroy(P),J=uo(i,()=>new zg(x,e));return m.register(J),{destroy:P}}function Hg(e,n){!n&&X();const i=n?.injector??Bn(xs);if(!ea(i))return Vg;Xs("NgAfterNextRender");const o=i.get(Ga),m=o.handler??=new Wg,x=n?.phase??ta.MixedReadWrite,P=()=>{m.unregister(J),B()},B=i.get(ga).onDestroy(P),J=uo(i,()=>new zg(x,()=>{P(),e()}));return m.register(J),{destroy:P}}class zg{constructor(n,i){this.phase=n,this.callbackFn=i,this.zone=Bn(gr),this.errorHandler=Bn(Lo,{optional:!0}),Bn(cu,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class Wg{constructor(){this.executingCallbacks=!1,this.buckets={[ta.EarlyRead]:new Set,[ta.Write]:new Set,[ta.MixedReadWrite]:new Set,[ta.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){this.executingCallbacks=!0;for(const n of Object.values(this.buckets))for(const i of n)i.invoke();this.executingCallbacks=!1;for(const n of this.deferredCallbacks)this.buckets[n.phase].add(n);this.deferredCallbacks.clear()}destroy(){for(const n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}}let Ga=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const i=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const o of i)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=jn({token:e,providedIn:"root",factory:()=>new e})}return e})();function Ah(e){return void 0!==e.ngModule}function na(e){return!!dr(e)}function fu(e){return!!er(e)}function Gg(e){return!!pi(e)}function tc(e){return!!oi(e)}function cM(e,n){if(Ke(e)&&!(e=me(e)))throw new Error(`Expected forwardRef function, imported from "${yn(n)}", to return a standalone entity or NgModule but got "${yn(e)||e}".`);if(null==dr(e)){const i=oi(e)||pi(e)||er(e);if(null==i)throw Ah(e)?new Error(`A module with providers was imported from "${yn(n)}". Modules with providers are not supported in standalone components imports.`):new Error(`The "${yn(e)}" type, imported from "${yn(n)}", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`);if(!i.standalone)throw new Error(`The "${yn(e)}" ${function lM(e){return oi(e)?"component":pi(e)?"directive":er(e)?"pipe":"type"}(e)}, imported from "${yn(n)}", is not standalone. Did you forget to add the standalone: true flag?`)}}const mu=!0;class Kg{constructor(){this.ownerNgModule=new Map,this.ngModulesWithSomeUnresolvedDecls=new Set,this.ngModulesScopeCache=new Map,this.standaloneComponentsScopeCache=new Map}resolveNgModulesDecls(){if(0!==this.ngModulesWithSomeUnresolvedDecls.size){for(const n of this.ngModulesWithSomeUnresolvedDecls){const i=dr(n);if(i?.declarations)for(const o of Ms(i.declarations))tc(o)&&this.ownerNgModule.set(o,n)}this.ngModulesWithSomeUnresolvedDecls.clear()}}getComponentDependencies(n,i){this.resolveNgModulesDecls();const o=oi(n);if(null===o)throw new Error(`Attempting to get component dependencies for a type that is not a component: ${n}`);if(o.standalone){const m=this.getStandaloneComponentScope(n,i);return m.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...m.compilation.directives,...m.compilation.pipes,...m.compilation.ngModules]}}{if(!this.ownerNgModule.has(n))return{dependencies:[]};const m=this.getNgModuleScope(this.ownerNgModule.get(n));return m.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...m.compilation.directives,...m.compilation.pipes]}}}registerNgModule(n,i){if(!na(n))throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${n}`);this.ngModulesWithSomeUnresolvedDecls.add(n)}clearScopeCacheFor(n){this.ngModulesScopeCache.delete(n),this.standaloneComponentsScopeCache.delete(n)}getNgModuleScope(n){if(this.ngModulesScopeCache.has(n))return this.ngModulesScopeCache.get(n);const i=this.computeNgModuleScope(n);return this.ngModulesScopeCache.set(n,i),i}computeNgModuleScope(n){const i=dr(n,!0),o={exported:{directives:new Set,pipes:new Set},compilation:{directives:new Set,pipes:new Set}};for(const m of Ms(i.imports))if(na(m)){const x=this.getNgModuleScope(m);ia(x.exported.directives,o.compilation.directives),ia(x.exported.pipes,o.compilation.pipes)}else{if(!Or(m)){o.compilation.isPoisoned=!0;break}if(Gg(m)||tc(m))o.compilation.directives.add(m);else{if(!fu(m))throw new _e(1e3,"The standalone imported type is neither a component nor a directive nor a pipe");o.compilation.pipes.add(m)}}if(!o.compilation.isPoisoned)for(const m of Ms(i.declarations)){if(na(m)||Or(m)){o.compilation.isPoisoned=!0;break}fu(m)?o.compilation.pipes.add(m):o.compilation.directives.add(m)}for(const m of Ms(i.exports))if(na(m)){const x=this.getNgModuleScope(m);ia(x.exported.directives,o.exported.directives),ia(x.exported.pipes,o.exported.pipes),ia(x.exported.directives,o.compilation.directives),ia(x.exported.pipes,o.compilation.pipes)}else fu(m)?o.exported.pipes.add(m):o.exported.directives.add(m);return o}getStandaloneComponentScope(n,i){if(this.standaloneComponentsScopeCache.has(n))return this.standaloneComponentsScopeCache.get(n);const o=this.computeStandaloneComponentScope(n,i);return this.standaloneComponentsScopeCache.set(n,o),o}computeStandaloneComponentScope(n,i){const o={compilation:{directives:new Set([n]),pipes:new Set,ngModules:new Set}};for(const m of Tn(i??[])){const x=me(m);try{cM(x,n)}catch{return o.compilation.isPoisoned=!0,o}if(na(x)){o.compilation.ngModules.add(x);const P=this.getNgModuleScope(x);if(P.exported.isPoisoned)return o.compilation.isPoisoned=!0,o;ia(P.exported.directives,o.compilation.directives),ia(P.exported.pipes,o.compilation.pipes)}else if(fu(x))o.compilation.pipes.add(x);else{if(!Gg(x)&&!tc(x))return o.compilation.isPoisoned=!0,o;o.compilation.directives.add(x)}}return o}isOrphanComponent(n){const i=oi(n);return!(!i||i.standalone||(this.resolveNgModulesDecls(),this.ownerNgModule.has(n)))}}function ia(e,n){for(const i of e)n.add(i)}const Ka=new Kg;function pu(e,n,i){let o=i?e.styles:null,m=i?e.classes:null,x=0;if(null!==n)for(let P=0;P0&&ng(e,i,x.join(" "))}}(Ft,Ir,en,o),void 0!==i&&function gM(e,n,i){const o=e.projection=[];for(let m=0;m{class e{static#e=this.__NG_ELEMENT_ID__=_M}return e})();function _M(){return e_(Xi(),tn())}const vM=_u,Jg=class extends vM{constructor(n,i,o){super(),this._lContainer=n,this._hostTNode=i,this._hostLView=o}get element(){return La(this._hostTNode,this._hostLView)}get injector(){return new xr(this._hostTNode,this._hostLView)}get parentInjector(){const n=Ac(this._hostTNode,this._hostLView);if(gd(n)){const i=Sl(n,this._hostLView),o=Tl(n);return new xr(i[mn].data[o+8],i)}return new xr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const i=qg(this._lContainer);return null!==i&&i[n]||null}get length(){return this._lContainer.length-rr}createEmbeddedView(n,i,o){let m,x;"number"==typeof o?m=o:null!=o&&(m=o.index,x=o.injector);const P=Wa(this._lContainer,n.ssrId),B=n.createEmbeddedViewImpl(i||{},x,P);return this.insertImpl(B,m,Ha(this._hostTNode,P)),B}createComponent(n,i,o,m,x){const P=n&&!wn(n);let B;if(P)B=i;else{const Vt=i||{};B=Vt.index,o=Vt.injector,m=Vt.projectableNodes,x=Vt.environmentInjector||Vt.ngModuleRef}const J=P?n:new Ya(oi(n)),he=o||this.parentInjector;if(!x&&null==J.ngModule){const en=(P?he:this.parentInjector).get(Lr,null);en&&(x=en)}const ke=oi(J.componentType??{}),et=Wa(this._lContainer,ke?.id??null),Ft=J.create(he,m,et?.firstChild??null,x);return this.insertImpl(Ft.hostView,B,Ha(this._hostTNode,et)),Ft}insert(n,i){return this.insertImpl(n,i,!0)}insertImpl(n,i,o){const m=n._lView;if(function CC(e){return hr(e[Ai])}(m)){const B=this.indexOf(n);if(-1!==B)this.detach(B);else{const J=m[Ai],he=new Jg(J,J[nr],J[Ai]);he.detach(he.indexOf(n))}}const x=this._adjustIndex(i),P=this._lContainer;return Gl(P,m,x,o),n.attachToViewContainerRef(),Mi(kh(P),x,n),n}move(n,i){return this.insert(n,i)}indexOf(n){const i=qg(this._lContainer);return null!==i?i.indexOf(n):-1}remove(n){const i=this._adjustIndex(n,-1),o=Vl(this._lContainer,i);o&&(Xn(kh(this._lContainer),i),Qc(o[mn],o))}detach(n){const i=this._adjustIndex(n,-1),o=Vl(this._lContainer,i);return o&&null!=Xn(kh(this._lContainer),i)?new za(o):null}_adjustIndex(n,i=0){return n??this.length+i}};function qg(e){return e[8]}function kh(e){return e[8]||(e[8]=[])}function e_(e,n){let i;const o=n[e.index];return hr(o)?i=o:(i=pg(o,n,null,e),n[e.index]=i,tu(n,i)),t_(i,n,e,o),new Jg(i,e,n)}let t_=i_,Oh=()=>!1;function n_(e,n,i){return Oh(e,n,i)}function i_(e,n,i,o){if(e[fs])return;let m;m=8&i.type?Vi(o):function bM(e,n){const i=e[Wn],o=i.createComment(""),m=os(n,e);return ba(i,Xc(i,m),o,function UE(e,n){return e.nextSibling(n)}(i,m),!1),o}(n,i),e[fs]=m}function yM(e,n,i){if(e[fs]&&e[po])return!0;const o=i[Hi],m=n.index-Kn;if(!o||Pc(n)||Vc(o,m))return!1;const P=Vd(o,m),B=o.data[Ll]?.[m],[J,he]=function Yx(e,n){const i=[];for(const o of n)for(let m=0;m<(o[Uc]??1);m++){const x={data:o,firstChild:null};o[Pa]>0&&(x.firstChild=e,e=lu(o[Pa],e)),i.push(x)}return[e,i]}(P,B);return e[fs]=J,e[po]=he,!0}function CM(e,n,i,o){Oh(e,i,n)||i_(e,n,i,o)}class Rh{constructor(n){this.queryList=n,this.matches=null}clone(){return new Rh(this.queryList)}setDirty(){this.queryList.setDirty()}}class Lh{constructor(n=[]){this.queries=n}createEmbeddedView(n){const i=n.queries;if(null!==i){const o=null!==n.contentQueries?n.contentQueries[0]:i.length,m=[];for(let x=0;xn.trim())}(n):n}}class Nh{constructor(n=[]){this.queries=n}elementStart(n,i){for(let o=0;o0)o.push(P[B/2]);else{const he=x[B+1],ke=n[-J];for(let et=rr;et(r(n),n.value);return i[b]=n,i}(e),o=i[b];return n?.equal&&(o.equal=n.equal),i.set=m=>ce(o,m),i.update=m=>function ue(e,n){v()||$(),ce(e,n(e.value))}(o,m),i.asReadonly=h_.bind(i),i}function h_(){const e=this[b];if(void 0===e.readonlyFn){const n=()=>this();n[b]=e,e.readonlyFn=n}return e.readonlyFn}function f_(e){return $h(e)&&"function"==typeof e.set}function Vh(e,n){let i;const o=R(()=>{i._dirtyCounter();const m=function AM(e,n){const i=e._lView,o=e._queryIndex;if(void 0===i||void 0===o||4&i[kn])return n?void 0:di;const m=Uh(i,o),x=u_(i,o);return m.reset(x,Rp),n?m.first:m._changesDetected||void 0===e._flatValue?e._flatValue=m.toArray():e._flatValue}(i,e);if(n&&void 0===m)throw new _e(-951,!1);return m});return i=o[b],i._dirtyCounter=d_(0),i._flatValue=void 0,o}function m_(){return Vh(!0,!1)}function p_(){return Vh(!0,!0)}function g_(){return Vh(!1,!1)}function __(e,n){const i=e[b];i._lView=tn(),i._queryIndex=n,i._queryList=Uh(i._lView,n),i._queryList.onDirty(()=>i._dirtyCounter.update(o=>o+1))}function v_(e,n){return m_()}const OM=(v_.required=function kM(e,n){return p_()},v_);function RM(e,n){return g_()}function b_(e,n){return m_()}const NM=(b_.required=function LM(e,n){return p_()},b_);function PM(e,n){return g_()}function y_(e){const n=Object.create(rt),i=new xd;function o(){return r(n),C_(n.value),n.value}return n.value=e,o[b]=n,o.asReadonly=h_.bind(o),o.set=m=>{n.equal(n.value,m)||(ce(n,m),i.emit(m))},o.update=m=>{C_(n.value),o.set(m(n.value))},o.subscribe=i.subscribe.bind(i),o.destroyRef=i.destroyRef,o}function C_(e){if(e===vt)throw new _e(-952,!1)}function w_(e){return y_(e)}const UM=(w_.required=function FM(){return y_(vt)},w_);class nc{}const BM=rn("ContentChildren",(e,n={})=>({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0,...n}),nc),$M=rn("ContentChild",(e,n={})=>({selector:e,first:!0,isViewQuery:!1,descendants:!0,...n}),nc),VM=rn("ViewChildren",(e,n={})=>({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0,...n}),nc),jM=rn("ViewChild",(e,n)=>({selector:e,first:!0,isViewQuery:!0,descendants:!0,...n}),nc);function x_(e){const n=[],i=new Map;function o(m){let x=i.get(m);if(!x){const P=e(m);i.set(m,x=P.then(KM))}return x}return Za.forEach((m,x)=>{const P=[];m.templateUrl&&P.push(o(m.templateUrl).then(he=>{m.template=he}));const B="string"==typeof m.styles?[m.styles]:m.styles||[];if(m.styles=B,m.styleUrl&&m.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(m.styleUrls?.length){const he=m.styles.length,ke=m.styleUrls;m.styleUrls.forEach((et,Rt)=>{B.push(""),P.push(o(et).then(Ft=>{B[he+Rt]=Ft,ke.splice(ke.indexOf(et),1),0==ke.length&&(m.styleUrls=void 0)}))})}else m.styleUrl&&P.push(o(m.styleUrl).then(he=>{B.push(he),m.styleUrl=void 0}));const J=Promise.all(P).then(()=>function YM(e){ic.delete(e)}(x));n.push(J)}),D_(),Promise.all(n).then(()=>{})}let Za=new Map;const ic=new Set;function zM(e){return ic.has(e)}function M_(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length||e.styleUrl)}function D_(){const e=Za;return Za=new Map,e}function WM(e){ic.clear(),e.forEach((n,i)=>ic.add(i)),Za=e}function KM(e){return"string"==typeof e?e:e.text()}const vu=new Map;let I_=!0;function jh(e,n){(function ZM(e,n,i){if(n&&n!==i&&I_)throw new Error(`Duplicate module registered for ${e} - ${Xe(n)} vs ${Xe(n.name)}`)})(n,vu.get(n)||null,e),vu.set(n,e)}function T_(e){return vu.get(e)}function QM(e){I_=!e}function S_(e,n,i){const o=tn(),m=or(),x=os(m,o);if(2===m.type&&"iframe"===n.toLowerCase()){const P=x;throw P.src="",P.srcdoc=Fa(""),Hl(o[Wn],P),new _e(-910,!1)}return e}function A_(e){return Object.getPrototypeOf(e.prototype).constructor}function Hh(e){let n=A_(e.type),i=!0;const o=[e];for(;n;){let m;if(ss(e))m=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new _e(903,!1);m=n.\u0275dir}if(m){if(i){o.push(m);const P=e;P.inputs=bu(e.inputs),P.inputTransforms=bu(e.inputTransforms),P.declaredInputs=bu(e.declaredInputs),P.outputs=bu(e.outputs);const B=m.hostBindings;B&&tD(e,B);const J=m.viewQuery,he=m.contentQueries;if(J&&qM(e,J),he&&eD(e,he),XM(e,m),Qe(e.outputs,m.outputs),ss(m)&&m.data.animation){const ke=e.data;ke.animation=(ke.animation||[]).concat(m.data.animation)}}const x=m.features;if(x)for(let P=0;P=0;o--){const m=e[o];m.hostVars=n+=m.hostVars,m.hostAttrs=je(m.hostAttrs,i=je(i,m.hostAttrs))}}(o)}function XM(e,n){for(const i in n.inputs){if(!n.inputs.hasOwnProperty(i)||e.inputs.hasOwnProperty(i))continue;const o=n.inputs[i];if(void 0!==o&&(e.inputs[i]=o,e.declaredInputs[i]=n.declaredInputs[i],null!==n.inputTransforms)){const m=Array.isArray(o)?o[0]:o;if(!n.inputTransforms.hasOwnProperty(m))continue;e.inputTransforms??={},e.inputTransforms[m]=n.inputTransforms[m]}}}function bu(e){return e===qi?{}:e===di?[]:e}function qM(e,n){const i=e.viewQuery;e.viewQuery=i?(o,m)=>{n(o,m),i(o,m)}:n}function eD(e,n){const i=e.contentQueries;e.contentQueries=i?(o,m,x)=>{n(o,m,x),i(o,m,x)}:n}function tD(e,n){const i=e.hostBindings;e.hostBindings=i?(o,m)=>{n(o,m),i(o,m)}:n}const nD=["providersResolver"],iD=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function k_(e){let i,n=A_(e.type);i=ss(e)?n.\u0275cmp:n.\u0275dir;const o=e;for(const m of nD)o[m]=i[m];if(ss(i))for(const m of iD)o[m]=i[m]}function O_(e){const n=i=>{const o=(Array.isArray(e)?e:e()).map(m=>"function"==typeof m?{directive:me(m),inputs:qi,outputs:qi}:{directive:me(m.directive),inputs:L_(m.inputs),outputs:L_(m.outputs)});null===i.hostDirectives?(i.findHostDirectiveDefs=R_,i.hostDirectives=o):i.hostDirectives.unshift(...o)};return n.ngInherit=!0,n}function R_(e,n,i){if(null!==e.hostDirectives)for(const o of e.hostDirectives){const m=pi(o.directive);rD(m.declaredInputs,o.inputs),R_(m,n,i),i.set(m,o),n.push(m)}}function L_(e){if(void 0===e||0===e.length)return qi;const n={};for(let i=0;ii()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Cu extends F_{constructor(n){super(),this.moduleType=n}create(n){return new yu(this.moduleType,n,[])}}class B_ extends ya{constructor(n){super(),this.componentFactoryResolver=new Yg(this),this.instance=null;const i=new As([...n.providers,{provide:ya,useValue:this},{provide:ec,useValue:this.componentFactoryResolver}],n.parent||Cs(),n.debugName,new Set(["environment"]));this.injector=i,n.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function zh(e,n,i=null){return new B_({providers:e,parent:n,debugName:i,runEnvironmentInitializers:!0}).injector}let aD=(()=>{class e{constructor(){this.cachedInjectors=new Map}getOrCreateInjector(i,o,m,x){if(!this.cachedInjectors.has(i)){const P=m.length>0?zh(m,o,x):null;this.cachedInjectors.set(i,P)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(const i of this.cachedInjectors.values())null!==i&&i.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=jn({token:e,providedIn:"environment",factory:()=>new e})}return e})();const wu="__ngAsyncComponentMetadataFn__";function lD(e){return e[wu]??null}function cD(e,n,i){const o=e;return o[wu]=()=>Promise.all(n()).then(m=>(i(...m),o[wu]=null,m)),o[wu]}function $_(e,n,i,o){return ot(()=>{const m=e;null!==n&&(m.hasOwnProperty("decorators")&&void 0!==m.decorators?m.decorators.push(...n):m.decorators=n),null!==i&&(m.ctorParameters=i),null!==o&&(m.propDecorators=m.hasOwnProperty("propDecorators")&&void 0!==m.propDecorators?{...m.propDecorators,...o}:o)})}let Qa=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new We.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const i=this.taskId++;return this.pendingTasks.add(i),i}remove(i){this.pendingTasks.delete(i),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(o){return new(o||e)};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Eu(e){return!!Wh(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Wh(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function V_(e,n){const i=Eu(e),o=Eu(n);return i&&o?function uD(e,n,i){const o=e[Symbol.iterator](),m=n[Symbol.iterator]();for(;;){const x=o.next(),P=m.next();if(x.done&&P.done)return!0;if(x.done||P.done||!i(x.value,P.value))return!1}}(e,n,V_):!(i||!e||"object"!=typeof e&&"function"!=typeof e||o||!n||"object"!=typeof n&&"function"!=typeof n)||Object.is(e,n)}function xo(e,n,i){return e[n]=i}function rc(e,n){return e[n]}function _r(e,n,i){return!Object.is(e[n],i)&&(e[n]=i,!0)}function Ca(e,n,i,o){const m=_r(e,n,i);return _r(e,n+1,o)||m}function xu(e,n,i,o,m){const x=Ca(e,n,i,o);return _r(e,n+2,m)||x}function Ls(e,n,i,o,m,x){const P=Ca(e,n,i,o);return Ca(e,n+2,m,x)||P}function sc(e){return!(32&~e.flags)}function Xa(e,n,i,o,m,x,P,B){const J=tn(),he=bi(),ke=e+Kn,et=he.firstCreatePass?function hD(e,n,i,o,m,x,P,B,J){const he=n.consts,ke=ja(n,e,4,P||null,vo(he,B));mh(n,i,ke,vo(he,J)),Mc(n,ke);const et=ke.tView=fh(2,ke,o,m,x,n.directiveRegistry,n.pipeRegistry,null,n.schemas,he,null);return null!==n.queries&&(n.queries.template(n,ke),et.queries=n.queries.embeddedTView(ke)),ke}(ke,he,J,n,i,o,m,x,P):he.data[ke];bo(et,!1);const Rt=j_(he,J,et,e);Dl()&&Jc(he,J,Rt,et),qr(Rt,J);const Ft=pg(Rt,J,Rt,et);return J[ke]=Ft,tu(J,Ft),n_(Ft,et,J),Xo(et)&&dh(he,J,et),null!=P&&hh(J,et,B),Xa}let j_=H_;function H_(e,n,i,o){return yo(!0),n[Wn].createComment("")}function fD(e,n,i,o){const m=n[Hi],x=!m||Aa()||sc(i)||Vc(m,o);if(yo(x),x)return H_(0,n);const P=m.data[Nd]?.[o]??null;null!==P&&null!==i.tView&&null===i.tView.ssrId&&(i.tView.ssrId=P);const B=au(m,e,n,i);return $c(m,o,B),lu(jd(m,o),B)}var vr=function(e){return e[e.NOT_STARTED=0]="NOT_STARTED",e[e.IN_PROGRESS=1]="IN_PROGRESS",e[e.COMPLETE=2]="COMPLETE",e[e.FAILED=3]="FAILED",e}(vr||{});const z_=0,pD=1;var fr=function(e){return e[e.Placeholder=0]="Placeholder",e[e.Loading=1]="Loading",e[e.Complete=2]="Complete",e[e.Error=3]="Error",e}(fr||{}),oc=function(e){return e[e.Initial=-1]="Initial",e}(oc||{});const Ja=0,Mu=1,ac=2,Du=3,W_=4,G_=5;var Gh=function(e){return e[e.Manual=0]="Manual",e[e.Playthrough=1]="Playthrough",e}(Gh||{});function Iu(e,n,i){const o=1===e?G_:W_;null===n[o]&&(n[o]=[]),n[o].push(i)}function Kh(e,n){const i=1===e?G_:W_,o=n[i];if(null!==o){for(const m of o)m();n[i]=null}}function K_(e){Kh(1,e),Kh(0,e)}function Tu(e){return e+1}function wa(e,n){return e[Tu(n.index)]}function Ds(e,n){const i=Tu(n.index);return e.data[i]}function Yh(e,n){return n===fr.Placeholder?e.placeholderBlockConfig?.[z_]??null:n===fr.Loading?e.loadingBlockConfig?.[z_]??null:null}function Y_(e){return e.loadingBlockConfig?.[pD]??null}function Z_(e,n){if(!e||0===e.length)return n;const i=new Set(e);for(const o of n)i.add(o);return e.length===i.size?e:Array.from(i)}function yD(e){return null!==e&&"object"==typeof e&&"number"==typeof e.primaryTmplIndex}const Su={passive:!0,capture:!0},Zh=new WeakMap,Qh=new WeakMap,qa=new WeakMap,Q_=["click","keydown"],X_=["mouseenter","focusin"];let el=null,Xh=0;class Jh{constructor(){this.callbacks=new Set,this.listener=()=>{for(const n of this.callbacks)n()}}}function J_(e,n){let i=Qh.get(e);if(!i){i=new Jh,Qh.set(e,i);for(const o of Q_)e.addEventListener(o,i.listener,Su)}return i.callbacks.add(n),()=>{const{callbacks:o,listener:m}=i;if(o.delete(n),0===o.size){Qh.delete(e);for(const x of Q_)e.removeEventListener(x,m,Su)}}}function q_(e,n){let i=Zh.get(e);if(!i){i=new Jh,Zh.set(e,i);for(const o of X_)e.addEventListener(o,i.listener,Su)}return i.callbacks.add(n),()=>{const{callbacks:o,listener:m}=i;if(o.delete(n),0===o.size){for(const x of X_)e.removeEventListener(x,m,Su);Zh.delete(e)}}}function ev(e,n,i){const o=i.get(gr);let m=qa.get(e);return el=el||o.runOutsideAngular(()=>new IntersectionObserver(x=>{for(const P of x)P.isIntersecting&&qa.has(P.target)&&o.run(qa.get(P.target).listener)})),m||(m=new Jh,o.runOutsideAngular(()=>el.observe(e)),qa.set(e,m),Xh++),m.callbacks.add(n),()=>{qa.has(e)&&(m.callbacks.delete(n),0===m.callbacks.size&&(el?.unobserve(e),qa.delete(e),Xh--),0===Xh&&(el?.disconnect(),el=null))}}function tl(e,n,i,o,m,x,P){const B=e[pr];hu(function J(){if(z(e))return;const he=wa(e,n),ke=he[Mu];if(ke!==oc.Initial&&ke!==fr.Placeholder)return;const et=function CD(e,n,i){return null==i?e:i>=0?zm(i,e):e[n.index][rr]??null}(e,n,o);if(!et)return void hu(J,{injector:B});if(z(et))return;const Rt=function wD(e,n){return _o(Kn+n,e)}(et,i),Ft=m(Rt,()=>{e!==et&&od(et,Ft),x()},B);e!==et&&Ec(et,Ft),Iu(P,he,Ft)},{injector:B})}function tv(e,n){const o=n[pr].get(MD);return o.add(e),()=>o.remove(e)}let MD=(()=>{class e{constructor(){this.executingCallbacks=!1,this.idleId=null,this.current=new Set,this.deferred=new Set,this.ngZone=Bn(gr),this.requestIdleCallbackFn=(typeof requestIdleCallback<"u"?requestIdleCallback:setTimeout).bind(globalThis),this.cancelIdleCallbackFn=(typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout).bind(globalThis)}add(i){(this.executingCallbacks?this.deferred:this.current).add(i),null===this.idleId&&this.scheduleIdleCallback()}remove(i){const{current:o,deferred:m}=this;o.delete(i),m.delete(i),0===o.size&&0===m.size&&this.cancelIdleCallback()}scheduleIdleCallback(){const i=()=>{this.cancelIdleCallback(),this.executingCallbacks=!0;for(const o of this.current)o();if(this.current.clear(),this.executingCallbacks=!1,this.deferred.size>0){for(const o of this.deferred)this.current.add(o);this.deferred.clear(),this.scheduleIdleCallback()}};this.idleId=this.requestIdleCallbackFn(()=>this.ngZone.run(i))}cancelIdleCallback(){null!==this.idleId&&(this.cancelIdleCallbackFn(this.idleId),this.idleId=null)}ngOnDestroy(){this.cancelIdleCallback(),this.current.clear(),this.deferred.clear()}static#e=this.\u0275prov=jn({token:e,providedIn:"root",factory:()=>new e})}return e})();function nv(e){return(n,i)=>iv(e,n,i)}function iv(e,n,i){const m=i[pr].get(DD);return m.add(e,n),()=>m.remove(n)}let DD=(()=>{class e{constructor(){this.executingCallbacks=!1,this.timeoutId=null,this.invokeTimerAt=null,this.current=[],this.deferred=[]}add(i,o){this.addToQueue(this.executingCallbacks?this.deferred:this.current,Date.now()+i,o),this.scheduleTimer()}remove(i){const{current:o,deferred:m}=this;-1===this.removeFromQueue(o,i)&&this.removeFromQueue(m,i),0===o.length&&0===m.length&&this.clearTimeout()}addToQueue(i,o,m){let x=i.length;for(let P=0;Po){x=P;break}li(i,x,o,m)}removeFromQueue(i,o){let m=-1;for(let x=0;x-1&&Vn(i,m,2),m}scheduleTimer(){const i=()=>{this.clearTimeout(),this.executingCallbacks=!0;const m=[...this.current],x=Date.now();for(let B=0;B=0&&Vn(this.current,0,P+1),this.executingCallbacks=!1,this.deferred.length>0){for(let B=0;B0){const m=Date.now(),x=this.current[0];if(null===this.timeoutId||this.invokeTimerAt&&this.invokeTimerAt-x>16){this.clearTimeout();const P=Math.max(x-m,16);this.invokeTimerAt=x,this.timeoutId=setTimeout(i,P)}}}clearTimeout(){null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}ngOnDestroy(){this.clearTimeout(),this.current.length=0,this.deferred.length=0}static#e=this.\u0275prov=jn({token:e,providedIn:"root",factory:()=>new e})}return e})();const ID=new Ee("DEFER_BLOCK_DEPENDENCY_INTERCEPTOR"),rv=new Ee("");function qh(e){return e.get(rv,null,{optional:!0})?.behavior!==Gh.Manual&&ea(e)}let ef=null;function sv(e,n,i,o){const m=e.consts;null!=i&&(n.placeholderBlockConfig=vo(m,i)),null!=o&&(n.loadingBlockConfig=vo(m,o)),null===ef&&(ef=SD)}function ov(e,n,i,o,m,x,P,B,J){const he=tn(),ke=bi(),et=e+Kn;if(Xa(e,null,0,0),ke.firstCreatePass){Xs("NgDefer");const gn={primaryTmplIndex:n,loadingTmplIndex:o??null,placeholderTmplIndex:m??null,errorTmplIndex:x??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:i??null,loadingState:vr.NOT_STARTED,loadingPromise:null,providers:null};J?.(ke,gn,B,P),function _D(e,n,i){const o=Tu(n);e.data[o]=i}(ke,et,gn)}const Rt=Xi();n_(he[et],Rt,he);const Vt=[null,oc.Initial,null,null,null,null];!function gD(e,n,i){e[Tu(n)]=i}(he,et,Vt);const en=()=>K_(Vt);Iu(0,Vt,()=>od(he,en)),Ec(he,en)}function av(e){const n=tn();if(_r(n,Qs(),e)){const o=s(null);try{const m=!!e,x=or(),B=wa(n,x)[Mu];!1===m&&B===oc.Initial?nl(n,x):!0===m&&(B===oc.Initial||B===fr.Placeholder)&&il(n,x)}finally{s(o)}}}function lv(e){const n=tn();if(_r(n,Qs(),e)){const o=s(null);try{const m=!!e,x=n[mn],P=or(),B=Ds(x,P);!0===m&&B.loadingState===vr.NOT_STARTED&&lc(B,n,P)}finally{s(o)}}}function cv(){Cv(tv)}function uv(){wv(tv)}function dv(){const e=tn(),n=Xi(),o=e[pr],m=Ds(e[mn],n);(!qh(o)||null===m.loadingTmplIndex)&&nl(e,n),il(e,n)}function hv(){const e=tn(),n=Xi(),o=Ds(e[mn],n);o.loadingState===vr.NOT_STARTED&&Au(o,e,n)}function fv(e){Cv(nv(e))}function mv(e){wv(nv(e))}function pv(e,n){const i=tn(),o=Xi();nl(i,o),tl(i,o,e,n,q_,()=>il(i,o),0)}function gv(e,n){const i=tn(),o=Xi(),x=Ds(i[mn],o);x.loadingState===vr.NOT_STARTED&&tl(i,o,e,n,q_,()=>lc(x,i,o),1)}function _v(e,n){const i=tn(),o=Xi();nl(i,o),tl(i,o,e,n,J_,()=>il(i,o),0)}function vv(e,n){const i=tn(),o=Xi(),x=Ds(i[mn],o);x.loadingState===vr.NOT_STARTED&&tl(i,o,e,n,J_,()=>lc(x,i,o),1)}function bv(e,n){const i=tn(),o=Xi();nl(i,o),tl(i,o,e,n,ev,()=>il(i,o),0)}function yv(e,n){const i=tn(),o=Xi(),x=Ds(i[mn],o);x.loadingState===vr.NOT_STARTED&&tl(i,o,e,n,ev,()=>lc(x,i,o),1)}function Cv(e){const n=tn(),i=Xi();nl(n,i);const o=e(()=>il(n,i),n);Iu(0,wa(n,i),o)}function wv(e){const n=tn(),i=Xi(),m=Ds(n[mn],i);m.loadingState===vr.NOT_STARTED&&Iu(1,wa(n,i),e(()=>lc(m,n,i),n))}function Uo(e,n,i,o=!1){const m=i[Ai],x=m[mn];if(z(m))return;const P=wa(m,n);if(Mv(P[Mu],e)&&Mv(P[Ja]??-1,e)){const J=Ds(x,n),ke=o||null===Y_(J)&&null===Yh(J,fr.Loading)&&!Yh(J,fr.Placeholder)?Ev:ef;try{ke(e,P,i,n,m)}catch(et){nu(m,et)}}}function Ev(e,n,i,o,m){const x=function vD(e,n,i){const m=Ds(n[mn],i);switch(e){case fr.Complete:return m.primaryTmplIndex;case fr.Loading:return m.loadingTmplIndex;case fr.Error:return m.errorTmplIndex;case fr.Placeholder:return m.placeholderTmplIndex;default:return null}}(e,m,o);if(null!==x){n[Mu]=e;const P=m[mn],J=El(P,x+Kn),he=0;let ke;if(yh(i,he),e===fr.Complete){const Ft=Ds(P,o),Vt=Ft.providers;if(Vt&&Vt.length>0){const en=m[pr],gn=function TD(e){return e instanceof gu&&e.injector.__ngOutletInjector}(en)?en:en.get(Lr);ke=gn.get(aD).getOrCreateInjector(Ft,gn,Vt,"")}}const et=Wa(i,J.tView.ssrId),Rt=Wl(m,J,null,{dehydratedView:et,injector:ke});Gl(i,Rt,he,Ha(J,et)),Yl(Rt)}}function SD(e,n,i,o,m){const x=Date.now(),B=Ds(m[mn],o);if(null===n[ac]||n[ac]<=x){n[ac]=null;const J=Y_(B),he=null!==n[Du];if(e!==fr.Loading||null===J||he){e>fr.Loading&&he&&(n[Du](),n[Du]=null,n[Ja]=null),Ev(e,n,i,o,m);const ke=Yh(B,e);null!==ke&&(n[ac]=x+ke,xv(ke,n,o,i,m))}else{n[Ja]=e;const ke=xv(J,n,o,i,m);n[Du]=ke}}else n[Ja]=e}function xv(e,n,i,o,m){return iv(e,()=>{const P=n[Ja];n[ac]=null,n[Ja]=null,null!==P&&Uo(P,i,o)},m)}function Mv(e,n){return e{let et=!1;const Rt=[],Ft=[];for(const Vt of ke){if("fulfilled"!==Vt.status){et=!0;break}{const en=Vt.value,gn=oi(en)||pi(en);if(gn)Rt.push(gn);else{const En=er(en);En&&Ft.push(En)}}}if(e.loadingPromise=null,J.remove(he),et){if(e.loadingState=vr.FAILED,null===e.errorTmplIndex){Jd(n);const en=new _e(750,!1);nu(n,en)}}else{e.loadingState=vr.COMPLETE;const Vt=P.tView;if(Rt.length>0){Vt.directiveRegistry=Z_(Vt.directiveRegistry,Rt);const gn=Vs(!1,...Rt.map(En=>En.type));e.providers=gn}Ft.length>0&&(Vt.pipeRegistry=Z_(Vt.pipeRegistry,Ft))}}):Promise.resolve().then(()=>{e.loadingPromise=null,e.loadingState=vr.COMPLETE,J.remove(he)})}function nl(e,n){Uo(fr.Placeholder,n,e[n.index])}function Dv(e,n,i){e.loadingPromise.then(()=>{e.loadingState===vr.COMPLETE?Uo(fr.Complete,n,i):e.loadingState===vr.FAILED&&Uo(fr.Error,n,i)})}function il(e,n){const i=e[mn],o=e[n.index];if(!qh(e[pr]))return;const x=wa(e,n),P=Ds(i,n);switch(K_(x),P.loadingState){case vr.NOT_STARTED:Uo(fr.Loading,n,o),Au(P,e,n),P.loadingState===vr.IN_PROGRESS&&Dv(P,n,o);break;case vr.IN_PROGRESS:Uo(fr.Loading,n,o),Dv(P,n,o);break;case vr.COMPLETE:Uo(fr.Complete,n,o);break;case vr.FAILED:Uo(fr.Error,n,o)}}function tf(e,n,i,o){const m=tn();return _r(m,Qs(),n)&&(bi(),Eo(or(),m,e,n,i,o)),tf}function rl(e,n){let i=!1,o=Oo();for(let x=1;x>17&32767}function ff(e){return 2|e}function Ea(e){return(131068&e)>>2}function mf(e,n){return-131069&e|n<<2}function pf(e){return 1|e}function Iv(e,n,i,o){const m=e[i+1],x=null===n;let P=o?ra(m):Ea(m),B=!1;for(;0!==P&&(!1===B||x);){const he=e[P+1];ND(e[P],n)&&(B=!0,e[P+1]=o?pf(he):ff(he)),P=o?ra(he):Ea(he)}B&&(e[i+1]=o?ff(m):pf(m))}function ND(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Wr(e,n)>=0}const Mr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Tv(e){return e.substring(Mr.key,Mr.keyEnd)}function PD(e){return e.substring(Mr.value,Mr.valueEnd)}function Sv(e,n){const i=Mr.textEnd;return i===n?-1:(n=Mr.keyEnd=function BD(e,n,i){for(;n32;)n++;return n}(e,Mr.key=n,i),fl(e,n,i))}function Av(e,n){const i=Mr.textEnd;let o=Mr.key=fl(e,n,i);return i===o?-1:(o=Mr.keyEnd=function $D(e,n,i){let o;for(;n=65&&(-33&o)<=90||o>=48&&o<=57);)n++;return n}(e,o,i),o=Ov(e,o,i),o=Mr.value=fl(e,o,i),o=Mr.valueEnd=function VD(e,n,i){let o=-1,m=-1,x=-1,P=n,B=P;for(;P32&&(B=P),x=m,m=o,o=-33&J}return B}(e,o,i),Ov(e,o,i))}function kv(e){Mr.key=0,Mr.keyEnd=0,Mr.value=0,Mr.valueEnd=0,Mr.textEnd=e.length}function fl(e,n,i){for(;n=0;i=Av(n,i))Fv(e,Tv(n),PD(n))}function Lv(e){eo(YD,Mo,e,!0)}function Mo(e,n){for(let i=function FD(e){return kv(e),Sv(e,fl(e,0,Mr.textEnd))}(n);i>=0;i=Sv(n,i))Bi(e,Tv(n),!0)}function qs(e,n,i,o){const m=tn(),x=bi(),P=Ro(2);x.firstUpdatePass&&Pv(x,e,P,o),n!==ai&&_r(m,P,n)&&Uv(x,x.data[Jr()],m,m[Wn],e,m[P+1]=function QD(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Xe(No(e)))),e}(n,i),o,P)}function eo(e,n,i,o){const m=bi(),x=Ro(2);m.firstUpdatePass&&Pv(m,null,x,o);const P=tn();if(i!==ai&&_r(P,x,i)){const B=m.data[Jr()];if($v(B,o)&&!Nv(m,x)){let J=o?B.classesWithoutHost:B.stylesWithoutHost;null!==J&&(i=Ot(J,i||"")),_f(m,B,P,i,o)}else!function ZD(e,n,i,o,m,x,P,B){m===ai&&(m=di);let J=0,he=0,ke=0=e.expandoStartIndex}function Pv(e,n,i,o){const m=e.data;if(null===m[i+1]){const x=m[Jr()],P=Nv(e,i);$v(x,o)&&null===n&&!P&&(n=!1),n=function HD(e,n,i,o){const m=ud(e);let x=o?n.residualClasses:n.residualStyles;if(null===m)0===(o?n.classBindings:n.styleBindings)&&(i=cc(i=yf(null,e,n,i,o),n.attrs,o),x=null);else{const P=n.directiveStylingLast;if(-1===P||e[P]!==m)if(i=yf(m,e,n,i,o),null===x){let J=function zD(e,n,i){const o=i?n.classBindings:n.styleBindings;if(0!==Ea(o))return e[ra(o)]}(e,n,o);void 0!==J&&Array.isArray(J)&&(J=yf(null,e,n,J[1],o),J=cc(J,n.attrs,o),function WD(e,n,i,o){e[ra(i?n.classBindings:n.styleBindings)]=o}(e,n,o,J))}else x=function GD(e,n,i){let o;const m=n.directiveEnd;for(let x=1+n.directiveStylingLast;x0)&&(he=!0)):ke=i,m)if(0!==J){const Rt=ra(e[B+1]);e[o+1]=ku(Rt,B),0!==Rt&&(e[Rt+1]=mf(e[Rt+1],o)),e[B+1]=function kD(e,n){return 131071&e|n<<17}(e[B+1],o)}else e[o+1]=ku(B,0),0!==B&&(e[B+1]=mf(e[B+1],o)),B=o;else e[o+1]=ku(J,0),0===B?B=o:e[J+1]=mf(e[J+1],o),J=o;he&&(e[o+1]=ff(e[o+1])),Iv(e,ke,o,!0),Iv(e,ke,o,!1),function LD(e,n,i,o,m){const x=m?e.residualClasses:e.residualStyles;null!=x&&"string"==typeof n&&Wr(x,n)>=0&&(i[o+1]=pf(i[o+1]))}(n,ke,e,o,x),P=ku(B,J),x?n.classBindings=P:n.styleBindings=P}(m,x,n,i,P,o)}}function yf(e,n,i,o,m){let x=null;const P=i.directiveEnd;let B=i.directiveStylingLast;for(-1===B?B=i.directiveStart:B++;B0;){const J=e[m],he=Array.isArray(J),ke=he?J[1]:J,et=null===ke;let Rt=i[m+1];Rt===ai&&(Rt=et?di:void 0);let Ft=et?Ar(Rt,o):ke===o?Rt:void 0;if(he&&!Ou(Ft)&&(Ft=Ar(J,o)),Ou(Ft)&&(B=Ft,P))return B;const Vt=e[m+1];m=P?ra(Vt):Ea(Vt)}if(null!==n){let J=x?n.residualClasses:n.residualStyles;null!=J&&(B=Ar(J,o))}return B}function Ou(e){return void 0!==e}function $v(e,n){return!!(e.flags&(n?8:16))}function Vv(e,n,i){eo(Bi,Mo,sl(tn(),e,n,i),!0)}function jv(e,n,i,o,m){eo(Bi,Mo,ol(tn(),e,n,i,o,m),!0)}function Hv(e,n,i,o,m,x,P){eo(Bi,Mo,al(tn(),e,n,i,o,m,x,P),!0)}function zv(e,n,i,o,m,x,P,B,J){eo(Bi,Mo,ll(tn(),e,n,i,o,m,x,P,B,J),!0)}function Wv(e,n,i,o,m,x,P,B,J,he,ke){eo(Bi,Mo,cl(tn(),e,n,i,o,m,x,P,B,J,he,ke),!0)}function Gv(e,n,i,o,m,x,P,B,J,he,ke,et,Rt){eo(Bi,Mo,ul(tn(),e,n,i,o,m,x,P,B,J,he,ke,et,Rt),!0)}function Kv(e,n,i,o,m,x,P,B,J,he,ke,et,Rt,Ft,Vt){eo(Bi,Mo,dl(tn(),e,n,i,o,m,x,P,B,J,he,ke,et,Rt,Ft,Vt),!0)}function Yv(e,n,i,o,m,x,P,B,J,he,ke,et,Rt,Ft,Vt,en,gn){eo(Bi,Mo,hl(tn(),e,n,i,o,m,x,P,B,J,he,ke,et,Rt,Ft,Vt,en,gn),!0)}function Zv(e){eo(Bi,Mo,rl(tn(),e),!0)}function Qv(){return tn()[Qi][Zi]}class XD{destroy(n){}updateValue(n,i){}swap(n,i){const o=Math.min(n,i),m=Math.max(n,i),x=this.detach(m);if(m-o>1){const P=this.detach(o);this.attach(o,x),this.attach(m,P)}else this.attach(o,x)}move(n,i){this.attach(i,this.detach(n))}}function Cf(e,n,i,o,m){return e===i&&Object.is(n,o)?1:Object.is(m(e,n),m(i,o))?-1:0}function wf(e,n,i,o){return!(void 0===n||!n.has(o)||(e.attach(i,n.get(o)),n.delete(o),0))}function Xv(e,n,i,o,m){if(wf(e,n,o,i(o,m)))e.updateValue(o,m);else{const x=e.create(o,m);e.attach(o,x)}}function Jv(e,n,i,o){const m=new Set;for(let x=n;x<=i;x++)m.add(o(x,e.at(x)));return m}class qv{constructor(){this.kvMap=new Map,this._vMap=void 0}has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;const i=this.kvMap.get(n);return void 0!==this._vMap&&this._vMap.has(i)?(this.kvMap.set(n,this._vMap.get(i)),this._vMap.delete(i)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,i){if(this.kvMap.has(n)){let o=this.kvMap.get(n);void 0===this._vMap&&(this._vMap=new Map);const m=this._vMap;for(;m.has(o);)o=m.get(o);m.set(o,i)}else this.kvMap.set(n,i)}forEach(n){for(let[i,o]of this.kvMap)if(n(o,i),void 0!==this._vMap){const m=this._vMap;for(;m.has(o);)o=m.get(o),n(o,i)}}}function eb(e,n,i){Xs("NgControlFlow");const o=tn(),m=Qs(),x=Ef(o,Kn+e);if(_r(o,m,n)){const B=s(null);try{if(yh(x,0),-1!==n){const J=xf(o[mn],Kn+n),he=Wa(x,J.tView.ssrId);Gl(x,Wl(o,J,i,{dehydratedView:he}),0,Ha(J,he))}}finally{s(B)}}else{const B=yg(x,0);void 0!==B&&(B[Zi]=i)}}class qD{constructor(n,i,o){this.lContainer=n,this.$implicit=i,this.$index=o}get $count(){return this.lContainer.length-rr}}function tb(e){return e}function nb(e,n){return n}class eI{constructor(n,i,o){this.hasEmptyBlock=n,this.trackByFn=i,this.liveCollection=o}}function ib(e,n,i,o,m,x,P,B,J,he,ke,et,Rt){Xs("NgControlFlow");const Ft=void 0!==J,Vt=tn(),en=B?P.bind(Vt[Qi][Zi]):P,gn=new eI(Ft,en);Vt[Kn+e]=gn,Xa(e+1,n,i,o,m,x),Ft&&Xa(e+2,J,he,ke,et,Rt)}class tI extends XD{constructor(n,i,o){super(),this.lContainer=n,this.hostLView=i,this.templateTNode=o,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-rr}at(n){return this.getLView(n)[Zi].$implicit}attach(n,i){const o=i[Hi];this.needsIndexUpdate||=n!==this.length,Gl(this.lContainer,i,n,Ha(this.templateTNode,o))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function nI(e,n){return Vl(e,n)}(this.lContainer,n)}create(n,i){const o=Wa(this.lContainer,this.templateTNode.tView.ssrId);return Wl(this.hostLView,this.templateTNode,new qD(this.lContainer,i,n),{dehydratedView:o})}destroy(n){Qc(n[mn],n)}updateValue(n,i){this.getLView(n)[Zi].$implicit=i}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n{e.destroy(B)})}(P,e,x.trackByFn),P.updateIndexes(),x.hasEmptyBlock){const B=Qs(),J=0===P.length;if(_r(o,B,J)){const he=i+2,ke=Ef(o,he);if(J){const et=xf(m,he),Rt=Wa(ke,et.tView.ssrId);Gl(ke,Wl(o,et,void 0,{dehydratedView:Rt}),0,Ha(et,Rt))}else yh(ke,0)}}}finally{s(n)}}function Ef(e,n){return e[n]}function xf(e,n){return El(e,n)}function Ru(e,n,i,o){const m=tn(),x=bi(),P=Kn+e,B=m[Wn],J=x.firstCreatePass?function rI(e,n,i,o,m,x){const P=n.consts,J=ja(n,e,2,o,vo(P,m));return mh(n,i,J,vo(P,x)),null!==J.attrs&&pu(J,J.attrs,!1),null!==J.mergedAttrs&&pu(J,J.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,J),J}(P,x,m,n,i,o):x.data[P],he=sb(x,m,J,B,n,e);m[P]=he;const ke=Xo(J);return bo(J,!0),ig(B,he,J),!sc(J)&&Dl()&&Jc(x,m,he,J),0===function EC(){return ei.lFrame.elementDepthCount}()&&qr(he,m),function xC(){ei.lFrame.elementDepthCount++}(),ke&&(dh(x,m,J),uh(x,J,m)),null!==o&&hh(m,J),Ru}function Lu(){let e=Xi();ad()?ld():(e=e.parent,bo(e,!1));const n=e;(function DC(e){return ei.skipHydrationRootTNode===e})(n)&&function TC(){ei.skipHydrationRootTNode=null}(),function MC(){ei.lFrame.elementDepthCount--}();const i=bi();return i.firstCreatePass&&(Mc(i,e),da(e)&&i.queries.elementEnd(e)),null!=n.classesWithoutHost&&function $C(e){return!!(8&e.flags)}(n)&&_f(i,n,tn(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function VC(e){return!!(16&e.flags)}(n)&&_f(i,n,tn(),n.stylesWithoutHost,!1),Lu}function Mf(e,n,i,o){return Ru(e,n,i,o),Lu(),Mf}let sb=(e,n,i,o,m,x)=>(yo(!0),Zc(o,m,cp()));function sI(e,n,i,o,m,x){const P=n[Hi],B=!P||Aa()||sc(i)||Vc(P,x);if(yo(B),B)return Zc(o,m,cp());const J=au(P,e,n,i);return u0(P,x)&&$c(P,x,J.nextSibling),P&&(Lp(i)||Np(J))&&Zs(i)&&(function IC(e){ei.skipHydrationRootTNode=e}(i),eg(J)),J}function Nu(e,n,i){const o=tn(),m=bi(),x=e+Kn,P=m.firstCreatePass?function aI(e,n,i,o,m){const x=n.consts,P=vo(x,o),B=ja(n,e,8,"ng-container",P);return null!==P&&pu(B,P,!0),mh(n,i,B,vo(x,m)),null!==n.queries&&n.queries.elementStart(n,B),B}(x,m,o,n,i):m.data[x];bo(P,!0);const B=ob(m,o,P,e);return o[x]=B,Dl()&&Jc(m,o,B,P),qr(B,o),Xo(P)&&(dh(m,o,P),uh(m,P,o)),null!=i&&hh(o,P),Nu}function Pu(){let e=Xi();const n=bi();return ad()?ld():(e=e.parent,bo(e,!1)),n.firstCreatePass&&(Mc(n,e),da(e)&&n.queries.elementEnd(e)),Pu}function Df(e,n,i){return Nu(e,n,i),Pu(),Df}let ob=(e,n,i,o)=>(yo(!0),ih(n[Wn],""));function lI(e,n,i,o){let m;const x=n[Hi],P=!x||Aa()||sc(i);if(yo(P),P)return ih(n[Wn],"");const B=au(x,e,n,i),J=function zw(e,n){const i=e.data;let o=i[Ld]?.[n]??null;return null===o&&i[Ll]?.[n]&&(o=jd(e,n)),o}(x,o);return $c(x,o,B),m=lu(J,B),m}function ab(){return tn()}function If(e,n,i){const o=tn();return _r(o,Qs(),n)&&ms(bi(),or(),o,e,n,o[Wn],i,!0),If}function Tf(e,n,i){const o=tn();if(_r(o,Qs(),n)){const x=bi(),P=or();ms(x,P,o,e,n,bg(ud(x.data),P,o),i,!0)}return Tf}const xa=void 0;var dI=["en",[["a","p"],["AM","PM"],xa],[["AM","PM"],xa,xa],[["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"]],xa,[["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"]],xa,[["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}",xa,"{1} 'at' {0}",xa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function uI(e){const i=Math.floor(Math.abs(e)),o=e.toString().replace(/^[^.]*\.?/,"").length;return 1===i&&0===o?1:5}];let ml={};function hI(e,n,i){"string"!=typeof n&&(i=n,n=e[pl.LocaleId]),n=n.toLowerCase().replace(/_/g,"-"),ml[n]=e,i&&(ml[n][pl.ExtraData]=i)}function Sf(e){const n=function pI(e){return e.toLowerCase().replace(/_/g,"-")}(e);let i=cb(n);if(i)return i;const o=n.split("-")[0];if(i=cb(o),i)return i;if("en"===o)return dI;throw new _e(701,!1)}function fI(e){return Sf(e)[pl.CurrencyCode]||null}function lb(e){return Sf(e)[pl.PluralCase]}function cb(e){return e in ml||(ml[e]=hn.ng&&hn.ng.common&&hn.ng.common.locales&&hn.ng.common.locales[e]),ml[e]}function mI(){ml={}}var pl=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(pl||{});const gI=["zero","one","two","few","many"],Ma="en-US",Fu={marker:"element"},Uu={marker:"ICU"};var ps=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}(ps||{});let ub=Ma;function Af(e){"string"==typeof e&&(ub=e.toLowerCase().replace(/_/g,"-"))}function db(e,n,i){const o=n.insertBeforeIndex,m=Array.isArray(o)?o[0]:o;return null===m?Q0(e,0,i):Vi(i[m])}function hb(e,n,i,o,m){const x=n.insertBeforeIndex;if(Array.isArray(x)){let P=o,B=null;if(3&n.type||(B=P,P=m),null!==P&&-1===n.componentOffset)for(let J=1;J1)for(let i=e.length-2;i>=0;i--){const o=e[i];mb(o)||yI(o,n)&&null===CI(o)&&wI(o,n.index)}}function mb(e){return!(64&e.type)}function yI(e,n){return mb(n)||e.index>n.index}function CI(e){const n=e.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function wI(e,n){const i=e.insertBeforeIndex;Array.isArray(i)?i[0]=n:(J0(db,hb),e.insertBeforeIndex=n)}function uc(e,n){const i=e.data[n];return null===i||"string"==typeof i?null:i.hasOwnProperty("currentCaseLViewIndex")?i:i.value}function MI(e,n,i){const o=ch(e,i,64,null,null);return fb(n,o),o}function Bu(e,n){const i=n[e.currentCaseLViewIndex];return null===i?i:i<0?~i:i}function pb(e){return e>>>17}function gb(e){return(131070&e)>>>1}let dc=0,hc=0;function vb(e,n,i){const o=e[Wn];switch(i){case Node.COMMENT_NODE:return ih(o,n);case Node.TEXT_NODE:return nh(o,n);case Node.ELEMENT_NODE:return Zc(o,n,null)}}let fc=(e,n,i,o)=>(yo(!0),vb(e,i,o));function SI(e,n,i,o){return yo(!0),vb(e,i,o)}function bb(e,n,i,o){const m=i[Wn];let P,x=null;for(let B=0;B>>1,i),null,null,Ft,Vt,null)}else switch(J){case Uu:const he=n[++B],ke=n[++B];null===i[ke]&&qr(i[ke]=fc(i,ke,he,Node.COMMENT_NODE),i);break;case Fu:const et=n[++B],Rt=n[++B];null===i[Rt]&&qr(i[Rt]=fc(i,Rt,et,Node.ELEMENT_NODE),i)}}}function yb(e,n,i,o,m){for(let x=0;x>>2;switch(3&ke){case 1:const Rt=i[++he],Ft=i[++he],Vt=e.data[et];"string"==typeof Vt?gh(n[Wn],n[et],null,Vt,Rt,J,Ft):ms(e,Vt,n,Rt,J,n[Wn],Ft,!1);break;case 0:const en=n[et];null!==en&&H0(n[Wn],en,J);break;case 2:OI(e,uc(e,et),n,J);break;case 3:Cb(e,uc(e,et),o,n)}}}}else{const J=i[x+1];if(J>0&&!(3&~J)){const ke=uc(e,J>>>2);n[ke.currentCaseLViewIndex]<0&&Cb(e,ke,o,n)}}x+=B}}function Cb(e,n,i,o){let m=o[n.currentCaseLViewIndex];if(null!==m){let x=dc;m<0&&(m=o[n.currentCaseLViewIndex]=~m,x=-1),yb(e,o,n.update[m],i,x)}}function OI(e,n,i,o){const m=function RI(e,n){let i=e.cases.indexOf(n);if(-1===i)switch(e.type){case 1:{const o=function _I(e,n){const i=lb(n)(parseInt(e,10)),o=gI[i];return void 0!==o?o:"other"}(n,function bI(){return ub}());i=e.cases.indexOf(o),-1===i&&"other"!==o&&(i=e.cases.indexOf("other"));break}case 0:i=e.cases.indexOf("other")}return-1===i?null:i}(n,o);if(Bu(n,i)!==m&&(wb(e,n,i),i[n.currentCaseLViewIndex]=null===m?null:~m,null!==m)){const P=i[n.anchorIdx];P&&bb(e,n.create[m],i,P)}}function wb(e,n,i){let o=Bu(n,i);if(null!==o){const m=n.remove[o];for(let x=0;x0){const B=_o(P,i);null!==B&&Hl(i[Wn],B)}else wb(e,uc(e,~P),i)}}}function LI(){const e=[];let i,o,n=-1;function x(B,J){n=0;const he=Bu(B,J);o=null!==he?B.remove[he]:di}function P(){if(n0?i[B]:(e.push(n,o),x(i[mn].data[~B],i),P())}return 0===e.length?null:(o=e.pop(),n=e.pop(),P())}return function m(B,J){for(i=J;e.length;)e.pop();return x(B.value,J),P}}const $u=/\ufffd(\d+):?\d*\ufffd/gi,NI=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,PI=/\ufffd(\d+)\ufffd/,xb=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,mc="\ufffd",FI=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,UI=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,BI=/\uE500/g;function Mb(e,n,i,o,m,x,P){const B=zl(e,o,1,null);let J=B<i.length&&i.push(J)}return{type:o,mainBinding:m,cases:n,values:i}}function kf(e){if(!e)return[];let n=0;const i=[],o=[],m=/[{}]/g;let x;for(m.lastIndex=0;x=m.exec(e);){const B=x.index;if("}"==x[0]){if(i.pop(),0==i.length){const J=e.substring(n,B);xb.test(J)?o.push(KI(J)):o.push(J),n=B+1}}else{if(0==i.length){const J=e.substring(n,B);o.push(J),n=B+1}i.push("{")}}const P=e.substring(n);return o.push(P),o}function YI(e,n,i,o,m,x,P,B,J){const he=[],ke=[],et=[];i.cases.push(P),i.create.push(he),i.remove.push(ke),i.update.push(et);const Ft=v0(qo()).getInertBodyElement(B),Vt=Kd(Ft)||Ft;return Vt?Sb(e,n,i,o,m,he,ke,et,Vt,x,J,0):0}function Sb(e,n,i,o,m,x,P,B,J,he,ke,et){let Rt=0,Ft=J.firstChild;for(;Ft;){const Vt=zl(n,o,1,null);switch(Ft.nodeType){case Node.ELEMENT_NODE:const en=Ft,gn=en.tagName.toLowerCase();if(Wd.hasOwnProperty(gn)){Of(x,Fu,gn,he,Vt),n.data[Vt]=gn;const ki=en.attributes;for(let Ir=0;Ir>>ps.SHIFT;let et=e[ke],Rt=!1;null===et&&(et=e[ke]=fc(e,ke,n[x],(P&ps.COMMENT)===ps.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),Rt=Dl()),he&&null!==i&&Rt&&ba(m,i,et,o,!1)}})(m,J.create,ke,B&&8&B.type?m[B.index]:null),ep(!0)}function Lf(){ep(!1)}function Ob(e,n,i){Rf(e,n,i),Lf()}function Rb(e,n){const i=bi(),o=vo(i.consts,n);!function HI(e,n,i){const m=Xi().index,x=[];if(e.firstCreatePass&&null===e.data[n]){for(let P=0;P0){const o=e.data[i];yb(e,n,Array.isArray(o)?o:o.update,Oo()-hc-1,dc)}dc=0,hc=0}(bi(),tn(),e+Kn)}function Nb(e,n={}){return function oT(e,n={}){let i=e;if(qI.test(e)){const o={},m=[kb];i=i.replace(eT,(x,P,B)=>{const J=P||B,he=o[J]||[];if(he.length||(J.split("|").forEach(en=>{const gn=en.match(sT),En=gn?parseInt(gn[1],10):kb,on=rT.test(en);he.push([En,on,en])}),o[J]=he),!he.length)throw new Error(`i18n postprocess: unmatched placeholder - ${J}`);const ke=m[m.length-1];let et=0;for(let en=0;enn.hasOwnProperty(x)?`${m}${n[x]}${J}`:o),i=i.replace(nT,(o,m)=>n.hasOwnProperty(m)?n[m]:o),i=i.replace(iT,(o,m)=>{if(n.hasOwnProperty(m)){const x=n[m];if(!x.length)throw new Error(`i18n postprocess: unmatched ICU - ${o} with key: ${m}`);return x.shift()}return o})),i}(e,n)}function Pf(e,n,i,o){const m=tn(),x=bi(),P=Xi();return Uf(x,m,m[Wn],P,e,n,o),Pf}function Ff(e,n){const i=Xi(),o=tn(),m=bi();return Uf(m,o,bg(ud(m.data),i,o),i,e,n),Ff}function Uf(e,n,i,o,m,x,P){const B=Xo(o),he=e.firstCreatePass&&vg(e),ke=n[Zi],et=_g(n);let Rt=!0;if(3&o.type||P){const en=os(o,n),gn=P?P(en):en,En=et.length,on=P?ki=>P(Vi(ki[o.index])):o.index;let Yn=null;if(!P&&B&&(Yn=function aT(e,n,i,o){const m=e.cleanup;if(null!=m)for(let x=0;xJ?B[J]:null}"string"==typeof P&&(x+=2)}return null}(e,n,m,o.index)),null!==Yn)(Yn.__ngLastListenerFn__||Yn).__ngNextListenerFn__=x,Yn.__ngLastListenerFn__=x,Rt=!1;else{x=Fb(o,n,ke,x,!1);const ki=i.listen(gn,m,x);et.push(x,ki),he&&he.push(m,on,En,En+1)}}else x=Fb(o,n,ke,x,!1);const Ft=o.outputs;let Vt;if(Rt&&null!==Ft&&(Vt=Ft[m])){const en=Vt.length;if(en)for(let gn=0;gn-1?Es(e.index,n):n);let J=Pb(n,i,o,P),he=x.__ngNextListenerFn__;for(;he;)J=Pb(n,i,he,P)&&J,he=he.__ngNextListenerFn__;return m&&!1===J&&P.preventDefault(),J}}function Ub(e=1){return function LC(e){return(ei.lFrame.contextLView=zm(e,ei.lFrame.contextLView))[Zi]}(e)}function lT(e,n){let i=null;const o=function Io(e){const n=e.attrs;if(null!=n){const i=n.indexOf(5);if(!(1&i))return n[i+1]}return null}(e);for(let m=0;m=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),n[i]=o}function Zb(e){return Sa(function SC(){return ei.lFrame.contextLView}(),Kn+e)}function Qb(e,n,i){Js(sl(tn(),e,n,i))}function Xb(e,n,i,o,m){Js(ol(tn(),e,n,i,o,m))}function Jb(e,n,i,o,m,x,P){Js(al(tn(),e,n,i,o,m,x,P))}function qb(e,n,i,o,m,x,P,B,J){Js(ll(tn(),e,n,i,o,m,x,P,B,J))}function ey(e,n,i,o,m,x,P,B,J,he,ke){Js(cl(tn(),e,n,i,o,m,x,P,B,J,he,ke))}function ty(e,n,i,o,m,x,P,B,J,he,ke,et,Rt){Js(ul(tn(),e,n,i,o,m,x,P,B,J,he,ke,et,Rt))}function ny(e,n,i,o,m,x,P,B,J,he,ke,et,Rt,Ft,Vt){Js(dl(tn(),e,n,i,o,m,x,P,B,J,he,ke,et,Rt,Ft,Vt))}function iy(e,n,i,o,m,x,P,B,J,he,ke,et,Rt,Ft,Vt,en,gn){Js(hl(tn(),e,n,i,o,m,x,P,B,J,he,ke,et,Rt,Ft,Vt,en,gn))}function ry(e){Js(rl(tn(),e))}function Yf(e,n,i,o,m){return qs(e,sl(tn(),n,i,o),m,!1),Yf}function Zf(e,n,i,o,m,x,P){return qs(e,ol(tn(),n,i,o,m,x),P,!1),Zf}function Qf(e,n,i,o,m,x,P,B,J){return qs(e,al(tn(),n,i,o,m,x,P,B),J,!1),Qf}function Xf(e,n,i,o,m,x,P,B,J,he,ke){return qs(e,ll(tn(),n,i,o,m,x,P,B,J,he),ke,!1),Xf}function Jf(e,n,i,o,m,x,P,B,J,he,ke,et,Rt){return qs(e,cl(tn(),n,i,o,m,x,P,B,J,he,ke,et),Rt,!1),Jf}function qf(e,n,i,o,m,x,P,B,J,he,ke,et,Rt,Ft,Vt){return qs(e,ul(tn(),n,i,o,m,x,P,B,J,he,ke,et,Rt,Ft),Vt,!1),qf}function em(e,n,i,o,m,x,P,B,J,he,ke,et,Rt,Ft,Vt,en,gn){return qs(e,dl(tn(),n,i,o,m,x,P,B,J,he,ke,et,Rt,Ft,Vt,en),gn,!1),em}function tm(e,n,i,o,m,x,P,B,J,he,ke,et,Rt,Ft,Vt,en,gn,En,on){return qs(e,hl(tn(),n,i,o,m,x,P,B,J,he,ke,et,Rt,Ft,Vt,en,gn,En),on,!1),tm}function nm(e,n,i){return qs(e,rl(tn(),n),i,!1),nm}function sy(e,n=""){const i=tn(),o=bi(),m=e+Kn,x=o.firstCreatePass?ja(o,m,1,n,null):o.data[m],P=oy(o,i,x,n,e);i[m]=P,Dl()&&Jc(o,i,P,x),bo(x,!1)}let oy=(e,n,i,o,m)=>(yo(!0),nh(n[Wn],o));function cT(e,n,i,o,m){const x=n[Hi],P=!x||Aa()||sc(i)||Vc(x,m);return yo(P),P?nh(n[Wn],o):au(x,e,n,i)}function im(e){return ju("",e,""),im}function ju(e,n,i){const o=tn(),m=sl(o,e,n,i);return m!==ai&&Fo(o,Jr(),m),ju}function rm(e,n,i,o,m){const x=tn(),P=ol(x,e,n,i,o,m);return P!==ai&&Fo(x,Jr(),P),rm}function sm(e,n,i,o,m,x,P){const B=tn(),J=al(B,e,n,i,o,m,x,P);return J!==ai&&Fo(B,Jr(),J),sm}function om(e,n,i,o,m,x,P,B,J){const he=tn(),ke=ll(he,e,n,i,o,m,x,P,B,J);return ke!==ai&&Fo(he,Jr(),ke),om}function am(e,n,i,o,m,x,P,B,J,he,ke){const et=tn(),Rt=cl(et,e,n,i,o,m,x,P,B,J,he,ke);return Rt!==ai&&Fo(et,Jr(),Rt),am}function lm(e,n,i,o,m,x,P,B,J,he,ke,et,Rt){const Ft=tn(),Vt=ul(Ft,e,n,i,o,m,x,P,B,J,he,ke,et,Rt);return Vt!==ai&&Fo(Ft,Jr(),Vt),lm}function cm(e,n,i,o,m,x,P,B,J,he,ke,et,Rt,Ft,Vt){const en=tn(),gn=dl(en,e,n,i,o,m,x,P,B,J,he,ke,et,Rt,Ft,Vt);return gn!==ai&&Fo(en,Jr(),gn),cm}function um(e,n,i,o,m,x,P,B,J,he,ke,et,Rt,Ft,Vt,en,gn){const En=tn(),on=hl(En,e,n,i,o,m,x,P,B,J,he,ke,et,Rt,Ft,Vt,en,gn);return on!==ai&&Fo(En,Jr(),on),um}function dm(e){const n=tn(),i=rl(n,e);return i!==ai&&Fo(n,Jr(),i),dm}function hm(e,n,i){f_(n)&&(n=n());const o=tn();return _r(o,Qs(),n)&&ms(bi(),or(),o,e,n,o[Wn],i,!1),hm}function ay(e,n){const i=f_(e);return i&&e.set(n),i}function fm(e,n){const i=tn(),o=bi(),m=Xi();return Uf(o,i,i[Wn],m,e,n),fm}function mm(e,n,i,o,m){if(e=me(e),Array.isArray(e))for(let x=0;x>20;if(hs(e)||!e.multi){const Ft=new Il(he,m,Va),Vt=gm(J,n,m?ke:ke+Rt,et);-1===Vt?(bd(Sc(B,P),x,J),pm(x,e,n.length),n.push(J),B.directiveStart++,B.directiveEnd++,m&&(B.providerIndexes+=1048576),i.push(Ft),P.push(Ft)):(i[Vt]=Ft,P[Vt]=Ft)}else{const Ft=gm(J,n,ke+Rt,et),Vt=gm(J,n,ke,ke+Rt),gn=Vt>=0&&i[Vt];if(m&&!gn||!m&&!(Ft>=0&&i[Ft])){bd(Sc(B,P),x,J);const En=function mT(e,n,i,o,m){const x=new Il(e,i,Va);return x.multi=[],x.index=n,x.componentProviders=0,ly(x,m,o&&!i),x}(m?fT:hT,i.length,m,o,he);!m&&gn&&(i[Vt].providerFactory=En),pm(x,e,n.length,0),n.push(J),B.directiveStart++,B.directiveEnd++,m&&(B.providerIndexes+=1048576),i.push(En),P.push(En)}else pm(x,e,Ft>-1?Ft:Vt,ly(i[m?Vt:Ft],he,!m&&o));!m&&o&&gn&&i[Vt].componentProviders++}}}function pm(e,n,i,o){const m=hs(n),x=function oo(e){return!!e.useClass}(n);if(m||x){const J=(x?me(n.useClass):n).prototype.ngOnDestroy;if(J){const he=e.destroyHooks||(e.destroyHooks=[]);if(!m&&n.multi){const ke=he.indexOf(i);-1===ke?he.push(i,[o,J]):he[ke+1].push(o,J)}else he.push(i,J)}}}function ly(e,n,i){return i&&e.componentProviders++,e.multi.push(n)-1}function gm(e,n,i,o){for(let m=i;m{i.providersResolver=(o,m)=>function dT(e,n,i){const o=bi();if(o.firstCreatePass){const m=ss(e);mm(i,o.data,o.blueprint,m,!0),mm(n,o.data,o.blueprint,m,!1)}}(o,m?m(e):e,n)}}let pT=(()=>{class e{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i)){const o=Vs(0,i.type),m=o.length>0?zh([o],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i,m)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(const i of this.cachedInjectors.values())null!==i&&i.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=jn({token:e,providedIn:"environment",factory:()=>new e(Li(Lr))})}return e})();function uy(e){Xs("NgStandalone"),e.getStandaloneInjector=n=>n.get(pT).getOrCreateStandaloneInjector(e)}function dy(e,n,i){const o=e.\u0275cmp;o.directiveDefs=$s(n,!1),o.pipeDefs=$s(i,!0)}function hy(e,n){return ot(()=>{const i=dr(e,!0);i.declarations=Hu(n.declarations||di),i.imports=Hu(n.imports||di),i.exports=Hu(n.exports||di),n.bootstrap&&(i.bootstrap=Hu(n.bootstrap)),Ka.registerNgModule(e,n)})}function Hu(e){if("function"==typeof e)return e;const n=Tn(e);return n.some(Ke)?()=>n.map(me).map(fy):n.map(fy)}function fy(e){return Ah(e)?e.ngModule:e}function my(e,n,i){const o=as()+e,m=tn();return m[o]===ai?xo(m,o,i?n.call(i):n()):rc(m,o)}function py(e,n,i,o){return xy(tn(),as(),e,n,i,o)}function gy(e,n,i,o,m){return My(tn(),as(),e,n,i,o,m)}function _y(e,n,i,o,m,x){return Dy(tn(),as(),e,n,i,o,m,x)}function vy(e,n,i,o,m,x,P){return Iy(tn(),as(),e,n,i,o,m,x,P)}function by(e,n,i,o,m,x,P,B){const J=as()+e,he=tn(),ke=Ls(he,J,i,o,m,x);return _r(he,J+4,P)||ke?xo(he,J+5,B?n.call(B,i,o,m,x,P):n(i,o,m,x,P)):rc(he,J+5)}function yy(e,n,i,o,m,x,P,B,J){const he=as()+e,ke=tn(),et=Ls(ke,he,i,o,m,x);return Ca(ke,he+4,P,B)||et?xo(ke,he+6,J?n.call(J,i,o,m,x,P,B):n(i,o,m,x,P,B)):rc(ke,he+6)}function Cy(e,n,i,o,m,x,P,B,J,he){const ke=as()+e,et=tn();let Rt=Ls(et,ke,i,o,m,x);return xu(et,ke+4,P,B,J)||Rt?xo(et,ke+7,he?n.call(he,i,o,m,x,P,B,J):n(i,o,m,x,P,B,J)):rc(et,ke+7)}function wy(e,n,i,o,m,x,P,B,J,he,ke){const et=as()+e,Rt=tn(),Ft=Ls(Rt,et,i,o,m,x);return Ls(Rt,et+4,P,B,J,he)||Ft?xo(Rt,et+8,ke?n.call(ke,i,o,m,x,P,B,J,he):n(i,o,m,x,P,B,J,he)):rc(Rt,et+8)}function Ey(e,n,i,o){return Ty(tn(),as(),e,n,i,o)}function gc(e,n){const i=e[n];return i===ai?void 0:i}function xy(e,n,i,o,m,x){const P=n+i;return _r(e,P,m)?xo(e,P+1,x?o.call(x,m):o(m)):gc(e,P+1)}function My(e,n,i,o,m,x,P){const B=n+i;return Ca(e,B,m,x)?xo(e,B+2,P?o.call(P,m,x):o(m,x)):gc(e,B+2)}function Dy(e,n,i,o,m,x,P,B){const J=n+i;return xu(e,J,m,x,P)?xo(e,J+3,B?o.call(B,m,x,P):o(m,x,P)):gc(e,J+3)}function Iy(e,n,i,o,m,x,P,B,J){const he=n+i;return Ls(e,he,m,x,P,B)?xo(e,he+4,J?o.call(J,m,x,P,B):o(m,x,P,B)):gc(e,he+4)}function Ty(e,n,i,o,m,x){let P=n+i,B=!1;for(let J=0;J=0;i--){const o=n[i];if(e===o.name)return o}}(n,i.pipeRegistry),i.data[m]=o,o.onDestroy&&(i.destroyHooks??=[]).push(m,o.onDestroy)):o=i.data[m];const x=o.factory||(o.factory=fn(o.type)),B=Rn(Va);try{const J=Tc(!1),he=x();return Tc(J),Yb(i,tn(),m,he),he}finally{Rn(B)}}function Ay(e,n,i){const o=e+Kn,m=tn(),x=Sa(m,o);return _c(m,o)?xy(m,as(),n,x.transform,i,x):x.transform(i)}function ky(e,n,i,o){const m=e+Kn,x=tn(),P=Sa(x,m);return _c(x,m)?My(x,as(),n,P.transform,i,o,P):P.transform(i,o)}function Oy(e,n,i,o,m){const x=e+Kn,P=tn(),B=Sa(P,x);return _c(P,x)?Dy(P,as(),n,B.transform,i,o,m,B):B.transform(i,o,m)}function Ry(e,n,i,o,m,x){const P=e+Kn,B=tn(),J=Sa(B,P);return _c(B,P)?Iy(B,as(),n,J.transform,i,o,m,x,J):J.transform(i,o,m,x)}function Ly(e,n,i){const o=e+Kn,m=tn(),x=Sa(m,o);return _c(m,o)?Ty(m,as(),n,x.transform,i,x):x.transform.apply(x,i)}function _c(e,n){return e[mn].data[n].pure}function Ny(e,n){return ru(e,n)}function Py(e,n){return()=>{try{return Ka.getComponentDependencies(e,n).dependencies}catch(i){throw console.error(`Computing dependencies in local compilation mode for the component "${e.name}" failed with the exception:`,i),i}}}function Fy(e,n){const i=oi(e);null!==i&&(i.debugInfo=n)}const cs={\u0275\u0275attribute:tf,\u0275\u0275attributeInterpolate1:nf,\u0275\u0275attributeInterpolate2:rf,\u0275\u0275attributeInterpolate3:sf,\u0275\u0275attributeInterpolate4:af,\u0275\u0275attributeInterpolate5:lf,\u0275\u0275attributeInterpolate6:cf,\u0275\u0275attributeInterpolate7:uf,\u0275\u0275attributeInterpolate8:df,\u0275\u0275attributeInterpolateV:hf,\u0275\u0275defineComponent:jo,\u0275\u0275defineDirective:Xr,\u0275\u0275defineInjectable:jn,\u0275\u0275defineInjector:Jt,\u0275\u0275defineNgModule:Us,\u0275\u0275definePipe:To,\u0275\u0275directiveInject:Va,\u0275\u0275getInheritedFactory:wp,\u0275\u0275inject:Li,\u0275\u0275injectAttribute:Oc,\u0275\u0275invalidFactory:og,\u0275\u0275invalidFactoryDep:ts,\u0275\u0275templateRefExtractor:Ny,\u0275\u0275resetView:Qm,\u0275\u0275HostDirectivesFeature:O_,\u0275\u0275NgOnChangesFeature:zn,\u0275\u0275ProvidersFeature:cy,\u0275\u0275CopyDefinitionFeature:k_,\u0275\u0275InheritDefinitionFeature:Hh,\u0275\u0275InputTransformsFeature:P_,\u0275\u0275StandaloneFeature:uy,\u0275\u0275nextContext:Ub,\u0275\u0275namespaceHTML:lp,\u0275\u0275namespaceMathML:ap,\u0275\u0275namespaceSVG:op,\u0275\u0275enableBindings:Km,\u0275\u0275disableBindings:Ym,\u0275\u0275elementStart:Ru,\u0275\u0275elementEnd:Lu,\u0275\u0275element:Mf,\u0275\u0275elementContainerStart:Nu,\u0275\u0275elementContainerEnd:Pu,\u0275\u0275elementContainer:Df,\u0275\u0275pureFunction0:my,\u0275\u0275pureFunction1:py,\u0275\u0275pureFunction2:gy,\u0275\u0275pureFunction3:_y,\u0275\u0275pureFunction4:vy,\u0275\u0275pureFunction5:by,\u0275\u0275pureFunction6:yy,\u0275\u0275pureFunction7:Cy,\u0275\u0275pureFunction8:wy,\u0275\u0275pureFunctionV:Ey,\u0275\u0275getCurrentView:ab,\u0275\u0275restoreView:Zm,\u0275\u0275listener:Pf,\u0275\u0275projection:$b,\u0275\u0275syntheticHostProperty:Tf,\u0275\u0275syntheticHostListener:Ff,\u0275\u0275pipeBind1:Ay,\u0275\u0275pipeBind2:ky,\u0275\u0275pipeBind3:Oy,\u0275\u0275pipeBind4:Ry,\u0275\u0275pipeBindV:Ly,\u0275\u0275projectionDef:Bb,\u0275\u0275hostProperty:If,\u0275\u0275property:gf,\u0275\u0275propertyInterpolate:Bf,\u0275\u0275propertyInterpolate1:Vu,\u0275\u0275propertyInterpolate2:$f,\u0275\u0275propertyInterpolate3:Vf,\u0275\u0275propertyInterpolate4:jf,\u0275\u0275propertyInterpolate5:Hf,\u0275\u0275propertyInterpolate6:zf,\u0275\u0275propertyInterpolate7:Wf,\u0275\u0275propertyInterpolate8:Gf,\u0275\u0275propertyInterpolateV:Kf,\u0275\u0275pipe:Sy,\u0275\u0275queryRefresh:Hb,\u0275\u0275queryAdvance:Kb,\u0275\u0275viewQuery:jb,\u0275\u0275viewQuerySignal:Gb,\u0275\u0275loadQuery:zb,\u0275\u0275contentQuery:Vb,\u0275\u0275contentQuerySignal:Wb,\u0275\u0275reference:Zb,\u0275\u0275classMap:Lv,\u0275\u0275classMapInterpolate1:Vv,\u0275\u0275classMapInterpolate2:jv,\u0275\u0275classMapInterpolate3:Hv,\u0275\u0275classMapInterpolate4:zv,\u0275\u0275classMapInterpolate5:Wv,\u0275\u0275classMapInterpolate6:Gv,\u0275\u0275classMapInterpolate7:Kv,\u0275\u0275classMapInterpolate8:Yv,\u0275\u0275classMapInterpolateV:Zv,\u0275\u0275styleMap:Js,\u0275\u0275styleMapInterpolate1:Qb,\u0275\u0275styleMapInterpolate2:Xb,\u0275\u0275styleMapInterpolate3:Jb,\u0275\u0275styleMapInterpolate4:qb,\u0275\u0275styleMapInterpolate5:ey,\u0275\u0275styleMapInterpolate6:ty,\u0275\u0275styleMapInterpolate7:ny,\u0275\u0275styleMapInterpolate8:iy,\u0275\u0275styleMapInterpolateV:ry,\u0275\u0275styleProp:vf,\u0275\u0275stylePropInterpolate1:Yf,\u0275\u0275stylePropInterpolate2:Zf,\u0275\u0275stylePropInterpolate3:Qf,\u0275\u0275stylePropInterpolate4:Xf,\u0275\u0275stylePropInterpolate5:Jf,\u0275\u0275stylePropInterpolate6:qf,\u0275\u0275stylePropInterpolate7:em,\u0275\u0275stylePropInterpolate8:tm,\u0275\u0275stylePropInterpolateV:nm,\u0275\u0275classProp:bf,\u0275\u0275advance:rg,\u0275\u0275template:Xa,\u0275\u0275conditional:eb,\u0275\u0275defer:ov,\u0275\u0275deferWhen:av,\u0275\u0275deferOnIdle:cv,\u0275\u0275deferOnImmediate:dv,\u0275\u0275deferOnTimer:fv,\u0275\u0275deferOnHover:pv,\u0275\u0275deferOnInteraction:_v,\u0275\u0275deferOnViewport:bv,\u0275\u0275deferPrefetchWhen:lv,\u0275\u0275deferPrefetchOnIdle:uv,\u0275\u0275deferPrefetchOnImmediate:hv,\u0275\u0275deferPrefetchOnTimer:mv,\u0275\u0275deferPrefetchOnHover:gv,\u0275\u0275deferPrefetchOnInteraction:vv,\u0275\u0275deferPrefetchOnViewport:yv,\u0275\u0275deferEnableTimerScheduling:sv,\u0275\u0275repeater:rb,\u0275\u0275repeaterCreate:ib,\u0275\u0275repeaterTrackByIndex:tb,\u0275\u0275repeaterTrackByIdentity:nb,\u0275\u0275componentInstance:Qv,\u0275\u0275text:sy,\u0275\u0275textInterpolate:im,\u0275\u0275textInterpolate1:ju,\u0275\u0275textInterpolate2:rm,\u0275\u0275textInterpolate3:sm,\u0275\u0275textInterpolate4:om,\u0275\u0275textInterpolate5:am,\u0275\u0275textInterpolate6:lm,\u0275\u0275textInterpolate7:cm,\u0275\u0275textInterpolate8:um,\u0275\u0275textInterpolateV:dm,\u0275\u0275i18n:Ob,\u0275\u0275i18nAttributes:Rb,\u0275\u0275i18nExp:Nf,\u0275\u0275i18nStart:Rf,\u0275\u0275i18nEnd:Lf,\u0275\u0275i18nApply:Lb,\u0275\u0275i18nPostprocess:Nb,\u0275\u0275resolveWindow:U0,\u0275\u0275resolveDocument:B0,\u0275\u0275resolveBody:qd,\u0275\u0275setComponentScope:dy,\u0275\u0275setNgModuleScope:hy,\u0275\u0275registerNgModuleType:jh,\u0275\u0275getComponentDepsFactory:Py,\u0275setClassDebugInfo:Fy,\u0275\u0275sanitizeHtml:I0,\u0275\u0275sanitizeStyle:T0,\u0275\u0275sanitizeResourceUrl:Zd,\u0275\u0275sanitizeScript:S0,\u0275\u0275sanitizeUrl:Yd,\u0275\u0275sanitizeUrlOrResourceUrl:O0,\u0275\u0275trustConstantHtml:A0,\u0275\u0275trustConstantResourceUrl:k0,\u0275\u0275validateIframeAttribute:S_,forwardRef:Re,resolveForwardRef:me,\u0275\u0275twoWayProperty:hm,\u0275\u0275twoWayBindingSet:ay,\u0275\u0275twoWayListener:fm,\u0275\u0275InputFlags:Qr};let gl=null;function bT(){gl=null}const vc=[];let vm=!1;function Uy(){if(!vm){vm=!0;try{for(let e=vc.length-1;e>=0;e--){const{moduleType:n,ngModule:i}=vc[e];i.declarations&&i.declarations.every(By)&&(vc.splice(e,1),ET(n,i))}}finally{vm=!1}}}function By(e){return Array.isArray(e)?e.every(By):!!me(e)}function $y(e,n={}){Vy(e,n),void 0!==n.id&&jh(e,n.id),function yT(e,n){vc.push({moduleType:e,ngModule:n})}(e,n)}function Vy(e,n,i=!1){const o=Tn(n.declarations||di);let m=null;Object.defineProperty(e,_i,{configurable:!0,get:()=>(null===m&&(m=st().compileNgModule(cs,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:Tn(n.bootstrap||di).map(me),declarations:o.map(me),imports:Tn(n.imports||di).map(me).map(Wy),exports:Tn(n.exports||di).map(me).map(Wy),schemas:n.schemas?Tn(n.schemas):null,id:n.id||null}),m.schemas||(m.schemas=[])),m)});let x=null;Object.defineProperty(e,hi,{get:()=>{if(null===x){const B=st();x=B.compileFactory(cs,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:Rc(e),target:B.FactoryTarget.NgModule,typeArgumentCount:0})}return x},configurable:!1});let P=null;Object.defineProperty(e,ut,{get:()=>{if(null===P){const B={name:e.name,type:e,providers:n.providers||di,imports:[(n.imports||di).map(me),(n.exports||di).map(me)]};P=st().compileInjector(cs,`ng:///${e.name}/\u0275inj.js`,B)}return P},configurable:!1})}function jy(e,n){return`Unexpected "${yn(e)}" found in the "declarations" array of the ${n}, "${yn(e)}" is marked as standalone and can't be declared in any NgModule - did you intend to import it instead (by adding it to the "imports" array)?`}let zu=new WeakMap,ym=new WeakMap;function wT(){zu=new WeakMap,ym=new WeakMap,vc.length=0,Ho.clear()}function ET(e,n){const i=Tn(n.declarations||di),o=Da(e);i.forEach(m=>{(m=me(m)).hasOwnProperty(Fn)?Cm(oi(m),o):!m.hasOwnProperty(yi)&&!m.hasOwnProperty(ar)&&(m.ngSelectorScope=e)})}function Cm(e,n){e.directiveDefs=()=>Array.from(n.compilation.directives).map(i=>i.hasOwnProperty(Fn)?oi(i):pi(i)).filter(i=>!!i),e.pipeDefs=()=>Array.from(n.compilation.pipes).map(i=>er(i)),e.schemas=n.schemas,e.tView=null}function Da(e){if(na(e)){if(mu){const n=Ka.getNgModuleScope(e);return{schemas:dr(e,!0).schemas||null,...n}}return function xT(e){const n=dr(e,!0);if(null!==n.transitiveCompileScopes)return n.transitiveCompileScopes;const i={schemas:n.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Ms(n.imports).forEach(o=>{const m=Da(o);m.exported.directives.forEach(x=>i.compilation.directives.add(x)),m.exported.pipes.forEach(x=>i.compilation.pipes.add(x))}),Ms(n.declarations).forEach(o=>{er(o)?i.compilation.pipes.add(o):i.compilation.directives.add(o)}),Ms(n.exports).forEach(o=>{const m=o;if(na(m)){const x=Da(m);x.exported.directives.forEach(P=>{i.compilation.directives.add(P),i.exported.directives.add(P)}),x.exported.pipes.forEach(P=>{i.compilation.pipes.add(P),i.exported.pipes.add(P)})}else er(m)?i.exported.pipes.add(m):i.exported.directives.add(m)}),n.transitiveCompileScopes=i,i}(e)}if(Or(e)){if(null!==(oi(e)||pi(e)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([e]),pipes:new Set}};if(null!==er(e))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([e])}}}throw new Error(`${e.name} does not have a module def (\u0275mod property)`)}function Wy(e){return Ah(e)?e.ngModule:e}let wm=0;function Gy(e,n){let i=null;(function HM(e,n){M_(n)&&(Za.set(e,n),ic.add(e))})(e,n),Yy(e,n),Object.defineProperty(e,Fn,{get:()=>{if(null===i){const o=st();if(M_(n)){const he=[`Component '${e.name}' is not resolved:`];throw n.templateUrl&&he.push(` - templateUrl: ${n.templateUrl}`),n.styleUrls&&n.styleUrls.length&&he.push(` - styleUrls: ${JSON.stringify(n.styleUrls)}`),n.styleUrl&&he.push(` - styleUrl: ${n.styleUrl}`),he.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(he.join("\n"))}const m=function vT(){return gl}();let x=n.preserveWhitespaces;void 0===x&&(x=null!==m&&void 0!==m.preserveWhitespaces&&m.preserveWhitespaces);let P=n.encapsulation;void 0===P&&(P=null!==m&&void 0!==m.defaultEncapsulation?m.defaultEncapsulation:Zr.Emulated);const B=n.templateUrl||`ng:///${e.name}/template.html`,J={...Zy(e,n),typeSourceSpan:o.createParseSourceSpan("Component",e.name,B),template:n.template||"",preserveWhitespaces:x,styles:"string"==typeof n.styles?[n.styles]:n.styles||di,animations:n.animations,declarations:[],changeDetection:n.changeDetection,encapsulation:P,interpolation:n.interpolation,viewProviders:n.viewProviders||null};wm++;try{if(J.usesInheritance&&Qy(e),i=o.compileComponent(cs,B,J),n.standalone){const he=Tn(n.imports||di),{directiveDefs:ke,pipeDefs:et}=function MT(e,n){let i=null,o=null;return{directiveDefs:()=>{if(mu)return tc(e)?[...Ka.getStandaloneComponentScope(e,n).compilation.directives].map(B=>oi(B)||pi(B)).filter(B=>null!==B):[];if(null===i){i=[oi(e)];const P=new Set([e]);for(const B of n){const J=me(B);if(!P.has(J))if(P.add(J),dr(J)){const he=Da(J);for(const ke of he.exported.directives){const et=oi(ke)||pi(ke);et&&!P.has(ke)&&(P.add(ke),i.push(et))}}else{const he=oi(J)||pi(J);he&&i.push(he)}}}return i},pipeDefs:()=>{if(mu)return tc(e)?[...Ka.getStandaloneComponentScope(e,n).compilation.pipes].map(B=>er(B)).filter(B=>null!==B):[];if(null===o){o=[];const P=new Set;for(const B of n){const J=me(B);if(!P.has(J))if(P.add(J),dr(J)){const he=Da(J);for(const ke of he.exported.pipes){const et=er(ke);et&&!P.has(ke)&&(P.add(ke),o.push(et))}}else{const he=er(J);he&&o.push(he)}}}return o}}}(e,he);i.directiveDefs=ke,i.pipeDefs=et,i.dependencies=()=>he.map(me)}}finally{wm--}if(0===wm&&Uy(),function DT(e){return void 0!==e.ngSelectorScope}(e)){const he=Da(e.ngSelectorScope);Cm(i,he)}if(n.schemas){if(!n.standalone)throw new Error(`The 'schemas' was specified for the ${yn(e)} but is only valid on a component that is standalone.`);i.schemas=n.schemas}else n.standalone&&(i.schemas=[])}return i},configurable:!1})}function Em(e,n){let i=null;Yy(e,n||{}),Object.defineProperty(e,yi,{get:()=>{if(null===i){const o=Ky(e,n||{});i=st().compileDirective(cs,o.sourceMapUrl,o.metadata)}return i},configurable:!1})}function Ky(e,n){const i=e&&e.name,o=`ng:///${i}/\u0275dir.js`,m=st(),x=Zy(e,n);return x.typeSourceSpan=m.createParseSourceSpan("Directive",i,o),x.usesInheritance&&Qy(e),{metadata:x,sourceMapUrl:o}}function Yy(e,n){let i=null;Object.defineProperty(e,hi,{get:()=>{if(null===i){const o=Ky(e,n),m=st();i=m.compileFactory(cs,`ng:///${e.name}/\u0275fac.js`,{name:o.metadata.name,type:o.metadata.type,typeArgumentCount:0,deps:Rc(e),target:m.FactoryTarget.Directive})}return i},configurable:!1})}function IT(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function Zy(e,n){const i=Cd(),o=i.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==n.selector?n.selector:null,host:n.host||qi,propMetadata:o,inputs:n.inputs||di,outputs:n.outputs||di,queries:Xy(e,o,Jy),lifecycle:{usesOnChanges:i.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!IT(e),exportAs:AT(n.exportAs),providers:n.providers||null,viewQueries:Xy(e,o,qy),isStandalone:!!n.standalone,isSignal:!!n.signals,hostDirectives:n.hostDirectives?.map(m=>"function"==typeof m?{directive:m}:m)||null}}function Qy(e){const n=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==n;)!pi(i)&&!oi(i)&&OT(i)&&Em(i,null),i=Object.getPrototypeOf(i)}function TT(e){return"string"==typeof e?t1(e):me(e)}function ST(e,n){return{propertyName:e,predicate:TT(n.selector),descendants:n.descendants,first:n.first,read:n.read?n.read:null,static:!!n.static,emitDistinctChangesOnly:!!n.emitDistinctChangesOnly,isSignal:!!n.isSignal}}function Xy(e,n,i){const o=[];for(const m in n)if(n.hasOwnProperty(m)){const x=n[m];x.forEach(P=>{if(i(P)){if(!P.selector)throw new Error(`Can't construct a query for the property "${m}" of "${yn(e)}" since the query selector wasn't defined.`);if(x.some(e1))throw new Error("Cannot combine @Input decorators with query decorators");o.push(ST(m,P))}})}return o}function AT(e){return void 0===e?null:t1(e)}function Jy(e){const n=e.ngMetadataName;return"ContentChild"===n||"ContentChildren"===n}function qy(e){const n=e.ngMetadataName;return"ViewChild"===n||"ViewChildren"===n}function e1(e){return"Input"===e.ngMetadataName}function t1(e){return e.split(",").map(n=>n.trim())}const kT=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function OT(e){const n=Cd();if(kT.some(o=>n.hasLifecycleHook(e,o)))return!0;const i=n.propMetadata(e);for(const o in i){const m=i[o];for(let x=0;x{if(null===o){const m=r1(e,n),x=st();o=x.compileFactory(cs,`ng:///${m.name}/\u0275fac.js`,{name:m.name,type:m.type,typeArgumentCount:0,deps:Rc(e),target:x.FactoryTarget.Pipe})}return o},configurable:!1}),Object.defineProperty(e,ar,{get:()=>{if(null===i){const m=r1(e,n);i=st().compilePipe(cs,`ng:///${m.name}/\u0275pipe.js`,m)}return i},configurable:!1})}function r1(e,n){return{type:e,name:e.name,pipeName:n.name,pure:void 0===n.pure||n.pure,isStandalone:!!n.standalone}}const s1=un("Directive",(e={})=>e,void 0,void 0,(e,n)=>Em(e,n)),RT=un("Component",(e={})=>({changeDetection:Yr.Default,...e}),s1,void 0,(e,n)=>Gy(e,n)),LT=un("Pipe",e=>({pure:!0,...e}),void 0,void 0,(e,n)=>n1(e,n)),NT=rn("Input",e=>e?"string"==typeof e?{alias:e}:e:{}),PT=rn("Output",e=>({alias:e})),FT=rn("HostBinding",e=>({hostPropertyName:e})),UT=rn("HostListener",(e,n)=>({eventName:e,args:n})),BT=un("NgModule",e=>e,void 0,void 0,(e,n)=>$y(e,n));class o1{constructor(n){this.full=n;const i=n.split(".");this.major=i[0],this.minor=i[1],this.patch=i.slice(2).join(".")}}const $T=new o1("17.3.3");let a1=(()=>{class e{log(i){console.log(i)}warn(i){console.warn(i)}static#e=this.\u0275fac=function(o){return new(o||e)};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const h1=new Ee(""),f1=new Ee("");let Mm,hS=(()=>{class e{constructor(i,o,m){this._ngZone=i,this.registry=o,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Mm||(p1(m),m.addToWindow(o)),this._watchAngularEvents(),i.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{gr.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb()}});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>!o.updateCb||!o.updateCb(i)||(clearTimeout(o.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,o,m){let x=-1;o&&o>0&&(x=setTimeout(()=>{this._callbacks=this._callbacks.filter(P=>P.timeoutId!==x),i()},o)),this._callbacks.push({doneCb:i,timeoutId:x,updateCb:m})}whenStable(i,o,m){if(m&&!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(i,o,m),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,o,m){return[]}static#e=this.\u0275fac=function(o){return new(o||e)(Li(gr),Li(m1),Li(f1))};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac})}return e})(),m1=(()=>{class e{constructor(){this._applications=new Map}registerApplication(i,o){this._applications.set(i,o)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,o=!0){return Mm?.findTestabilityInTree(this,i,o)??null}static#e=this.\u0275fac=function(o){return new(o||e)};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function p1(e){Mm=e}function Dm(e){return!!e&&"function"==typeof e.then}function g1(e){return!!e&&"function"==typeof e.subscribe}const _1=new Ee("");let Gu=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o}),this.appInits=Bn(_1,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const i=[];for(const m of this.appInits){const x=m();if(Dm(x))i.push(x);else if(g1(x)){const P=new Promise((B,J)=>{x.subscribe({complete:B,error:J})});i.push(P)}}const o=()=>{this.done=!0,this.resolve()};Promise.all(i).then(()=>{o()}).catch(m=>{this.reject(m)}),0===i.length&&o(),this.initialized=!0}static#e=this.\u0275fac=function(o){return new(o||e)};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Im=new Ee("");function v1(){!function j(e){ie=e}(()=>{throw new _e(600,!1)})}function b1(e){return e.isBoundToModule}class fS{constructor(n,i){this.name=n,this.token=i}}function y1(e,n,i){try{const o=i();return Dm(o)?o.catch(m=>{throw n.runOutsideAngular(()=>e.handleError(m)),m}):o}catch(o){throw n.runOutsideAngular(()=>e.handleError(o)),o}}function C1(e,n){return Array.isArray(n)?n.reduce(C1,e):{...e,...n}}let Yu,sa=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Bn(kp),this.afterRenderEffectManager=Bn(Ga),this.externalTestViews=new Set,this.beforeRender=new Ae.B,this.afterTick=new Ae.B,this.componentTypes=[],this.components=[],this.isStable=Bn(Qa).hasPendingTasks.pipe((0,Pe.T)(i=>!i)),this._injector=Bn(Lr)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,o){const m=i instanceof uu;if(!this._injector.get(Gu).done)throw!m&&Or(i),new _e(405,!1);let P;P=m?i:this._injector.get(ec).resolveComponentFactory(i),this.componentTypes.push(P.componentType);const B=b1(P)?void 0:this._injector.get(ya),he=P.create(xs.NULL,[],o||P.selector,B),ke=he.location.nativeElement,et=he.injector.get(h1,null);return et?.registerApplication(ke),he.onDestroy(()=>{this.detachView(he.hostView),Ku(this.components,he),et?.unregisterApplication(ke)}),this._loadComponent(he),he}tick(){this._tick(!0)}_tick(i){if(this._runningTick)throw new _e(101,!1);const o=s(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(i)}catch(m){this.internalErrorHandler(m)}finally{this.afterTick.next(),this._runningTick=!1,s(o)}}detectChangesInAttachedViews(i){let o=0;const m=this.afterRenderEffectManager;for(;;){if(o===Eg)throw new _e(103,!1);if(i){const x=0===o;this.beforeRender.next(x);for(let{_lView:P,notifyErrorHandler:B}of this._views)E1(P,x,B)}if(o++,m.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:x})=>Tm(x))&&(m.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:x})=>Tm(x))))break}}attachView(i){const o=i;this._views.push(o),o.attachToAppRef(this)}detachView(i){const o=i;Ku(this._views,o),o.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i);const o=this._injector.get(Im,[]);[...this._bootstrapListeners,...o].forEach(m=>m(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>Ku(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new _e(406,!1);const i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(o){return new(o||e)};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ku(e,n){const i=e.indexOf(n);i>-1&&e.splice(i,1)}function w1(e){Yu??=new WeakMap;const n=Yu.get(e);if(n)return n;const i=e.isStable.pipe((0,Me.$)(o=>o)).toPromise().then(()=>{});return Yu.set(e,i),e.onDestroy(()=>Yu?.delete(e)),i}function E1(e,n,i){!n&&!Tm(e)||function mS(e,n,i){let o;i?(o=0,e[kn]|=1024):o=64&e[kn]?0:1,iu(e,n,o)}(e,i,n)}function Tm(e){return rd(e)}class x1{constructor(n,i){this.ngModuleFactory=n,this.componentFactories=i}}let pS=(()=>{class e{compileModuleSync(i){return new Cu(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){const o=this.compileModuleSync(i),x=Ms(dr(i).declarations).reduce((P,B)=>{const J=oi(B);return J&&P.push(new Ya(J)),P},[]);return new x1(o,x)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}static#e=this.\u0275fac=function(o){return new(o||e)};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const M1=new Ee("");class gS{}function D1(e,n,i){const o=new Cu(i);return Promise.resolve(o)}let _S=(()=>{class e{constructor(){this.zone=Bn(gr),this.applicationRef=Bn(sa)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(o){return new(o||e)};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function T1(e){return[{provide:gr,useFactory:e},{provide:ns,multi:!0,useFactory:()=>{const n=Bn(_S,{optional:!0});return()=>n.initialize()}},{provide:ns,multi:!0,useFactory:()=>{const n=Bn(bS);return()=>{n.initialize()}}},{provide:kp,useFactory:vS}]}function vS(){const e=Bn(gr),n=Bn(Lo);return i=>e.runOutsideAngular(()=>n.handleError(i))}function S1(e){return ys([[],T1(()=>new gr(A1(e)))])}function A1(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let bS=(()=>{class e{constructor(){this.subscription=new fe.yU,this.initialized=!1,this.zone=Bn(gr),this.pendingTasks=Bn(Qa)}initialize(){if(this.initialized)return;this.initialized=!0;let i=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(i=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{gr.assertNotInAngularZone(),queueMicrotask(()=>{null!==i&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(i),i=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{gr.assertInAngularZone(),i??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(o){return new(o||e)};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Zu=new Ee("",{providedIn:"root",factory:()=>Bn(Zu,Un.Optional|Un.SkipSelf)||function yS(){return typeof $localize<"u"&&$localize.locale||Ma}()}),CS=new Ee("",{providedIn:"root",factory:()=>"USD"}),wS=new Ee(""),ES=new Ee("");var k1=function(e){return e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore",e}(k1||{});const Sm=new Ee("");let Am=(()=>{class e{constructor(i){this._injector=i,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(i,o){const m=function aM(e="zone.js",n){return"noop"===e?new Sh:"zone.js"===e?new gr(n):e}(o?.ngZone,A1({eventCoalescing:o?.ngZoneEventCoalescing,runCoalescing:o?.ngZoneRunCoalescing}));return m.run(()=>{const x=function oD(e,n,i){return new yu(e,n,i)}(i.moduleType,this.injector,T1(()=>m)),P=x.injector.get(Lo,null);return m.runOutsideAngular(()=>{const B=m.onError.subscribe({next:J=>{P.handleError(J)}});x.onDestroy(()=>{Ku(this._modules,x),B.unsubscribe()})}),y1(P,m,()=>{const B=x.injector.get(Gu);return B.runInitializers(),B.donePromise.then(()=>(Af(x.injector.get(Zu,Ma)||Ma),this._moduleDoBootstrap(x),x))})})}bootstrapModule(i,o=[]){const m=C1({},o);return D1(0,0,i).then(x=>this.bootstrapModuleFactory(x,m))}_moduleDoBootstrap(i){const o=i.injector.get(sa);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(m=>o.bootstrap(m));else{if(!i.instance.ngDoBootstrap)throw new _e(-403,!1);i.instance.ngDoBootstrap(o)}this._modules.push(i)}onDestroy(i){this._destroyListeners.push(i)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new _e(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());const i=this._injector.get(Sm,null);i&&(i.forEach(o=>o()),i.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(o){return new(o||e)(Li(xs))};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),oa=null;const km=new Ee("");function O1(e){if(oa&&!oa.get(km,!1))throw new _e(400,!1);v1(),oa=e;const n=e.get(Am);return P1(e),n}function R1(e,n,i=[]){const o=`Platform: ${n}`,m=new Ee(o);return(x=[])=>{let P=Qu();if(!P||P.injector.get(km,!1)){const B=[...i,...x,{provide:m,useValue:!0}];e?e(B):O1(L1(B,o))}return N1()}}function L1(e=[],n){return xs.create({name:n,providers:[{provide:Ws,useValue:"platform"},{provide:Sm,useValue:new Set([()=>oa=null])},...e]})}function N1(e){const n=Qu();if(!n)throw new _e(401,!1);return n}function Qu(){return oa?.get(Am)??null}function xS(){Qu()?.destroy()}function P1(e){e.get(t0,null)?.forEach(i=>i())}function DS(){return!1}function IS(){}function TS(e){const n=T_(e);if(!n)throw F1(e);return new Cu(n)}function SS(e){const n=T_(e);if(!n)throw F1(e);return n}function F1(e){return new Error(`No module with ID ${e} loaded`)}let Om=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=U1}return e})();function U1(e){return function AS(e,n,i){if(Zs(e)&&!i){const o=Es(e.index,n);return new za(o,o)}return 47&e.type?new za(n[Qi],n):null}(Xi(),tn(),!(16&~e))}class B1 extends Om{}class kS extends B1{}class OS{constructor(n,i){this.name=n,this.callback=i}}function RS(e){return e.map(n=>n.nativeElement)}class Rm{constructor(n){this.nativeNode=n}get parent(){const n=this.nativeNode.parentNode;return n?new yc(n):null}get injector(){return function Qp(e){const n=ls(e),i=n?n.lView:null;return null===i?xs.NULL:new xr(i[mn].data[n.nodeIndex],i)}(this.nativeNode)}get componentInstance(){const n=this.nativeNode;return n&&(Fc(n)||function Yp(e){const n=ls(e);let o,i=n?n.lView:null;if(null===i)return null;for(;2===i[mn].type&&(o=fa(i));)i=o;return 512&i[kn]?null:i[Zi]}(n))}get context(){return Fc(this.nativeNode)||function Kp(e){!function Aw(e){if(typeof Element<"u"&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}(e);const n=ls(e),i=n?n.lView:null;return null===i?null:i[Zi]}(this.nativeNode)}get listeners(){return function Jp(e){const n=ls(e),i=null===n?null:n.lView;if(null===i)return[];const m=i[ho],x=i[mn].cleanup,P=[];if(x&&m)for(let B=0;B=0?"dom":"output"})}}return P.sort(Tw),P}(this.nativeNode).filter(n=>"dom"===n.type)}get references(){return function Iw(e){const n=ls(e);if(null===n)return{};if(void 0===n.localRefs){const i=n.lView;if(null===i)return{};n.localRefs=function ww(e,n){const i=e[mn].data[n];if(i&&i.localNames){const o={};let m=i.index+1;for(let x=0;x1){let ke=J[1];for(let et=1;etn[x]=!0),n}get childNodes(){const n=this.nativeNode.childNodes,i=[];for(let o=0;o{if(x.name===n){const P=x.callback;P.call(o,i),m.push(P)}}),"function"==typeof o.eventListeners&&o.eventListeners(n).forEach(x=>{if(-1!==x.toString().indexOf("__ngUnwrap__")){const P=x("__ngUnwrap__");return-1===m.indexOf(P)&&P.call(o,i)}})}}function NS(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function $1(e,n,i,o){const m=ls(e.nativeNode),x=m?m.lView:null;null!==x?Ia(x[mn].data[m.nodeIndex],x,n,i,o,e.nativeNode):Nm(e.nativeNode,n,i,o)}function Ia(e,n,i,o,m,x){const P=function bC(e,n){const i=null===e?-1:e.index;return-1!==i?Vi(n[i]):null}(e,n);if(11&e.type){if(Lm(P,i,o,m,x),Zs(e)){const J=Es(e.index,n);J&&J[mn].firstChild&&Ia(J[mn].firstChild,J,i,o,m,x)}else e.child&&Ia(e.child,n,i,o,m,x),P&&Nm(P,i,o,m);const B=n[e.index];hr(B)&&V1(B,i,o,m,x)}else if(4&e.type){const B=n[e.index];Lm(B[fs],i,o,m,x),V1(B,i,o,m,x)}else if(16&e.type){const B=n[Qi],he=B[nr].projection[e.projection];if(Array.isArray(he))for(let ke of he)Lm(ke,i,o,m,x);else if(he){const ke=B[Ai];Ia(ke[mn].data[he.index],ke,i,o,m,x)}}else e.child&&Ia(e.child,n,i,o,m,x);if(x!==P){const B=2&e.flags?e.projectionNext:e.next;B&&Ia(B,n,i,o,m,x)}}function V1(e,n,i,o,m){for(let x=rr;xn;class H1{constructor(n){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=n||FS}forEachItem(n){let i;for(i=this._itHead;null!==i;i=i._next)n(i)}forEachOperation(n){let i=this._itHead,o=this._removalsHead,m=0,x=null;for(;i||o;){const P=!o||i&&i.currentIndex{P=this._trackByFn(m,B),null!==i&&Object.is(i.trackById,P)?(o&&(i=this._verifyReinsertion(i,B,P,m)),Object.is(i.item,B)||this._addIdentityChange(i,B)):(i=this._mismatch(i,B,P,m),o=!0),i=i._next,m++}),this.length=m;return this._truncate(i),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,i,o,m){let x;return null===n?x=this._itTail:(x=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null))?(Object.is(n.item,i)||this._addIdentityChange(n,i),this._reinsertAfter(n,x,m)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(o,m))?(Object.is(n.item,i)||this._addIdentityChange(n,i),this._moveAfter(n,x,m)):n=this._addAfter(new US(i,o),x,m),n}_verifyReinsertion(n,i,o,m){let x=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==x?n=this._reinsertAfter(x,n._prev,m):n.currentIndex!=m&&(n.currentIndex=m,this._addToMoves(n,m)),n}_truncate(n){for(;null!==n;){const i=n._next;this._addToRemovals(this._unlink(n)),n=i}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(n,i,o){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const m=n._prevRemoved,x=n._nextRemoved;return null===m?this._removalsHead=x:m._nextRemoved=x,null===x?this._removalsTail=m:x._prevRemoved=m,this._insertAfter(n,i,o),this._addToMoves(n,o),n}_moveAfter(n,i,o){return this._unlink(n),this._insertAfter(n,i,o),this._addToMoves(n,o),n}_addAfter(n,i,o){return this._insertAfter(n,i,o),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,i,o){const m=null===i?this._itHead:i._next;return n._next=m,n._prev=i,null===m?this._itTail=n:m._prev=n,null===i?this._itHead=n:i._next=n,null===this._linkedRecords&&(this._linkedRecords=new z1),this._linkedRecords.put(n),n.currentIndex=o,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const i=n._prev,o=n._next;return null===i?this._itHead=o:i._next=o,null===o?this._itTail=i:o._prev=i,n}_addToMoves(n,i){return n.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new z1),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,i){return n.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class US{constructor(n,i){this.item=n,this.trackById=i,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 BS{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,i){let o;for(o=this._head;null!==o;o=o._nextDup)if((null===i||i<=o.currentIndex)&&Object.is(o.trackById,n))return o;return null}remove(n){const i=n._prevDup,o=n._nextDup;return null===i?this._head=o:i._nextDup=o,null===o?this._tail=i:o._prevDup=i,null===this._head}}class z1{constructor(){this.map=new Map}put(n){const i=n.trackById;let o=this.map.get(i);o||(o=new BS,this.map.set(i,o)),o.add(n)}get(n,i){const m=this.map.get(n);return m?m.get(n,i):null}remove(n){const i=n.trackById;return this.map.get(i).remove(n)&&this.map.delete(i),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function W1(e,n,i){const o=e.previousIndex;if(null===o)return o;let m=0;return i&&o{if(i&&i.key===m)this._maybeAddToChanges(i,o),this._appendAfter=i,i=i._next;else{const x=this._getOrCreateRecordForKey(m,o);i=this._insertBeforeOrAppend(i,x)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let o=i;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,i){if(n){const o=n._prev;return i._next=n,i._prev=o,n._prev=i,o&&(o._next=i),n===this._mapHead&&(this._mapHead=i),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(n,i){if(this._records.has(n)){const m=this._records.get(n);this._maybeAddToChanges(m,i);const x=m._prev,P=m._next;return x&&(x._next=P),P&&(P._prev=x),m._next=null,m._prev=null,m}const o=new VS(n);return this._records.set(n,o),o.currentValue=i,this._addToAdditions(o),o}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,i){Object.is(i,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=i,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,i){n instanceof Map?n.forEach(i):Object.keys(n).forEach(o=>i(n[o],o))}}class VS{constructor(n){this.key=n,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 K1(){return new Um([new j1])}let Um=(()=>{class e{static#e=this.\u0275prov=jn({token:e,providedIn:"root",factory:K1});constructor(i){this.factories=i}static create(i,o){if(null!=o){const m=o.factories.slice();i=i.concat(m)}return new e(i)}static extend(i){return{provide:e,useFactory:o=>e.create(i,o||K1()),deps:[[e,new Wt,new kt]]}}find(i){const o=this.factories.find(m=>m.supports(i));if(null!=o)return o;throw new _e(901,!1)}}return e})();function Y1(){return new Bm([new G1])}let Bm=(()=>{class e{static#e=this.\u0275prov=jn({token:e,providedIn:"root",factory:Y1});constructor(i){this.factories=i}static create(i,o){if(o){const m=o.factories.slice();i=i.concat(m)}return new e(i)}static extend(i){return{provide:e,useFactory:o=>e.create(i,o||Y1()),deps:[[e,new Wt,new kt]]}}find(i){const o=this.factories.find(m=>m.supports(i));if(o)return o;throw new _e(901,!1)}}return e})();const jS=[new G1],zS=new Um([new j1]),WS=new Bm(jS),GS=R1(null,"core",[]);let KS=(()=>{class e{constructor(i){}static#e=this.\u0275fac=function(o){return new(o||e)(Li(sa))};static#t=this.\u0275mod=Us({type:e});static#n=this.\u0275inj=Jt({})}return e})();function sA(e){}function cA(e){try{const{rootComponent:n,appProviders:i,platformProviders:o}=e,m=function MS(e=[]){if(oa)return oa;const n=L1(e);return oa=n,v1(),P1(n),n}(o),x=[S1(),...i||[]],B=new B_({providers:x,parent:m,debugName:"",runEnvironmentInitializers:!1}).injector,J=B.get(gr);return J.run(()=>{B.resolveInjectorInitializers();const he=B.get(Lo,null);let ke;J.runOutsideAngular(()=>{ke=J.onError.subscribe({next:Ft=>{he.handleError(Ft)}})});const et=()=>B.destroy(),Rt=m.get(Sm);return Rt.add(et),B.onDestroy(()=>{ke.unsubscribe(),Rt.delete(et)}),y1(he,J,()=>{const Ft=B.get(Gu);return Ft.runInitializers(),Ft.donePromise.then(()=>{Af(B.get(Zu,Ma)||Ma);const en=B.get(sa);return void 0!==n&&en.bootstrap(n),en})})})}catch(n){return Promise.reject(n)}}let uA=(()=>{class e{constructor(){this.appRef=Bn(sa),this.taskService=Bn(Qa),this.pendingRenderTaskId=null,this.shouldRefreshViews=!1}notify(i=0){this.shouldRefreshViews||=0===i,null===this.pendingRenderTaskId&&(this.pendingRenderTaskId=this.taskService.add(),this.raceTimeoutAndRequestAnimationFrame())}raceTimeoutAndRequestAnimationFrame(){var i=this;return(0,t.A)(function*(){const o=new Promise(x=>setTimeout(x)),m="function"==typeof hn.requestAnimationFrame?new Promise(x=>requestAnimationFrame(()=>x())):null;yield Promise.race([o,m]),i.tick()})()}tick(){try{this.appRef.destroyed||this.appRef._tick(this.shouldRefreshViews)}finally{this.shouldRefreshViews=!1;const i=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(i)}}static#e=this.\u0275fac=function(o){return new(o||e)};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function dA(){return ys([{provide:cu,useExisting:uA},{provide:gr,useClass:Sh}])}function jm(e,n){const i=e[mn];for(let o=Kn;o{let e=!0;return ea()&&(e=!!Bn(Rl,{optional:!0})?.get(Ud,null)),e&&Xs("NgHydration"),e}},{provide:ns,useValue:()=>{lC=!!Bn(f0,{optional:!0}),ea()&&Bn(Ul)&&(function _A(){const e=qo();let n;for(const i of e.body.childNodes)if(i.nodeType===Node.COMMENT_NODE&&i.textContent?.trim()===s0){n=i;break}if(!n)throw new _e(-507,!1)}(),function hA(){aC||(aC=!0,function $w(){o0=Bw}(),function oI(){sb=sI}(),function uT(){oy=cT}(),function cI(){ob=lI}(),function mD(){j_=fD}(),function wM(){t_=CM,Oh=yM}(),function Qx(){Og=Zx}(),function YE(){ug=KE}(),function AI(){fc=SI}())}())},multi:!0},{provide:h0,useFactory:()=>ea()&&Bn(Ul)},{provide:Im,useFactory:()=>{if(ea()&&Bn(Ul)){const e=Bn(sa);return Bn(xs),()=>{(function fA(e,n){return w1(e)})(e).then(()=>{gr.assertInAngularZone(),function Ux(e){const n=e._views;for(const i of n){const o=a0(i);null!==o&&null!==o[fi]&&(yr(o)?ou(o):(ou(o[fi]),Ag(o)))}}(e)})}}return()=>{}},multi:!0}])}function pA(){return ys([{provide:f0,useValue:!0}])}class vA{constructor(){this.views=[],this.indexByContent=new Map}add(n){const i=JSON.stringify(n);if(!this.indexByContent.has(i)){const o=this.views.length;return this.views.push(n),this.indexByContent.set(i,o),o}return this.indexByContent.get(i)}getAll(){return this.views}}let bA=0;function cC(e){return e.ssrId||(e.ssrId="t"+bA++),e.ssrId}function uC(e,n,i){const o=[];return Kl(e,n,i,o),o.length}function yA(e){const n=[];return Cg(e,n),n.length}function dC(e,n){const i=e[fi];return i&&!i.hasAttribute(kl)?td(i,e,n):null}function hC(e,n){const i=Jo(e[fi]),o=dC(i,n),m=Vi(i[fi]),P=td(m,e[Ai],n);i[Wn].setAttribute(m,Nl,`${o}|${P}`)}function CA(e,n){const i=new vA,o=new Map,m=e._views;for(const B of m){const J=a0(B);if(null!==J){const he={serializedViewCollection:i,corruptedTextNodes:o};hr(J)?hC(J,he):dC(J,he),MA(o,n)}}const x=i.getAll();e.injector.get(Rl).set(Ud,x)}function wA(e,n){const i=[];let o="";for(let m=rr;m0&&he===o){const ke=i[i.length-1];ke[Uc]??=1,ke[Uc]++}else o=he,i.push(J)}return i}function ed(e,n,i){const o=n.index-Kn;e[Fd]??={},e[Fd][o]=Kx(n,i)}function fC(e,n){const i=n.index-Kn;e[Bc]??=[],e[Bc].includes(i)||e[Bc].push(i)}function mC(e,n){const i={},o=e[mn];for(let m=Kn;m{m||o.destroyed||(m=!0,e())};hu(x,{injector:i,runOnServer:!0}),queueMicrotask(x)}function IA(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function TA(e,n=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?n:Number(e)}function SA(e){return st().compileDirectiveDeclaration(cs,`ng:///${e.type.name}/\u0275fac.js`,e)}function AA(e){$_(e.type,e.decorators,e.ctorParameters??null,e.propDecorators??null)}function kA(e){return st().compileComponentDeclaration(cs,`ng:///${e.type.name}/\u0275cmp.js`,e)}function OA(e){return st(function RA(e){switch(e){case Le.Directive:return"directive";case Le.Component:return"component";case Le.Injectable:return"injectable";case Le.Pipe:return"pipe";case Le.NgModule:return"NgModule"}}(e.target)).compileFactoryDeclaration(cs,`ng:///${e.type.name}/\u0275fac.js`,e)}function LA(e){return st().compileInjectableDeclaration(cs,`ng:///${e.type.name}/\u0275prov.js`,e)}function NA(e){return st().compileInjectorDeclaration(cs,`ng:///${e.type.name}/\u0275inj.js`,e)}function PA(e){return st().compileNgModuleDeclaration(cs,`ng:///${e.type.name}/\u0275mod.js`,e)}function FA(e){return st().compilePipeDeclaration(cs,`ng:///${e.type.name}/\u0275pipe.js`,e)}function UA(e,n){Xs("NgSignals");const i=R(e);return n?.equal&&(i[b].equal=n.equal),i}function BA(e){const n=s(null);try{return e()}finally{s(n)}}const $A=new Ee("",{providedIn:"root",factory:()=>Bn(gC)});let gC=(()=>{class e{static#e=this.\u0275prov=jn({token:e,providedIn:"root",factory:()=>new VA})}return e})();class VA{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Bn(Qa),this.taskId=null}scheduleEffect(n){if(this.enqueue(n),null===this.taskId){const i=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(i),this.taskId=null})}}enqueue(n){const i=n.creationZone;this.queues.has(i)||this.queues.set(i,new Set);const o=this.queues.get(i);o.has(n)||(this.queuedEffectCount++,o.add(n))}flush(){for(;this.queuedEffectCount>0;)for(const[n,i]of this.queues)null===n?this.flushQueue(i):n.run(()=>this.flushQueue(i))}flushQueue(n){for(const i of n)n.delete(i),this.queuedEffectCount--,i.run()}}class jA{constructor(n,i,o,m,x,P){this.scheduler=n,this.effectFn=i,this.creationZone=o,this.injector=x,this.watcher=function pt(e,n,i){const o=Object.create(Ct);i&&(o.consumerAllowSignalWrites=!0),o.fn=e,o.schedule=n;const m=J=>{o.cleanupFn=J};return o.ref={notify:()=>y(o),run:()=>{if(null===o.fn)return;if(function d(){return E}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(o.dirty=!1,o.hasRun&&!k(o))return;o.hasRun=!0;const J=M(o);try{o.cleanupFn(),o.cleanupFn=ct,o.fn(m)}finally{w(o,J)}},cleanup:()=>o.cleanupFn(),destroy:()=>function P(J){(function x(J){return null===J.fn&&null===J.schedule})(J)||(I(J),J.cleanupFn(),J.fn=null,J.schedule=null,J.cleanupFn=ct)}(o),[b]:o},o.ref}(B=>this.runEffect(B),()=>this.schedule(),P),this.unregisterOnDestroy=m?.onDestroy(()=>this.destroy())}runEffect(n){try{this.effectFn(n)}catch(i){this.injector.get(Lo,null,{optional:!0})?.handleError(i)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function _C(e,n){Xs("NgSignals"),!n?.injector&&X();const i=n?.injector??Bn(xs),o=!0!==n?.manualCleanup?i.get(ga):null,m=new jA(i.get($A),e,typeof Zone>"u"?null:Zone.current,o,i,n?.allowSignalWrites??!1),x=i.get(Om,null,{optional:!0});return x&&8&x._lView[kn]?(x._lView[fo]??=[]).push(m.watcher.notify):m.watcher.notify(),m}function HA(e,n){const i=oi(e),o=n.elementInjector||Cs();return new Ya(i).create(o,n.projectableNodes,n.hostElement,n.environmentInjector)}function zA(e){const n=oi(e);if(!n)return null;const i=new Ya(n);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}function WA(...e){return e.reduce((n,i)=>Object.assign(n,i,{providers:[...n.providers,...i.providers]}),{providers:[]})}},9417:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{AbstractControl:()=>de,AbstractControlDirective:()=>Ne,AbstractFormGroupDirective:()=>ti,COMPOSITION_BUFFER_MODE:()=>u,CheckboxControlValueAccessor:()=>a,CheckboxRequiredValidator:()=>$n,ControlContainer:()=>Ae,DefaultValueAccessor:()=>h,EmailValidator:()=>Xn,FormArray:()=>qi,FormArrayName:()=>Tr,FormBuilder:()=>$r,FormControl:()=>ln,FormControlDirective:()=>Hn,FormControlName:()=>Sr,FormGroup:()=>Se,FormGroupDirective:()=>Ji,FormGroupName:()=>lr,FormRecord:()=>an,FormsModule:()=>Qr,MaxLengthValidator:()=>li,MaxValidator:()=>$t,MinLengthValidator:()=>Vn,MinValidator:()=>sn,NG_ASYNC_VALIDATORS:()=>M,NG_VALIDATORS:()=>y,NG_VALUE_ACCESSOR:()=>f,NgControl:()=>fe,NgControlStatus:()=>$e,NgControlStatusGroup:()=>q,NgForm:()=>le,NgModel:()=>On,NgModelGroup:()=>hi,NgSelectOption:()=>Li,NonNullableFormBuilder:()=>Kr,NumberValueAccessor:()=>qn,PatternValidator:()=>Bi,RadioControlValueAccessor:()=>Ui,RangeValueAccessor:()=>vn,ReactiveFormsModule:()=>Do,RequiredValidator:()=>Tn,SelectControlValueAccessor:()=>es,SelectMultipleControlValueAccessor:()=>br,UntypedFormArray:()=>di,UntypedFormBuilder:()=>Yr,UntypedFormControl:()=>Gn,UntypedFormGroup:()=>It,VERSION:()=>Zr,Validators:()=>k,isFormArray:()=>ns,isFormControl:()=>Jn,isFormGroup:()=>Gt,isFormRecord:()=>_t,\u0275InternalFormsSharedModule:()=>Br,\u0275NgNoValidate:()=>yn,\u0275NgSelectMultipleOption:()=>vs});var t=g(4438),_=g(177),C=g(8455),E=g(7468),c=g(6354);let b=(()=>{class ye{constructor(ae,je){this._renderer=ae,this._elementRef=je,this.onChange=St=>{},this.onTouched=()=>{}}setProperty(ae,je){this._renderer.setProperty(this._elementRef.nativeElement,ae,je)}registerOnTouched(ae){this.onTouched=ae}registerOnChange(ae){this.onChange=ae}setDisabledState(ae){this.setProperty("disabled",ae)}static#e=this.\u0275fac=function(je){return new(je||ye)(t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye})}return ye})(),s=(()=>{class ye extends b{static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(ye)))(St||ye)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,features:[t.\u0275\u0275InheritDefinitionFeature]})}return ye})();const f=new t.InjectionToken(""),d={provide:f,useExisting:(0,t.forwardRef)(()=>a),multi:!0};let a=(()=>{class ye extends s{writeValue(ae){this.setProperty("checked",ae)}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(ye)))(St||ye)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(je,St){1&je&&t.\u0275\u0275listener("change",function(ni){return St.onChange(ni.target.checked)})("blur",function(){return St.onTouched()})},features:[t.\u0275\u0275ProvidersFeature([d]),t.\u0275\u0275InheritDefinitionFeature]})}return ye})();const l={provide:f,useExisting:(0,t.forwardRef)(()=>h),multi:!0},u=new t.InjectionToken("");let h=(()=>{class ye extends b{constructor(ae,je,St){super(ae,je),this._compositionMode=St,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function r(){const ye=(0,_.\u0275getDOM)()?(0,_.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(ye.toLowerCase())}())}writeValue(ae){this.setProperty("value",ae??"")}_handleInput(ae){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(ae)}_compositionStart(){this._composing=!0}_compositionEnd(ae){this._composing=!1,this._compositionMode&&this.onChange(ae)}static#e=this.\u0275fac=function(je){return new(je||ye)(t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(u,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,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(je,St){1&je&&t.\u0275\u0275listener("input",function(ni){return St._handleInput(ni.target.value)})("blur",function(){return St.onTouched()})("compositionstart",function(){return St._compositionStart()})("compositionend",function(ni){return St._compositionEnd(ni.target.value)})},features:[t.\u0275\u0275ProvidersFeature([l]),t.\u0275\u0275InheritDefinitionFeature]})}return ye})();function p(ye){return null==ye||("string"==typeof ye||Array.isArray(ye))&&0===ye.length}function v(ye){return null!=ye&&"number"==typeof ye.length}const y=new t.InjectionToken(""),M=new t.InjectionToken(""),w=/^(?=.{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 k{static min(Te){return I(Te)}static max(Te){return D(Te)}static required(Te){return O(Te)}static requiredTrue(Te){return T(Te)}static email(Te){return U(Te)}static minLength(Te){return S(Te)}static maxLength(Te){return R(Te)}static pattern(Te){return N(Te)}static nullValidator(Te){return null}static compose(Te){return G(Te)}static composeAsync(Te){return W(Te)}}function I(ye){return Te=>{if(p(Te.value)||p(ye))return null;const ae=parseFloat(Te.value);return!isNaN(ae)&&ae{if(p(Te.value)||p(ye))return null;const ae=parseFloat(Te.value);return!isNaN(ae)&&ae>ye?{max:{max:ye,actual:Te.value}}:null}}function O(ye){return p(ye.value)?{required:!0}:null}function T(ye){return!0===ye.value?null:{required:!0}}function U(ye){return p(ye.value)||w.test(ye.value)?null:{email:!0}}function S(ye){return Te=>p(Te.value)||!v(Te.value)?null:Te.value.lengthv(Te.value)&&Te.value.length>ye?{maxlength:{requiredLength:ye,actualLength:Te.value.length}}:null}function N(ye){if(!ye)return A;let Te,ae;return"string"==typeof ye?(ae="","^"!==ye.charAt(0)&&(ae+="^"),ae+=ye,"$"!==ye.charAt(ye.length-1)&&(ae+="$"),Te=new RegExp(ae)):(ae=ye.toString(),Te=ye),je=>{if(p(je.value))return null;const St=je.value;return Te.test(St)?null:{pattern:{requiredPattern:ae,actualValue:St}}}}function A(ye){return null}function F(ye){return null!=ye}function Y(ye){return(0,t.\u0275isPromise)(ye)?(0,C.H)(ye):ye}function ee(ye){let Te={};return ye.forEach(ae=>{Te=null!=ae?{...Te,...ae}:Te}),0===Object.keys(Te).length?null:Te}function ie(ye,Te){return Te.map(ae=>ae(ye))}function j(ye){return ye.map(Te=>function $(ye){return!ye.validate}(Te)?Te:ae=>Te.validate(ae))}function G(ye){if(!ye)return null;const Te=ye.filter(F);return 0==Te.length?null:function(ae){return ee(ie(ae,Te))}}function V(ye){return null!=ye?G(j(ye)):null}function W(ye){if(!ye)return null;const Te=ye.filter(F);return 0==Te.length?null:function(ae){const je=ie(ae,Te).map(Y);return(0,E.p)(je).pipe((0,c.T)(ee))}}function K(ye){return null!=ye?W(j(ye)):null}function ce(ye,Te){return null===ye?[Te]:Array.isArray(ye)?[...ye,Te]:[ye,Te]}function ue(ye){return ye._rawValidators}function be(ye){return ye._rawAsyncValidators}function Ze(ye){return ye?Array.isArray(ye)?ye:[ye]:[]}function pt(ye,Te){return Array.isArray(ye)?ye.includes(Te):ye===Te}function ct(ye,Te){const ae=Ze(Te);return Ze(ye).forEach(St=>{pt(ae,St)||ae.push(St)}),ae}function Ct(ye,Te){return Ze(Te).filter(ae=>!pt(ye,ae))}class Ne{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(Te){this._rawValidators=Te||[],this._composedValidatorFn=V(this._rawValidators)}_setAsyncValidators(Te){this._rawAsyncValidators=Te||[],this._composedAsyncValidatorFn=K(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Te){this._onDestroyCallbacks.push(Te)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Te=>Te()),this._onDestroyCallbacks=[]}reset(Te=void 0){this.control&&this.control.reset(Te)}hasError(Te,ae){return!!this.control&&this.control.hasError(Te,ae)}getError(Te,ae){return this.control?this.control.getError(Te,ae):null}}class Ae extends Ne{get formDirective(){return null}get path(){return null}}class fe extends Ne{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class We{constructor(Te){this._cd=Te}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let $e=(()=>{class ye extends We{constructor(ae){super(ae)}static#e=this.\u0275fac=function(je){return new(je||ye)(t.\u0275\u0275directiveInject(fe,2))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(je,St){2&je&&t.\u0275\u0275classProp("ng-untouched",St.isUntouched)("ng-touched",St.isTouched)("ng-pristine",St.isPristine)("ng-dirty",St.isDirty)("ng-valid",St.isValid)("ng-invalid",St.isInvalid)("ng-pending",St.isPending)},features:[t.\u0275\u0275InheritDefinitionFeature]})}return ye})(),q=(()=>{class ye extends We{constructor(ae){super(ae)}static#e=this.\u0275fac=function(je){return new(je||ye)(t.\u0275\u0275directiveInject(Ae,10))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(je,St){2&je&&t.\u0275\u0275classProp("ng-untouched",St.isUntouched)("ng-touched",St.isTouched)("ng-pristine",St.isPristine)("ng-dirty",St.isDirty)("ng-valid",St.isValid)("ng-invalid",St.isInvalid)("ng-pending",St.isPending)("ng-submitted",St.isSubmitted)},features:[t.\u0275\u0275InheritDefinitionFeature]})}return ye})();const Bt="VALID",ve="INVALID",Qe="PENDING",Xe="DISABLED";function Ot(ye){return(me(ye)?ye.validators:ye)||null}function ft(ye,Te){return(me(Te)?Te.asyncValidators:ye)||null}function me(ye){return null!=ye&&!Array.isArray(ye)&&"object"==typeof ye}function Ke(ye,Te,ae){const je=ye.controls;if(!(Te?Object.keys(je):je).length)throw new t.\u0275RuntimeError(1e3,"");if(!je[ae])throw new t.\u0275RuntimeError(1001,"")}function te(ye,Te,ae){ye._forEachChild((je,St)=>{if(void 0===ae[St])throw new t.\u0275RuntimeError(1002,"")})}class de{constructor(Te,ae){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(Te),this._assignAsyncValidators(ae)}get validator(){return this._composedValidatorFn}set validator(Te){this._rawValidators=this._composedValidatorFn=Te}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Te){this._rawAsyncValidators=this._composedAsyncValidatorFn=Te}get parent(){return this._parent}get valid(){return this.status===Bt}get invalid(){return this.status===ve}get pending(){return this.status==Qe}get disabled(){return this.status===Xe}get enabled(){return this.status!==Xe}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Te){this._assignValidators(Te)}setAsyncValidators(Te){this._assignAsyncValidators(Te)}addValidators(Te){this.setValidators(ct(Te,this._rawValidators))}addAsyncValidators(Te){this.setAsyncValidators(ct(Te,this._rawAsyncValidators))}removeValidators(Te){this.setValidators(Ct(Te,this._rawValidators))}removeAsyncValidators(Te){this.setAsyncValidators(Ct(Te,this._rawAsyncValidators))}hasValidator(Te){return pt(this._rawValidators,Te)}hasAsyncValidator(Te){return pt(this._rawAsyncValidators,Te)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Te={}){this.touched=!0,this._parent&&!Te.onlySelf&&this._parent.markAsTouched(Te)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Te=>Te.markAllAsTouched())}markAsUntouched(Te={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(ae=>{ae.markAsUntouched({onlySelf:!0})}),this._parent&&!Te.onlySelf&&this._parent._updateTouched(Te)}markAsDirty(Te={}){this.pristine=!1,this._parent&&!Te.onlySelf&&this._parent.markAsDirty(Te)}markAsPristine(Te={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(ae=>{ae.markAsPristine({onlySelf:!0})}),this._parent&&!Te.onlySelf&&this._parent._updatePristine(Te)}markAsPending(Te={}){this.status=Qe,!1!==Te.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Te.onlySelf&&this._parent.markAsPending(Te)}disable(Te={}){const ae=this._parentMarkedDirty(Te.onlySelf);this.status=Xe,this.errors=null,this._forEachChild(je=>{je.disable({...Te,onlySelf:!0})}),this._updateValue(),!1!==Te.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Te,skipPristineCheck:ae}),this._onDisabledChange.forEach(je=>je(!0))}enable(Te={}){const ae=this._parentMarkedDirty(Te.onlySelf);this.status=Bt,this._forEachChild(je=>{je.enable({...Te,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Te.emitEvent}),this._updateAncestors({...Te,skipPristineCheck:ae}),this._onDisabledChange.forEach(je=>je(!1))}_updateAncestors(Te){this._parent&&!Te.onlySelf&&(this._parent.updateValueAndValidity(Te),Te.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Te){this._parent=Te}getRawValue(){return this.value}updateValueAndValidity(Te={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Bt||this.status===Qe)&&this._runAsyncValidator(Te.emitEvent)),!1!==Te.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Te.onlySelf&&this._parent.updateValueAndValidity(Te)}_updateTreeValidity(Te={emitEvent:!0}){this._forEachChild(ae=>ae._updateTreeValidity(Te)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Te.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Xe:Bt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Te){if(this.asyncValidator){this.status=Qe,this._hasOwnPendingAsyncValidator=!0;const ae=Y(this.asyncValidator(this));this._asyncValidationSubscription=ae.subscribe(je=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(je,{emitEvent:Te})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Te,ae={}){this.errors=Te,this._updateControlsErrors(!1!==ae.emitEvent)}get(Te){let ae=Te;return null==ae||(Array.isArray(ae)||(ae=ae.split(".")),0===ae.length)?null:ae.reduce((je,St)=>je&&je._find(St),this)}getError(Te,ae){const je=ae?this.get(ae):this;return je&&je.errors?je.errors[Te]:null}hasError(Te,ae){return!!this.getError(Te,ae)}get root(){let Te=this;for(;Te._parent;)Te=Te._parent;return Te}_updateControlsErrors(Te){this.status=this._calculateStatus(),Te&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Te)}_initObservables(){this.valueChanges=new t.EventEmitter,this.statusChanges=new t.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?Xe:this.errors?ve:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Qe)?Qe:this._anyControlsHaveStatus(ve)?ve:Bt}_anyControlsHaveStatus(Te){return this._anyControls(ae=>ae.status===Te)}_anyControlsDirty(){return this._anyControls(Te=>Te.dirty)}_anyControlsTouched(){return this._anyControls(Te=>Te.touched)}_updatePristine(Te={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Te.onlySelf&&this._parent._updatePristine(Te)}_updateTouched(Te={}){this.touched=this._anyControlsTouched(),this._parent&&!Te.onlySelf&&this._parent._updateTouched(Te)}_registerOnCollectionChange(Te){this._onCollectionChange=Te}_setUpdateStrategy(Te){me(Te)&&null!=Te.updateOn&&(this._updateOn=Te.updateOn)}_parentMarkedDirty(Te){return!Te&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Te){return null}_assignValidators(Te){this._rawValidators=Array.isArray(Te)?Te.slice():Te,this._composedValidatorFn=function nt(ye){return Array.isArray(ye)?V(ye):ye||null}(this._rawValidators)}_assignAsyncValidators(Te){this._rawAsyncValidators=Array.isArray(Te)?Te.slice():Te,this._composedAsyncValidatorFn=function Re(ye){return Array.isArray(ye)?K(ye):ye||null}(this._rawAsyncValidators)}}class Se extends de{constructor(Te,ae,je){super(Ot(ae),ft(je,ae)),this.controls=Te,this._initObservables(),this._setUpdateStrategy(ae),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Te,ae){return this.controls[Te]?this.controls[Te]:(this.controls[Te]=ae,ae.setParent(this),ae._registerOnCollectionChange(this._onCollectionChange),ae)}addControl(Te,ae,je={}){this.registerControl(Te,ae),this.updateValueAndValidity({emitEvent:je.emitEvent}),this._onCollectionChange()}removeControl(Te,ae={}){this.controls[Te]&&this.controls[Te]._registerOnCollectionChange(()=>{}),delete this.controls[Te],this.updateValueAndValidity({emitEvent:ae.emitEvent}),this._onCollectionChange()}setControl(Te,ae,je={}){this.controls[Te]&&this.controls[Te]._registerOnCollectionChange(()=>{}),delete this.controls[Te],ae&&this.registerControl(Te,ae),this.updateValueAndValidity({emitEvent:je.emitEvent}),this._onCollectionChange()}contains(Te){return this.controls.hasOwnProperty(Te)&&this.controls[Te].enabled}setValue(Te,ae={}){te(this,0,Te),Object.keys(Te).forEach(je=>{Ke(this,!0,je),this.controls[je].setValue(Te[je],{onlySelf:!0,emitEvent:ae.emitEvent})}),this.updateValueAndValidity(ae)}patchValue(Te,ae={}){null!=Te&&(Object.keys(Te).forEach(je=>{const St=this.controls[je];St&&St.patchValue(Te[je],{onlySelf:!0,emitEvent:ae.emitEvent})}),this.updateValueAndValidity(ae))}reset(Te={},ae={}){this._forEachChild((je,St)=>{je.reset(Te?Te[St]:null,{onlySelf:!0,emitEvent:ae.emitEvent})}),this._updatePristine(ae),this._updateTouched(ae),this.updateValueAndValidity(ae)}getRawValue(){return this._reduceChildren({},(Te,ae,je)=>(Te[je]=ae.getRawValue(),Te))}_syncPendingControls(){let Te=this._reduceChildren(!1,(ae,je)=>!!je._syncPendingControls()||ae);return Te&&this.updateValueAndValidity({onlySelf:!0}),Te}_forEachChild(Te){Object.keys(this.controls).forEach(ae=>{const je=this.controls[ae];je&&Te(je,ae)})}_setUpControls(){this._forEachChild(Te=>{Te.setParent(this),Te._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Te){for(const[ae,je]of Object.entries(this.controls))if(this.contains(ae)&&Te(je))return!0;return!1}_reduceValue(){return this._reduceChildren({},(ae,je,St)=>((je.enabled||this.disabled)&&(ae[St]=je.value),ae))}_reduceChildren(Te,ae){let je=Te;return this._forEachChild((St,xn)=>{je=ae(je,St,xn)}),je}_allControlsDisabled(){for(const Te of Object.keys(this.controls))if(this.controls[Te].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Te){return this.controls.hasOwnProperty(Te)?this.controls[Te]:null}}const It=Se,Gt=ye=>ye instanceof Se;class an extends Se{}const _t=ye=>ye instanceof an,Lt=new t.InjectionToken("CallSetDisabledState",{providedIn:"root",factory:()=>qe}),qe="always";function Fe(ye,Te){return[...Te.path,ye]}function tt(ye,Te,ae=qe){qt(ye,Te),Te.valueAccessor.writeValue(ye.value),(ye.disabled||"always"===ae)&&Te.valueAccessor.setDisabledState?.(ye.disabled),function Ln(ye,Te){Te.valueAccessor.registerOnChange(ae=>{ye._pendingValue=ae,ye._pendingChange=!0,ye._pendingDirty=!0,"change"===ye.updateOn&&Ei(ye,Te)})}(ye,Te),function jn(ye,Te){const ae=(je,St)=>{Te.valueAccessor.writeValue(je),St&&Te.viewToModelUpdate(je)};ye.registerOnChange(ae),Te._registerOnDestroy(()=>{ye._unregisterOnChange(ae)})}(ye,Te),function Oi(ye,Te){Te.valueAccessor.registerOnTouched(()=>{ye._pendingTouched=!0,"blur"===ye.updateOn&&ye._pendingChange&&Ei(ye,Te),"submit"!==ye.updateOn&&ye.markAsTouched()})}(ye,Te),function At(ye,Te){if(Te.valueAccessor.setDisabledState){const ae=je=>{Te.valueAccessor.setDisabledState(je)};ye.registerOnDisabledChange(ae),Te._registerOnDestroy(()=>{ye._unregisterOnDisabledChange(ae)})}}(ye,Te)}function He(ye,Te,ae=!0){const je=()=>{};Te.valueAccessor&&(Te.valueAccessor.registerOnChange(je),Te.valueAccessor.registerOnTouched(je)),Cn(ye,Te),ye&&(Te._invokeOnDestroyCallbacks(),ye._registerOnCollectionChange(()=>{}))}function dt(ye,Te){ye.forEach(ae=>{ae.registerOnValidatorChange&&ae.registerOnValidatorChange(Te)})}function qt(ye,Te){const ae=ue(ye);null!==Te.validator?ye.setValidators(ce(ae,Te.validator)):"function"==typeof ae&&ye.setValidators([ae]);const je=be(ye);null!==Te.asyncValidator?ye.setAsyncValidators(ce(je,Te.asyncValidator)):"function"==typeof je&&ye.setAsyncValidators([je]);const St=()=>ye.updateValueAndValidity();dt(Te._rawValidators,St),dt(Te._rawAsyncValidators,St)}function Cn(ye,Te){let ae=!1;if(null!==ye){if(null!==Te.validator){const St=ue(ye);if(Array.isArray(St)&&St.length>0){const xn=St.filter(ni=>ni!==Te.validator);xn.length!==St.length&&(ae=!0,ye.setValidators(xn))}}if(null!==Te.asyncValidator){const St=be(ye);if(Array.isArray(St)&&St.length>0){const xn=St.filter(ni=>ni!==Te.asyncValidator);xn.length!==St.length&&(ae=!0,ye.setAsyncValidators(xn))}}}const je=()=>{};return dt(Te._rawValidators,je),dt(Te._rawAsyncValidators,je),ae}function Ei(ye,Te){ye._pendingDirty&&ye.markAsDirty(),ye.setValue(ye._pendingValue,{emitModelToViewChange:!1}),Te.viewToModelUpdate(ye._pendingValue),ye._pendingChange=!1}function at(ye,Te){qt(ye,Te)}function Ue(ye,Te){if(!ye.hasOwnProperty("model"))return!1;const ae=ye.model;return!!ae.isFirstChange()||!Object.is(Te,ae.currentValue)}function Ye(ye,Te){ye._syncPendingControls(),Te.forEach(ae=>{const je=ae.control;"submit"===je.updateOn&&je._pendingChange&&(ae.viewToModelUpdate(je._pendingValue),je._pendingChange=!1)})}function mt(ye,Te){if(!Te)return null;let ae,je,St;return Array.isArray(Te),Te.forEach(xn=>{xn.constructor===h?ae=xn:function ut(ye){return Object.getPrototypeOf(ye.constructor)===s}(xn)?je=xn:St=xn}),St||je||ae||null}const H={provide:Ae,useExisting:(0,t.forwardRef)(()=>le)},pe=Promise.resolve();let le=(()=>{class ye extends Ae{constructor(ae,je,St){super(),this.callSetDisabledState=St,this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.EventEmitter,this.form=new Se({},V(ae),K(je))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(ae){pe.then(()=>{const je=this._findContainer(ae.path);ae.control=je.registerControl(ae.name,ae.control),tt(ae.control,ae,this.callSetDisabledState),ae.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(ae)})}getControl(ae){return this.form.get(ae.path)}removeControl(ae){pe.then(()=>{const je=this._findContainer(ae.path);je&&je.removeControl(ae.name),this._directives.delete(ae)})}addFormGroup(ae){pe.then(()=>{const je=this._findContainer(ae.path),St=new Se({});at(St,ae),je.registerControl(ae.name,St),St.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(ae){pe.then(()=>{const je=this._findContainer(ae.path);je&&je.removeControl(ae.name)})}getFormGroup(ae){return this.form.get(ae.path)}updateModel(ae,je){pe.then(()=>{this.form.get(ae.path).setValue(je)})}setValue(ae){this.control.setValue(ae)}onSubmit(ae){return this.submitted=!0,Ye(this.form,this._directives),this.ngSubmit.emit(ae),"dialog"===ae?.target?.method}onReset(){this.resetForm()}resetForm(ae=void 0){this.form.reset(ae),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(ae){return ae.pop(),ae.length?this.form.get(ae):this.form}static#e=this.\u0275fac=function(je){return new(je||ye)(t.\u0275\u0275directiveInject(y,10),t.\u0275\u0275directiveInject(M,10),t.\u0275\u0275directiveInject(Lt,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(je,St){1&je&&t.\u0275\u0275listener("submit",function(ni){return St.onSubmit(ni)})("reset",function(){return St.onReset()})},inputs:{options:[t.\u0275\u0275InputFlags.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t.\u0275\u0275ProvidersFeature([H]),t.\u0275\u0275InheritDefinitionFeature]})}return ye})();function Ve(ye,Te){const ae=ye.indexOf(Te);ae>-1&&ye.splice(ae,1)}function wt(ye){return"object"==typeof ye&&null!==ye&&2===Object.keys(ye).length&&"value"in ye&&"disabled"in ye}const ln=class extends de{constructor(Te=null,ae,je){super(Ot(ae),ft(je,ae)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Te),this._setUpdateStrategy(ae),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),me(ae)&&(ae.nonNullable||ae.initialValueIsDefault)&&(this.defaultValue=wt(Te)?Te.value:Te)}setValue(Te,ae={}){this.value=this._pendingValue=Te,this._onChange.length&&!1!==ae.emitModelToViewChange&&this._onChange.forEach(je=>je(this.value,!1!==ae.emitViewToModelChange)),this.updateValueAndValidity(ae)}patchValue(Te,ae={}){this.setValue(Te,ae)}reset(Te=this.defaultValue,ae={}){this._applyFormState(Te),this.markAsPristine(ae),this.markAsUntouched(ae),this.setValue(this.value,ae),this._pendingChange=!1}_updateValue(){}_anyControls(Te){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Te){this._onChange.push(Te)}_unregisterOnChange(Te){Ve(this._onChange,Te)}registerOnDisabledChange(Te){this._onDisabledChange.push(Te)}_unregisterOnDisabledChange(Te){Ve(this._onDisabledChange,Te)}_forEachChild(Te){}_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(Te){wt(Te)?(this.value=this._pendingValue=Te.value,Te.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Te}},Gn=ln,Jn=ye=>ye instanceof ln;let ti=(()=>{class ye extends Ae{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Fe(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(ye)))(St||ye)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,features:[t.\u0275\u0275InheritDefinitionFeature]})}return ye})();const _i={provide:Ae,useExisting:(0,t.forwardRef)(()=>hi)};let hi=(()=>{class ye extends ti{constructor(ae,je,St){super(),this.name="",this._parent=ae,this._setValidators(je),this._setAsyncValidators(St)}_checkParentType(){}static#e=this.\u0275fac=function(je){return new(je||ye)(t.\u0275\u0275directiveInject(Ae,5),t.\u0275\u0275directiveInject(y,10),t.\u0275\u0275directiveInject(M,10))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["","ngModelGroup",""]],inputs:{name:[t.\u0275\u0275InputFlags.None,"ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[t.\u0275\u0275ProvidersFeature([_i]),t.\u0275\u0275InheritDefinitionFeature]})}return ye})();const xi={provide:fe,useExisting:(0,t.forwardRef)(()=>On)},Ri=Promise.resolve();let On=(()=>{class ye extends fe{constructor(ae,je,St,xn,ni,Er){super(),this._changeDetectorRef=ni,this.callSetDisabledState=Er,this.control=new ln,this._registered=!1,this.name="",this.update=new t.EventEmitter,this._parent=ae,this._setValidators(je),this._setAsyncValidators(St),this.valueAccessor=mt(0,xn)}ngOnChanges(ae){if(this._checkForErrors(),!this._registered||"name"in ae){if(this._registered&&(this._checkName(),this.formDirective)){const je=ae.name.previousValue;this.formDirective.removeControl({name:je,path:this._getPath(je)})}this._setUpControl()}"isDisabled"in ae&&this._updateDisabled(ae),Ue(ae,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(ae){this.viewModel=ae,this.update.emit(ae)}_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(){tt(this.control,this,this.callSetDisabledState),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(ae){Ri.then(()=>{this.control.setValue(ae,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(ae){const je=ae.isDisabled.currentValue,St=0!==je&&(0,t.booleanAttribute)(je);Ri.then(()=>{St&&!this.control.disabled?this.control.disable():!St&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(ae){return this._parent?Fe(ae,this._parent):[ae]}static#e=this.\u0275fac=function(je){return new(je||ye)(t.\u0275\u0275directiveInject(Ae,9),t.\u0275\u0275directiveInject(y,10),t.\u0275\u0275directiveInject(M,10),t.\u0275\u0275directiveInject(f,10),t.\u0275\u0275directiveInject(t.ChangeDetectorRef,8),t.\u0275\u0275directiveInject(Lt,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[t.\u0275\u0275InputFlags.None,"disabled","isDisabled"],model:[t.\u0275\u0275InputFlags.None,"ngModel","model"],options:[t.\u0275\u0275InputFlags.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t.\u0275\u0275ProvidersFeature([xi]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]})}return ye})(),yn=(()=>{class ye{static#e=this.\u0275fac=function(je){return new(je||ye)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return ye})();const $i={provide:f,useExisting:(0,t.forwardRef)(()=>qn),multi:!0};let qn=(()=>{class ye extends s{writeValue(ae){this.setProperty("value",ae??"")}registerOnChange(ae){this.onChange=je=>{ae(""==je?null:parseFloat(je))}}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(ye)))(St||ye)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(je,St){1&je&&t.\u0275\u0275listener("input",function(ni){return St.onChange(ni.target.value)})("blur",function(){return St.onTouched()})},features:[t.\u0275\u0275ProvidersFeature([$i]),t.\u0275\u0275InheritDefinitionFeature]})}return ye})();const Zn={provide:f,useExisting:(0,t.forwardRef)(()=>Ui),multi:!0};let Wi=(()=>{class ye{constructor(){this._accessors=[]}add(ae,je){this._accessors.push([ae,je])}remove(ae){for(let je=this._accessors.length-1;je>=0;--je)if(this._accessors[je][1]===ae)return void this._accessors.splice(je,1)}select(ae){this._accessors.forEach(je=>{this._isSameGroup(je,ae)&&je[1]!==ae&&je[1].fireUncheck(ae.value)})}_isSameGroup(ae,je){return!!ae[0].control&&ae[0]._parent===je._control._parent&&ae[1].name===je.name}static#e=this.\u0275fac=function(je){return new(je||ye)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac,providedIn:"root"})}return ye})(),Ui=(()=>{class ye extends s{constructor(ae,je,St,xn){super(ae,je),this._registry=St,this._injector=xn,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,t.inject)(Lt,{optional:!0})??qe}ngOnInit(){this._control=this._injector.get(fe),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(ae){this._state=ae===this.value,this.setProperty("checked",this._state)}registerOnChange(ae){this._fn=ae,this.onChange=()=>{ae(this.value),this._registry.select(this)}}setDisabledState(ae){(this.setDisabledStateFired||ae||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",ae),this.setDisabledStateFired=!0}fireUncheck(ae){this.writeValue(ae)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function(je){return new(je||ye)(t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(Wi),t.\u0275\u0275directiveInject(t.Injector))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(je,St){1&je&&t.\u0275\u0275listener("change",function(){return St.onChange()})("blur",function(){return St.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[t.\u0275\u0275ProvidersFeature([Zn]),t.\u0275\u0275InheritDefinitionFeature]})}return ye})();const Un={provide:f,useExisting:(0,t.forwardRef)(()=>vn),multi:!0};let vn=(()=>{class ye extends s{writeValue(ae){this.setProperty("value",parseFloat(ae))}registerOnChange(ae){this.onChange=je=>{ae(""==je?null:parseFloat(je))}}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(ye)))(St||ye)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(je,St){1&je&&t.\u0275\u0275listener("change",function(ni){return St.onChange(ni.target.value)})("input",function(ni){return St.onChange(ni.target.value)})("blur",function(){return St.onTouched()})},features:[t.\u0275\u0275ProvidersFeature([Un]),t.\u0275\u0275InheritDefinitionFeature]})}return ye})();const Dn=new t.InjectionToken(""),Rn={provide:fe,useExisting:(0,t.forwardRef)(()=>Hn)};let Hn=(()=>{class ye extends fe{set isDisabled(ae){}static#e=this._ngModelWarningSentOnce=!1;constructor(ae,je,St,xn,ni){super(),this._ngModelWarningConfig=xn,this.callSetDisabledState=ni,this.update=new t.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(ae),this._setAsyncValidators(je),this.valueAccessor=mt(0,St)}ngOnChanges(ae){if(this._isControlChanged(ae)){const je=ae.form.previousValue;je&&He(je,this,!1),tt(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Ue(ae,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&He(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(ae){this.viewModel=ae,this.update.emit(ae)}_isControlChanged(ae){return ae.hasOwnProperty("form")}static#t=this.\u0275fac=function(je){return new(je||ye)(t.\u0275\u0275directiveInject(y,10),t.\u0275\u0275directiveInject(M,10),t.\u0275\u0275directiveInject(f,10),t.\u0275\u0275directiveInject(Dn,8),t.\u0275\u0275directiveInject(Lt,8))};static#n=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["","formControl",""]],inputs:{form:[t.\u0275\u0275InputFlags.None,"formControl","form"],isDisabled:[t.\u0275\u0275InputFlags.None,"disabled","isDisabled"],model:[t.\u0275\u0275InputFlags.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t.\u0275\u0275ProvidersFeature([Rn]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]})}return ye})();const ji={provide:Ae,useExisting:(0,t.forwardRef)(()=>Ji)};let Ji=(()=>{class ye extends Ae{constructor(ae,je,St){super(),this.callSetDisabledState=St,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.EventEmitter,this._setValidators(ae),this._setAsyncValidators(je)}ngOnChanges(ae){this._checkFormPresent(),ae.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Cn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(ae){const je=this.form.get(ae.path);return tt(je,ae,this.callSetDisabledState),je.updateValueAndValidity({emitEvent:!1}),this.directives.push(ae),je}getControl(ae){return this.form.get(ae.path)}removeControl(ae){He(ae.control||null,ae,!1),function Ee(ye,Te){const ae=ye.indexOf(Te);ae>-1&&ye.splice(ae,1)}(this.directives,ae)}addFormGroup(ae){this._setUpFormContainer(ae)}removeFormGroup(ae){this._cleanUpFormContainer(ae)}getFormGroup(ae){return this.form.get(ae.path)}addFormArray(ae){this._setUpFormContainer(ae)}removeFormArray(ae){this._cleanUpFormContainer(ae)}getFormArray(ae){return this.form.get(ae.path)}updateModel(ae,je){this.form.get(ae.path).setValue(je)}onSubmit(ae){return this.submitted=!0,Ye(this.form,this.directives),this.ngSubmit.emit(ae),"dialog"===ae?.target?.method}onReset(){this.resetForm()}resetForm(ae=void 0){this.form.reset(ae),this.submitted=!1}_updateDomValue(){this.directives.forEach(ae=>{const je=ae.control,St=this.form.get(ae.path);je!==St&&(He(je||null,ae),Jn(St)&&(tt(St,ae,this.callSetDisabledState),ae.control=St))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(ae){const je=this.form.get(ae.path);at(je,ae),je.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(ae){if(this.form){const je=this.form.get(ae.path);je&&function Jt(ye,Te){return Cn(ye,Te)}(je,ae)&&je.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){qt(this.form,this),this._oldForm&&Cn(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(je){return new(je||ye)(t.\u0275\u0275directiveInject(y,10),t.\u0275\u0275directiveInject(M,10),t.\u0275\u0275directiveInject(Lt,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["","formGroup",""]],hostBindings:function(je,St){1&je&&t.\u0275\u0275listener("submit",function(ni){return St.onSubmit(ni)})("reset",function(){return St.onReset()})},inputs:{form:[t.\u0275\u0275InputFlags.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t.\u0275\u0275ProvidersFeature([ji]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]})}return ye})();const Gi={provide:Ae,useExisting:(0,t.forwardRef)(()=>lr)};let lr=(()=>{class ye extends ti{constructor(ae,je,St){super(),this.name=null,this._parent=ae,this._setValidators(je),this._setAsyncValidators(St)}_checkParentType(){wr(this._parent)}static#e=this.\u0275fac=function(je){return new(je||ye)(t.\u0275\u0275directiveInject(Ae,13),t.\u0275\u0275directiveInject(y,10),t.\u0275\u0275directiveInject(M,10))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["","formGroupName",""]],inputs:{name:[t.\u0275\u0275InputFlags.None,"formGroupName","name"]},features:[t.\u0275\u0275ProvidersFeature([Gi]),t.\u0275\u0275InheritDefinitionFeature]})}return ye})();const Hr={provide:Ae,useExisting:(0,t.forwardRef)(()=>Tr)};let Tr=(()=>{class ye extends Ae{constructor(ae,je,St){super(),this.name=null,this._parent=ae,this._setValidators(je),this._setAsyncValidators(St)}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 Fe(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){wr(this._parent)}static#e=this.\u0275fac=function(je){return new(je||ye)(t.\u0275\u0275directiveInject(Ae,13),t.\u0275\u0275directiveInject(y,10),t.\u0275\u0275directiveInject(M,10))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["","formArrayName",""]],inputs:{name:[t.\u0275\u0275InputFlags.None,"formArrayName","name"]},features:[t.\u0275\u0275ProvidersFeature([Hr]),t.\u0275\u0275InheritDefinitionFeature]})}return ye})();function wr(ye){return!(ye instanceof lr||ye instanceof Ji||ye instanceof Tr)}const _s={provide:fe,useExisting:(0,t.forwardRef)(()=>Sr)};let Sr=(()=>{class ye extends fe{set isDisabled(ae){}static#e=this._ngModelWarningSentOnce=!1;constructor(ae,je,St,xn,ni){super(),this._ngModelWarningConfig=ni,this._added=!1,this.name=null,this.update=new t.EventEmitter,this._ngModelWarningSent=!1,this._parent=ae,this._setValidators(je),this._setAsyncValidators(St),this.valueAccessor=mt(0,xn)}ngOnChanges(ae){this._added||this._setUpControl(),Ue(ae,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(ae){this.viewModel=ae,this.update.emit(ae)}get path(){return Fe(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._added=!0}static#t=this.\u0275fac=function(je){return new(je||ye)(t.\u0275\u0275directiveInject(Ae,13),t.\u0275\u0275directiveInject(y,10),t.\u0275\u0275directiveInject(M,10),t.\u0275\u0275directiveInject(f,10),t.\u0275\u0275directiveInject(Dn,8))};static#n=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["","formControlName",""]],inputs:{name:[t.\u0275\u0275InputFlags.None,"formControlName","name"],isDisabled:[t.\u0275\u0275InputFlags.None,"disabled","isDisabled"],model:[t.\u0275\u0275InputFlags.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[t.\u0275\u0275ProvidersFeature([_s]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]})}return ye})();const Fr={provide:f,useExisting:(0,t.forwardRef)(()=>es),multi:!0};function Ur(ye,Te){return null==ye?`${Te}`:(Te&&"object"==typeof Te&&(Te="Object"),`${ye}: ${Te}`.slice(0,50))}let es=(()=>{class ye extends s{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(ae){this._compareWith=ae}writeValue(ae){this.value=ae;const St=Ur(this._getOptionId(ae),ae);this.setProperty("value",St)}registerOnChange(ae){this.onChange=je=>{this.value=this._getOptionValue(je),ae(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(ae){for(const je of this._optionMap.keys())if(this._compareWith(this._optionMap.get(je),ae))return je;return null}_getOptionValue(ae){const je=function mr(ye){return ye.split(":")[0]}(ae);return this._optionMap.has(je)?this._optionMap.get(je):ae}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(ye)))(St||ye)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(je,St){1&je&&t.\u0275\u0275listener("change",function(ni){return St.onChange(ni.target.value)})("blur",function(){return St.onTouched()})},inputs:{compareWith:"compareWith"},features:[t.\u0275\u0275ProvidersFeature([Fr]),t.\u0275\u0275InheritDefinitionFeature]})}return ye})(),Li=(()=>{class ye{constructor(ae,je,St){this._element=ae,this._renderer=je,this._select=St,this._select&&(this.id=this._select._registerOption())}set ngValue(ae){null!=this._select&&(this._select._optionMap.set(this.id,ae),this._setElementValue(Ur(this.id,ae)),this._select.writeValue(this._select.value))}set value(ae){this._setElementValue(ae),this._select&&this._select.writeValue(this._select.value)}_setElementValue(ae){this._renderer.setProperty(this._element.nativeElement,"value",ae)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(je){return new(je||ye)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(es,9))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return ye})();const ts={provide:f,useExisting:(0,t.forwardRef)(()=>br),multi:!0};function Bn(ye,Te){return null==ye?`${Te}`:("string"==typeof Te&&(Te=`'${Te}'`),Te&&"object"==typeof Te&&(Te="Object"),`${ye}: ${Te}`.slice(0,50))}let br=(()=>{class ye extends s{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(ae){this._compareWith=ae}writeValue(ae){let je;if(this.value=ae,Array.isArray(ae)){const St=ae.map(xn=>this._getOptionId(xn));je=(xn,ni)=>{xn._setSelected(St.indexOf(ni.toString())>-1)}}else je=(St,xn)=>{St._setSelected(!1)};this._optionMap.forEach(je)}registerOnChange(ae){this.onChange=je=>{const St=[],xn=je.selectedOptions;if(void 0!==xn){const ni=xn;for(let Er=0;Er{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(ye)))(St||ye)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(je,St){1&je&&t.\u0275\u0275listener("change",function(ni){return St.onChange(ni.target)})("blur",function(){return St.onTouched()})},inputs:{compareWith:"compareWith"},features:[t.\u0275\u0275ProvidersFeature([ts]),t.\u0275\u0275InheritDefinitionFeature]})}return ye})(),vs=(()=>{class ye{constructor(ae,je,St){this._element=ae,this._renderer=je,this._select=St,this._select&&(this.id=this._select._registerOption(this))}set ngValue(ae){null!=this._select&&(this._value=ae,this._setElementValue(Bn(this.id,ae)),this._select.writeValue(this._select.value))}set value(ae){this._select?(this._value=ae,this._setElementValue(Bn(this.id,ae)),this._select.writeValue(this._select.value)):this._setElementValue(ae)}_setElementValue(ae){this._renderer.setProperty(this._element.nativeElement,"value",ae)}_setSelected(ae){this._renderer.setProperty(this._element.nativeElement,"selected",ae)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(je){return new(je||ye)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(br,9))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return ye})();function Dt(ye){return"number"==typeof ye?ye:parseInt(ye,10)}function bt(ye){return"number"==typeof ye?ye:parseFloat(ye)}let Tt=(()=>{class ye{constructor(){this._validator=A}ngOnChanges(ae){if(this.inputName in ae){const je=this.normalizeInput(ae[this.inputName].currentValue);this._enabled=this.enabled(je),this._validator=this._enabled?this.createValidator(je):A,this._onChange&&this._onChange()}}validate(ae){return this._validator(ae)}registerOnValidatorChange(ae){this._onChange=ae}enabled(ae){return null!=ae}static#e=this.\u0275fac=function(je){return new(je||ye)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,features:[t.\u0275\u0275NgOnChangesFeature]})}return ye})();const kt={provide:y,useExisting:(0,t.forwardRef)(()=>$t),multi:!0};let $t=(()=>{class ye extends Tt{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=ae=>bt(ae),this.createValidator=ae=>D(ae)}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(ye)))(St||ye)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(je,St){2&je&&t.\u0275\u0275attribute("max",St._enabled?St.max:null)},inputs:{max:"max"},features:[t.\u0275\u0275ProvidersFeature([kt]),t.\u0275\u0275InheritDefinitionFeature]})}return ye})();const Wt={provide:y,useExisting:(0,t.forwardRef)(()=>sn),multi:!0};let sn=(()=>{class ye extends Tt{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=ae=>bt(ae),this.createValidator=ae=>I(ae)}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(ye)))(St||ye)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(je,St){2&je&&t.\u0275\u0275attribute("min",St._enabled?St.min:null)},inputs:{min:"min"},features:[t.\u0275\u0275ProvidersFeature([Wt]),t.\u0275\u0275InheritDefinitionFeature]})}return ye})();const fn={provide:y,useExisting:(0,t.forwardRef)(()=>Tn),multi:!0},bn={provide:y,useExisting:(0,t.forwardRef)(()=>$n),multi:!0};let Tn=(()=>{class ye extends Tt{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.booleanAttribute,this.createValidator=ae=>O}enabled(ae){return ae}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(ye)))(St||ye)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(je,St){2&je&&t.\u0275\u0275attribute("required",St._enabled?"":null)},inputs:{required:"required"},features:[t.\u0275\u0275ProvidersFeature([fn]),t.\u0275\u0275InheritDefinitionFeature]})}return ye})(),$n=(()=>{class ye extends Tn{constructor(){super(...arguments),this.createValidator=ae=>T}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(ye)))(St||ye)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(je,St){2&je&&t.\u0275\u0275attribute("required",St._enabled?"":null)},features:[t.\u0275\u0275ProvidersFeature([bn]),t.\u0275\u0275InheritDefinitionFeature]})}return ye})();const Mi={provide:y,useExisting:(0,t.forwardRef)(()=>Xn),multi:!0};let Xn=(()=>{class ye extends Tt{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=t.booleanAttribute,this.createValidator=ae=>U}enabled(ae){return ae}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(ye)))(St||ye)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[t.\u0275\u0275ProvidersFeature([Mi]),t.\u0275\u0275InheritDefinitionFeature]})}return ye})();const Ti={provide:y,useExisting:(0,t.forwardRef)(()=>Vn),multi:!0};let Vn=(()=>{class ye extends Tt{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=ae=>Dt(ae),this.createValidator=ae=>S(ae)}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(ye)))(St||ye)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(je,St){2&je&&t.\u0275\u0275attribute("minlength",St._enabled?St.minlength:null)},inputs:{minlength:"minlength"},features:[t.\u0275\u0275ProvidersFeature([Ti]),t.\u0275\u0275InheritDefinitionFeature]})}return ye})();const ri={provide:y,useExisting:(0,t.forwardRef)(()=>li),multi:!0};let li=(()=>{class ye extends Tt{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=ae=>Dt(ae),this.createValidator=ae=>R(ae)}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(ye)))(St||ye)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(je,St){2&je&&t.\u0275\u0275attribute("maxlength",St._enabled?St.maxlength:null)},inputs:{maxlength:"maxlength"},features:[t.\u0275\u0275ProvidersFeature([ri]),t.\u0275\u0275InheritDefinitionFeature]})}return ye})();const ur={provide:y,useExisting:(0,t.forwardRef)(()=>Bi),multi:!0};let Bi=(()=>{class ye extends Tt{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=ae=>ae,this.createValidator=ae=>N(ae)}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(ye)))(St||ye)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ye,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(je,St){2&je&&t.\u0275\u0275attribute("pattern",St._enabled?St.pattern:null)},inputs:{pattern:"pattern"},features:[t.\u0275\u0275ProvidersFeature([ur]),t.\u0275\u0275InheritDefinitionFeature]})}return ye})(),Br=(()=>{class ye{static#e=this.\u0275fac=function(je){return new(je||ye)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:ye});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({})}return ye})();class qi extends de{constructor(Te,ae,je){super(Ot(ae),ft(je,ae)),this.controls=Te,this._initObservables(),this._setUpdateStrategy(ae),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Te){return this.controls[this._adjustIndex(Te)]}push(Te,ae={}){this.controls.push(Te),this._registerControl(Te),this.updateValueAndValidity({emitEvent:ae.emitEvent}),this._onCollectionChange()}insert(Te,ae,je={}){this.controls.splice(Te,0,ae),this._registerControl(ae),this.updateValueAndValidity({emitEvent:je.emitEvent})}removeAt(Te,ae={}){let je=this._adjustIndex(Te);je<0&&(je=0),this.controls[je]&&this.controls[je]._registerOnCollectionChange(()=>{}),this.controls.splice(je,1),this.updateValueAndValidity({emitEvent:ae.emitEvent})}setControl(Te,ae,je={}){let St=this._adjustIndex(Te);St<0&&(St=0),this.controls[St]&&this.controls[St]._registerOnCollectionChange(()=>{}),this.controls.splice(St,1),ae&&(this.controls.splice(St,0,ae),this._registerControl(ae)),this.updateValueAndValidity({emitEvent:je.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Te,ae={}){te(this,0,Te),Te.forEach((je,St)=>{Ke(this,!1,St),this.at(St).setValue(je,{onlySelf:!0,emitEvent:ae.emitEvent})}),this.updateValueAndValidity(ae)}patchValue(Te,ae={}){null!=Te&&(Te.forEach((je,St)=>{this.at(St)&&this.at(St).patchValue(je,{onlySelf:!0,emitEvent:ae.emitEvent})}),this.updateValueAndValidity(ae))}reset(Te=[],ae={}){this._forEachChild((je,St)=>{je.reset(Te[St],{onlySelf:!0,emitEvent:ae.emitEvent})}),this._updatePristine(ae),this._updateTouched(ae),this.updateValueAndValidity(ae)}getRawValue(){return this.controls.map(Te=>Te.getRawValue())}clear(Te={}){this.controls.length<1||(this._forEachChild(ae=>ae._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Te.emitEvent}))}_adjustIndex(Te){return Te<0?Te+this.length:Te}_syncPendingControls(){let Te=this.controls.reduce((ae,je)=>!!je._syncPendingControls()||ae,!1);return Te&&this.updateValueAndValidity({onlySelf:!0}),Te}_forEachChild(Te){this.controls.forEach((ae,je)=>{Te(ae,je)})}_updateValue(){this.value=this.controls.filter(Te=>Te.enabled||this.disabled).map(Te=>Te.value)}_anyControls(Te){return this.controls.some(ae=>ae.enabled&&Te(ae))}_setUpControls(){this._forEachChild(Te=>this._registerControl(Te))}_allControlsDisabled(){for(const Te of this.controls)if(Te.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Te){Te.setParent(this),Te._registerOnCollectionChange(this._onCollectionChange)}_find(Te){return this.at(Te)??null}}const di=qi,ns=ye=>ye instanceof qi;function Gr(ye){return!!ye&&(void 0!==ye.asyncValidators||void 0!==ye.validators||void 0!==ye.updateOn)}let $r=(()=>{class ye{constructor(){this.useNonNullable=!1}get nonNullable(){const ae=new ye;return ae.useNonNullable=!0,ae}group(ae,je=null){const St=this._reduceControls(ae);let xn={};return Gr(je)?xn=je:null!==je&&(xn.validators=je.validator,xn.asyncValidators=je.asyncValidator),new Se(St,xn)}record(ae,je=null){const St=this._reduceControls(ae);return new an(St,je)}control(ae,je,St){let xn={};return this.useNonNullable?(Gr(je)?xn=je:(xn.validators=je,xn.asyncValidators=St),new ln(ae,{...xn,nonNullable:!0})):new ln(ae,je,St)}array(ae,je,St){const xn=ae.map(ni=>this._createControl(ni));return new qi(xn,je,St)}_reduceControls(ae){const je={};return Object.keys(ae).forEach(St=>{je[St]=this._createControl(ae[St])}),je}_createControl(ae){return ae instanceof ln||ae instanceof de?ae:Array.isArray(ae)?this.control(ae[0],ae.length>1?ae[1]:null,ae.length>2?ae[2]:null):this.control(ae)}static#e=this.\u0275fac=function(je){return new(je||ye)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac,providedIn:"root"})}return ye})(),Kr=(()=>{class ye{static#e=this.\u0275fac=function(je){return new(je||ye)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:ye,factory:()=>(0,t.inject)($r).nonNullable,providedIn:"root"})}return ye})(),Yr=(()=>{class ye extends $r{group(ae,je=null){return super.group(ae,je)}control(ae,je,St){return super.control(ae,je,St)}array(ae,je,St){return super.array(ae,je,St)}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(ye)))(St||ye)}})();static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac,providedIn:"root"})}return ye})();const Zr=new t.Version("17.3.3");let Qr=(()=>{class ye{static withConfig(ae){return{ngModule:ye,providers:[{provide:Lt,useValue:ae.callSetDisabledState??qe}]}}static#e=this.\u0275fac=function(je){return new(je||ye)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:ye});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[Br]})}return ye})(),Do=(()=>{class ye{static withConfig(ae){return{ngModule:ye,providers:[{provide:Dn,useValue:ae.warnOnNgModelWithFormControl??"always"},{provide:Lt,useValue:ae.callSetDisabledState??qe}]}}static#e=this.\u0275fac=function(je){return new(je||ye)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:ye});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[Br]})}return ye})()},850:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_AUTOCOMPLETE_DEFAULT_OPTIONS:()=>$,MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY:()=>j,MAT_AUTOCOMPLETE_SCROLL_STRATEGY:()=>ce,MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY:()=>ue,MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>be,MAT_AUTOCOMPLETE_VALUE_ACCESSOR:()=>W,MatAutocomplete:()=>G,MatAutocompleteModule:()=>pt,MatAutocompleteOrigin:()=>V,MatAutocompleteSelectedEvent:()=>ie,MatAutocompleteTrigger:()=>Ze,MatOptgroup:()=>_.MatOptgroup,MatOption:()=>_.MatOption,getMatAutocompleteMissingPanelError:()=>K});var t=g(4438),_=g(6600),C=g(177),E=g(5478),c=g(7987),b=g(6039),s=g(4085),f=g(6860),d=g(9969),a=g(8359),l=g(1413),r=g(9030),u=g(7786),h=g(7673),p=g(3726),v=g(7336),y=g(6939),M=g(9417),w=g(2102),k=g(9172),I=g(5558),D=g(6697),O=g(5964),T=g(6354),U=g(8141),S=g(3103),R=g(8203);const N=["panel"],A=["*"];function F(ct,Ct){if(1&ct){const Ne=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",1,0),t.\u0275\u0275listener("@panelAnimation.done",function(fe){t.\u0275\u0275restoreView(Ne);const We=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(We._animationDone.next(fe))}),t.\u0275\u0275projection(2),t.\u0275\u0275elementEnd()}if(2&ct){const Ne=Ct.id,Ae=t.\u0275\u0275nextContext();t.\u0275\u0275property("id",Ae.id)("ngClass",Ae._classList)("@panelAnimation",Ae.isOpen?"visible":"hidden"),t.\u0275\u0275attribute("aria-label",Ae.ariaLabel||null)("aria-labelledby",Ae._getPanelAriaLabelledby(Ne))}}const Y=(0,d.hZ)("panelAnimation",[(0,d.wk)("void, hidden",(0,d.iF)({opacity:0,transform:"scaleY(0.8)"})),(0,d.kY)(":enter, hidden => visible",[(0,d.Os)([(0,d.i0)("0.03s linear",(0,d.iF)({opacity:1})),(0,d.i0)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,d.iF)({transform:"scaleY(1)"}))])]),(0,d.kY)(":leave, visible => hidden",[(0,d.i0)("0.075s linear",(0,d.iF)({opacity:0}))])]);let ee=0;class ie{constructor(Ct,Ne){this.source=Ct,this.option=Ne}}const $=new t.InjectionToken("mat-autocomplete-default-options",{providedIn:"root",factory:j});function j(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}let G=(()=>{class ct{get isOpen(){return this._isOpen&&this.showPanel}_setColor(Ne){this._color=Ne,this._setThemeClasses(this._classList)}set classList(Ne){this._classList=Ne&&Ne.length?(0,s.cc)(Ne).reduce((Ae,fe)=>(Ae[fe]=!0,Ae),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(Ne){this._hideSingleSelectionIndicator=Ne,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const Ne of this.options)Ne._changeDetectorRef.markForCheck()}constructor(Ne,Ae,fe,We){this._changeDetectorRef=Ne,this._elementRef=Ae,this._defaults=fe,this._activeOptionChanges=a.yU.EMPTY,this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._animationDone=new t.EventEmitter,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new t.EventEmitter,this.opened=new t.EventEmitter,this.closed=new t.EventEmitter,this.optionActivated=new t.EventEmitter,this._classList={},this.id="mat-autocomplete-"+ee++,this.inertGroups=We?.SAFARI||!1,this.autoActiveFirstOption=!!fe.autoActiveFirstOption,this.autoSelectActiveOption=!!fe.autoSelectActiveOption,this.requireSelection=!!fe.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new b.Au(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(Ne=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Ne]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(Ne){this.panel&&(this.panel.nativeElement.scrollTop=Ne)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Ne){const Ae=new ie(this,Ne);this.optionSelected.emit(Ae)}_getPanelAriaLabelledby(Ne){return this.ariaLabel?null:this.ariaLabelledby?(Ne?Ne+" ":"")+this.ariaLabelledby:Ne}_setVisibilityClasses(Ne){Ne[this._visibleClass]=this.showPanel,Ne[this._hiddenClass]=!this.showPanel}_setThemeClasses(Ne){Ne["mat-primary"]="primary"===this._color,Ne["mat-warn"]="warn"===this._color,Ne["mat-accent"]="accent"===this._color}_skipPredicate(){return!1}static#e=this.\u0275fac=function(Ae){return new(Ae||ct)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject($),t.\u0275\u0275directiveInject(f.OD))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:ct,selectors:[["mat-autocomplete"]],contentQueries:function(Ae,fe,We){if(1&Ae&&(t.\u0275\u0275contentQuery(We,_.MatOption,5),t.\u0275\u0275contentQuery(We,_.MAT_OPTGROUP,5)),2&Ae){let Pe;t.\u0275\u0275queryRefresh(Pe=t.\u0275\u0275loadQuery())&&(fe.options=Pe),t.\u0275\u0275queryRefresh(Pe=t.\u0275\u0275loadQuery())&&(fe.optionGroups=Pe)}},viewQuery:function(Ae,fe){if(1&Ae&&(t.\u0275\u0275viewQuery(t.TemplateRef,7),t.\u0275\u0275viewQuery(N,5)),2&Ae){let We;t.\u0275\u0275queryRefresh(We=t.\u0275\u0275loadQuery())&&(fe.template=We.first),t.\u0275\u0275queryRefresh(We=t.\u0275\u0275loadQuery())&&(fe.panel=We.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[t.\u0275\u0275InputFlags.None,"aria-label","ariaLabel"],ariaLabelledby:[t.\u0275\u0275InputFlags.None,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"autoActiveFirstOption","autoActiveFirstOption",t.booleanAttribute],autoSelectActiveOption:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"autoSelectActiveOption","autoSelectActiveOption",t.booleanAttribute],requireSelection:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"requireSelection","requireSelection",t.booleanAttribute],panelWidth:"panelWidth",disableRipple:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",t.booleanAttribute],classList:[t.\u0275\u0275InputFlags.None,"class","classList"],hideSingleSelectionIndicator:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",t.booleanAttribute]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:_.MAT_OPTION_PARENT_COMPONENT,useExisting:ct}]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:A,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"]],template:function(Ae,fe){1&Ae&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275template(0,F,3,5,"ng-template"))},dependencies:[C.NgClass],styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape);box-shadow:var(--mat-autocomplete-container-elevation-shadow);background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Y]},changeDetection:0})}return ct})(),V=(()=>{class ct{constructor(Ne){this.elementRef=Ne}static#e=this.\u0275fac=function(Ae){return new(Ae||ct)(t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ct,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"],standalone:!0})}return ct})();const W={provide:M.NG_VALUE_ACCESSOR,useExisting:(0,t.forwardRef)(()=>Ze),multi:!0};function K(){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.")}const ce=new t.InjectionToken("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const ct=(0,t.inject)(c.hJ);return()=>ct.scrollStrategies.reposition()}});function ue(ct){return()=>ct.scrollStrategies.reposition()}const be={provide:ce,deps:[c.hJ],useFactory:ue};let Ze=(()=>{class ct{constructor(Ne,Ae,fe,We,Pe,Me,$e,q,_e,Oe,vt){this._element=Ne,this._overlay=Ae,this._viewContainerRef=fe,this._zone=We,this._changeDetectorRef=Pe,this._dir=$e,this._formField=q,this._document=_e,this._viewportRuler=Oe,this._defaults=vt,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=a.yU.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new l.B,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=(0,r.v)(()=>{const rt=this.autocomplete?this.autocomplete.options:null;return rt?rt.changes.pipe((0,k.Z)(rt),(0,I.n)(()=>(0,u.h)(...rt.map(we=>we.onSelectionChange)))):this._zone.onStable.pipe((0,D.s)(1),(0,I.n)(()=>this.optionSelections))}),this._handlePanelKeydown=rt=>{(rt.keyCode===v._f&&!(0,v.rp)(rt)||rt.keyCode===v.i7&&(0,v.rp)(rt,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),rt.stopPropagation(),rt.preventDefault())},this._trackedModal=null,this._scrollStrategy=Me}ngAfterViewInit(){const Ne=this._getWindow();typeof Ne<"u"&&this._zone.runOutsideAngular(()=>Ne.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Ne){Ne.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Ne=this._getWindow();typeof Ne<"u"&&Ne.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal)&&(0,b.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id)}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,u.h)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,O.p)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,O.p)(()=>this._overlayAttached)):(0,h.of)()).pipe((0,T.T)(Ne=>Ne instanceof _.MatOptionSelectionChange?Ne:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,u.h)((0,p.R)(this._document,"click"),(0,p.R)(this._document,"auxclick"),(0,p.R)(this._document,"touchend")).pipe((0,O.p)(Ne=>{const Ae=(0,f.Fb)(Ne),fe=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,We=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&Ae!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!fe||!fe.contains(Ae))&&(!We||!We.contains(Ae))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(Ae)}))}writeValue(Ne){Promise.resolve(null).then(()=>this._assignOptionValue(Ne))}registerOnChange(Ne){this._onChange=Ne}registerOnTouched(Ne){this._onTouched=Ne}setDisabledState(Ne){this._element.nativeElement.disabled=Ne}_handleKeydown(Ne){const Ae=Ne.keyCode,fe=(0,v.rp)(Ne);if(Ae===v._f&&!fe&&Ne.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&Ae===v.Fm&&this.panelOpen&&!fe)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Ne.preventDefault();else if(this.autocomplete){const We=this.autocomplete._keyManager.activeItem,Pe=Ae===v.i7||Ae===v.n6;Ae===v.wn||Pe&&!fe&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Ne):Pe&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(Pe||this.autocomplete._keyManager.activeItem!==We)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(Ne){let Ae=Ne.target,fe=Ae.value;if("number"===Ae.type&&(fe=""==fe?null:parseFloat(fe)),this._previousValue!==fe){if(this._previousValue=fe,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(fe),fe){if(this.panelOpen&&!this.autocomplete.requireSelection){const We=this.autocomplete.options?.find(Pe=>Pe.selected);We&&fe!==this._getDisplayValue(We.value)&&We.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);if(this._canOpen()&&this._document.activeElement===Ne.target){const We=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(We)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(Ne=!1){this._formField&&"auto"===this._formField.floatLabel&&(Ne?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Ne=this._zone.onStable.pipe((0,D.s)(1)),Ae=this.autocomplete.options.changes.pipe((0,U.M)(()=>this._positionStrategy.reapplyLastPosition()),(0,S.c)(0));return(0,u.h)(Ne,Ae).pipe((0,I.n)(()=>(this._zone.run(()=>{const fe=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),fe!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,D.s)(1)).subscribe(fe=>this._setValueAndClose(fe))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(Ne){const Ae=this.autocomplete;return Ae&&Ae.displayWith?Ae.displayWith(Ne):Ne}_assignOptionValue(Ne){const Ae=this._getDisplayValue(Ne);null==Ne&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(Ae??"")}_updateNativeInputValue(Ne){this._formField?this._formField._control.value=Ne:this._element.nativeElement.value=Ne,this._previousValue=Ne}_setValueAndClose(Ne){const Ae=this.autocomplete,fe=Ne?Ne.source:this._pendingAutoselectedOption;fe?(this._clearPreviousSelectedOption(fe),this._assignOptionValue(fe.value),this._onChange(fe.value),Ae._emitSelectEvent(fe),this._element.nativeElement.focus()):Ae.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),Ae._animationDone?Ae._animationDone.pipe((0,D.s)(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(Ne,Ae){this.autocomplete?.options?.forEach(fe=>{fe!==Ne&&fe.selected&&fe.deselect(Ae)})}_openPanelInternal(Ne=this._element.nativeElement.value){this._attachOverlay(Ne),this._floatLabel(),this._trackedModal&&(0,b.px)(this._trackedModal,"aria-owns",this.autocomplete.id)}_attachOverlay(Ne){let Ae=this._overlayRef;Ae?(this._positionStrategy.setOrigin(this._getConnectedElement()),Ae.updateSize({width:this._getPanelWidth()})):(this._portal=new y.VA(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),Ae=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Ae,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Ae&&Ae.updateSize({width:this._getPanelWidth()})})),Ae&&!Ae.hasAttached()&&(Ae.attach(this._portal),this._valueOnAttach=Ne,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());const fe=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&fe!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const Ne=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=Ne.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=Ne.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new c.rR({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const Ne=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Ne),this._positionStrategy=Ne,Ne}_setStrategyPositions(Ne){const Ae=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],fe=this._aboveClass,We=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:fe},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:fe}];let Pe;Pe="above"===this.position?We:"below"===this.position?Ae:[...Ae,...We],Ne.withPositions(Pe)}_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 Ne=this.autocomplete;if(Ne.autoActiveFirstOption){let Ae=-1;for(let fe=0;fe .cdk-overlay-container [aria-modal="true"]');if(!Ne)return;const Ae=this.autocomplete.id;this._trackedModal&&(0,b.Ae)(this._trackedModal,"aria-owns",Ae),(0,b.px)(Ne,"aria-owns",Ae),this._trackedModal=Ne}_clearFromModal(){this._trackedModal&&((0,b.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static#e=this.\u0275fac=function(Ae){return new(Ae||ct)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(c.hJ),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(ce),t.\u0275\u0275directiveInject(R.dS,8),t.\u0275\u0275directiveInject(w.MAT_FORM_FIELD,9),t.\u0275\u0275directiveInject(C.DOCUMENT,8),t.\u0275\u0275directiveInject(E.Xj),t.\u0275\u0275directiveInject($,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ct,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(Ae,fe){1&Ae&&t.\u0275\u0275listener("focusin",function(){return fe._handleFocus()})("blur",function(){return fe._onTouched()})("input",function(Pe){return fe._handleInput(Pe)})("keydown",function(Pe){return fe._handleKeydown(Pe)})("click",function(){return fe._handleClick()}),2&Ae&&t.\u0275\u0275attribute("autocomplete",fe.autocompleteAttribute)("role",fe.autocompleteDisabled?null:"combobox")("aria-autocomplete",fe.autocompleteDisabled?null:"list")("aria-activedescendant",fe.panelOpen&&fe.activeOption?fe.activeOption.id:null)("aria-expanded",fe.autocompleteDisabled?null:fe.panelOpen.toString())("aria-controls",fe.autocompleteDisabled||!fe.panelOpen||null==fe.autocomplete?null:fe.autocomplete.id)("aria-haspopup",fe.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[t.\u0275\u0275InputFlags.None,"matAutocomplete","autocomplete"],position:[t.\u0275\u0275InputFlags.None,"matAutocompletePosition","position"],connectedTo:[t.\u0275\u0275InputFlags.None,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[t.\u0275\u0275InputFlags.None,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"matAutocompleteDisabled","autocompleteDisabled",t.booleanAttribute]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([W]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275NgOnChangesFeature]})}return ct})(),pt=(()=>{class ct{static#e=this.\u0275fac=function(Ae){return new(Ae||ct)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:ct});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({providers:[be],imports:[c.z_,_.MatOptionModule,_.MatCommonModule,C.CommonModule,E.Gj,_.MatOptionModule,_.MatCommonModule]})}return ct})()},8834:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_BUTTON_CONFIG:()=>v,MAT_FAB_DEFAULT_OPTIONS:()=>T,MAT_FAB_DEFAULT_OPTIONS_FACTORY:()=>U,MatAnchor:()=>O,MatButton:()=>D,MatButtonModule:()=>ie,MatFabAnchor:()=>A,MatFabButton:()=>R,MatIconAnchor:()=>ee,MatIconButton:()=>Y,MatMiniFabAnchor:()=>F,MatMiniFabButton:()=>N});var t=g(6860),_=g(4438),C=g(6039),E=g(6600);const c=["mat-button",""],b=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],s=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],d=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",a=["mat-fab",""],l=["mat-mini-fab",""],r='.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab{background-color:var(--mdc-fab-container-color)}.mat-mdc-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-mini-fab{background-color:var(--mdc-fab-small-container-color)}.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-small-icon-size);height:var(--mdc-fab-small-icon-size);font-size:var(--mdc-fab-small-icon-size)}.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mdc-extended-fab-container-height);border-radius:var(--mdc-extended-fab-container-shape);font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-extended-fab .mdc-fab__ripple{border-radius:var(--mdc-extended-fab-container-shape)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab[disabled],.mat-mdc-fab[disabled]:focus,.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-fab.mat-mdc-button-disabled:focus,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab[disabled]:focus,.mat-mdc-mini-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab.mat-mdc-button-disabled-interactive,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{color:var(--mat-fab-foreground-color, inherit);box-shadow:var(--mdc-fab-container-elevation-shadow)}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color)}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity)}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity)}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity)}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow)}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab{color:var(--mat-fab-small-foreground-color, inherit);box-shadow:var(--mdc-fab-small-container-elevation-shadow)}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color)}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity)}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity)}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity)}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow)}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow)}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow)}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color);background-color:var(--mat-fab-small-disabled-state-container-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab{box-shadow:var(--mdc-extended-fab-container-elevation-shadow)}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow)}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow)}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow)}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}',u=["mat-icon-button",""],h=["*"],v=new _.InjectionToken("MAT_BUTTON_CONFIG"),M=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}];let w=(()=>{class ${get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(G){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,G)}get disableRipple(){return this._disableRipple}set disableRipple(G){this._disableRipple=G,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(G){this._disabled=G,this._updateRippleDisabled()}constructor(G,V,W,K){this._elementRef=G,this._platform=V,this._ngZone=W,this._animationMode=K,this._focusMonitor=(0,_.inject)(C.FN),this._rippleLoader=(0,_.inject)(E.MatRippleLoader),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;const ce=(0,_.inject)(v,{optional:!0}),ue=G.nativeElement,be=ue.classList;this.disabledInteractive=ce?.disabledInteractive??!1,this._rippleLoader?.configureRipple(ue,{className:"mat-mdc-button-ripple"});for(const{attribute:Ze,mdcClasses:pt}of M)ue.hasAttribute(Ze)&&be.add(...pt)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(G="program",V){G?this._focusMonitor.focusVia(this._elementRef.nativeElement,G,V):this._elementRef.nativeElement.focus(V)}_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:!(!this.disabled||!this.disabledInteractive)||null}_getDisabledAttribute(){return!(this.disabledInteractive||!this.disabled)||null}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(V){_.\u0275\u0275invalidFactory()};static#t=this.\u0275dir=_.\u0275\u0275defineDirective({type:$,inputs:{color:"color",disableRipple:[_.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",_.booleanAttribute],disabled:[_.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",_.booleanAttribute],ariaDisabled:[_.\u0275\u0275InputFlags.HasDecoratorInputTransform,"aria-disabled","ariaDisabled",_.booleanAttribute],disabledInteractive:[_.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabledInteractive","disabledInteractive",_.booleanAttribute]},features:[_.\u0275\u0275InputTransformsFeature]})}return $})(),I=(()=>{class $ extends w{constructor(G,V,W,K){super(G,V,W,K),this._haltDisabledEvents=ce=>{this.disabled&&(ce.preventDefault(),ce.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_getAriaDisabled(){return null==this.ariaDisabled?this.disabled:this.ariaDisabled}static#e=this.\u0275fac=function(V){_.\u0275\u0275invalidFactory()};static#t=this.\u0275dir=_.\u0275\u0275defineDirective({type:$,inputs:{tabIndex:[_.\u0275\u0275InputFlags.HasDecoratorInputTransform,"tabIndex","tabIndex",G=>null==G?void 0:(0,_.numberAttribute)(G)]},features:[_.\u0275\u0275InputTransformsFeature,_.\u0275\u0275InheritDefinitionFeature]})}return $})(),D=(()=>{class $ extends w{constructor(G,V,W,K){super(G,V,W,K)}static#e=this.\u0275fac=function(V){return new(V||$)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(t.OD),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275cmp=_.\u0275\u0275defineComponent({type:$,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(V,W){2&V&&(_.\u0275\u0275attribute("disabled",W._getDisabledAttribute())("aria-disabled",W._getAriaDisabled()),_.\u0275\u0275classMap(W.color?"mat-"+W.color:""),_.\u0275\u0275classProp("mat-mdc-button-disabled",W.disabled)("mat-mdc-button-disabled-interactive",W.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===W._animationMode)("mat-unthemed",!W.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[_.\u0275\u0275InheritDefinitionFeature,_.\u0275\u0275StandaloneFeature],attrs:c,ngContentSelectors:s,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(V,W){1&V&&(_.\u0275\u0275projectionDef(b),_.\u0275\u0275element(0,"span",0),_.\u0275\u0275projection(1),_.\u0275\u0275elementStart(2,"span",1),_.\u0275\u0275projection(3,1),_.\u0275\u0275elementEnd(),_.\u0275\u0275projection(4,2),_.\u0275\u0275element(5,"span",2)(6,"span",3)),2&V&&_.\u0275\u0275classProp("mdc-button__ripple",!W._isFab)("mdc-fab__ripple",W._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return $})(),O=(()=>{class $ extends I{constructor(G,V,W,K){super(G,V,W,K)}static#e=this.\u0275fac=function(V){return new(V||$)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(t.OD),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275cmp=_.\u0275\u0275defineComponent({type:$,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(V,W){2&V&&(_.\u0275\u0275attribute("disabled",W._getDisabledAttribute())("tabindex",W.disabled&&!W.disabledInteractive?-1:W.tabIndex)("aria-disabled",W._getDisabledAttribute()),_.\u0275\u0275classMap(W.color?"mat-"+W.color:""),_.\u0275\u0275classProp("mat-mdc-button-disabled",W.disabled)("mat-mdc-button-disabled-interactive",W.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===W._animationMode)("mat-unthemed",!W.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[_.\u0275\u0275InheritDefinitionFeature,_.\u0275\u0275StandaloneFeature],attrs:c,ngContentSelectors:s,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(V,W){1&V&&(_.\u0275\u0275projectionDef(b),_.\u0275\u0275element(0,"span",0),_.\u0275\u0275projection(1),_.\u0275\u0275elementStart(2,"span",1),_.\u0275\u0275projection(3,1),_.\u0275\u0275elementEnd(),_.\u0275\u0275projection(4,2),_.\u0275\u0275element(5,"span",2)(6,"span",3)),2&V&&_.\u0275\u0275classProp("mdc-button__ripple",!W._isFab)("mdc-fab__ripple",W._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',d],encapsulation:2,changeDetection:0})}return $})();const T=new _.InjectionToken("mat-mdc-fab-default-options",{providedIn:"root",factory:U});function U(){return{color:"accent"}}const S=U();let R=(()=>{class $ extends w{constructor(G,V,W,K,ce){super(G,V,W,K),this._options=ce,this._isFab=!0,this._options=this._options||S,this.color=this._options.color||S.color}static#e=this.\u0275fac=function(V){return new(V||$)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(t.OD),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8),_.\u0275\u0275directiveInject(T,8))};static#t=this.\u0275cmp=_.\u0275\u0275defineComponent({type:$,selectors:[["button","mat-fab",""]],hostVars:18,hostBindings:function(V,W){2&V&&(_.\u0275\u0275attribute("disabled",W._getDisabledAttribute())("aria-disabled",W._getAriaDisabled()),_.\u0275\u0275classMap(W.color?"mat-"+W.color:""),_.\u0275\u0275classProp("mat-mdc-button-disabled",W.disabled)("mat-mdc-button-disabled-interactive",W.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===W._animationMode)("mat-unthemed",!W.color)("mat-mdc-button-base",!0)("mdc-fab--extended",W.extended)("mat-mdc-extended-fab",W.extended))},inputs:{extended:[_.\u0275\u0275InputFlags.HasDecoratorInputTransform,"extended","extended",_.booleanAttribute]},exportAs:["matButton"],standalone:!0,features:[_.\u0275\u0275InputTransformsFeature,_.\u0275\u0275InheritDefinitionFeature,_.\u0275\u0275StandaloneFeature],attrs:a,ngContentSelectors:s,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(V,W){1&V&&(_.\u0275\u0275projectionDef(b),_.\u0275\u0275element(0,"span",0),_.\u0275\u0275projection(1),_.\u0275\u0275elementStart(2,"span",1),_.\u0275\u0275projection(3,1),_.\u0275\u0275elementEnd(),_.\u0275\u0275projection(4,2),_.\u0275\u0275element(5,"span",2)(6,"span",3)),2&V&&_.\u0275\u0275classProp("mdc-button__ripple",!W._isFab)("mdc-fab__ripple",W._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab{background-color:var(--mdc-fab-container-color)}.mat-mdc-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-mini-fab{background-color:var(--mdc-fab-small-container-color)}.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-small-icon-size);height:var(--mdc-fab-small-icon-size);font-size:var(--mdc-fab-small-icon-size)}.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mdc-extended-fab-container-height);border-radius:var(--mdc-extended-fab-container-shape);font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-extended-fab .mdc-fab__ripple{border-radius:var(--mdc-extended-fab-container-shape)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab[disabled],.mat-mdc-fab[disabled]:focus,.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-fab.mat-mdc-button-disabled:focus,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab[disabled]:focus,.mat-mdc-mini-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab.mat-mdc-button-disabled-interactive,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{color:var(--mat-fab-foreground-color, inherit);box-shadow:var(--mdc-fab-container-elevation-shadow)}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color)}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity)}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity)}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity)}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow)}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab{color:var(--mat-fab-small-foreground-color, inherit);box-shadow:var(--mdc-fab-small-container-elevation-shadow)}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color)}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity)}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity)}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity)}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow)}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow)}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow)}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color);background-color:var(--mat-fab-small-disabled-state-container-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab{box-shadow:var(--mdc-extended-fab-container-elevation-shadow)}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow)}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow)}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow)}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}'],encapsulation:2,changeDetection:0})}return $})(),N=(()=>{class $ extends w{constructor(G,V,W,K,ce){super(G,V,W,K),this._options=ce,this._isFab=!0,this._options=this._options||S,this.color=this._options.color||S.color}static#e=this.\u0275fac=function(V){return new(V||$)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(t.OD),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8),_.\u0275\u0275directiveInject(T,8))};static#t=this.\u0275cmp=_.\u0275\u0275defineComponent({type:$,selectors:[["button","mat-mini-fab",""]],hostVars:14,hostBindings:function(V,W){2&V&&(_.\u0275\u0275attribute("disabled",W._getDisabledAttribute())("aria-disabled",W._getAriaDisabled()),_.\u0275\u0275classMap(W.color?"mat-"+W.color:""),_.\u0275\u0275classProp("mat-mdc-button-disabled",W.disabled)("mat-mdc-button-disabled-interactive",W.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===W._animationMode)("mat-unthemed",!W.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[_.\u0275\u0275InheritDefinitionFeature,_.\u0275\u0275StandaloneFeature],attrs:l,ngContentSelectors:s,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(V,W){1&V&&(_.\u0275\u0275projectionDef(b),_.\u0275\u0275element(0,"span",0),_.\u0275\u0275projection(1),_.\u0275\u0275elementStart(2,"span",1),_.\u0275\u0275projection(3,1),_.\u0275\u0275elementEnd(),_.\u0275\u0275projection(4,2),_.\u0275\u0275element(5,"span",2)(6,"span",3)),2&V&&_.\u0275\u0275classProp("mdc-button__ripple",!W._isFab)("mdc-fab__ripple",W._isFab)},styles:[r],encapsulation:2,changeDetection:0})}return $})(),A=(()=>{class $ extends O{constructor(G,V,W,K,ce){super(G,V,W,K),this._options=ce,this._isFab=!0,this._options=this._options||S,this.color=this._options.color||S.color}static#e=this.\u0275fac=function(V){return new(V||$)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(t.OD),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8),_.\u0275\u0275directiveInject(T,8))};static#t=this.\u0275cmp=_.\u0275\u0275defineComponent({type:$,selectors:[["a","mat-fab",""]],hostVars:19,hostBindings:function(V,W){2&V&&(_.\u0275\u0275attribute("disabled",W._getDisabledAttribute())("tabindex",W.disabled&&!W.disabledInteractive?-1:W.tabIndex)("aria-disabled",W._getDisabledAttribute()),_.\u0275\u0275classMap(W.color?"mat-"+W.color:""),_.\u0275\u0275classProp("mat-mdc-button-disabled",W.disabled)("mat-mdc-button-disabled-interactive",W.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===W._animationMode)("mat-unthemed",!W.color)("mat-mdc-button-base",!0)("mdc-fab--extended",W.extended)("mat-mdc-extended-fab",W.extended))},inputs:{extended:[_.\u0275\u0275InputFlags.HasDecoratorInputTransform,"extended","extended",_.booleanAttribute]},exportAs:["matButton","matAnchor"],standalone:!0,features:[_.\u0275\u0275InputTransformsFeature,_.\u0275\u0275InheritDefinitionFeature,_.\u0275\u0275StandaloneFeature],attrs:a,ngContentSelectors:s,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(V,W){1&V&&(_.\u0275\u0275projectionDef(b),_.\u0275\u0275element(0,"span",0),_.\u0275\u0275projection(1),_.\u0275\u0275elementStart(2,"span",1),_.\u0275\u0275projection(3,1),_.\u0275\u0275elementEnd(),_.\u0275\u0275projection(4,2),_.\u0275\u0275element(5,"span",2)(6,"span",3)),2&V&&_.\u0275\u0275classProp("mdc-button__ripple",!W._isFab)("mdc-fab__ripple",W._isFab)},styles:[r],encapsulation:2,changeDetection:0})}return $})(),F=(()=>{class $ extends O{constructor(G,V,W,K,ce){super(G,V,W,K),this._options=ce,this._isFab=!0,this._options=this._options||S,this.color=this._options.color||S.color}static#e=this.\u0275fac=function(V){return new(V||$)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(t.OD),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8),_.\u0275\u0275directiveInject(T,8))};static#t=this.\u0275cmp=_.\u0275\u0275defineComponent({type:$,selectors:[["a","mat-mini-fab",""]],hostVars:15,hostBindings:function(V,W){2&V&&(_.\u0275\u0275attribute("disabled",W._getDisabledAttribute())("tabindex",W.disabled&&!W.disabledInteractive?-1:W.tabIndex)("aria-disabled",W._getDisabledAttribute()),_.\u0275\u0275classMap(W.color?"mat-"+W.color:""),_.\u0275\u0275classProp("mat-mdc-button-disabled",W.disabled)("mat-mdc-button-disabled-interactive",W.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===W._animationMode)("mat-unthemed",!W.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[_.\u0275\u0275InheritDefinitionFeature,_.\u0275\u0275StandaloneFeature],attrs:l,ngContentSelectors:s,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(V,W){1&V&&(_.\u0275\u0275projectionDef(b),_.\u0275\u0275element(0,"span",0),_.\u0275\u0275projection(1),_.\u0275\u0275elementStart(2,"span",1),_.\u0275\u0275projection(3,1),_.\u0275\u0275elementEnd(),_.\u0275\u0275projection(4,2),_.\u0275\u0275element(5,"span",2)(6,"span",3)),2&V&&_.\u0275\u0275classProp("mdc-button__ripple",!W._isFab)("mdc-fab__ripple",W._isFab)},styles:[r],encapsulation:2,changeDetection:0})}return $})(),Y=(()=>{class $ extends w{constructor(G,V,W,K){super(G,V,W,K),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(V){return new(V||$)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(t.OD),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275cmp=_.\u0275\u0275defineComponent({type:$,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(V,W){2&V&&(_.\u0275\u0275attribute("disabled",W._getDisabledAttribute())("aria-disabled",W._getAriaDisabled()),_.\u0275\u0275classMap(W.color?"mat-"+W.color:""),_.\u0275\u0275classProp("mat-mdc-button-disabled",W.disabled)("mat-mdc-button-disabled-interactive",W.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===W._animationMode)("mat-unthemed",!W.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[_.\u0275\u0275InheritDefinitionFeature,_.\u0275\u0275StandaloneFeature],attrs:u,ngContentSelectors:h,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(V,W){1&V&&(_.\u0275\u0275projectionDef(),_.\u0275\u0275element(0,"span",0),_.\u0275\u0275projection(1),_.\u0275\u0275element(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',d],encapsulation:2,changeDetection:0})}return $})(),ee=(()=>{class $ extends I{constructor(G,V,W,K){super(G,V,W,K)}static#e=this.\u0275fac=function(V){return new(V||$)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(t.OD),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275cmp=_.\u0275\u0275defineComponent({type:$,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(V,W){2&V&&(_.\u0275\u0275attribute("disabled",W._getDisabledAttribute())("tabindex",W.disabled&&!W.disabledInteractive?-1:W.tabIndex)("aria-disabled",W._getDisabledAttribute()),_.\u0275\u0275classMap(W.color?"mat-"+W.color:""),_.\u0275\u0275classProp("mat-mdc-button-disabled",W.disabled)("mat-mdc-button-disabled-interactive",W.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===W._animationMode)("mat-unthemed",!W.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[_.\u0275\u0275InheritDefinitionFeature,_.\u0275\u0275StandaloneFeature],attrs:u,ngContentSelectors:s,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(V,W){1&V&&(_.\u0275\u0275projectionDef(b),_.\u0275\u0275element(0,"span",0),_.\u0275\u0275projection(1),_.\u0275\u0275elementStart(2,"span",1),_.\u0275\u0275projection(3,1),_.\u0275\u0275elementEnd(),_.\u0275\u0275projection(4,2),_.\u0275\u0275element(5,"span",2)(6,"span",3)),2&V&&_.\u0275\u0275classProp("mdc-button__ripple",!W._isFab)("mdc-fab__ripple",W._isFab)},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',d],encapsulation:2,changeDetection:0})}return $})(),ie=(()=>{class ${static#e=this.\u0275fac=function(V){return new(V||$)};static#t=this.\u0275mod=_.\u0275\u0275defineNgModule({type:$});static#n=this.\u0275inj=_.\u0275\u0275defineInjector({imports:[E.MatCommonModule,E.MatRippleModule,E.MatCommonModule]})}return $})()},5596:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_CARD_CONFIG:()=>d,MatCard:()=>a,MatCardActions:()=>p,MatCardAvatar:()=>O,MatCardContent:()=>u,MatCardFooter:()=>y,MatCardHeader:()=>v,MatCardImage:()=>M,MatCardLgImage:()=>I,MatCardMdImage:()=>k,MatCardModule:()=>U,MatCardSmImage:()=>w,MatCardSubtitle:()=>h,MatCardTitle:()=>l,MatCardTitleGroup:()=>r,MatCardXlImage:()=>D});var t=g(4438),_=g(177),C=g(6600);const E=["*"],c=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["","mat-card-image",""],["","matCardImage",""],["","mat-card-sm-image",""],["","matCardImageSmall",""],["","mat-card-md-image",""],["","matCardImageMedium",""],["","mat-card-lg-image",""],["","matCardImageLarge",""],["","mat-card-xl-image",""],["","matCardImageXLarge",""]],"*"],b=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","[mat-card-image], [matCardImage],\n [mat-card-sm-image], [matCardImageSmall],\n [mat-card-md-image], [matCardImageMedium],\n [mat-card-lg-image], [matCardImageLarge],\n [mat-card-xl-image], [matCardImageXLarge]","*"],s=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],f=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],d=new t.InjectionToken("MAT_CARD_CONFIG");let a=(()=>{class S{constructor(N){this.appearance=N?.appearance||"raised"}static#e=this.\u0275fac=function(A){return new(A||S)(t.\u0275\u0275directiveInject(d,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:S,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(A,F){2&A&&t.\u0275\u0275classProp("mat-mdc-card-outlined","outlined"===F.appearance)("mdc-card--outlined","outlined"===F.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],standalone:!0,features:[t.\u0275\u0275StandaloneFeature],ngContentSelectors:E,decls:1,vars:0,template:function(A,F){1&A&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:rgba(0, 0, 0, 0.6);flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:rgba(0, 0, 0, 0.6)}.mat-mdc-card{border-radius:var(--mdc-elevated-card-container-shape);background-color:var(--mdc-elevated-card-container-color);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color);box-shadow:var(--mdc-elevated-card-container-elevation)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width);border-style:solid;border-color:var(--mdc-outlined-card-outline-color);border-radius:var(--mdc-outlined-card-container-shape);background-color:var(--mdc-outlined-card-container-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined .mdc-card::after{border-radius:var(--mdc-outlined-card-container-shape)}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card{position:relative}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0})}return S})(),l=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"],standalone:!0})}return S})(),r=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:S,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-mdc-card-title-group"],standalone:!0,features:[t.\u0275\u0275StandaloneFeature],ngContentSelectors:b,decls:4,vars:0,template:function(A,F){1&A&&(t.\u0275\u0275projectionDef(c),t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275projection(1),t.\u0275\u0275elementEnd(),t.\u0275\u0275projection(2,1),t.\u0275\u0275projection(3,2))},encapsulation:2,changeDetection:0})}return S})(),u=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"],standalone:!0})}return S})(),h=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"],standalone:!0})}return S})(),p=(()=>{class S{constructor(){this.align="start"}static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(A,F){2&A&&t.\u0275\u0275classProp("mat-mdc-card-actions-align-end","end"===F.align)},inputs:{align:"align"},exportAs:["matCardActions"],standalone:!0})}return S})(),v=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:S,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],standalone:!0,features:[t.\u0275\u0275StandaloneFeature],ngContentSelectors:f,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(A,F){1&A&&(t.\u0275\u0275projectionDef(s),t.\u0275\u0275projection(0),t.\u0275\u0275elementStart(1,"div",0),t.\u0275\u0275projection(2,1),t.\u0275\u0275elementEnd(),t.\u0275\u0275projection(3,2))},encapsulation:2,changeDetection:0})}return S})(),y=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-mdc-card-footer"],standalone:!0})}return S})(),M=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-mdc-card-image","mdc-card__media"],standalone:!0})}return S})(),w=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-mdc-card-sm-image","mdc-card__media"],standalone:!0})}return S})(),k=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-mdc-card-md-image","mdc-card__media"],standalone:!0})}return S})(),I=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-mdc-card-lg-image","mdc-card__media"],standalone:!0})}return S})(),D=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-mdc-card-xl-image","mdc-card__media"],standalone:!0})}return S})(),O=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-mdc-card-avatar"],standalone:!0})}return S})(),U=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:S});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[C.MatCommonModule,_.CommonModule,C.MatCommonModule]})}return S})()},2765:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR:()=>a,MAT_CHECKBOX_DEFAULT_OPTIONS:()=>s,MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY:()=>f,MAT_CHECKBOX_REQUIRED_VALIDATOR:()=>p,MatCheckbox:()=>h,MatCheckboxChange:()=>l,MatCheckboxModule:()=>M,MatCheckboxRequiredValidator:()=>v,TransitionCheckState:()=>d,_MatCheckboxRequiredValidatorModule:()=>y});var t=g(4438),_=g(9417),C=g(6600);const E=["input"],c=["label"],b=["*"],s=new t.InjectionToken("mat-checkbox-default-options",{providedIn:"root",factory:f});function f(){return{color:"accent",clickAction:"check-indeterminate"}}var d=function(w){return w[w.Init=0]="Init",w[w.Checked=1]="Checked",w[w.Unchecked=2]="Unchecked",w[w.Indeterminate=3]="Indeterminate",w}(d||{});const a={provide:_.NG_VALUE_ACCESSOR,useExisting:(0,t.forwardRef)(()=>h),multi:!0};class l{}let r=0;const u=f();let h=(()=>{class w{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(I){const D=new l;return D.source=this,D.checked=I,D}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(I,D,O,T,U,S){this._elementRef=I,this._changeDetectorRef=D,this._ngZone=O,this._animationMode=U,this._options=S,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new t.EventEmitter,this.indeterminateChange=new t.EventEmitter,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=d.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||u,this.color=this._options.color||u.color,this.tabIndex=parseInt(T)||0,this.id=this._uniqueId="mat-mdc-checkbox-"+ ++r}ngOnChanges(I){I.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(I){I!=this.checked&&(this._checked=I,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(I){I!==this.disabled&&(this._disabled=I,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(I){const D=I!=this._indeterminate;this._indeterminate=I,D&&(this._transitionCheckState(this._indeterminate?d.Indeterminate:this.checked?d.Checked:d.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(I){this.checked=!!I}registerOnChange(I){this._controlValueAccessorChangeFn=I}registerOnTouched(I){this._onTouched=I}setDisabledState(I){this.disabled=I}validate(I){return this.required&&!0!==I.value?{required:!0}:null}registerOnValidatorChange(I){this._validatorChangeFn=I}_transitionCheckState(I){let D=this._currentCheckState,O=this._getAnimationTargetElement();if(D!==I&&O&&(this._currentAnimationClass&&O.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(D,I),this._currentCheckState=I,this._currentAnimationClass.length>0)){O.classList.add(this._currentAnimationClass);const T=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{O.classList.remove(T)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const I=this._options?.clickAction;this.disabled||"noop"===I?!this.disabled&&"noop"===I&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==I&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?d.Checked:d.Unchecked),this._emitChangeEvent())}_onInteractionEvent(I){I.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(I,D){if("NoopAnimations"===this._animationMode)return"";switch(I){case d.Init:if(D===d.Checked)return this._animationClasses.uncheckedToChecked;if(D==d.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case d.Unchecked:return D===d.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case d.Checked:return D===d.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case d.Indeterminate:return D===d.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(I){const D=this._inputElement;D&&(D.nativeElement.indeterminate=I)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(I){I.target&&this._labelElement.nativeElement.contains(I.target)&&I.stopPropagation()}static#e=this.\u0275fac=function(D){return new(D||w)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275injectAttribute("tabindex"),t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8),t.\u0275\u0275directiveInject(s,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:w,selectors:[["mat-checkbox"]],viewQuery:function(D,O){if(1&D&&(t.\u0275\u0275viewQuery(E,5),t.\u0275\u0275viewQuery(c,5),t.\u0275\u0275viewQuery(C.MatRipple,5)),2&D){let T;t.\u0275\u0275queryRefresh(T=t.\u0275\u0275loadQuery())&&(O._inputElement=T.first),t.\u0275\u0275queryRefresh(T=t.\u0275\u0275loadQuery())&&(O._labelElement=T.first),t.\u0275\u0275queryRefresh(T=t.\u0275\u0275loadQuery())&&(O.ripple=T.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(D,O){2&D&&(t.\u0275\u0275hostProperty("id",O.id),t.\u0275\u0275attribute("tabindex",null)("aria-label",null)("aria-labelledby",null),t.\u0275\u0275classMap(O.color?"mat-"+O.color:"mat-accent"),t.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===O._animationMode)("mdc-checkbox--disabled",O.disabled)("mat-mdc-checkbox-disabled",O.disabled)("mat-mdc-checkbox-checked",O.checked))},inputs:{ariaLabel:[t.\u0275\u0275InputFlags.None,"aria-label","ariaLabel"],ariaLabelledby:[t.\u0275\u0275InputFlags.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[t.\u0275\u0275InputFlags.None,"aria-describedby","ariaDescribedby"],id:"id",required:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"required","required",t.booleanAttribute],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",t.booleanAttribute],tabIndex:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"tabIndex","tabIndex",I=>null==I?void 0:(0,t.numberAttribute)(I)],color:"color",checked:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"checked","checked",t.booleanAttribute],disabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",t.booleanAttribute],indeterminate:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"indeterminate","indeterminate",t.booleanAttribute]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([a,{provide:_.NG_VALIDATORS,useExisting:w,multi:!0}]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275NgOnChangesFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:b,decls:15,vars:19,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(D,O){if(1&D){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275projectionDef(),t.\u0275\u0275elementStart(0,"div",3),t.\u0275\u0275listener("click",function(S){return t.\u0275\u0275restoreView(T),t.\u0275\u0275resetView(O._preventBubblingFromLabel(S))}),t.\u0275\u0275elementStart(1,"div",4,0)(3,"div",5),t.\u0275\u0275listener("click",function(){return t.\u0275\u0275restoreView(T),t.\u0275\u0275resetView(O._onTouchTargetClick())}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"input",6,1),t.\u0275\u0275listener("blur",function(){return t.\u0275\u0275restoreView(T),t.\u0275\u0275resetView(O._onBlur())})("click",function(){return t.\u0275\u0275restoreView(T),t.\u0275\u0275resetView(O._onInputClick())})("change",function(S){return t.\u0275\u0275restoreView(T),t.\u0275\u0275resetView(O._onInteractionEvent(S))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(6,"div",7),t.\u0275\u0275elementStart(7,"div",8),t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(8,"svg",9),t.\u0275\u0275element(9,"path",10),t.\u0275\u0275elementEnd(),t.\u0275\u0275namespaceHTML(),t.\u0275\u0275element(10,"div",11),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(11,"div",12),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(12,"label",13,2),t.\u0275\u0275projection(14),t.\u0275\u0275elementEnd()()}if(2&D){const T=t.\u0275\u0275reference(2);t.\u0275\u0275property("labelPosition",O.labelPosition),t.\u0275\u0275advance(4),t.\u0275\u0275classProp("mdc-checkbox--selected",O.checked),t.\u0275\u0275property("checked",O.checked)("indeterminate",O.indeterminate)("disabled",O.disabled)("id",O.inputId)("required",O.required)("tabIndex",O.disabled?-1:O.tabIndex),t.\u0275\u0275attribute("aria-label",O.ariaLabel||null)("aria-labelledby",O.ariaLabelledby)("aria-describedby",O.ariaDescribedby)("aria-checked",O.indeterminate?"mixed":null)("name",O.name)("value",O.value),t.\u0275\u0275advance(7),t.\u0275\u0275property("matRippleTrigger",T)("matRippleDisabled",O.disableRipple||O.disabled)("matRippleCentered",!0),t.\u0275\u0275advance(),t.\u0275\u0275property("for",O.inputId)}},dependencies:[C.MatRipple,C._MatInternalFormField],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-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 mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return w})();const p={provide:_.NG_VALIDATORS,useExisting:(0,t.forwardRef)(()=>v),multi:!0};let v=(()=>{class w extends _.CheckboxRequiredValidator{static#e=this.\u0275fac=(()=>{let I;return function(O){return(I||(I=t.\u0275\u0275getInheritedFactory(w)))(O||w)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:w,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([p]),t.\u0275\u0275InheritDefinitionFeature]})}return w})(),y=(()=>{class w{static#e=this.\u0275fac=function(D){return new(D||w)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:w});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({})}return w})(),M=(()=>{class w{static#e=this.\u0275fac=function(D){return new(D||w)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:w});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[h,C.MatCommonModule,C.MatCommonModule]})}return w})()},6600:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{AnimationCurves:()=>O,AnimationDurations:()=>T,DateAdapter:()=>ce,ErrorStateMatcher:()=>We,MATERIAL_SANITY_CHECKS:()=>S,MAT_DATE_FORMATS:()=>ue,MAT_DATE_LOCALE:()=>W,MAT_DATE_LOCALE_FACTORY:()=>K,MAT_NATIVE_DATE_FORMATS:()=>ct,MAT_OPTGROUP:()=>ve,MAT_OPTION_PARENT_COMPONENT:()=>Nt,MAT_RIPPLE_GLOBAL_OPTIONS:()=>un,MatCommonModule:()=>R,MatLine:()=>Pe,MatLineModule:()=>q,MatNativeDateModule:()=>Ne,MatOptgroup:()=>Qe,MatOption:()=>nt,MatOptionModule:()=>me,MatOptionSelectionChange:()=>Ot,MatPseudoCheckbox:()=>rn,MatPseudoCheckboxModule:()=>hn,MatRipple:()=>dn,MatRippleLoader:()=>Gt,MatRippleModule:()=>cn,NativeDateAdapter:()=>pt,NativeDateModule:()=>Ct,RippleRef:()=>Oe,RippleRenderer:()=>jt,RippleState:()=>_e,ShowOnDirtyErrorStateMatcher:()=>fe,VERSION:()=>D,_ErrorStateTracker:()=>j,_MatInternalFormField:()=>an,_countGroupLabelsBeforeOption:()=>ft,_getOptionScrollPosition:()=>Re,defaultRippleAnimationConfig:()=>we,mixinColor:()=>ee,mixinDisableRipple:()=>ie,mixinDisabled:()=>Y,mixinErrorState:()=>G,mixinInitialized:()=>V,mixinTabIndex:()=>$,provideNativeDateAdapter:()=>Ae,setLines:()=>Me});var t=g(4438),_=g(6039),C=g(8203),c=g(177),b=g(6860),s=g(4085),f=g(1985),d=g(1413),a=g(9172),l=g(7336);const r=["*",[["mat-option"],["ng-container"]]],u=["*","mat-option, ng-container"],h=["text"],p=[[["mat-icon"]],"*"],v=["mat-icon","*"];function y(_t,Lt){if(1&_t&&t.\u0275\u0275element(0,"mat-pseudo-checkbox",1),2&_t){const qe=t.\u0275\u0275nextContext();t.\u0275\u0275property("disabled",qe.disabled)("state",qe.selected?"checked":"unchecked")}}function M(_t,Lt){if(1&_t&&t.\u0275\u0275element(0,"mat-pseudo-checkbox",3),2&_t){const qe=t.\u0275\u0275nextContext();t.\u0275\u0275property("disabled",qe.disabled)}}function w(_t,Lt){if(1&_t&&(t.\u0275\u0275elementStart(0,"span",4),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&_t){const qe=t.\u0275\u0275nextContext();t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1("(",qe.group.label,")")}}const k=["mat-internal-form-field",""],I=["*"],D=new t.Version("17.3.3");let O=(()=>{class _t{static#e=this.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)";static#t=this.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)";static#n=this.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)";static#i=this.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)"}return _t})(),T=(()=>{class _t{static#e=this.COMPLEX="375ms";static#t=this.ENTERING="225ms";static#n=this.EXITING="195ms"}return _t})();const S=new t.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function U(){return!0}});let R=(()=>{class _t{constructor(qe,Fe,tt){this._sanityChecks=Fe,this._document=tt,this._hasDoneGlobalChecks=!1,qe._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(qe){return!(0,b.v8)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[qe])}static#e=this.\u0275fac=function(Fe){return new(Fe||_t)(t.\u0275\u0275inject(_.Q_),t.\u0275\u0275inject(S,8),t.\u0275\u0275inject(c.DOCUMENT))};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:_t});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[C.jI,C.jI]})}return _t})();function Y(_t){return class extends _t{get disabled(){return this._disabled}set disabled(Lt){this._disabled=(0,s.he)(Lt)}constructor(...Lt){super(...Lt),this._disabled=!1}}}function ee(_t,Lt){return class extends _t{get color(){return this._color}set color(qe){const Fe=qe||this.defaultColor;Fe!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Fe&&this._elementRef.nativeElement.classList.add(`mat-${Fe}`),this._color=Fe)}constructor(...qe){super(...qe),this.defaultColor=Lt,this.color=Lt}}}function ie(_t){return class extends _t{get disableRipple(){return this._disableRipple}set disableRipple(Lt){this._disableRipple=(0,s.he)(Lt)}constructor(...Lt){super(...Lt),this._disableRipple=!1}}}function $(_t,Lt=0){return class extends _t{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(qe){this._tabIndex=null!=qe?(0,s.OE)(qe):this.defaultTabIndex}constructor(...qe){super(...qe),this._tabIndex=Lt,this.defaultTabIndex=Lt}}}class j{constructor(Lt,qe,Fe,tt,He){this._defaultMatcher=Lt,this.ngControl=qe,this._parentFormGroup=Fe,this._parentForm=tt,this._stateChanges=He,this.errorState=!1}updateErrorState(){const Lt=this.errorState,qe=this._parentFormGroup||this._parentForm,Fe=this.matcher||this._defaultMatcher,tt=this.ngControl?this.ngControl.control:null,He=Fe?.isErrorState(tt,qe)??!1;He!==Lt&&(this.errorState=He,this._stateChanges.next())}}function G(_t){return class extends _t{get errorState(){return this._getTracker().errorState}set errorState(Lt){this._getTracker().errorState=Lt}get errorStateMatcher(){return this._getTracker().matcher}set errorStateMatcher(Lt){this._getTracker().matcher=Lt}updateErrorState(){this._getTracker().updateErrorState()}_getTracker(){return this._tracker||(this._tracker=new j(this._defaultErrorStateMatcher,this.ngControl,this._parentFormGroup,this._parentForm,this.stateChanges)),this._tracker}constructor(...Lt){super(...Lt)}}}function V(_t){return class extends _t{constructor(...Lt){super(...Lt),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new f.c(qe=>{this._isInitialized?this._notifySubscriber(qe):this._pendingSubscribers.push(qe)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Lt){Lt.next(),Lt.complete()}}}const W=new t.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:K});function K(){return(0,t.inject)(t.LOCALE_ID)}class ce{constructor(){this._localeChanges=new d.B,this.localeChanges=this._localeChanges}getValidDateOrNull(Lt){return this.isDateInstance(Lt)&&this.isValid(Lt)?Lt:null}deserialize(Lt){return null==Lt||this.isDateInstance(Lt)&&this.isValid(Lt)?Lt:this.invalid()}setLocale(Lt){this.locale=Lt,this._localeChanges.next()}compareDate(Lt,qe){return this.getYear(Lt)-this.getYear(qe)||this.getMonth(Lt)-this.getMonth(qe)||this.getDate(Lt)-this.getDate(qe)}sameDate(Lt,qe){if(Lt&&qe){let Fe=this.isValid(Lt),tt=this.isValid(qe);return Fe&&tt?!this.compareDate(Lt,qe):Fe==tt}return Lt==qe}clampDate(Lt,qe,Fe){return qe&&this.compareDate(Lt,qe)<0?qe:Fe&&this.compareDate(Lt,Fe)>0?Fe:Lt}}const ue=new t.InjectionToken("mat-date-formats"),be=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ze(_t,Lt){const qe=Array(_t);for(let Fe=0;Fe<_t;Fe++)qe[Fe]=Lt(Fe);return qe}let pt=(()=>{class _t extends ce{constructor(qe){super(),this.useUtcForDisplay=!1,this._matDateLocale=(0,t.inject)(W,{optional:!0}),void 0!==qe&&(this._matDateLocale=qe),super.setLocale(this._matDateLocale)}getYear(qe){return qe.getFullYear()}getMonth(qe){return qe.getMonth()}getDate(qe){return qe.getDate()}getDayOfWeek(qe){return qe.getDay()}getMonthNames(qe){const Fe=new Intl.DateTimeFormat(this.locale,{month:qe,timeZone:"utc"});return Ze(12,tt=>this._format(Fe,new Date(2017,tt,1)))}getDateNames(){const qe=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ze(31,Fe=>this._format(qe,new Date(2017,0,Fe+1)))}getDayOfWeekNames(qe){const Fe=new Intl.DateTimeFormat(this.locale,{weekday:qe,timeZone:"utc"});return Ze(7,tt=>this._format(Fe,new Date(2017,0,tt+1)))}getYearName(qe){const Fe=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Fe,qe)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(qe){return this.getDate(this._createDateWithOverflow(this.getYear(qe),this.getMonth(qe)+1,0))}clone(qe){return new Date(qe.getTime())}createDate(qe,Fe,tt){let He=this._createDateWithOverflow(qe,Fe,tt);return He.getMonth(),He}today(){return new Date}parse(qe,Fe){return"number"==typeof qe?new Date(qe):qe?new Date(Date.parse(qe)):null}format(qe,Fe){if(!this.isValid(qe))throw Error("NativeDateAdapter: Cannot format invalid date.");const tt=new Intl.DateTimeFormat(this.locale,{...Fe,timeZone:"utc"});return this._format(tt,qe)}addCalendarYears(qe,Fe){return this.addCalendarMonths(qe,12*Fe)}addCalendarMonths(qe,Fe){let tt=this._createDateWithOverflow(this.getYear(qe),this.getMonth(qe)+Fe,this.getDate(qe));return this.getMonth(tt)!=((this.getMonth(qe)+Fe)%12+12)%12&&(tt=this._createDateWithOverflow(this.getYear(tt),this.getMonth(tt),0)),tt}addCalendarDays(qe,Fe){return this._createDateWithOverflow(this.getYear(qe),this.getMonth(qe),this.getDate(qe)+Fe)}toIso8601(qe){return[qe.getUTCFullYear(),this._2digit(qe.getUTCMonth()+1),this._2digit(qe.getUTCDate())].join("-")}deserialize(qe){if("string"==typeof qe){if(!qe)return null;if(be.test(qe)){let Fe=new Date(qe);if(this.isValid(Fe))return Fe}}return super.deserialize(qe)}isDateInstance(qe){return qe instanceof Date}isValid(qe){return!isNaN(qe.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(qe,Fe,tt){const He=new Date;return He.setFullYear(qe,Fe,tt),He.setHours(0,0,0,0),He}_2digit(qe){return("00"+qe).slice(-2)}_format(qe,Fe){const tt=new Date;return tt.setUTCFullYear(Fe.getFullYear(),Fe.getMonth(),Fe.getDate()),tt.setUTCHours(Fe.getHours(),Fe.getMinutes(),Fe.getSeconds(),Fe.getMilliseconds()),qe.format(tt)}static#e=this.\u0275fac=function(Fe){return new(Fe||_t)(t.\u0275\u0275inject(W,8))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:_t,factory:_t.\u0275fac})}return _t})();const ct={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 Ct=(()=>{class _t{static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:_t});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({providers:[{provide:ce,useClass:pt}]})}return _t})(),Ne=(()=>{class _t{static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:_t});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({providers:[Ae()]})}return _t})();function Ae(_t=ct){return[{provide:ce,useClass:pt},{provide:ue,useValue:_t}]}let fe=(()=>{class _t{isErrorState(qe,Fe){return!!(qe&&qe.invalid&&(qe.dirty||Fe&&Fe.submitted))}static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:_t,factory:_t.\u0275fac})}return _t})(),We=(()=>{class _t{isErrorState(qe,Fe){return!!(qe&&qe.invalid&&(qe.touched||Fe&&Fe.submitted))}static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})(),Pe=(()=>{class _t{static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:_t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"],standalone:!0})}return _t})();function Me(_t,Lt,qe="mat"){_t.changes.pipe((0,a.Z)(_t)).subscribe(({length:Fe})=>{$e(Lt,`${qe}-2-line`,!1),$e(Lt,`${qe}-3-line`,!1),$e(Lt,`${qe}-multi-line`,!1),2===Fe||3===Fe?$e(Lt,`${qe}-${Fe}-line`,!0):Fe>3&&$e(Lt,`${qe}-multi-line`,!0)})}function $e(_t,Lt,qe){_t.nativeElement.classList.toggle(Lt,qe)}let q=(()=>{class _t{static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:_t});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[R,R]})}return _t})();var _e=function(_t){return _t[_t.FADING_IN=0]="FADING_IN",_t[_t.VISIBLE=1]="VISIBLE",_t[_t.FADING_OUT=2]="FADING_OUT",_t[_t.HIDDEN=3]="HIDDEN",_t}(_e||{});class Oe{constructor(Lt,qe,Fe,tt=!1){this._renderer=Lt,this.element=qe,this.config=Fe,this._animationForciblyDisabledThroughCss=tt,this.state=_e.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const vt=(0,b.BQ)({passive:!0,capture:!0});class rt{constructor(){this._events=new Map,this._delegateEventHandler=Lt=>{const qe=(0,b.Fb)(Lt);qe&&this._events.get(Lt.type)?.forEach((Fe,tt)=>{(tt===qe||tt.contains(qe))&&Fe.forEach(He=>He.handleEvent(Lt))})}}addHandler(Lt,qe,Fe,tt){const He=this._events.get(qe);if(He){const dt=He.get(Fe);dt?dt.add(tt):He.set(Fe,new Set([tt]))}else this._events.set(qe,new Map([[Fe,new Set([tt])]])),Lt.runOutsideAngular(()=>{document.addEventListener(qe,this._delegateEventHandler,vt)})}removeHandler(Lt,qe,Fe){const tt=this._events.get(Lt);if(!tt)return;const He=tt.get(qe);He&&(He.delete(Fe),0===He.size&&tt.delete(qe),0===tt.size&&(this._events.delete(Lt),document.removeEventListener(Lt,this._delegateEventHandler,vt)))}}const we={enterDuration:225,exitDuration:150},De=(0,b.BQ)({passive:!0,capture:!0}),ot=["mousedown","touchstart"],xt=["mouseup","mouseleave","touchend","touchcancel"];class jt{static#e=this._eventManager=new rt;constructor(Lt,qe,Fe,tt){this._target=Lt,this._ngZone=qe,this._platform=tt,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,tt.isBrowser&&(this._containerElement=(0,s.i8)(Fe))}fadeInRipple(Lt,qe,Fe={}){const tt=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),He={...we,...Fe.animation};Fe.centered&&(Lt=tt.left+tt.width/2,qe=tt.top+tt.height/2);const dt=Fe.radius||function Xt(_t,Lt,qe){const Fe=Math.max(Math.abs(_t-qe.left),Math.abs(_t-qe.right)),tt=Math.max(Math.abs(Lt-qe.top),Math.abs(Lt-qe.bottom));return Math.sqrt(Fe*Fe+tt*tt)}(Lt,qe,tt),At=Lt-tt.left,qt=qe-tt.top,Cn=He.enterDuration,Ln=document.createElement("div");Ln.classList.add("mat-ripple-element"),Ln.style.left=At-dt+"px",Ln.style.top=qt-dt+"px",Ln.style.height=2*dt+"px",Ln.style.width=2*dt+"px",null!=Fe.color&&(Ln.style.backgroundColor=Fe.color),Ln.style.transitionDuration=`${Cn}ms`,this._containerElement.appendChild(Ln);const Oi=window.getComputedStyle(Ln),jn=Oi.transitionDuration,at="none"===Oi.transitionProperty||"0s"===jn||"0s, 0s"===jn||0===tt.width&&0===tt.height,Jt=new Oe(this,Ln,Fe,at);Ln.style.transform="scale3d(1, 1, 1)",Jt.state=_e.FADING_IN,Fe.persistent||(this._mostRecentTransientRipple=Jt);let Be=null;return!at&&(Cn||He.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const lt=()=>this._finishRippleTransition(Jt),Et=()=>this._destroyRipple(Jt);Ln.addEventListener("transitionend",lt),Ln.addEventListener("transitioncancel",Et),Be={onTransitionEnd:lt,onTransitionCancel:Et}}),this._activeRipples.set(Jt,Be),(at||!Cn)&&this._finishRippleTransition(Jt),Jt}fadeOutRipple(Lt){if(Lt.state===_e.FADING_OUT||Lt.state===_e.HIDDEN)return;const qe=Lt.element,Fe={...we,...Lt.config.animation};qe.style.transitionDuration=`${Fe.exitDuration}ms`,qe.style.opacity="0",Lt.state=_e.FADING_OUT,(Lt._animationForciblyDisabledThroughCss||!Fe.exitDuration)&&this._finishRippleTransition(Lt)}fadeOutAll(){this._getActiveRipples().forEach(Lt=>Lt.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Lt=>{Lt.config.persistent||Lt.fadeOut()})}setupTriggerEvents(Lt){const qe=(0,s.i8)(Lt);!this._platform.isBrowser||!qe||qe===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=qe,ot.forEach(Fe=>{jt._eventManager.addHandler(this._ngZone,Fe,qe,this)}))}handleEvent(Lt){"mousedown"===Lt.type?this._onMousedown(Lt):"touchstart"===Lt.type?this._onTouchStart(Lt):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{xt.forEach(qe=>{this._triggerElement.addEventListener(qe,this,De)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Lt){Lt.state===_e.FADING_IN?this._startFadeOutTransition(Lt):Lt.state===_e.FADING_OUT&&this._destroyRipple(Lt)}_startFadeOutTransition(Lt){const qe=Lt===this._mostRecentTransientRipple,{persistent:Fe}=Lt.config;Lt.state=_e.VISIBLE,!Fe&&(!qe||!this._isPointerDown)&&Lt.fadeOut()}_destroyRipple(Lt){const qe=this._activeRipples.get(Lt)??null;this._activeRipples.delete(Lt),this._activeRipples.size||(this._containerRect=null),Lt===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Lt.state=_e.HIDDEN,null!==qe&&(Lt.element.removeEventListener("transitionend",qe.onTransitionEnd),Lt.element.removeEventListener("transitioncancel",qe.onTransitionCancel)),Lt.element.remove()}_onMousedown(Lt){const qe=(0,_._G)(Lt),Fe=this._lastTouchStartEvent&&Date.now(){!Lt.config.persistent&&(Lt.state===_e.VISIBLE||Lt.config.terminateOnPointerUp&&Lt.state===_e.FADING_IN)&&Lt.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const Lt=this._triggerElement;Lt&&(ot.forEach(qe=>jt._eventManager.removeHandler(qe,Lt,this)),this._pointerUpEventsRegistered&&xt.forEach(qe=>Lt.removeEventListener(qe,this,De)))}}const un=new t.InjectionToken("mat-ripple-global-options");let dn=(()=>{class _t{get disabled(){return this._disabled}set disabled(qe){qe&&this.fadeOutAllNonPersistent(),this._disabled=qe,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(qe){this._trigger=qe,this._setupTriggerEventsIfEnabled()}constructor(qe,Fe,tt,He,dt){this._elementRef=qe,this._animationMode=dt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=He||{},this._rippleRenderer=new jt(this,Fe,qe,tt)}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:{...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(qe,Fe=0,tt){return"number"==typeof qe?this._rippleRenderer.fadeInRipple(qe,Fe,{...this.rippleConfig,...tt}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...qe})}static#e=this.\u0275fac=function(Fe){return new(Fe||_t)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(b.OD),t.\u0275\u0275directiveInject(un,8),t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:_t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Fe,tt){2&Fe&&t.\u0275\u0275classProp("mat-ripple-unbounded",tt.unbounded)},inputs:{color:[t.\u0275\u0275InputFlags.None,"matRippleColor","color"],unbounded:[t.\u0275\u0275InputFlags.None,"matRippleUnbounded","unbounded"],centered:[t.\u0275\u0275InputFlags.None,"matRippleCentered","centered"],radius:[t.\u0275\u0275InputFlags.None,"matRippleRadius","radius"],animation:[t.\u0275\u0275InputFlags.None,"matRippleAnimation","animation"],disabled:[t.\u0275\u0275InputFlags.None,"matRippleDisabled","disabled"],trigger:[t.\u0275\u0275InputFlags.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}return _t})(),cn=(()=>{class _t{static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:_t});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[R,R]})}return _t})(),rn=(()=>{class _t{constructor(qe){this._animationMode=qe,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(Fe){return new(Fe||_t)(t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:_t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(Fe,tt){2&Fe&&t.\u0275\u0275classProp("mat-pseudo-checkbox-indeterminate","indeterminate"===tt.state)("mat-pseudo-checkbox-checked","checked"===tt.state)("mat-pseudo-checkbox-disabled",tt.disabled)("mat-pseudo-checkbox-minimal","minimal"===tt.appearance)("mat-pseudo-checkbox-full","full"===tt.appearance)("_mat-animation-noopable","NoopAnimations"===tt._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[t.\u0275\u0275StandaloneFeature],decls:0,vars:0,template:function(Fe,tt){},styles:['.mat-pseudo-checkbox{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-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return _t})(),hn=(()=>{class _t{static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:_t});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[R]})}return _t})();const Nt=new t.InjectionToken("MAT_OPTION_PARENT_COMPONENT");let Bt=0;const ve=new t.InjectionToken("MatOptgroup");let Qe=(()=>{class _t{constructor(qe){this.disabled=!1,this._labelId="mat-optgroup-label-"+Bt++,this._inert=qe?.inertGroups??!1}static#e=this.\u0275fac=function(Fe){return new(Fe||_t)(t.\u0275\u0275directiveInject(Nt,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:_t,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(Fe,tt){2&Fe&&t.\u0275\u0275attribute("role",tt._inert?null:"group")("aria-disabled",tt._inert?null:tt.disabled.toString())("aria-labelledby",tt._inert?null:tt._labelId)},inputs:{label:"label",disabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",t.booleanAttribute]},exportAs:["matOptgroup"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:ve,useExisting:_t}]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:u,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(Fe,tt){1&Fe&&(t.\u0275\u0275projectionDef(r),t.\u0275\u0275elementStart(0,"span",0)(1,"span",1),t.\u0275\u0275text(2),t.\u0275\u0275projection(3),t.\u0275\u0275elementEnd()(),t.\u0275\u0275projection(4,1)),2&Fe&&(t.\u0275\u0275classProp("mdc-list-item--disabled",tt.disabled),t.\u0275\u0275property("id",tt._labelId),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1("",tt.label," "))},styles:[".mat-mdc-optgroup{color:var(--mat-optgroup-label-text-color);font-family:var(--mat-optgroup-label-text-font);line-height:var(--mat-optgroup-label-text-line-height);font-size:var(--mat-optgroup-label-text-size);letter-spacing:var(--mat-optgroup-label-text-tracking);font-weight:var(--mat-optgroup-label-text-weight)}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;min-height:48px}.mat-mdc-optgroup-label:focus{outline:none}[dir=rtl] .mat-mdc-optgroup-label,.mat-mdc-optgroup-label[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal}"],encapsulation:2,changeDetection:0})}return _t})(),Xe=0;class Ot{constructor(Lt,qe=!1){this.source=Lt,this.isUserInput=qe}}let nt=(()=>{class _t{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(qe){this._disabled=qe}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(qe,Fe,tt,He){this._element=qe,this._changeDetectorRef=Fe,this._parent=tt,this.group=He,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Xe++,this.onSelectionChange=new t.EventEmitter,this._stateChanges=new d.B}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(qe=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),qe&&this._emitSelectionChangeEvent())}deselect(qe=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),qe&&this._emitSelectionChangeEvent())}focus(qe,Fe){const tt=this._getHostElement();"function"==typeof tt.focus&&tt.focus(Fe)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(qe){(qe.keyCode===l.Fm||qe.keyCode===l.t6)&&!(0,l.rp)(qe)&&(this._selectViaInteraction(),qe.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const qe=this.viewValue;qe!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=qe)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(qe=!1){this.onSelectionChange.emit(new Ot(this,qe))}static#e=this.\u0275fac=function(Fe){return new(Fe||_t)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(Nt,8),t.\u0275\u0275directiveInject(ve,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:_t,selectors:[["mat-option"]],viewQuery:function(Fe,tt){if(1&Fe&&t.\u0275\u0275viewQuery(h,7),2&Fe){let He;t.\u0275\u0275queryRefresh(He=t.\u0275\u0275loadQuery())&&(tt._text=He.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(Fe,tt){1&Fe&&t.\u0275\u0275listener("click",function(){return tt._selectViaInteraction()})("keydown",function(dt){return tt._handleKeydown(dt)}),2&Fe&&(t.\u0275\u0275hostProperty("id",tt.id),t.\u0275\u0275attribute("aria-selected",tt.selected)("aria-disabled",tt.disabled.toString()),t.\u0275\u0275classProp("mdc-list-item--selected",tt.selected)("mat-mdc-option-multiple",tt.multiple)("mat-mdc-option-active",tt.active)("mdc-list-item--disabled",tt.disabled))},inputs:{value:"value",id:"id",disabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",t.booleanAttribute]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:v,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(Fe,tt){1&Fe&&(t.\u0275\u0275projectionDef(p),t.\u0275\u0275template(0,y,1,2,"mat-pseudo-checkbox",1),t.\u0275\u0275projection(1),t.\u0275\u0275elementStart(2,"span",2,0),t.\u0275\u0275projection(4,1),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(5,M,1,1,"mat-pseudo-checkbox",3)(6,w,2,1,"span",4),t.\u0275\u0275element(7,"div",5)),2&Fe&&(t.\u0275\u0275conditional(0,tt.multiple?0:-1),t.\u0275\u0275advance(5),t.\u0275\u0275conditional(5,tt.multiple||!tt.selected||tt.hideSingleSelectionIndicator?-1:5),t.\u0275\u0275advance(),t.\u0275\u0275conditional(6,tt.group&&tt.group._inert?6:-1),t.\u0275\u0275advance(),t.\u0275\u0275property("matRippleTrigger",tt._getHostElement())("matRippleDisabled",tt.disabled||tt.disableRipple))},dependencies:[rn,dn],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return _t})();function ft(_t,Lt,qe){if(qe.length){let Fe=Lt.toArray(),tt=qe.toArray(),He=0;for(let dt=0;dt<_t+1;dt++)Fe[dt].group&&Fe[dt].group===tt[He]&&He++;return He}return 0}function Re(_t,Lt,qe,Fe){return _tqe+Fe?Math.max(0,_t-Fe+Lt):qe}let me=(()=>{class _t{static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:_t});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[cn,R,hn]})}return _t})();const Ke={capture:!0},te=["focus","click","mouseenter","touchstart"],de="mat-ripple-loader-uninitialized",Se="mat-ripple-loader-class-name",it="mat-ripple-loader-centered",It="mat-ripple-loader-disabled";let Gt=(()=>{class _t{constructor(){this._document=(0,t.inject)(c.DOCUMENT,{optional:!0}),this._animationMode=(0,t.inject)(t.ANIMATION_MODULE_TYPE,{optional:!0}),this._globalRippleOptions=(0,t.inject)(un,{optional:!0}),this._platform=(0,t.inject)(b.OD),this._ngZone=(0,t.inject)(t.NgZone),this._hosts=new Map,this._onInteraction=qe=>{if(!(qe.target instanceof HTMLElement))return;const tt=qe.target.closest(`[${de}]`);tt&&this._createRipple(tt)},this._ngZone.runOutsideAngular(()=>{for(const qe of te)this._document?.addEventListener(qe,this._onInteraction,Ke)})}ngOnDestroy(){const qe=this._hosts.keys();for(const Fe of qe)this.destroyRipple(Fe);for(const Fe of te)this._document?.removeEventListener(Fe,this._onInteraction,Ke)}configureRipple(qe,Fe){qe.setAttribute(de,""),(Fe.className||!qe.hasAttribute(Se))&&qe.setAttribute(Se,Fe.className||""),Fe.centered&&qe.setAttribute(it,""),Fe.disabled&&qe.setAttribute(It,"")}getRipple(qe){return this._hosts.get(qe)||this._createRipple(qe)}setDisabled(qe,Fe){const tt=this._hosts.get(qe);tt?tt.disabled=Fe:Fe?qe.setAttribute(It,""):qe.removeAttribute(It)}_createRipple(qe){if(!this._document)return;const Fe=this._hosts.get(qe);if(Fe)return Fe;qe.querySelector(".mat-ripple")?.remove();const tt=this._document.createElement("span");tt.classList.add("mat-ripple",qe.getAttribute(Se)),qe.append(tt);const He=new dn(new t.ElementRef(tt),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return He._isInitialized=!0,He.trigger=qe,He.centered=qe.hasAttribute(it),He.disabled=qe.hasAttribute(It),this.attachRipple(qe,He),He}attachRipple(qe,Fe){qe.removeAttribute(de),this._hosts.set(qe,Fe)}destroyRipple(qe){const Fe=this._hosts.get(qe);Fe&&(Fe.ngOnDestroy(),this._hosts.delete(qe))}static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})(),an=(()=>{class _t{static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:_t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(Fe,tt){2&Fe&&t.\u0275\u0275classProp("mdc-form-field--align-end","before"===tt.labelPosition)},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[t.\u0275\u0275StandaloneFeature],attrs:k,ngContentSelectors:I,decls:1,vars:0,template:function(Fe,tt){1&Fe&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-form-field{font-family:var(--mdc-form-field-label-text-font);line-height:var(--mdc-form-field-label-text-line-height);font-size:var(--mdc-form-field-label-text-size);font-weight:var(--mdc-form-field-label-text-weight);letter-spacing:var(--mdc-form-field-label-text-tracking);color:var(--mdc-form-field-label-text-color)}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0})}return _t})()},5084:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{DateRange:()=>vt,DefaultMatCalendarRangeStrategy:()=>un,MAT_DATEPICKER_SCROLL_STRATEGY:()=>Se,MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY:()=>it,MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>It,MAT_DATEPICKER_VALIDATORS:()=>He,MAT_DATEPICKER_VALUE_ACCESSOR:()=>tt,MAT_DATE_RANGE_SELECTION_STRATEGY:()=>Xt,MAT_RANGE_DATE_SELECTION_MODEL_FACTORY:()=>xt,MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER:()=>jt,MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY:()=>De,MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER:()=>ot,MatCalendar:()=>Ke,MatCalendarBody:()=>We,MatCalendarCell:()=>ct,MatCalendarHeader:()=>me,MatDateRangeInput:()=>nn,MatDateRangePicker:()=>_n,MatDateSelectionModel:()=>rt,MatDatepicker:()=>_t,MatDatepickerActions:()=>Ye,MatDatepickerApply:()=>Ue,MatDatepickerCancel:()=>ut,MatDatepickerContent:()=>Gt,MatDatepickerInput:()=>dt,MatDatepickerInputEvent:()=>Lt,MatDatepickerIntl:()=>pt,MatDatepickerModule:()=>mt,MatDatepickerToggle:()=>qt,MatDatepickerToggleIcon:()=>At,MatEndDate:()=>lt,MatMonthView:()=>hn,MatMultiYearView:()=>ve,MatRangeDateSelectionModel:()=>Ge,MatSingleDateSelectionModel:()=>we,MatStartDate:()=>Be,MatYearView:()=>ft,matDatepickerAnimations:()=>te,yearsPerPage:()=>Nt,yearsPerRow:()=>Bt});var t=g(6039),_=g(7987),C=g(6939),E=g(177),c=g(4438),b=g(8834),s=g(5478),f=g(6600),d=g(1413),a=g(8359),l=g(7786),r=g(7673),u=g(7336),h=g(8203),p=g(6860),v=g(6697),y=g(9172),M=g(5964),w=g(4085),k=g(9969),I=g(9417),D=g(2102),O=g(9631);const T=["mat-calendar-body",""];function U(Ee,Mt){if(1&Ee&&(c.\u0275\u0275elementStart(0,"tr",0)(1,"td",3),c.\u0275\u0275text(2),c.\u0275\u0275elementEnd()()),2&Ee){const H=c.\u0275\u0275nextContext();c.\u0275\u0275advance(),c.\u0275\u0275styleProp("padding-top",H._cellPadding)("padding-bottom",H._cellPadding),c.\u0275\u0275attribute("colspan",H.numCols),c.\u0275\u0275advance(),c.\u0275\u0275textInterpolate1(" ",H.label," ")}}function S(Ee,Mt){if(1&Ee&&(c.\u0275\u0275elementStart(0,"td",3),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()),2&Ee){const H=c.\u0275\u0275nextContext(2);c.\u0275\u0275styleProp("padding-top",H._cellPadding)("padding-bottom",H._cellPadding),c.\u0275\u0275attribute("colspan",H._firstRowOffset),c.\u0275\u0275advance(),c.\u0275\u0275textInterpolate1(" ",H._firstRowOffset>=H.labelMinRequiredCells?H.label:""," ")}}function R(Ee,Mt){if(1&Ee){const H=c.\u0275\u0275getCurrentView();c.\u0275\u0275elementStart(0,"td",6)(1,"button",7),c.\u0275\u0275listener("click",function(le){const Ve=c.\u0275\u0275restoreView(H).$implicit,wt=c.\u0275\u0275nextContext(2);return c.\u0275\u0275resetView(wt._cellClicked(Ve,le))})("focus",function(le){const Ve=c.\u0275\u0275restoreView(H).$implicit,wt=c.\u0275\u0275nextContext(2);return c.\u0275\u0275resetView(wt._emitActiveDateChange(Ve,le))}),c.\u0275\u0275elementStart(2,"span",8),c.\u0275\u0275text(3),c.\u0275\u0275elementEnd(),c.\u0275\u0275element(4,"span",9),c.\u0275\u0275elementEnd()()}if(2&Ee){const H=Mt.$implicit,pe=Mt.$index,le=c.\u0275\u0275nextContext().$index,Ve=c.\u0275\u0275nextContext();c.\u0275\u0275styleProp("width",Ve._cellWidth)("padding-top",Ve._cellPadding)("padding-bottom",Ve._cellPadding),c.\u0275\u0275attribute("data-mat-row",le)("data-mat-col",pe),c.\u0275\u0275advance(),c.\u0275\u0275classProp("mat-calendar-body-disabled",!H.enabled)("mat-calendar-body-active",Ve._isActiveCell(le,pe))("mat-calendar-body-range-start",Ve._isRangeStart(H.compareValue))("mat-calendar-body-range-end",Ve._isRangeEnd(H.compareValue))("mat-calendar-body-in-range",Ve._isInRange(H.compareValue))("mat-calendar-body-comparison-bridge-start",Ve._isComparisonBridgeStart(H.compareValue,le,pe))("mat-calendar-body-comparison-bridge-end",Ve._isComparisonBridgeEnd(H.compareValue,le,pe))("mat-calendar-body-comparison-start",Ve._isComparisonStart(H.compareValue))("mat-calendar-body-comparison-end",Ve._isComparisonEnd(H.compareValue))("mat-calendar-body-in-comparison-range",Ve._isInComparisonRange(H.compareValue))("mat-calendar-body-preview-start",Ve._isPreviewStart(H.compareValue))("mat-calendar-body-preview-end",Ve._isPreviewEnd(H.compareValue))("mat-calendar-body-in-preview",Ve._isInPreview(H.compareValue)),c.\u0275\u0275property("ngClass",H.cssClasses)("tabindex",Ve._isActiveCell(le,pe)?0:-1),c.\u0275\u0275attribute("aria-label",H.ariaLabel)("aria-disabled",!H.enabled||null)("aria-pressed",Ve._isSelected(H.compareValue))("aria-current",Ve.todayValue===H.compareValue?"date":null)("aria-describedby",Ve._getDescribedby(H.compareValue)),c.\u0275\u0275advance(),c.\u0275\u0275classProp("mat-calendar-body-selected",Ve._isSelected(H.compareValue))("mat-calendar-body-comparison-identical",Ve._isComparisonIdentical(H.compareValue))("mat-calendar-body-today",Ve.todayValue===H.compareValue),c.\u0275\u0275advance(),c.\u0275\u0275textInterpolate1(" ",H.displayValue," ")}}function N(Ee,Mt){if(1&Ee&&(c.\u0275\u0275elementStart(0,"tr",1),c.\u0275\u0275template(1,S,2,6,"td",4),c.\u0275\u0275repeaterCreate(2,R,5,48,"td",5,c.\u0275\u0275repeaterTrackByIdentity),c.\u0275\u0275elementEnd()),2&Ee){const H=Mt.$implicit,pe=Mt.$index,le=c.\u0275\u0275nextContext();c.\u0275\u0275advance(),c.\u0275\u0275conditional(1,0===pe&&le._firstRowOffset?1:-1),c.\u0275\u0275advance(),c.\u0275\u0275repeater(H)}}function A(Ee,Mt){if(1&Ee&&(c.\u0275\u0275elementStart(0,"th",2)(1,"span",6),c.\u0275\u0275text(2),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(3,"span",3),c.\u0275\u0275text(4),c.\u0275\u0275elementEnd()()),2&Ee){const H=Mt.$implicit;c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate(H.long),c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate(H.narrow)}}const F=["*"];function Y(Ee,Mt){}function ee(Ee,Mt){if(1&Ee){const H=c.\u0275\u0275getCurrentView();c.\u0275\u0275elementStart(0,"mat-month-view",2),c.\u0275\u0275twoWayListener("activeDateChange",function(le){c.\u0275\u0275restoreView(H);const Ve=c.\u0275\u0275nextContext();return c.\u0275\u0275twoWayBindingSet(Ve.activeDate,le)||(Ve.activeDate=le),c.\u0275\u0275resetView(le)}),c.\u0275\u0275listener("_userSelection",function(le){c.\u0275\u0275restoreView(H);const Ve=c.\u0275\u0275nextContext();return c.\u0275\u0275resetView(Ve._dateSelected(le))})("dragStarted",function(le){c.\u0275\u0275restoreView(H);const Ve=c.\u0275\u0275nextContext();return c.\u0275\u0275resetView(Ve._dragStarted(le))})("dragEnded",function(le){c.\u0275\u0275restoreView(H);const Ve=c.\u0275\u0275nextContext();return c.\u0275\u0275resetView(Ve._dragEnded(le))}),c.\u0275\u0275elementEnd()}if(2&Ee){const H=c.\u0275\u0275nextContext();c.\u0275\u0275twoWayProperty("activeDate",H.activeDate),c.\u0275\u0275property("selected",H.selected)("dateFilter",H.dateFilter)("maxDate",H.maxDate)("minDate",H.minDate)("dateClass",H.dateClass)("comparisonStart",H.comparisonStart)("comparisonEnd",H.comparisonEnd)("startDateAccessibleName",H.startDateAccessibleName)("endDateAccessibleName",H.endDateAccessibleName)("activeDrag",H._activeDrag)}}function ie(Ee,Mt){if(1&Ee){const H=c.\u0275\u0275getCurrentView();c.\u0275\u0275elementStart(0,"mat-year-view",3),c.\u0275\u0275twoWayListener("activeDateChange",function(le){c.\u0275\u0275restoreView(H);const Ve=c.\u0275\u0275nextContext();return c.\u0275\u0275twoWayBindingSet(Ve.activeDate,le)||(Ve.activeDate=le),c.\u0275\u0275resetView(le)}),c.\u0275\u0275listener("monthSelected",function(le){c.\u0275\u0275restoreView(H);const Ve=c.\u0275\u0275nextContext();return c.\u0275\u0275resetView(Ve._monthSelectedInYearView(le))})("selectedChange",function(le){c.\u0275\u0275restoreView(H);const Ve=c.\u0275\u0275nextContext();return c.\u0275\u0275resetView(Ve._goToDateInView(le,"month"))}),c.\u0275\u0275elementEnd()}if(2&Ee){const H=c.\u0275\u0275nextContext();c.\u0275\u0275twoWayProperty("activeDate",H.activeDate),c.\u0275\u0275property("selected",H.selected)("dateFilter",H.dateFilter)("maxDate",H.maxDate)("minDate",H.minDate)("dateClass",H.dateClass)}}function $(Ee,Mt){if(1&Ee){const H=c.\u0275\u0275getCurrentView();c.\u0275\u0275elementStart(0,"mat-multi-year-view",4),c.\u0275\u0275twoWayListener("activeDateChange",function(le){c.\u0275\u0275restoreView(H);const Ve=c.\u0275\u0275nextContext();return c.\u0275\u0275twoWayBindingSet(Ve.activeDate,le)||(Ve.activeDate=le),c.\u0275\u0275resetView(le)}),c.\u0275\u0275listener("yearSelected",function(le){c.\u0275\u0275restoreView(H);const Ve=c.\u0275\u0275nextContext();return c.\u0275\u0275resetView(Ve._yearSelectedInMultiYearView(le))})("selectedChange",function(le){c.\u0275\u0275restoreView(H);const Ve=c.\u0275\u0275nextContext();return c.\u0275\u0275resetView(Ve._goToDateInView(le,"year"))}),c.\u0275\u0275elementEnd()}if(2&Ee){const H=c.\u0275\u0275nextContext();c.\u0275\u0275twoWayProperty("activeDate",H.activeDate),c.\u0275\u0275property("selected",H.selected)("dateFilter",H.dateFilter)("maxDate",H.maxDate)("minDate",H.minDate)("dateClass",H.dateClass)}}function j(Ee,Mt){}const G=["button"],V=[[["","matDatepickerToggleIcon",""]]],W=["[matDatepickerToggleIcon]"];function K(Ee,Mt){1&Ee&&(c.\u0275\u0275namespaceSVG(),c.\u0275\u0275elementStart(0,"svg",2),c.\u0275\u0275element(1,"path",3),c.\u0275\u0275elementEnd())}const ce=[[["input","matStartDate",""]],[["input","matEndDate",""]]],ue=["input[matStartDate]","input[matEndDate]"];function be(Ee,Mt){1&Ee&&(c.\u0275\u0275elementStart(0,"div",0),c.\u0275\u0275projection(1),c.\u0275\u0275elementEnd())}let pt=(()=>{class Ee{constructor(){this.changes=new d.B,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",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(H,pe){return`${H} \u2013 ${pe}`}formatYearRangeLabel(H,pe){return`${H} to ${pe}`}static#e=this.\u0275fac=function(pe){return new(pe||Ee)};static#t=this.\u0275prov=c.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})();class ct{constructor(Mt,H,pe,le,Ve={},wt=Mt,ln){this.value=Mt,this.displayValue=H,this.ariaLabel=pe,this.enabled=le,this.cssClasses=Ve,this.compareValue=wt,this.rawValue=ln}}let Ct=1;const Ne=(0,p.BQ)({passive:!1,capture:!0}),Ae=(0,p.BQ)({passive:!0,capture:!0}),fe=(0,p.BQ)({passive:!0});let We=(()=>{class Ee{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(H,pe){this._elementRef=H,this._ngZone=pe,this._platform=(0,c.inject)(p.OD),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new c.EventEmitter,this.previewChange=new c.EventEmitter,this.activeDateChange=new c.EventEmitter,this.dragStarted=new c.EventEmitter,this.dragEnded=new c.EventEmitter,this._didDragSinceMouseDown=!1,this._enterHandler=le=>{if(this._skipNextFocus&&"focus"===le.type)this._skipNextFocus=!1;else if(le.target&&this.isRange){const Ve=this._getCellFromElement(le.target);Ve&&this._ngZone.run(()=>this.previewChange.emit({value:Ve.enabled?Ve:null,event:le}))}},this._touchmoveHandler=le=>{if(!this.isRange)return;const Ve=Oe(le),wt=Ve?this._getCellFromElement(Ve):null;Ve!==le.target&&(this._didDragSinceMouseDown=!0),Me(le.target)&&le.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:wt?.enabled?wt:null,event:le}))},this._leaveHandler=le=>{null!==this.previewEnd&&this.isRange&&("blur"!==le.type&&(this._didDragSinceMouseDown=!0),le.target&&this._getCellFromElement(le.target)&&(!le.relatedTarget||!this._getCellFromElement(le.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:le})))},this._mousedownHandler=le=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const Ve=le.target&&this._getCellFromElement(le.target);!Ve||!this._isInRange(Ve.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:Ve.rawValue,event:le})})},this._mouseupHandler=le=>{if(!this.isRange)return;const Ve=Me(le.target);Ve?Ve.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const wt=this._getCellFromElement(Ve);this.dragEnded.emit({value:wt?.rawValue??null,event:le})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:le})})},this._touchendHandler=le=>{const Ve=Oe(le);Ve&&this._mouseupHandler({target:Ve})},this._id="mat-calendar-body-"+Ct++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,pe.runOutsideAngular(()=>{const le=H.nativeElement;le.addEventListener("touchmove",this._touchmoveHandler,Ne),le.addEventListener("mouseenter",this._enterHandler,Ae),le.addEventListener("focus",this._enterHandler,Ae),le.addEventListener("mouseleave",this._leaveHandler,Ae),le.addEventListener("blur",this._leaveHandler,Ae),le.addEventListener("mousedown",this._mousedownHandler,fe),le.addEventListener("touchstart",this._mousedownHandler,fe),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(H,pe){this._didDragSinceMouseDown||H.enabled&&this.selectedValueChange.emit({value:H.value,event:pe})}_emitActiveDateChange(H,pe){H.enabled&&this.activeDateChange.emit({value:H.value,event:pe})}_isSelected(H){return this.startValue===H||this.endValue===H}ngOnChanges(H){const pe=H.numCols,{rows:le,numCols:Ve}=this;(H.rows||pe)&&(this._firstRowOffset=le&&le.length&&le[0].length?Ve-le[0].length:0),(H.cellAspectRatio||pe||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Ve+"%"),(pe||!this._cellWidth)&&(this._cellWidth=100/Ve+"%")}ngOnDestroy(){const H=this._elementRef.nativeElement;H.removeEventListener("touchmove",this._touchmoveHandler,Ne),H.removeEventListener("mouseenter",this._enterHandler,Ae),H.removeEventListener("focus",this._enterHandler,Ae),H.removeEventListener("mouseleave",this._leaveHandler,Ae),H.removeEventListener("blur",this._leaveHandler,Ae),H.removeEventListener("mousedown",this._mousedownHandler,fe),H.removeEventListener("touchstart",this._mousedownHandler,fe),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(H,pe){let le=H*this.numCols+pe;return H&&(le-=this._firstRowOffset),le==this.activeCell}_focusActiveCell(H=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,v.s)(1)).subscribe(()=>{setTimeout(()=>{const pe=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");pe&&(H||(this._skipNextFocus=!0),pe.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(H){return $e(H,this.startValue,this.endValue)}_isRangeEnd(H){return q(H,this.startValue,this.endValue)}_isInRange(H){return _e(H,this.startValue,this.endValue,this.isRange)}_isComparisonStart(H){return $e(H,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(H,pe,le){if(!this._isComparisonStart(H)||this._isRangeStart(H)||!this._isInRange(H))return!1;let Ve=this.rows[pe][le-1];if(!Ve){const wt=this.rows[pe-1];Ve=wt&&wt[wt.length-1]}return Ve&&!this._isRangeEnd(Ve.compareValue)}_isComparisonBridgeEnd(H,pe,le){if(!this._isComparisonEnd(H)||this._isRangeEnd(H)||!this._isInRange(H))return!1;let Ve=this.rows[pe][le+1];if(!Ve){const wt=this.rows[pe+1];Ve=wt&&wt[0]}return Ve&&!this._isRangeStart(Ve.compareValue)}_isComparisonEnd(H){return q(H,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(H){return _e(H,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(H){return this.comparisonStart===this.comparisonEnd&&H===this.comparisonStart}_isPreviewStart(H){return $e(H,this.previewStart,this.previewEnd)}_isPreviewEnd(H){return q(H,this.previewStart,this.previewEnd)}_isInPreview(H){return _e(H,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(H){return this.isRange?this.startValue===H&&this.endValue===H?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===H?this._startDateLabelId:this.endValue===H?this._endDateLabelId:null:null}_getCellFromElement(H){const pe=Me(H);if(pe){const le=pe.getAttribute("data-mat-row"),Ve=pe.getAttribute("data-mat-col");if(le&&Ve)return this.rows[parseInt(le)][parseInt(Ve)]}return null}static#e=this.\u0275fac=function(pe){return new(pe||Ee)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.NgZone))};static#t=this.\u0275cmp=c.\u0275\u0275defineComponent({type:Ee,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",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],standalone:!0,features:[c.\u0275\u0275NgOnChangesFeature,c.\u0275\u0275StandaloneFeature],attrs:T,decls:7,vars:5,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(pe,le){1&pe&&(c.\u0275\u0275template(0,U,3,6,"tr",0),c.\u0275\u0275repeaterCreate(1,N,4,1,"tr",1,c.\u0275\u0275repeaterTrackByIdentity),c.\u0275\u0275elementStart(3,"label",2),c.\u0275\u0275text(4),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(5,"label",2),c.\u0275\u0275text(6),c.\u0275\u0275elementEnd()),2&pe&&(c.\u0275\u0275conditional(0,le._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.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}'],encapsulation:2,changeDetection:0})}return Ee})();function Pe(Ee){return"TD"===Ee?.nodeName}function Me(Ee){let Mt;return Pe(Ee)?Mt=Ee:Pe(Ee.parentNode)?Mt=Ee.parentNode:Pe(Ee.parentNode?.parentNode)&&(Mt=Ee.parentNode.parentNode),null!=Mt?.getAttribute("data-mat-row")?Mt:null}function $e(Ee,Mt,H){return null!==H&&Mt!==H&&Ee=Mt&&Ee===H}function _e(Ee,Mt,H,pe){return pe&&null!==Mt&&null!==H&&Mt!==H&&Ee>=Mt&&Ee<=H}function Oe(Ee){const Mt=Ee.changedTouches[0];return document.elementFromPoint(Mt.clientX,Mt.clientY)}class vt{constructor(Mt,H){this.start=Mt,this.end=H}}let rt=(()=>{class Ee{constructor(H,pe){this.selection=H,this._adapter=pe,this._selectionChanged=new d.B,this.selectionChanged=this._selectionChanged,this.selection=H}updateSelection(H,pe){const le=this.selection;this.selection=H,this._selectionChanged.next({selection:H,source:pe,oldValue:le})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(H){return this._adapter.isDateInstance(H)&&this._adapter.isValid(H)}static#e=this.\u0275fac=function(pe){c.\u0275\u0275invalidFactory()};static#t=this.\u0275prov=c.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac})}return Ee})(),we=(()=>{class Ee extends rt{constructor(H){super(null,H)}add(H){super.updateSelection(H,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const H=new Ee(this._adapter);return H.updateSelection(this.selection,this),H}static#e=this.\u0275fac=function(pe){return new(pe||Ee)(c.\u0275\u0275inject(f.DateAdapter))};static#t=this.\u0275prov=c.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac})}return Ee})(),Ge=(()=>{class Ee extends rt{constructor(H){super(new vt(null,null),H)}add(H){let{start:pe,end:le}=this.selection;null==pe?pe=H:null==le?le=H:(pe=H,le=null),super.updateSelection(new vt(pe,le),this)}isValid(){const{start:H,end:pe}=this.selection;return null==H&&null==pe||(null!=H&&null!=pe?this._isValidDateInstance(H)&&this._isValidDateInstance(pe)&&this._adapter.compareDate(H,pe)<=0:(null==H||this._isValidDateInstance(H))&&(null==pe||this._isValidDateInstance(pe)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const H=new Ee(this._adapter);return H.updateSelection(this.selection,this),H}static#e=this.\u0275fac=function(pe){return new(pe||Ee)(c.\u0275\u0275inject(f.DateAdapter))};static#t=this.\u0275prov=c.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac})}return Ee})();function De(Ee,Mt){return Ee||new we(Mt)}const ot={provide:rt,deps:[[new c.Optional,new c.SkipSelf,rt],f.DateAdapter],useFactory:De};function xt(Ee,Mt){return Ee||new Ge(Mt)}const jt={provide:rt,deps:[[new c.Optional,new c.SkipSelf,rt],f.DateAdapter],useFactory:xt},Xt=new c.InjectionToken("MAT_DATE_RANGE_SELECTION_STRATEGY");let un=(()=>{class Ee{constructor(H){this._dateAdapter=H}selectionFinished(H,pe){let{start:le,end:Ve}=pe;return null==le?le=H:null==Ve&&H&&this._dateAdapter.compareDate(H,le)>=0?Ve=H:(le=H,Ve=null),new vt(le,Ve)}createPreview(H,pe){let le=null,Ve=null;return pe.start&&!pe.end&&H&&(le=pe.start,Ve=H),new vt(le,Ve)}createDrag(H,pe,le){let Ve=pe.start,wt=pe.end;if(!Ve||!wt)return null;const ln=this._dateAdapter,Gn=0!==ln.compareDate(Ve,wt),Jn=ln.getYear(le)-ln.getYear(H),ti=ln.getMonth(le)-ln.getMonth(H),In=ln.getDate(le)-ln.getDate(H);return Gn&&ln.sameDate(H,pe.start)?(Ve=le,ln.compareDate(le,wt)>0&&(wt=ln.addCalendarYears(wt,Jn),wt=ln.addCalendarMonths(wt,ti),wt=ln.addCalendarDays(wt,In))):Gn&&ln.sameDate(H,pe.end)?(wt=le,ln.compareDate(le,Ve)<0&&(Ve=ln.addCalendarYears(Ve,Jn),Ve=ln.addCalendarMonths(Ve,ti),Ve=ln.addCalendarDays(Ve,In))):(Ve=ln.addCalendarYears(Ve,Jn),Ve=ln.addCalendarMonths(Ve,ti),Ve=ln.addCalendarDays(Ve,In),wt=ln.addCalendarYears(wt,Jn),wt=ln.addCalendarMonths(wt,ti),wt=ln.addCalendarDays(wt,In)),new vt(Ve,wt)}static#e=this.\u0275fac=function(pe){return new(pe||Ee)(c.\u0275\u0275inject(f.DateAdapter))};static#t=this.\u0275prov=c.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac})}return Ee})();const cn={provide:Xt,deps:[[new c.Optional,new c.SkipSelf,Xt],f.DateAdapter],useFactory:function dn(Ee,Mt){return Ee||new un(Mt)}};let hn=(()=>{class Ee{get activeDate(){return this._activeDate}set activeDate(H){const pe=this._activeDate,le=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(le,this.minDate,this.maxDate),this._hasSameMonthAndYear(pe,this._activeDate)||this._init()}get selected(){return this._selected}set selected(H){this._selected=H instanceof vt?H:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(H){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}get maxDate(){return this._maxDate}set maxDate(H){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}constructor(H,pe,le,Ve,wt){this._changeDetectorRef=H,this._dateFormats=pe,this._dateAdapter=le,this._dir=Ve,this._rangeStrategy=wt,this._rerenderSubscription=a.yU.EMPTY,this.activeDrag=null,this.selectedChange=new c.EventEmitter,this._userSelection=new c.EventEmitter,this.dragStarted=new c.EventEmitter,this.dragEnded=new c.EventEmitter,this.activeDateChange=new c.EventEmitter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,y.Z)(null)).subscribe(()=>this._init())}ngOnChanges(H){const pe=H.comparisonStart||H.comparisonEnd;pe&&!pe.firstChange&&this._setRanges(this.selected),H.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(H){const pe=H.value,le=this._getDateFromDayOfMonth(pe);let Ve,wt;this._selected instanceof vt?(Ve=this._getDateInCurrentMonth(this._selected.start),wt=this._getDateInCurrentMonth(this._selected.end)):Ve=wt=this._getDateInCurrentMonth(this._selected),(Ve!==pe||wt!==pe)&&this.selectedChange.emit(le),this._userSelection.emit({value:le,event:H.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(H){const le=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(H.value),this._dateAdapter.compareDate(le,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(H){const pe=this._activeDate,le=this._isRtl();switch(H.keyCode){case u.UQ:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,le?1:-1);break;case u.LE:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,le?-1:1);break;case u.i7:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case u.n6:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case u.yZ:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case u.Kp:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case u.w_:this.activeDate=H.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case u.dB:this.activeDate=H.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case u.Fm:case u.t6:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&H.preventDefault());case u._f:return void(null!=this._previewEnd&&!(0,u.rp)(H)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:H}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:H})),H.preventDefault(),H.stopPropagation()));default:return}this._dateAdapter.compareDate(pe,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),H.preventDefault()}_handleCalendarBodyKeyup(H){(H.keyCode===u.t6||H.keyCode===u.Fm)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:H}),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 H=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(H)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(H){this._matCalendarBody._focusActiveCell(H)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:H,value:pe}){if(this._rangeStrategy){const le=pe?pe.rawValue:null,Ve=this._rangeStrategy.createPreview(le,this.selected,H);if(this._previewStart=this._getCellCompareValue(Ve.start),this._previewEnd=this._getCellCompareValue(Ve.end),this.activeDrag&&le){const wt=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,le,H);wt&&(this._previewStart=this._getCellCompareValue(wt.start),this._previewEnd=this._getCellCompareValue(wt.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(H){if(this.activeDrag)if(H.value){const pe=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,H.value,H.event);this.dragEnded.emit({value:pe??null,event:H.event})}else this.dragEnded.emit({value:null,event:H.event})}_getDateFromDayOfMonth(H){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),H)}_initWeekdays(){const H=this._dateAdapter.getFirstDayOfWeek(),pe=this._dateAdapter.getDayOfWeekNames("narrow");let Ve=this._dateAdapter.getDayOfWeekNames("long").map((wt,ln)=>({long:wt,narrow:pe[ln]}));this._weekdays=Ve.slice(H).concat(Ve.slice(0,H))}_createWeekCells(){const H=this._dateAdapter.getNumDaysInMonth(this.activeDate),pe=this._dateAdapter.getDateNames();this._weeks=[[]];for(let le=0,Ve=this._firstWeekOffset;le=0)&&(!this.maxDate||this._dateAdapter.compareDate(H,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(H))}_getDateInCurrentMonth(H){return H&&this._hasSameMonthAndYear(H,this.activeDate)?this._dateAdapter.getDate(H):null}_hasSameMonthAndYear(H,pe){return!(!H||!pe||this._dateAdapter.getMonth(H)!=this._dateAdapter.getMonth(pe)||this._dateAdapter.getYear(H)!=this._dateAdapter.getYear(pe))}_getCellCompareValue(H){if(H){const pe=this._dateAdapter.getYear(H),le=this._dateAdapter.getMonth(H),Ve=this._dateAdapter.getDate(H);return new Date(pe,le,Ve).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(H){H instanceof vt?(this._rangeStart=this._getCellCompareValue(H.start),this._rangeEnd=this._getCellCompareValue(H.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(H),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(H){return!this.dateFilter||this.dateFilter(H)}_clearPreview(){this._previewStart=this._previewEnd=null}static#e=this.\u0275fac=function(pe){return new(pe||Ee)(c.\u0275\u0275directiveInject(c.ChangeDetectorRef),c.\u0275\u0275directiveInject(f.MAT_DATE_FORMATS,8),c.\u0275\u0275directiveInject(f.DateAdapter,8),c.\u0275\u0275directiveInject(h.dS,8),c.\u0275\u0275directiveInject(Xt,8))};static#t=this.\u0275cmp=c.\u0275\u0275defineComponent({type:Ee,selectors:[["mat-month-view"]],viewQuery:function(pe,le){if(1&pe&&c.\u0275\u0275viewQuery(We,5),2&pe){let Ve;c.\u0275\u0275queryRefresh(Ve=c.\u0275\u0275loadQuery())&&(le._matCalendarBody=Ve.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],standalone:!0,features:[c.\u0275\u0275NgOnChangesFeature,c.\u0275\u0275StandaloneFeature],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(pe,le){1&pe&&(c.\u0275\u0275elementStart(0,"table",0)(1,"thead",1)(2,"tr"),c.\u0275\u0275repeaterCreate(3,A,5,2,"th",2,c.\u0275\u0275repeaterTrackByIdentity),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(5,"tr",3),c.\u0275\u0275element(6,"th",4),c.\u0275\u0275elementEnd()(),c.\u0275\u0275elementStart(7,"tbody",5),c.\u0275\u0275listener("selectedValueChange",function(wt){return le._dateSelected(wt)})("activeDateChange",function(wt){return le._updateActiveDate(wt)})("previewChange",function(wt){return le._previewChanged(wt)})("dragStarted",function(wt){return le.dragStarted.emit(wt)})("dragEnded",function(wt){return le._dragEnded(wt)})("keyup",function(wt){return le._handleCalendarBodyKeyup(wt)})("keydown",function(wt){return le._handleCalendarBodyKeydown(wt)}),c.\u0275\u0275elementEnd()()),2&pe&&(c.\u0275\u0275advance(3),c.\u0275\u0275repeater(le._weekdays),c.\u0275\u0275advance(4),c.\u0275\u0275property("label",le._monthLabel)("rows",le._weeks)("todayValue",le._todayDate)("startValue",le._rangeStart)("endValue",le._rangeEnd)("comparisonStart",le._comparisonRangeStart)("comparisonEnd",le._comparisonRangeEnd)("previewStart",le._previewStart)("previewEnd",le._previewEnd)("isRange",le._isRange)("labelMinRequiredCells",3)("activeCell",le._dateAdapter.getDate(le.activeDate)-1)("startDateAccessibleName",le.startDateAccessibleName)("endDateAccessibleName",le.endDateAccessibleName))},dependencies:[We],encapsulation:2,changeDetection:0})}return Ee})();const Nt=24,Bt=4;let ve=(()=>{class Ee{get activeDate(){return this._activeDate}set activeDate(H){let pe=this._activeDate;const le=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(le,this.minDate,this.maxDate),Qe(this._dateAdapter,pe,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(H){this._selected=H instanceof vt?H:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H)),this._setSelectedYear(H)}get minDate(){return this._minDate}set minDate(H){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}get maxDate(){return this._maxDate}set maxDate(H){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}constructor(H,pe,le){this._changeDetectorRef=H,this._dateAdapter=pe,this._dir=le,this._rerenderSubscription=a.yU.EMPTY,this.selectedChange=new c.EventEmitter,this.yearSelected=new c.EventEmitter,this.activeDateChange=new c.EventEmitter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,y.Z)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const pe=this._dateAdapter.getYear(this._activeDate)-Xe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let le=0,Ve=[];lethis._createCellForYear(wt))),Ve=[]);this._changeDetectorRef.markForCheck()}_yearSelected(H){const pe=H.value,le=this._dateAdapter.createDate(pe,0,1),Ve=this._getDateFromYear(pe);this.yearSelected.emit(le),this.selectedChange.emit(Ve)}_updateActiveDate(H){const le=this._activeDate;this.activeDate=this._getDateFromYear(H.value),this._dateAdapter.compareDate(le,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(H){const pe=this._activeDate,le=this._isRtl();switch(H.keyCode){case u.UQ:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,le?1:-1);break;case u.LE:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,le?-1:1);break;case u.i7:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Bt);break;case u.n6:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Bt);break;case u.yZ:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Xe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case u.Kp:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Nt-Xe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case u.w_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,H.altKey?10*-Nt:-Nt);break;case u.dB:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,H.altKey?10*Nt:Nt);break;case u.Fm:case u.t6:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(pe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),H.preventDefault()}_handleCalendarBodyKeyup(H){(H.keyCode===u.t6||H.keyCode===u.Fm)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:H}),this._selectionKeyPressed=!1)}_getActiveCell(){return Xe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(H){const pe=this._dateAdapter.getMonth(this.activeDate),le=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(H,pe,1));return this._dateAdapter.createDate(H,pe,Math.min(this._dateAdapter.getDate(this.activeDate),le))}_createCellForYear(H){const pe=this._dateAdapter.createDate(H,0,1),le=this._dateAdapter.getYearName(pe),Ve=this.dateClass?this.dateClass(pe,"multi-year"):void 0;return new ct(H,le,le,this._shouldEnableYear(H),Ve)}_shouldEnableYear(H){if(null==H||this.maxDate&&H>this._dateAdapter.getYear(this.maxDate)||this.minDate&&H{class Ee{get activeDate(){return this._activeDate}set activeDate(H){let pe=this._activeDate;const le=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(le,this.minDate,this.maxDate),this._dateAdapter.getYear(pe)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(H){this._selected=H instanceof vt?H:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H)),this._setSelectedMonth(H)}get minDate(){return this._minDate}set minDate(H){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}get maxDate(){return this._maxDate}set maxDate(H){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}constructor(H,pe,le,Ve){this._changeDetectorRef=H,this._dateFormats=pe,this._dateAdapter=le,this._dir=Ve,this._rerenderSubscription=a.yU.EMPTY,this.selectedChange=new c.EventEmitter,this.monthSelected=new c.EventEmitter,this.activeDateChange=new c.EventEmitter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,y.Z)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(H){const pe=H.value,le=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),pe,1);this.monthSelected.emit(le);const Ve=this._getDateFromMonth(pe);this.selectedChange.emit(Ve)}_updateActiveDate(H){const le=this._activeDate;this.activeDate=this._getDateFromMonth(H.value),this._dateAdapter.compareDate(le,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(H){const pe=this._activeDate,le=this._isRtl();switch(H.keyCode){case u.UQ:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,le?1:-1);break;case u.LE:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,le?-1:1);break;case u.i7:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case u.n6:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case u.yZ:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case u.Kp:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case u.w_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,H.altKey?-10:-1);break;case u.dB:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,H.altKey?10:1);break;case u.Fm:case u.t6:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(pe,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),H.preventDefault()}_handleCalendarBodyKeyup(H){(H.keyCode===u.t6||H.keyCode===u.Fm)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:H}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let H=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(pe=>pe.map(le=>this._createCellForMonth(le,H[le]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(H){return H&&this._dateAdapter.getYear(H)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(H):null}_getDateFromMonth(H){const pe=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),H,1),le=this._dateAdapter.getNumDaysInMonth(pe);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),H,Math.min(this._dateAdapter.getDate(this.activeDate),le))}_createCellForMonth(H,pe){const le=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),H,1),Ve=this._dateAdapter.format(le,this._dateFormats.display.monthYearA11yLabel),wt=this.dateClass?this.dateClass(le,"year"):void 0;return new ct(H,pe.toLocaleUpperCase(),Ve,this._shouldEnableMonth(H),wt)}_shouldEnableMonth(H){const pe=this._dateAdapter.getYear(this.activeDate);if(null==H||this._isYearAndMonthAfterMaxDate(pe,H)||this._isYearAndMonthBeforeMinDate(pe,H))return!1;if(!this.dateFilter)return!0;for(let Ve=this._dateAdapter.createDate(pe,H,1);this._dateAdapter.getMonth(Ve)==H;Ve=this._dateAdapter.addCalendarDays(Ve,1))if(this.dateFilter(Ve))return!0;return!1}_isYearAndMonthAfterMaxDate(H,pe){if(this.maxDate){const le=this._dateAdapter.getYear(this.maxDate),Ve=this._dateAdapter.getMonth(this.maxDate);return H>le||H===le&&pe>Ve}return!1}_isYearAndMonthBeforeMinDate(H,pe){if(this.minDate){const le=this._dateAdapter.getYear(this.minDate),Ve=this._dateAdapter.getMonth(this.minDate);return H{class Ee{constructor(H,pe,le,Ve,wt){this._intl=H,this.calendar=pe,this._dateAdapter=le,this._dateFormats=Ve,this._id="mat-calendar-header-"+Re++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>wt.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}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:-Nt)}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:Nt)}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(H,pe){return"month"==this.calendar.currentView?this._dateAdapter.getYear(H)==this._dateAdapter.getYear(pe)&&this._dateAdapter.getMonth(H)==this._dateAdapter.getMonth(pe):"year"==this.calendar.currentView?this._dateAdapter.getYear(H)==this._dateAdapter.getYear(pe):Qe(this._dateAdapter,H,pe,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const pe=this._dateAdapter.getYear(this.calendar.activeDate)-Xe(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),le=pe+Nt-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(pe,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(le,0,1))]}static#e=this.\u0275fac=function(pe){return new(pe||Ee)(c.\u0275\u0275directiveInject(pt),c.\u0275\u0275directiveInject((0,c.forwardRef)(()=>Ke)),c.\u0275\u0275directiveInject(f.DateAdapter,8),c.\u0275\u0275directiveInject(f.MAT_DATE_FORMATS,8),c.\u0275\u0275directiveInject(c.ChangeDetectorRef))};static#t=this.\u0275cmp=c.\u0275\u0275defineComponent({type:Ee,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],standalone:!0,features:[c.\u0275\u0275StandaloneFeature],ngContentSelectors:F,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],[1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",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,"click","disabled"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"]],template:function(pe,le){1&pe&&(c.\u0275\u0275projectionDef(),c.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"label",2),c.\u0275\u0275text(3),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(4,"button",3),c.\u0275\u0275listener("click",function(){return le.currentPeriodClicked()}),c.\u0275\u0275elementStart(5,"span",4),c.\u0275\u0275text(6),c.\u0275\u0275elementEnd(),c.\u0275\u0275namespaceSVG(),c.\u0275\u0275elementStart(7,"svg",5),c.\u0275\u0275element(8,"polygon",6),c.\u0275\u0275elementEnd()(),c.\u0275\u0275namespaceHTML(),c.\u0275\u0275element(9,"div",7),c.\u0275\u0275projection(10),c.\u0275\u0275elementStart(11,"button",8),c.\u0275\u0275listener("click",function(){return le.previousClicked()}),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(12,"button",9),c.\u0275\u0275listener("click",function(){return le.nextClicked()}),c.\u0275\u0275elementEnd()()()),2&pe&&(c.\u0275\u0275advance(2),c.\u0275\u0275property("id",le._periodButtonLabelId),c.\u0275\u0275advance(),c.\u0275\u0275textInterpolate(le.periodButtonDescription),c.\u0275\u0275advance(),c.\u0275\u0275attribute("aria-label",le.periodButtonLabel)("aria-describedby",le._periodButtonLabelId),c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate(le.periodButtonText),c.\u0275\u0275advance(),c.\u0275\u0275classProp("mat-calendar-invert","month"!==le.calendar.currentView),c.\u0275\u0275advance(4),c.\u0275\u0275property("disabled",!le.previousEnabled()),c.\u0275\u0275attribute("aria-label",le.prevButtonLabel),c.\u0275\u0275advance(),c.\u0275\u0275property("disabled",!le.nextEnabled()),c.\u0275\u0275attribute("aria-label",le.nextButtonLabel))},dependencies:[b.MatButton,b.MatIconButton],encapsulation:2,changeDetection:0})}return Ee})(),Ke=(()=>{class Ee{get startAt(){return this._startAt}set startAt(H){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}get selected(){return this._selected}set selected(H){this._selected=H instanceof vt?H:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}get minDate(){return this._minDate}set minDate(H){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}get maxDate(){return this._maxDate}set maxDate(H){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}get activeDate(){return this._clampedActiveDate}set activeDate(H){this._clampedActiveDate=this._dateAdapter.clampDate(H,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(H){const pe=this._currentView!==H?H:null;this._currentView=H,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),pe&&this.viewChanged.emit(pe)}constructor(H,pe,le,Ve){this._dateAdapter=pe,this._dateFormats=le,this._changeDetectorRef=Ve,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new c.EventEmitter,this.yearSelected=new c.EventEmitter,this.monthSelected=new c.EventEmitter,this.viewChanged=new c.EventEmitter(!0),this._userSelection=new c.EventEmitter,this._userDragDrop=new c.EventEmitter,this._activeDrag=null,this.stateChanges=new d.B,this._intlChanges=H.changes.subscribe(()=>{Ve.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new C.A8(this.headerComponent||me),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(H){const pe=H.minDate&&!this._dateAdapter.sameDate(H.minDate.previousValue,H.minDate.currentValue)?H.minDate:void 0,le=H.maxDate&&!this._dateAdapter.sameDate(H.maxDate.previousValue,H.maxDate.currentValue)?H.maxDate:void 0,Ve=pe||le||H.dateFilter;if(Ve&&!Ve.firstChange){const wt=this._getCurrentViewComponent();wt&&(this._changeDetectorRef.detectChanges(),wt._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(H){const pe=H.value;(this.selected instanceof vt||pe&&!this._dateAdapter.sameDate(pe,this.selected))&&this.selectedChange.emit(pe),this._userSelection.emit(H)}_yearSelectedInMultiYearView(H){this.yearSelected.emit(H)}_monthSelectedInYearView(H){this.monthSelected.emit(H)}_goToDateInView(H,pe){this.activeDate=H,this.currentView=pe}_dragStarted(H){this._activeDrag=H}_dragEnded(H){this._activeDrag&&(H.value&&this._userDragDrop.emit(H),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static#e=this.\u0275fac=function(pe){return new(pe||Ee)(c.\u0275\u0275directiveInject(pt),c.\u0275\u0275directiveInject(f.DateAdapter,8),c.\u0275\u0275directiveInject(f.MAT_DATE_FORMATS,8),c.\u0275\u0275directiveInject(c.ChangeDetectorRef))};static#t=this.\u0275cmp=c.\u0275\u0275defineComponent({type:Ee,selectors:[["mat-calendar"]],viewQuery:function(pe,le){if(1&pe&&(c.\u0275\u0275viewQuery(hn,5),c.\u0275\u0275viewQuery(ft,5),c.\u0275\u0275viewQuery(ve,5)),2&pe){let Ve;c.\u0275\u0275queryRefresh(Ve=c.\u0275\u0275loadQuery())&&(le.monthView=Ve.first),c.\u0275\u0275queryRefresh(Ve=c.\u0275\u0275loadQuery())&&(le.yearView=Ve.first),c.\u0275\u0275queryRefresh(Ve=c.\u0275\u0275loadQuery())&&(le.multiYearView=Ve.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",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],standalone:!0,features:[c.\u0275\u0275ProvidersFeature([ot]),c.\u0275\u0275NgOnChangesFeature,c.\u0275\u0275StandaloneFeature],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(pe,le){if(1&pe&&(c.\u0275\u0275template(0,Y,0,0,"ng-template",0),c.\u0275\u0275elementStart(1,"div",1),c.\u0275\u0275template(2,ee,1,11)(3,ie,1,6)(4,$,1,6),c.\u0275\u0275elementEnd()),2&pe){let Ve;c.\u0275\u0275property("cdkPortalOutlet",le._calendarHeaderPortal),c.\u0275\u0275advance(2),c.\u0275\u0275conditional(2,"month"===(Ve=le.currentView)?2:"year"===Ve?3:"multi-year"===Ve?4:-1)}},dependencies:[C.I3,t.vR,hn,ft,ve],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight);--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.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-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.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;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.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;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return Ee})();const te={transformPanel:(0,k.hZ)("transformPanel",[(0,k.kY)("void => enter-dropdown",(0,k.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,k.i7)([(0,k.iF)({opacity:0,transform:"scale(1, 0.8)"}),(0,k.iF)({opacity:1,transform:"scale(1, 1)"})]))),(0,k.kY)("void => enter-dialog",(0,k.i0)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,k.i7)([(0,k.iF)({opacity:0,transform:"scale(0.7)"}),(0,k.iF)({transform:"none",opacity:1})]))),(0,k.kY)("* => void",(0,k.i0)("100ms linear",(0,k.iF)({opacity:0})))]),fadeInCalendar:(0,k.hZ)("fadeInCalendar",[(0,k.wk)("void",(0,k.iF)({opacity:0})),(0,k.wk)("enter",(0,k.iF)({opacity:1})),(0,k.kY)("void => *",(0,k.i0)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let de=0;const Se=new c.InjectionToken("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{const Ee=(0,c.inject)(_.hJ);return()=>Ee.scrollStrategies.reposition()}});function it(Ee){return()=>Ee.scrollStrategies.reposition()}const It={provide:Se,deps:[_.hJ],useFactory:it};let Gt=(()=>{class Ee{constructor(H,pe,le,Ve,wt,ln){this._elementRef=H,this._changeDetectorRef=pe,this._globalModel=le,this._dateAdapter=Ve,this._rangeSelectionStrategy=wt,this._subscriptions=new a.yU,this._animationDone=new d.B,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=ln.closeCalendarLabel}ngOnInit(){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(H){const pe=this._model.selection,le=H.value,Ve=pe instanceof vt;if(Ve&&this._rangeSelectionStrategy){const wt=this._rangeSelectionStrategy.selectionFinished(le,pe,H.event);this._model.updateSelection(wt,this)}else le&&(Ve||!this._dateAdapter.sameDate(le,pe))&&this._model.add(le);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(H){this._model.updateSelection(H.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(H){this._isAnimating="start"===H.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(H,pe){this._model=H?this._globalModel.clone():this._globalModel,this._actionsPortal=H,pe&&this._changeDetectorRef.detectChanges()}static#e=this.\u0275fac=function(pe){return new(pe||Ee)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.ChangeDetectorRef),c.\u0275\u0275directiveInject(rt),c.\u0275\u0275directiveInject(f.DateAdapter),c.\u0275\u0275directiveInject(Xt,8),c.\u0275\u0275directiveInject(pt))};static#t=this.\u0275cmp=c.\u0275\u0275defineComponent({type:Ee,selectors:[["mat-datepicker-content"]],viewQuery:function(pe,le){if(1&pe&&c.\u0275\u0275viewQuery(Ke,5),2&pe){let Ve;c.\u0275\u0275queryRefresh(Ve=c.\u0275\u0275loadQuery())&&(le._calendar=Ve.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(pe,le){1&pe&&c.\u0275\u0275syntheticHostListener("@transformPanel.start",function(wt){return le._handleAnimationEvent(wt)})("@transformPanel.done",function(wt){return le._handleAnimationEvent(wt)}),2&pe&&(c.\u0275\u0275syntheticHostProperty("@transformPanel",le._animationState),c.\u0275\u0275classMap(le.color?"mat-"+le.color:""),c.\u0275\u0275classProp("mat-datepicker-content-touch",le.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],standalone:!0,features:[c.\u0275\u0275StandaloneFeature],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(pe,le){if(1&pe&&(c.\u0275\u0275elementStart(0,"div",0)(1,"mat-calendar",1),c.\u0275\u0275listener("yearSelected",function(wt){return le.datepicker._selectYear(wt)})("monthSelected",function(wt){return le.datepicker._selectMonth(wt)})("viewChanged",function(wt){return le.datepicker._viewChanged(wt)})("_userSelection",function(wt){return le._handleUserSelection(wt)})("_userDragDrop",function(wt){return le._handleUserDragDrop(wt)}),c.\u0275\u0275elementEnd(),c.\u0275\u0275template(2,j,0,0,"ng-template",2),c.\u0275\u0275elementStart(3,"button",3),c.\u0275\u0275listener("focus",function(){return le._closeButtonFocused=!0})("blur",function(){return le._closeButtonFocused=!1})("click",function(){return le.datepicker.close()}),c.\u0275\u0275text(4),c.\u0275\u0275elementEnd()()),2&pe){let Ve;c.\u0275\u0275classProp("mat-datepicker-content-container-with-custom-header",le.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",le._actionsPortal),c.\u0275\u0275attribute("aria-modal",!0)("aria-labelledby",null!==(Ve=le._dialogLabelId)&&void 0!==Ve?Ve:void 0),c.\u0275\u0275advance(),c.\u0275\u0275property("id",le.datepicker.id)("ngClass",le.datepicker.panelClass)("startAt",le.datepicker.startAt)("startView",le.datepicker.startView)("minDate",le.datepicker._getMinDate())("maxDate",le.datepicker._getMaxDate())("dateFilter",le.datepicker._getDateFilter())("headerComponent",le.datepicker.calendarHeaderComponent)("selected",le._getSelected())("dateClass",le.datepicker.dateClass)("comparisonStart",le.comparisonStart)("comparisonEnd",le.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",le.startDateAccessibleName)("endDateAccessibleName",le.endDateAccessibleName),c.\u0275\u0275advance(),c.\u0275\u0275property("cdkPortalOutlet",le._actionsPortal),c.\u0275\u0275advance(),c.\u0275\u0275classProp("cdk-visually-hidden",!le._closeButtonFocused),c.\u0275\u0275property("color",le.color||"primary"),c.\u0275\u0275advance(),c.\u0275\u0275textInterpolate(le._closeButtonText)}},dependencies:[t.kB,Ke,E.NgClass,C.I3,b.MatButton],styles:[".mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color);box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-shape)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.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;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-touch-shape);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}}"],encapsulation:2,data:{animation:[te.transformPanel,te.fadeInCalendar]},changeDetection:0})}return Ee})(),an=(()=>{class Ee{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(H){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(H){this._color=H}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(H){H!==this._disabled&&(this._disabled=H,this.stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(H){this._panelClass=(0,w.cc)(H)}get opened(){return this._opened}set opened(H){H?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}constructor(H,pe,le,Ve,wt,ln,Gn){this._overlay=H,this._ngZone=pe,this._viewContainerRef=le,this._dateAdapter=wt,this._dir=ln,this._model=Gn,this._inputStateChanges=a.yU.EMPTY,this._document=(0,c.inject)(E.DOCUMENT),this.startView="month",this.touchUi=!1,this.xPosition="start",this.yPosition="below",this.restoreFocus=!0,this.yearSelected=new c.EventEmitter,this.monthSelected=new c.EventEmitter,this.viewChanged=new c.EventEmitter(!0),this.openedStream=new c.EventEmitter,this.closedStream=new c.EventEmitter,this._opened=!1,this.id="mat-datepicker-"+de++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new d.B,this._scrollStrategy=Ve}ngOnChanges(H){const pe=H.xPosition||H.yPosition;if(pe&&!pe.firstChange&&this._overlayRef){const le=this._overlayRef.getConfig().positionStrategy;le instanceof _.rW&&(this._setConnectedPositions(le),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(H){this._model.add(H)}_selectYear(H){this.yearSelected.emit(H)}_selectMonth(H){this.monthSelected.emit(H)}_viewChanged(H){this.viewChanged.emit(H)}registerInput(H){return this._inputStateChanges.unsubscribe(),this.datepickerInput=H,this._inputStateChanges=H.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(H){this._actionsPortal=H,this._componentRef?.instance._assignActions(H,!0)}removeActions(H){H===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=(0,p.vc)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const H=this.restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,pe=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:le,location:Ve}=this._componentRef;le._startExitAnimation(),le._animationDone.pipe((0,v.s)(1)).subscribe(()=>{const wt=this._document.activeElement;H&&(!wt||wt===this._document.activeElement||Ve.nativeElement.contains(wt))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}H?setTimeout(pe):pe()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(H){H.datepicker=this,H.color=this.color,H._dialogLabelId=this.datepickerInput.getOverlayLabelId(),H._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const H=this.touchUi,pe=new C.A8(Gt,this._viewContainerRef),le=this._overlayRef=this._overlay.create(new _.rR({positionStrategy:H?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[H?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:H?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(H?"dialog":"popup")}));this._getCloseStream(le).subscribe(Ve=>{Ve&&Ve.preventDefault(),this.close()}),le.keydownEvents().subscribe(Ve=>{const wt=Ve.keyCode;(wt===u.i7||wt===u.n6||wt===u.UQ||wt===u.LE||wt===u.w_||wt===u.dB)&&Ve.preventDefault()}),this._componentRef=le.attach(pe),this._forwardContentValues(this._componentRef.instance),H||this._ngZone.onStable.pipe((0,v.s)(1)).subscribe(()=>le.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const H=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(H)}_setConnectedPositions(H){const pe="end"===this.xPosition?"end":"start",le="start"===pe?"end":"start",Ve="above"===this.yPosition?"bottom":"top",wt="top"===Ve?"bottom":"top";return H.withPositions([{originX:pe,originY:wt,overlayX:pe,overlayY:Ve},{originX:pe,originY:Ve,overlayX:pe,overlayY:wt},{originX:le,originY:wt,overlayX:le,overlayY:Ve},{originX:le,originY:Ve,overlayX:le,overlayY:wt}])}_getCloseStream(H){const pe=["ctrlKey","shiftKey","metaKey"];return(0,l.h)(H.backdropClick(),H.detachments(),H.keydownEvents().pipe((0,M.p)(le=>le.keyCode===u._f&&!(0,u.rp)(le)||this.datepickerInput&&(0,u.rp)(le,"altKey")&&le.keyCode===u.i7&&pe.every(Ve=>!(0,u.rp)(le,Ve)))))}static#e=this.\u0275fac=function(pe){return new(pe||Ee)(c.\u0275\u0275directiveInject(_.hJ),c.\u0275\u0275directiveInject(c.NgZone),c.\u0275\u0275directiveInject(c.ViewContainerRef),c.\u0275\u0275directiveInject(Se),c.\u0275\u0275directiveInject(f.DateAdapter,8),c.\u0275\u0275directiveInject(h.dS,8),c.\u0275\u0275directiveInject(rt))};static#t=this.\u0275dir=c.\u0275\u0275defineDirective({type:Ee,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[c.\u0275\u0275InputFlags.HasDecoratorInputTransform,"touchUi","touchUi",c.booleanAttribute],disabled:[c.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",c.booleanAttribute],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[c.\u0275\u0275InputFlags.HasDecoratorInputTransform,"restoreFocus","restoreFocus",c.booleanAttribute],dateClass:"dateClass",panelClass:"panelClass",opened:[c.\u0275\u0275InputFlags.HasDecoratorInputTransform,"opened","opened",c.booleanAttribute]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[c.\u0275\u0275InputTransformsFeature,c.\u0275\u0275NgOnChangesFeature]})}return Ee})(),_t=(()=>{class Ee extends an{static#e=this.\u0275fac=(()=>{let H;return function(le){return(H||(H=c.\u0275\u0275getInheritedFactory(Ee)))(le||Ee)}})();static#t=this.\u0275cmp=c.\u0275\u0275defineComponent({type:Ee,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],standalone:!0,features:[c.\u0275\u0275ProvidersFeature([ot,{provide:an,useExisting:Ee}]),c.\u0275\u0275InheritDefinitionFeature,c.\u0275\u0275StandaloneFeature],decls:0,vars:0,template:function(pe,le){},encapsulation:2,changeDetection:0})}return Ee})();class Lt{constructor(Mt,H){this.target=Mt,this.targetElement=H,this.value=this.target.value}}let qe=(()=>{class Ee{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(H){this._assignValueProgrammatically(H)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(H){const pe=H,le=this._elementRef.nativeElement;this._disabled!==pe&&(this._disabled=pe,this.stateChanges.next(void 0)),pe&&this._isInitialized&&le.blur&&le.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(H){this._model=H,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(pe=>{if(this._shouldHandleChangeEvent(pe)){const le=this._getValueFromModel(pe.selection);this._lastValueValid=this._isValidValue(le),this._cvaOnChange(le),this._onTouched(),this._formatValue(le),this.dateInput.emit(new Lt(this,this._elementRef.nativeElement)),this.dateChange.emit(new Lt(this,this._elementRef.nativeElement))}})}constructor(H,pe,le){this._elementRef=H,this._dateAdapter=pe,this._dateFormats=le,this.dateChange=new c.EventEmitter,this.dateInput=new c.EventEmitter,this.stateChanges=new d.B,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=a.yU.EMPTY,this._localeSubscription=a.yU.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Ve=>{const wt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ve.value));return!wt||this._matchesFilter(wt)?null:{matDatepickerFilter:!0}},this._minValidator=Ve=>{const wt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ve.value)),ln=this._getMinDate();return!ln||!wt||this._dateAdapter.compareDate(ln,wt)<=0?null:{matDatepickerMin:{min:ln,actual:wt}}},this._maxValidator=Ve=>{const wt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ve.value)),ln=this._getMaxDate();return!ln||!wt||this._dateAdapter.compareDate(ln,wt)>=0?null:{matDatepickerMax:{max:ln,actual:wt}}},this._lastValueValid=!1,this._localeSubscription=pe.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(H){Fe(H,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(H){this._validatorOnChange=H}validate(H){return this._validator?this._validator(H):null}writeValue(H){this._assignValueProgrammatically(H)}registerOnChange(H){this._cvaOnChange=H}registerOnTouched(H){this._onTouched=H}setDisabledState(H){this.disabled=H}_onKeydown(H){(0,u.rp)(H,"altKey")&&H.keyCode===u.n6&&["ctrlKey","shiftKey","metaKey"].every(Ve=>!(0,u.rp)(H,Ve))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),H.preventDefault())}_onInput(H){const pe=this._lastValueValid;let le=this._dateAdapter.parse(H,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(le),le=this._dateAdapter.getValidDateOrNull(le);const Ve=!this._dateAdapter.sameDate(le,this.value);!le||Ve?this._cvaOnChange(le):(H&&!this.value&&this._cvaOnChange(le),pe!==this._lastValueValid&&this._validatorOnChange()),Ve&&(this._assignValue(le),this.dateInput.emit(new Lt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Lt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(H){this._elementRef.nativeElement.value=null!=H?this._dateAdapter.format(H,this._dateFormats.display.dateInput):""}_assignValue(H){this._model?(this._assignValueToModel(H),this._pendingValue=null):this._pendingValue=H}_isValidValue(H){return!H||this._dateAdapter.isValid(H)}_parentDisabled(){return!1}_assignValueProgrammatically(H){H=this._dateAdapter.deserialize(H),this._lastValueValid=this._isValidValue(H),H=this._dateAdapter.getValidDateOrNull(H),this._assignValue(H),this._formatValue(H)}_matchesFilter(H){const pe=this._getDateFilter();return!pe||pe(H)}static#e=this.\u0275fac=function(pe){return new(pe||Ee)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(f.DateAdapter,8),c.\u0275\u0275directiveInject(f.MAT_DATE_FORMATS,8))};static#t=this.\u0275dir=c.\u0275\u0275defineDirective({type:Ee,inputs:{value:"value",disabled:[c.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",c.booleanAttribute]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[c.\u0275\u0275InputTransformsFeature,c.\u0275\u0275NgOnChangesFeature]})}return Ee})();function Fe(Ee,Mt){const H=Object.keys(Ee);for(let pe of H){const{previousValue:le,currentValue:Ve}=Ee[pe];if(!Mt.isDateInstance(le)||!Mt.isDateInstance(Ve))return!0;if(!Mt.sameDate(le,Ve))return!0}return!1}const tt={provide:I.NG_VALUE_ACCESSOR,useExisting:(0,c.forwardRef)(()=>dt),multi:!0},He={provide:I.NG_VALIDATORS,useExisting:(0,c.forwardRef)(()=>dt),multi:!0};let dt=(()=>{class Ee extends qe{set matDatepicker(H){H&&(this._datepicker=H,this._closedSubscription=H.closedStream.subscribe(()=>this._onTouched()),this._registerModel(H.registerInput(this)))}get min(){return this._min}set min(H){const pe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H));this._dateAdapter.sameDate(pe,this._min)||(this._min=pe,this._validatorOnChange())}get max(){return this._max}set max(H){const pe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H));this._dateAdapter.sameDate(pe,this._max)||(this._max=pe,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(H){const pe=this._matchesFilter(this.value);this._dateFilter=H,this._matchesFilter(this.value)!==pe&&this._validatorOnChange()}constructor(H,pe,le,Ve){super(H,pe,le),this._formField=Ve,this._closedSubscription=a.yU.EMPTY,this._validator=I.Validators.compose(super._getValidators())}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(H){return H}_assignValueToModel(H){this._model&&this._model.updateSelection(H,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(H){return H.source!==this}static#e=this.\u0275fac=function(pe){return new(pe||Ee)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(f.DateAdapter,8),c.\u0275\u0275directiveInject(f.MAT_DATE_FORMATS,8),c.\u0275\u0275directiveInject(D.MAT_FORM_FIELD,8))};static#t=this.\u0275dir=c.\u0275\u0275defineDirective({type:Ee,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(pe,le){1&pe&&c.\u0275\u0275listener("input",function(wt){return le._onInput(wt.target.value)})("change",function(){return le._onChange()})("blur",function(){return le._onBlur()})("keydown",function(wt){return le._onKeydown(wt)}),2&pe&&(c.\u0275\u0275hostProperty("disabled",le.disabled),c.\u0275\u0275attribute("aria-haspopup",le._datepicker?"dialog":null)("aria-owns",(null==le._datepicker?null:le._datepicker.opened)&&le._datepicker.id||null)("min",le.min?le._dateAdapter.toIso8601(le.min):null)("max",le.max?le._dateAdapter.toIso8601(le.max):null)("data-mat-calendar",le._datepicker?le._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[c.\u0275\u0275InputFlags.None,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],standalone:!0,features:[c.\u0275\u0275ProvidersFeature([tt,He,{provide:O.MAT_INPUT_VALUE_ACCESSOR,useExisting:Ee}]),c.\u0275\u0275InheritDefinitionFeature]})}return Ee})(),At=(()=>{class Ee{static#e=this.\u0275fac=function(pe){return new(pe||Ee)};static#t=this.\u0275dir=c.\u0275\u0275defineDirective({type:Ee,selectors:[["","matDatepickerToggleIcon",""]],standalone:!0})}return Ee})(),qt=(()=>{class Ee{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(H){this._disabled=H}constructor(H,pe,le){this._intl=H,this._changeDetectorRef=pe,this._stateChanges=a.yU.EMPTY;const Ve=Number(le);this.tabIndex=Ve||0===Ve?Ve:null}ngOnChanges(H){H.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(H){this.datepicker&&!this.disabled&&(this.datepicker.open(),H.stopPropagation())}_watchStateChanges(){const H=this.datepicker?this.datepicker.stateChanges:(0,r.of)(),pe=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,r.of)(),le=this.datepicker?(0,l.h)(this.datepicker.openedStream,this.datepicker.closedStream):(0,r.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,l.h)(this._intl.changes,H,pe,le).subscribe(()=>this._changeDetectorRef.markForCheck())}static#e=this.\u0275fac=function(pe){return new(pe||Ee)(c.\u0275\u0275directiveInject(pt),c.\u0275\u0275directiveInject(c.ChangeDetectorRef),c.\u0275\u0275injectAttribute("tabindex"))};static#t=this.\u0275cmp=c.\u0275\u0275defineComponent({type:Ee,selectors:[["mat-datepicker-toggle"]],contentQueries:function(pe,le,Ve){if(1&pe&&c.\u0275\u0275contentQuery(Ve,At,5),2&pe){let wt;c.\u0275\u0275queryRefresh(wt=c.\u0275\u0275loadQuery())&&(le._customIcon=wt.first)}},viewQuery:function(pe,le){if(1&pe&&c.\u0275\u0275viewQuery(G,5),2&pe){let Ve;c.\u0275\u0275queryRefresh(Ve=c.\u0275\u0275loadQuery())&&(le._button=Ve.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(pe,le){1&pe&&c.\u0275\u0275listener("click",function(wt){return le._open(wt)}),2&pe&&(c.\u0275\u0275attribute("tabindex",null)("data-mat-calendar",le.datepicker?le.datepicker.id:null),c.\u0275\u0275classProp("mat-datepicker-toggle-active",le.datepicker&&le.datepicker.opened)("mat-accent",le.datepicker&&"accent"===le.datepicker.color)("mat-warn",le.datepicker&&"warn"===le.datepicker.color))},inputs:{datepicker:[c.\u0275\u0275InputFlags.None,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[c.\u0275\u0275InputFlags.None,"aria-label","ariaLabel"],disabled:[c.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",c.booleanAttribute],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],standalone:!0,features:[c.\u0275\u0275InputTransformsFeature,c.\u0275\u0275NgOnChangesFeature,c.\u0275\u0275StandaloneFeature],ngContentSelectors:W,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",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(pe,le){1&pe&&(c.\u0275\u0275projectionDef(V),c.\u0275\u0275elementStart(0,"button",1,0),c.\u0275\u0275template(2,K,2,0,":svg:svg",2),c.\u0275\u0275projection(3),c.\u0275\u0275elementEnd()),2&pe&&(c.\u0275\u0275property("disabled",le.disabled)("disableRipple",le.disableRipple),c.\u0275\u0275attribute("aria-haspopup",le.datepicker?"dialog":null)("aria-label",le.ariaLabel||le._intl.openCalendarLabel)("tabindex",le.disabled?-1:le.tabIndex),c.\u0275\u0275advance(2),c.\u0275\u0275conditional(2,le._customIcon?-1:2))},dependencies:[b.MatIconButton],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0})}return Ee})();function Cn(Ee){return jn(Ee,!0)}function Ln(Ee){return Ee.nodeType===Node.ELEMENT_NODE}function jn(Ee,Mt){if(Ln(Ee)&&Mt){const pe=(Ee.getAttribute?.("aria-labelledby")?.split(/\s+/g)||[]).reduce((le,Ve)=>{const wt=document.getElementById(Ve);return wt&&le.push(wt),le},[]);if(pe.length)return pe.map(le=>jn(le,!1)).join(" ")}if(Ln(Ee)){const H=Ee.getAttribute("aria-label")?.trim();if(H)return H}if(function Oi(Ee){return"INPUT"===Ee.nodeName}(Ee)||function Ei(Ee){return"TEXTAREA"===Ee.nodeName}(Ee)){if(Ee.labels?.length)return Array.from(Ee.labels).map(le=>jn(le,!1)).join(" ");const H=Ee.getAttribute("placeholder")?.trim();if(H)return H;const pe=Ee.getAttribute("title")?.trim();if(pe)return pe}return(Ee.textContent||"").replace(/\s+/g," ").trim()}const at=new c.InjectionToken("MAT_DATE_RANGE_INPUT_PARENT");let Jt=(()=>{class Ee extends qe{get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(H){this._errorStateTracker.matcher=H}get errorState(){return this._errorStateTracker.errorState}set errorState(H){this._errorStateTracker.errorState=H}constructor(H,pe,le,Ve,wt,ln,Gn,Jn){super(pe,Gn,Jn),this._rangeInput=H,this._elementRef=pe,this._defaultErrorStateMatcher=le,this._injector=Ve,this._parentForm=wt,this._parentFormGroup=ln,this._dir=(0,c.inject)(h.dS,{optional:!0}),this._errorStateTracker=new f._ErrorStateTracker(this._defaultErrorStateMatcher,null,this._parentFormGroup,this._parentForm,this.stateChanges)}ngOnInit(){const H=this._injector.get(I.NgControl,null,{optional:!0,self:!0});H&&(this.ngControl=H,this._errorStateTracker.ngControl=H)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}getMirrorValue(){const H=this._elementRef.nativeElement,pe=H.value;return pe.length>0?pe:H.placeholder}updateErrorState(){this._errorStateTracker.updateErrorState()}_onInput(H){super._onInput(H),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:H}){return H!==this._rangeInput._startInput&&H!==this._rangeInput._endInput}_assignValueProgrammatically(H){super._assignValueProgrammatically(H),(this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)?._validatorOnChange()}_getAccessibleName(){return Cn(this._elementRef.nativeElement)}static#e=this.\u0275fac=function(pe){return new(pe||Ee)(c.\u0275\u0275directiveInject(at),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(f.ErrorStateMatcher),c.\u0275\u0275directiveInject(c.Injector),c.\u0275\u0275directiveInject(I.NgForm,8),c.\u0275\u0275directiveInject(I.FormGroupDirective,8),c.\u0275\u0275directiveInject(f.DateAdapter,8),c.\u0275\u0275directiveInject(f.MAT_DATE_FORMATS,8))};static#t=this.\u0275dir=c.\u0275\u0275defineDirective({type:Ee,inputs:{errorStateMatcher:"errorStateMatcher"},standalone:!0,features:[c.\u0275\u0275InheritDefinitionFeature]})}return Ee})(),Be=(()=>{class Ee extends Jt{constructor(H,pe,le,Ve,wt,ln,Gn,Jn){super(H,pe,le,Ve,wt,ln,Gn,Jn),this._startValidator=ti=>{const In=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ti.value)),Fn=this._model?this._model.selection.end:null;return!In||!Fn||this._dateAdapter.compareDate(In,Fn)<=0?null:{matStartDateInvalid:{end:Fn,actual:In}}},this._validator=I.Validators.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(H){return H.start}_shouldHandleChangeEvent(H){return!(!super._shouldHandleChangeEvent(H)||(H.oldValue?.start?H.selection.start&&!this._dateAdapter.compareDate(H.oldValue.start,H.selection.start):!H.selection.start))}_assignValueToModel(H){if(this._model){const pe=new vt(H,this._model.selection.end);this._model.updateSelection(pe,this)}}_formatValue(H){super._formatValue(H),this._rangeInput._handleChildValueChange()}_onKeydown(H){const pe=this._rangeInput._endInput,le=this._elementRef.nativeElement,Ve="rtl"!==this._dir?.value;(H.keyCode===u.LE&&Ve||H.keyCode===u.UQ&&!Ve)&&le.selectionStart===le.value.length&&le.selectionEnd===le.value.length?(H.preventDefault(),pe._elementRef.nativeElement.setSelectionRange(0,0),pe.focus()):super._onKeydown(H)}static#e=this.\u0275fac=function(pe){return new(pe||Ee)(c.\u0275\u0275directiveInject(at),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(f.ErrorStateMatcher),c.\u0275\u0275directiveInject(c.Injector),c.\u0275\u0275directiveInject(I.NgForm,8),c.\u0275\u0275directiveInject(I.FormGroupDirective,8),c.\u0275\u0275directiveInject(f.DateAdapter,8),c.\u0275\u0275directiveInject(f.MAT_DATE_FORMATS,8))};static#t=this.\u0275dir=c.\u0275\u0275defineDirective({type:Ee,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(pe,le){1&pe&&c.\u0275\u0275listener("input",function(wt){return le._onInput(wt.target.value)})("change",function(){return le._onChange()})("keydown",function(wt){return le._onKeydown(wt)})("blur",function(){return le._onBlur()}),2&pe&&(c.\u0275\u0275hostProperty("disabled",le.disabled),c.\u0275\u0275attribute("aria-haspopup",le._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==le._rangeInput.rangePicker?null:le._rangeInput.rangePicker.opened)&&le._rangeInput.rangePicker.id||null)("min",le._getMinDate()?le._dateAdapter.toIso8601(le._getMinDate()):null)("max",le._getMaxDate()?le._dateAdapter.toIso8601(le._getMaxDate()):null))},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[c.\u0275\u0275ProvidersFeature([{provide:I.NG_VALUE_ACCESSOR,useExisting:Ee,multi:!0},{provide:I.NG_VALIDATORS,useExisting:Ee,multi:!0}]),c.\u0275\u0275InheritDefinitionFeature]})}return Ee})(),lt=(()=>{class Ee extends Jt{constructor(H,pe,le,Ve,wt,ln,Gn,Jn){super(H,pe,le,Ve,wt,ln,Gn,Jn),this._endValidator=ti=>{const In=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ti.value)),Fn=this._model?this._model.selection.start:null;return!In||!Fn||this._dateAdapter.compareDate(In,Fn)>=0?null:{matEndDateInvalid:{start:Fn,actual:In}}},this._validator=I.Validators.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(H){return H.end}_shouldHandleChangeEvent(H){return!(!super._shouldHandleChangeEvent(H)||(H.oldValue?.end?H.selection.end&&!this._dateAdapter.compareDate(H.oldValue.end,H.selection.end):!H.selection.end))}_assignValueToModel(H){if(this._model){const pe=new vt(this._model.selection.start,H);this._model.updateSelection(pe,this)}}_moveCaretToEndOfStartInput(){const H=this._rangeInput._startInput._elementRef.nativeElement,pe=H.value;pe.length>0&&H.setSelectionRange(pe.length,pe.length),H.focus()}_onKeydown(H){const pe=this._elementRef.nativeElement,le="rtl"!==this._dir?.value;H.keyCode!==u.G_||pe.value?(H.keyCode===u.UQ&&le||H.keyCode===u.LE&&!le)&&0===pe.selectionStart&&0===pe.selectionEnd?(H.preventDefault(),this._moveCaretToEndOfStartInput()):super._onKeydown(H):this._moveCaretToEndOfStartInput()}static#e=this.\u0275fac=function(pe){return new(pe||Ee)(c.\u0275\u0275directiveInject(at),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(f.ErrorStateMatcher),c.\u0275\u0275directiveInject(c.Injector),c.\u0275\u0275directiveInject(I.NgForm,8),c.\u0275\u0275directiveInject(I.FormGroupDirective,8),c.\u0275\u0275directiveInject(f.DateAdapter,8),c.\u0275\u0275directiveInject(f.MAT_DATE_FORMATS,8))};static#t=this.\u0275dir=c.\u0275\u0275defineDirective({type:Ee,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(pe,le){1&pe&&c.\u0275\u0275listener("input",function(wt){return le._onInput(wt.target.value)})("change",function(){return le._onChange()})("keydown",function(wt){return le._onKeydown(wt)})("blur",function(){return le._onBlur()}),2&pe&&(c.\u0275\u0275hostProperty("disabled",le.disabled),c.\u0275\u0275attribute("aria-haspopup",le._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==le._rangeInput.rangePicker?null:le._rangeInput.rangePicker.opened)&&le._rangeInput.rangePicker.id||null)("min",le._getMinDate()?le._dateAdapter.toIso8601(le._getMinDate()):null)("max",le._getMaxDate()?le._dateAdapter.toIso8601(le._getMaxDate()):null))},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[c.\u0275\u0275ProvidersFeature([{provide:I.NG_VALUE_ACCESSOR,useExisting:Ee,multi:!0},{provide:I.NG_VALIDATORS,useExisting:Ee,multi:!0}]),c.\u0275\u0275InheritDefinitionFeature]})}return Ee})(),Et=0,nn=(()=>{class Ee{get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){const H=this._startInput?._getPlaceholder()||"",pe=this._endInput?._getPlaceholder()||"";return H||pe?`${H} ${this.separator} ${pe}`:""}get rangePicker(){return this._rangePicker}set rangePicker(H){H&&(this._model=H.registerInput(this),this._rangePicker=H,this._closedSubscription.unsubscribe(),this._closedSubscription=H.closedStream.subscribe(()=>{this._startInput?._onTouched(),this._endInput?._onTouched()}),this._registerModel(this._model))}get required(){return this._required??(this._isTargetRequired(this)||this._isTargetRequired(this._startInput)||this._isTargetRequired(this._endInput))??!1}set required(H){this._required=H}get dateFilter(){return this._dateFilter}set dateFilter(H){const pe=this._startInput,le=this._endInput,Ve=pe&&pe._matchesFilter(pe.value),wt=le&&le._matchesFilter(pe.value);this._dateFilter=H,pe&&pe._matchesFilter(pe.value)!==Ve&&pe._validatorOnChange(),le&&le._matchesFilter(le.value)!==wt&&le._validatorOnChange()}get min(){return this._min}set min(H){const pe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H));this._dateAdapter.sameDate(pe,this._min)||(this._min=pe,this._revalidate())}get max(){return this._max}set max(H){const pe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H));this._dateAdapter.sameDate(pe,this._max)||(this._max=pe,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(H){H!==this._groupDisabled&&(this._groupDisabled=H,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const H=!!this._startInput&&this._startInput.isEmpty(),pe=!!this._endInput&&this._endInput.isEmpty();return H&&pe}constructor(H,pe,le,Ve,wt){this._changeDetectorRef=H,this._elementRef=pe,this._dateAdapter=Ve,this._formField=wt,this._closedSubscription=a.yU.EMPTY,this.id="mat-date-range-input-"+Et++,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 d.B,wt?._elementRef.nativeElement.classList.contains("mat-mdc-form-field")&&pe.nativeElement.classList.add("mat-mdc-input-element","mat-mdc-form-field-input-control","mdc-text-field__input"),this.ngControl=le}setDescribedByIds(H){this._ariaDescribedBy=H.length?H.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,l.h)(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(H){Fe(H,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(H){const pe="start"===H?this._startInput:this._endInput;return pe?pe.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 H=this._formField;return H&&H._hasFloatingLabel()?H._labelId:null}_getStartDateAccessibleName(){return this._startInput._getAccessibleName()}_getEndDateAccessibleName(){return this._endInput._getAccessibleName()}_updateFocus(H){this.focused=null!==H,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(H){this._startInput&&this._startInput._registerModel(H),this._endInput&&this._endInput._registerModel(H)}_isTargetRequired(H){return H?.ngControl?.control?.hasValidator(I.Validators.required)}static#e=this.\u0275fac=function(pe){return new(pe||Ee)(c.\u0275\u0275directiveInject(c.ChangeDetectorRef),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(I.ControlContainer,10),c.\u0275\u0275directiveInject(f.DateAdapter,8),c.\u0275\u0275directiveInject(D.MAT_FORM_FIELD,8))};static#t=this.\u0275cmp=c.\u0275\u0275defineComponent({type:Ee,selectors:[["mat-date-range-input"]],contentQueries:function(pe,le,Ve){if(1&pe&&(c.\u0275\u0275contentQuery(Ve,Be,5),c.\u0275\u0275contentQuery(Ve,lt,5)),2&pe){let wt;c.\u0275\u0275queryRefresh(wt=c.\u0275\u0275loadQuery())&&(le._startInput=wt.first),c.\u0275\u0275queryRefresh(wt=c.\u0275\u0275loadQuery())&&(le._endInput=wt.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(pe,le){2&pe&&(c.\u0275\u0275attribute("id",le.id)("aria-labelledby",le._getAriaLabelledby())("aria-describedby",le._ariaDescribedBy)("data-mat-calendar",le.rangePicker?le.rangePicker.id:null),c.\u0275\u0275classProp("mat-date-range-input-hide-placeholders",le._shouldHidePlaceholders())("mat-date-range-input-required",le.required))},inputs:{rangePicker:"rangePicker",required:[c.\u0275\u0275InputFlags.HasDecoratorInputTransform,"required","required",c.booleanAttribute],dateFilter:"dateFilter",min:"min",max:"max",disabled:[c.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",c.booleanAttribute],separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],standalone:!0,features:[c.\u0275\u0275ProvidersFeature([{provide:D.MatFormFieldControl,useExisting:Ee},{provide:at,useExisting:Ee}]),c.\u0275\u0275InputTransformsFeature,c.\u0275\u0275NgOnChangesFeature,c.\u0275\u0275StandaloneFeature],ngContentSelectors:ue,decls:11,vars:5,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-wrapper","mat-date-range-input-end-wrapper"]],template:function(pe,le){1&pe&&(c.\u0275\u0275projectionDef(ce),c.\u0275\u0275elementStart(0,"div",0),c.\u0275\u0275listener("cdkFocusChange",function(wt){return le._updateFocus(wt)}),c.\u0275\u0275elementStart(1,"div",1),c.\u0275\u0275projection(2),c.\u0275\u0275elementStart(3,"span",2),c.\u0275\u0275text(4),c.\u0275\u0275elementEnd()(),c.\u0275\u0275elementStart(5,"span",3),c.\u0275\u0275text(6),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(7,"div",4),c.\u0275\u0275projection(8,1),c.\u0275\u0275elementStart(9,"span",2),c.\u0275\u0275text(10),c.\u0275\u0275elementEnd()()()),2&pe&&(c.\u0275\u0275advance(4),c.\u0275\u0275textInterpolate(le._getInputMirrorValue("start")),c.\u0275\u0275advance(),c.\u0275\u0275classProp("mat-date-range-input-separator-hidden",le._shouldHideSeparator()),c.\u0275\u0275advance(),c.\u0275\u0275textInterpolate(le.separator),c.\u0275\u0275advance(4),c.\u0275\u0275textInterpolate(le._getInputMirrorValue("end")))},dependencies:[t.vR],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;color:var(--mat-datepicker-range-input-separator-color)}.mat-form-field-disabled .mat-date-range-input-separator{color:var(--mat-datepicker-range-input-disabled-state-separator-color)}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-end-wrapper{flex-grow:1}.mat-date-range-input-inner{position:absolute;top:0;left:0;font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%;height: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-date-range-input-inner[disabled]{color:var(--mat-datepicker-range-input-disabled-state-text-color)}.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;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);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;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);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;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);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;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);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-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix{width:200px}"],encapsulation:2,changeDetection:0})}return Ee})(),_n=(()=>{class Ee extends an{_forwardContentValues(H){super._forwardContentValues(H);const pe=this.datepickerInput;pe&&(H.comparisonStart=pe.comparisonStart,H.comparisonEnd=pe.comparisonEnd,H.startDateAccessibleName=pe._getStartDateAccessibleName(),H.endDateAccessibleName=pe._getEndDateAccessibleName())}static#e=this.\u0275fac=(()=>{let H;return function(le){return(H||(H=c.\u0275\u0275getInheritedFactory(Ee)))(le||Ee)}})();static#t=this.\u0275cmp=c.\u0275\u0275defineComponent({type:Ee,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],standalone:!0,features:[c.\u0275\u0275ProvidersFeature([jt,cn,{provide:an,useExisting:Ee}]),c.\u0275\u0275InheritDefinitionFeature,c.\u0275\u0275StandaloneFeature],decls:0,vars:0,template:function(pe,le){},encapsulation:2,changeDetection:0})}return Ee})(),Ue=(()=>{class Ee{constructor(H){this._datepicker=H}_applySelection(){this._datepicker._applyPendingSelection(),this._datepicker.close()}static#e=this.\u0275fac=function(pe){return new(pe||Ee)(c.\u0275\u0275directiveInject(an))};static#t=this.\u0275dir=c.\u0275\u0275defineDirective({type:Ee,selectors:[["","matDatepickerApply",""],["","matDateRangePickerApply",""]],hostBindings:function(pe,le){1&pe&&c.\u0275\u0275listener("click",function(){return le._applySelection()})},standalone:!0})}return Ee})(),ut=(()=>{class Ee{constructor(H){this._datepicker=H}static#e=this.\u0275fac=function(pe){return new(pe||Ee)(c.\u0275\u0275directiveInject(an))};static#t=this.\u0275dir=c.\u0275\u0275defineDirective({type:Ee,selectors:[["","matDatepickerCancel",""],["","matDateRangePickerCancel",""]],hostBindings:function(pe,le){1&pe&&c.\u0275\u0275listener("click",function(){return le._datepicker.close()})},standalone:!0})}return Ee})(),Ye=(()=>{class Ee{constructor(H,pe){this._datepicker=H,this._viewContainerRef=pe}ngAfterViewInit(){this._portal=new C.VA(this._template,this._viewContainerRef),this._datepicker.registerActions(this._portal)}ngOnDestroy(){this._datepicker.removeActions(this._portal),this._portal&&this._portal.isAttached&&this._portal?.detach()}static#e=this.\u0275fac=function(pe){return new(pe||Ee)(c.\u0275\u0275directiveInject(an),c.\u0275\u0275directiveInject(c.ViewContainerRef))};static#t=this.\u0275cmp=c.\u0275\u0275defineComponent({type:Ee,selectors:[["mat-datepicker-actions"],["mat-date-range-picker-actions"]],viewQuery:function(pe,le){if(1&pe&&c.\u0275\u0275viewQuery(c.TemplateRef,5),2&pe){let Ve;c.\u0275\u0275queryRefresh(Ve=c.\u0275\u0275loadQuery())&&(le._template=Ve.first)}},standalone:!0,features:[c.\u0275\u0275StandaloneFeature],ngContentSelectors:F,decls:1,vars:0,consts:[[1,"mat-datepicker-actions"]],template:function(pe,le){1&pe&&(c.\u0275\u0275projectionDef(),c.\u0275\u0275template(0,be,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-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return Ee})(),mt=(()=>{class Ee{static#e=this.\u0275fac=function(pe){return new(pe||Ee)};static#t=this.\u0275mod=c.\u0275\u0275defineNgModule({type:Ee});static#n=this.\u0275inj=c.\u0275\u0275defineInjector({providers:[pt,It],imports:[E.CommonModule,b.MatButtonModule,_.z_,t.Pd,C.jc,f.MatCommonModule,Gt,qt,me,s.Gj]})}return Ee})()},1997:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MatDivider:()=>E,MatDividerModule:()=>c});var t=g(4438),_=g(4085),C=g(6600);let E=(()=>{class b{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(f){this._vertical=(0,_.he)(f)}get inset(){return this._inset}set inset(f){this._inset=(0,_.he)(f)}static#e=this.\u0275fac=function(d){return new(d||b)};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:b,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(d,a){2&d&&(t.\u0275\u0275attribute("aria-orientation",a.vertical?"vertical":"horizontal"),t.\u0275\u0275classProp("mat-divider-vertical",a.vertical)("mat-divider-horizontal",!a.vertical)("mat-divider-inset",a.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[t.\u0275\u0275StandaloneFeature],decls:0,vars:0,template:function(d,a){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}return b})(),c=(()=>{class b{static#e=this.\u0275fac=function(d){return new(d||b)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:b});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[C.MatCommonModule,C.MatCommonModule]})}return b})()},2102:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_ERROR:()=>Ct,MAT_FORM_FIELD:()=>un,MAT_FORM_FIELD_DEFAULT_OPTIONS:()=>dn,MAT_PREFIX:()=>We,MAT_SUFFIX:()=>Me,MatError:()=>Ne,MatFormField:()=>ve,MatFormFieldControl:()=>ot,MatFormFieldModule:()=>Qe,MatHint:()=>fe,MatLabel:()=>pt,MatPrefix:()=>Pe,MatSuffix:()=>$e,getMatFormFieldDuplicatedHintError:()=>jt,getMatFormFieldMissingControlError:()=>Xt,getMatFormFieldPlaceholderConflictError:()=>xt,matFormFieldAnimations:()=>De});var t=g(4438),_=g(8203),C=g(6860),E=g(8359),c=g(1413),b=g(7786),s=g(6977),f=g(1985),d=g(5964),a=g(4668);class r{constructor(Ot){this._box=Ot,this._destroyed=new c.B,this._resizeSubject=new c.B,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(nt=>this._resizeSubject.next(nt)))}observe(Ot){return this._elementObservables.has(Ot)||this._elementObservables.set(Ot,new f.c(nt=>{const ft=this._resizeSubject.subscribe(nt);return this._resizeObserver?.observe(Ot,{box:this._box}),()=>{this._resizeObserver?.unobserve(Ot),ft.unsubscribe(),this._elementObservables.delete(Ot)}}).pipe((0,d.p)(nt=>nt.some(ft=>ft.target===Ot)),(0,a.t)({bufferSize:1,refCount:!0}),(0,s.Q)(this._destroyed))),this._elementObservables.get(Ot)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let u=(()=>{class Xe{constructor(){this._observers=new Map,this._ngZone=(0,t.inject)(t.NgZone)}ngOnDestroy(){for(const[,nt]of this._observers)nt.destroy();this._observers.clear()}observe(nt,ft){const Re=ft?.box||"content-box";return this._observers.has(Re)||this._observers.set(Re,new r(Re)),this._observers.get(Re).observe(nt)}static#e=this.\u0275fac=function(ft){return new(ft||Xe)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:Xe,factory:Xe.\u0275fac,providedIn:"root"})}return Xe})();var h=g(4085),p=g(9969),v=g(177),y=g(2318),M=g(6600);const w=["notch"],k=["matFormFieldNotchedOutline",""],I=["*"],D=["textField"],O=["iconPrefixContainer"],T=["textPrefixContainer"],U=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],S=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function R(Xe,Ot){1&Xe&&t.\u0275\u0275element(0,"span",17)}function N(Xe,Ot){if(1&Xe&&(t.\u0275\u0275elementStart(0,"label",16),t.\u0275\u0275projection(1,1),t.\u0275\u0275template(2,R,1,0,"span",17),t.\u0275\u0275elementEnd()),2&Xe){const nt=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("floating",nt._shouldLabelFloat())("monitorResize",nt._hasOutline())("id",nt._labelId),t.\u0275\u0275attribute("for",nt._control.id),t.\u0275\u0275advance(2),t.\u0275\u0275conditional(2,!nt.hideRequiredMarker&&nt._control.required?2:-1)}}function A(Xe,Ot){if(1&Xe&&t.\u0275\u0275template(0,N,3,5,"label",16),2&Xe){const nt=t.\u0275\u0275nextContext();t.\u0275\u0275conditional(0,nt._hasFloatingLabel()?0:-1)}}function F(Xe,Ot){1&Xe&&t.\u0275\u0275element(0,"div",5)}function Y(Xe,Ot){}function ee(Xe,Ot){if(1&Xe&&t.\u0275\u0275template(0,Y,0,0,"ng-template",11),2&Xe){t.\u0275\u0275nextContext(2);const nt=t.\u0275\u0275reference(1);t.\u0275\u0275property("ngTemplateOutlet",nt)}}function ie(Xe,Ot){if(1&Xe&&(t.\u0275\u0275elementStart(0,"div",7),t.\u0275\u0275template(1,ee,1,1,null,11),t.\u0275\u0275elementEnd()),2&Xe){const nt=t.\u0275\u0275nextContext();t.\u0275\u0275property("matFormFieldNotchedOutlineOpen",nt._shouldLabelFloat()),t.\u0275\u0275advance(),t.\u0275\u0275conditional(1,nt._forceDisplayInfixLabel()?-1:1)}}function $(Xe,Ot){1&Xe&&(t.\u0275\u0275elementStart(0,"div",8,2),t.\u0275\u0275projection(2,2),t.\u0275\u0275elementEnd())}function j(Xe,Ot){1&Xe&&(t.\u0275\u0275elementStart(0,"div",9,3),t.\u0275\u0275projection(2,3),t.\u0275\u0275elementEnd())}function G(Xe,Ot){}function V(Xe,Ot){if(1&Xe&&t.\u0275\u0275template(0,G,0,0,"ng-template",11),2&Xe){t.\u0275\u0275nextContext();const nt=t.\u0275\u0275reference(1);t.\u0275\u0275property("ngTemplateOutlet",nt)}}function W(Xe,Ot){1&Xe&&(t.\u0275\u0275elementStart(0,"div",12),t.\u0275\u0275projection(1,4),t.\u0275\u0275elementEnd())}function K(Xe,Ot){1&Xe&&(t.\u0275\u0275elementStart(0,"div",13),t.\u0275\u0275projection(1,5),t.\u0275\u0275elementEnd())}function ce(Xe,Ot){1&Xe&&t.\u0275\u0275element(0,"div",14)}function ue(Xe,Ot){if(1&Xe&&(t.\u0275\u0275elementStart(0,"div",18),t.\u0275\u0275projection(1,6),t.\u0275\u0275elementEnd()),2&Xe){const nt=t.\u0275\u0275nextContext();t.\u0275\u0275property("@transitionMessages",nt._subscriptAnimationState)}}function be(Xe,Ot){if(1&Xe&&(t.\u0275\u0275elementStart(0,"mat-hint",20),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&Xe){const nt=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("id",nt._hintLabelId),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate(nt.hintLabel)}}function Ze(Xe,Ot){if(1&Xe&&(t.\u0275\u0275elementStart(0,"div",19),t.\u0275\u0275template(1,be,2,2,"mat-hint",20),t.\u0275\u0275projection(2,7),t.\u0275\u0275element(3,"div",21),t.\u0275\u0275projection(4,8),t.\u0275\u0275elementEnd()),2&Xe){const nt=t.\u0275\u0275nextContext();t.\u0275\u0275property("@transitionMessages",nt._subscriptAnimationState),t.\u0275\u0275advance(),t.\u0275\u0275conditional(1,nt.hintLabel?1:-1)}}let pt=(()=>{class Xe{static#e=this.\u0275fac=function(ft){return new(ft||Xe)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Xe,selectors:[["mat-label"]],standalone:!0})}return Xe})(),ct=0;const Ct=new t.InjectionToken("MatError");let Ne=(()=>{class Xe{constructor(nt,ft){this.id="mat-mdc-error-"+ct++,nt||ft.nativeElement.setAttribute("aria-live","polite")}static#e=this.\u0275fac=function(ft){return new(ft||Xe)(t.\u0275\u0275injectAttribute("aria-live"),t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Xe,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(ft,Re){2&ft&&t.\u0275\u0275hostProperty("id",Re.id)},inputs:{id:"id"},standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:Ct,useExisting:Xe}])]})}return Xe})(),Ae=0,fe=(()=>{class Xe{constructor(){this.align="start",this.id="mat-mdc-hint-"+Ae++}static#e=this.\u0275fac=function(ft){return new(ft||Xe)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Xe,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(ft,Re){2&ft&&(t.\u0275\u0275hostProperty("id",Re.id),t.\u0275\u0275attribute("align",null),t.\u0275\u0275classProp("mat-mdc-form-field-hint-end","end"===Re.align))},inputs:{align:"align",id:"id"},standalone:!0})}return Xe})();const We=new t.InjectionToken("MatPrefix");let Pe=(()=>{class Xe{constructor(){this._isText=!1}set _isTextSelector(nt){this._isText=!0}static#e=this.\u0275fac=function(ft){return new(ft||Xe)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Xe,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[t.\u0275\u0275InputFlags.None,"matTextPrefix","_isTextSelector"]},standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:We,useExisting:Xe}])]})}return Xe})();const Me=new t.InjectionToken("MatSuffix");let $e=(()=>{class Xe{constructor(){this._isText=!1}set _isTextSelector(nt){this._isText=!0}static#e=this.\u0275fac=function(ft){return new(ft||Xe)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Xe,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[t.\u0275\u0275InputFlags.None,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:Me,useExisting:Xe}])]})}return Xe})();const q=new t.InjectionToken("FloatingLabelParent");let _e=(()=>{class Xe{get floating(){return this._floating}set floating(nt){this._floating=nt,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(nt){this._monitorResize=nt,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(nt){this._elementRef=nt,this._floating=!1,this._monitorResize=!1,this._resizeObserver=(0,t.inject)(u),this._ngZone=(0,t.inject)(t.NgZone),this._parent=(0,t.inject)(q),this._resizeSubscription=new E.yU}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function Oe(Xe){if(null!==Xe.offsetParent)return Xe.scrollWidth;const nt=Xe.cloneNode(!0);nt.style.setProperty("position","absolute"),nt.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(nt);const ft=nt.scrollWidth;return nt.remove(),ft}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static#e=this.\u0275fac=function(ft){return new(ft||Xe)(t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Xe,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(ft,Re){2&ft&&t.\u0275\u0275classProp("mdc-floating-label--float-above",Re.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0})}return Xe})();const vt="mdc-line-ripple--active",rt="mdc-line-ripple--deactivating";let we=(()=>{class Xe{constructor(nt,ft){this._elementRef=nt,this._handleTransitionEnd=Re=>{const me=this._elementRef.nativeElement.classList,Ke=me.contains(rt);"opacity"===Re.propertyName&&Ke&&me.remove(vt,rt)},ft.runOutsideAngular(()=>{nt.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const nt=this._elementRef.nativeElement.classList;nt.remove(rt),nt.add(vt)}deactivate(){this._elementRef.nativeElement.classList.add(rt)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(ft){return new(ft||Xe)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Xe,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0})}return Xe})(),Ge=(()=>{class Xe{constructor(nt,ft){this._elementRef=nt,this._ngZone=ft,this.open=!1}ngAfterViewInit(){const nt=this._elementRef.nativeElement.querySelector(".mdc-floating-label");nt?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(nt.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>nt.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(nt){this._notch.nativeElement.style.width=this.open&&nt?`calc(${nt}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(ft){return new(ft||Xe)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:Xe,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(ft,Re){if(1&ft&&t.\u0275\u0275viewQuery(w,5),2&ft){let me;t.\u0275\u0275queryRefresh(me=t.\u0275\u0275loadQuery())&&(Re._notch=me.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(ft,Re){2&ft&&t.\u0275\u0275classProp("mdc-notched-outline--notched",Re.open)},inputs:{open:[t.\u0275\u0275InputFlags.None,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[t.\u0275\u0275StandaloneFeature],attrs:k,ngContentSelectors:I,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(ft,Re){1&ft&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275element(0,"div",1),t.\u0275\u0275elementStart(1,"div",2,0),t.\u0275\u0275projection(3),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(4,"div",3))},encapsulation:2,changeDetection:0})}return Xe})();const De={transitionMessages:(0,p.hZ)("transitionMessages",[(0,p.wk)("enter",(0,p.iF)({opacity:1,transform:"translateY(0%)"})),(0,p.kY)("void => enter",[(0,p.iF)({opacity:0,transform:"translateY(-5px)"}),(0,p.i0)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ot=(()=>{class Xe{static#e=this.\u0275fac=function(ft){return new(ft||Xe)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Xe})}return Xe})();function xt(){return Error("Placeholder attribute and child element were both specified.")}function jt(Xe){return Error(`A hint was already declared for 'align="${Xe}"'.`)}function Xt(){return Error("mat-form-field must contain a MatFormFieldControl.")}const un=new t.InjectionToken("MatFormField"),dn=new t.InjectionToken("MAT_FORM_FIELD_DEFAULT_OPTIONS");let cn=0,ve=(()=>{class Xe{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(nt){this._hideRequiredMarker=(0,h.he)(nt)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(nt){nt!==this._floatLabel&&(this._floatLabel=nt,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(nt){const ft=this._appearance;this._appearance=nt||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==ft&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(nt){this._subscriptSizing=nt||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(nt){this._hintLabel=nt,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(nt){this._explicitFormFieldControl=nt}constructor(nt,ft,Re,me,Ke,te,de,Se){this._elementRef=nt,this._changeDetectorRef=ft,this._ngZone=Re,this._dir=me,this._platform=Ke,this._defaults=te,this._animationMode=de,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+cn++,this._hintLabelId="mat-mdc-hint-"+cn++,this._subscriptAnimationState="",this._destroyed=new c.B,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,te&&(te.appearance&&(this.appearance=te.appearance),this._hideRequiredMarker=!!te?.hideRequiredMarker,te.color&&(this.color=te.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const nt=this._control;nt.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${nt.controlType}`),nt.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),nt.ngControl&&nt.ngControl.valueChanges&&nt.ngControl.valueChanges.pipe((0,s.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(nt=>!nt._isText),this._hasTextPrefix=!!this._prefixChildren.find(nt=>nt._isText),this._hasIconSuffix=!!this._suffixChildren.find(nt=>!nt._isText),this._hasTextSuffix=!!this._suffixChildren.find(nt=>nt._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,b.h)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,s.Q)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,s.Q)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(nt){const ft=this._control?this._control.ngControl:null;return ft&&ft[nt]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let nt=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&nt.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const ft=this._hintChildren?this._hintChildren.find(me=>"start"===me.align):null,Re=this._hintChildren?this._hintChildren.find(me=>"end"===me.align):null;ft?nt.push(ft.id):this._hintLabel&&nt.push(this._hintLabelId),Re&&nt.push(Re.id)}else this._errorChildren&&nt.push(...this._errorChildren.map(ft=>ft.id));this._control.setDescribedByIds(nt)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const nt=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(nt.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const ft=this._iconPrefixContainer?.nativeElement,Re=this._textPrefixContainer?.nativeElement,me=ft?.getBoundingClientRect().width??0,Ke=Re?.getBoundingClientRect().width??0;nt.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${me+Ke}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const nt=this._elementRef.nativeElement;if(nt.getRootNode){const ft=nt.getRootNode();return ft&&ft!==nt}return document.documentElement.contains(nt)}static#e=this.\u0275fac=function(ft){return new(ft||Xe)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(_.dS),t.\u0275\u0275directiveInject(C.OD),t.\u0275\u0275directiveInject(dn,8),t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8),t.\u0275\u0275directiveInject(v.DOCUMENT))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:Xe,selectors:[["mat-form-field"]],contentQueries:function(ft,Re,me){if(1&ft&&(t.\u0275\u0275contentQuery(me,pt,5),t.\u0275\u0275contentQuery(me,pt,7),t.\u0275\u0275contentQuery(me,ot,5),t.\u0275\u0275contentQuery(me,We,5),t.\u0275\u0275contentQuery(me,Me,5),t.\u0275\u0275contentQuery(me,Ct,5),t.\u0275\u0275contentQuery(me,fe,5)),2&ft){let Ke;t.\u0275\u0275queryRefresh(Ke=t.\u0275\u0275loadQuery())&&(Re._labelChildNonStatic=Ke.first),t.\u0275\u0275queryRefresh(Ke=t.\u0275\u0275loadQuery())&&(Re._labelChildStatic=Ke.first),t.\u0275\u0275queryRefresh(Ke=t.\u0275\u0275loadQuery())&&(Re._formFieldControl=Ke.first),t.\u0275\u0275queryRefresh(Ke=t.\u0275\u0275loadQuery())&&(Re._prefixChildren=Ke),t.\u0275\u0275queryRefresh(Ke=t.\u0275\u0275loadQuery())&&(Re._suffixChildren=Ke),t.\u0275\u0275queryRefresh(Ke=t.\u0275\u0275loadQuery())&&(Re._errorChildren=Ke),t.\u0275\u0275queryRefresh(Ke=t.\u0275\u0275loadQuery())&&(Re._hintChildren=Ke)}},viewQuery:function(ft,Re){if(1&ft&&(t.\u0275\u0275viewQuery(D,5),t.\u0275\u0275viewQuery(O,5),t.\u0275\u0275viewQuery(T,5),t.\u0275\u0275viewQuery(_e,5),t.\u0275\u0275viewQuery(Ge,5),t.\u0275\u0275viewQuery(we,5)),2&ft){let me;t.\u0275\u0275queryRefresh(me=t.\u0275\u0275loadQuery())&&(Re._textField=me.first),t.\u0275\u0275queryRefresh(me=t.\u0275\u0275loadQuery())&&(Re._iconPrefixContainer=me.first),t.\u0275\u0275queryRefresh(me=t.\u0275\u0275loadQuery())&&(Re._textPrefixContainer=me.first),t.\u0275\u0275queryRefresh(me=t.\u0275\u0275loadQuery())&&(Re._floatingLabel=me.first),t.\u0275\u0275queryRefresh(me=t.\u0275\u0275loadQuery())&&(Re._notchedOutline=me.first),t.\u0275\u0275queryRefresh(me=t.\u0275\u0275loadQuery())&&(Re._lineRipple=me.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(ft,Re){2&ft&&t.\u0275\u0275classProp("mat-mdc-form-field-label-always-float",Re._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",Re._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",Re._hasIconSuffix)("mat-form-field-invalid",Re._control.errorState)("mat-form-field-disabled",Re._control.disabled)("mat-form-field-autofilled",Re._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===Re._animationMode)("mat-form-field-appearance-fill","fill"==Re.appearance)("mat-form-field-appearance-outline","outline"==Re.appearance)("mat-form-field-hide-placeholder",Re._hasFloatingLabel()&&!Re._shouldLabelFloat())("mat-focused",Re._control.focused)("mat-primary","accent"!==Re.color&&"warn"!==Re.color)("mat-accent","accent"===Re.color)("mat-warn","warn"===Re.color)("ng-untouched",Re._shouldForward("untouched"))("ng-touched",Re._shouldForward("touched"))("ng-pristine",Re._shouldForward("pristine"))("ng-dirty",Re._shouldForward("dirty"))("ng-valid",Re._shouldForward("valid"))("ng-invalid",Re._shouldForward("invalid"))("ng-pending",Re._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:un,useExisting:Xe},{provide:q,useExisting:Xe}]),t.\u0275\u0275StandaloneFeature],ngContentSelectors:S,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(ft,Re){if(1&ft){const me=t.\u0275\u0275getCurrentView();t.\u0275\u0275projectionDef(U),t.\u0275\u0275template(0,A,1,1,"ng-template",null,0,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementStart(2,"div",4,1),t.\u0275\u0275listener("click",function(te){return t.\u0275\u0275restoreView(me),t.\u0275\u0275resetView(Re._control.onContainerClick(te))}),t.\u0275\u0275template(4,F,1,0,"div",5),t.\u0275\u0275elementStart(5,"div",6),t.\u0275\u0275template(6,ie,2,2,"div",7)(7,$,3,0,"div",8)(8,j,3,0,"div",9),t.\u0275\u0275elementStart(9,"div",10),t.\u0275\u0275template(10,V,1,1,null,11),t.\u0275\u0275projection(11),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(12,W,2,0,"div",12)(13,K,2,0,"div",13),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(14,ce,1,0,"div",14),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(15,"div",15),t.\u0275\u0275template(16,ue,2,1)(17,Ze,5,2),t.\u0275\u0275elementEnd()}if(2&ft){let me;t.\u0275\u0275advance(2),t.\u0275\u0275classProp("mdc-text-field--filled",!Re._hasOutline())("mdc-text-field--outlined",Re._hasOutline())("mdc-text-field--no-label",!Re._hasFloatingLabel())("mdc-text-field--disabled",Re._control.disabled)("mdc-text-field--invalid",Re._control.errorState),t.\u0275\u0275advance(2),t.\u0275\u0275conditional(4,Re._hasOutline()||Re._control.disabled?-1:4),t.\u0275\u0275advance(2),t.\u0275\u0275conditional(6,Re._hasOutline()?6:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(7,Re._hasIconPrefix?7:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(8,Re._hasTextPrefix?8:-1),t.\u0275\u0275advance(2),t.\u0275\u0275conditional(10,!Re._hasOutline()||Re._forceDisplayInfixLabel()?10:-1),t.\u0275\u0275advance(2),t.\u0275\u0275conditional(12,Re._hasTextSuffix?12:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(13,Re._hasIconSuffix?13:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(14,Re._hasOutline()?-1:14),t.\u0275\u0275advance(),t.\u0275\u0275classProp("mat-mdc-form-field-subscript-dynamic-size","dynamic"===Re.subscriptSizing),t.\u0275\u0275advance(),t.\u0275\u0275conditional(16,"error"===(me=Re._getDisplayedMessages())?16:"hint"===me?17:-1)}},dependencies:[_e,Ge,v.NgTemplateOutlet,we,fe],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 96px/0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px*2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-hover-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-hover-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-hover-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-hover-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(.75*var(--mdc-outlined-text-field-label-text-size))}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mdc-outlined-text-field-label-text-size)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color)}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color)}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color)}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color)}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[De.transitionMessages]},changeDetection:0})}return Xe})(),Qe=(()=>{class Xe{static#e=this.\u0275fac=function(ft){return new(ft||Xe)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:Xe});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[M.MatCommonModule,v.CommonModule,y.w5,M.MatCommonModule]})}return Xe})()},9213:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{ICON_REGISTRY_PROVIDER:()=>R,ICON_REGISTRY_PROVIDER_FACTORY:()=>S,MAT_ICON_DEFAULT_OPTIONS:()=>Y,MAT_ICON_LOCATION:()=>ee,MAT_ICON_LOCATION_FACTORY:()=>ie,MatIcon:()=>V,MatIconModule:()=>W,MatIconRegistry:()=>U,getMatIconFailedToSanitizeLiteralError:()=>O,getMatIconFailedToSanitizeUrlError:()=>D,getMatIconNameNotFoundError:()=>k,getMatIconNoHttpProviderError:()=>I});var t=g(4438),_=g(6600),C=g(177),E=g(7673),c=g(8810),b=g(7468),s=g(8359),f=g(8141),d=g(6354),a=g(9437),l=g(980),r=g(7647),u=g(6697),h=g(1626),p=g(345);const v=["*"];let y;function w(K){return function M(){if(void 0===y&&(y=null,typeof window<"u")){const K=window;void 0!==K.trustedTypes&&(y=K.trustedTypes.createPolicy("angular#components",{createHTML:ce=>ce}))}return y}()?.createHTML(K)||K}function k(K){return Error(`Unable to find icon with the name "${K}"`)}function I(){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 D(K){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${K}".`)}function O(K){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${K}".`)}class T{constructor(ce,ue,be){this.url=ce,this.svgText=ue,this.options=be}}let U=(()=>{class K{constructor(ue,be,Ze,pt){this._httpClient=ue,this._sanitizer=be,this._errorHandler=pt,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","mat-ligature-font"],this._document=Ze}addSvgIcon(ue,be,Ze){return this.addSvgIconInNamespace("",ue,be,Ze)}addSvgIconLiteral(ue,be,Ze){return this.addSvgIconLiteralInNamespace("",ue,be,Ze)}addSvgIconInNamespace(ue,be,Ze,pt){return this._addSvgIconConfig(ue,be,new T(Ze,null,pt))}addSvgIconResolver(ue){return this._resolvers.push(ue),this}addSvgIconLiteralInNamespace(ue,be,Ze,pt){const ct=this._sanitizer.sanitize(t.SecurityContext.HTML,Ze);if(!ct)throw O(Ze);const Ct=w(ct);return this._addSvgIconConfig(ue,be,new T("",Ct,pt))}addSvgIconSet(ue,be){return this.addSvgIconSetInNamespace("",ue,be)}addSvgIconSetLiteral(ue,be){return this.addSvgIconSetLiteralInNamespace("",ue,be)}addSvgIconSetInNamespace(ue,be,Ze){return this._addSvgIconSetConfig(ue,new T(be,null,Ze))}addSvgIconSetLiteralInNamespace(ue,be,Ze){const pt=this._sanitizer.sanitize(t.SecurityContext.HTML,be);if(!pt)throw O(be);const ct=w(pt);return this._addSvgIconSetConfig(ue,new T("",ct,Ze))}registerFontClassAlias(ue,be=ue){return this._fontCssClassesByAlias.set(ue,be),this}classNameForFontAlias(ue){return this._fontCssClassesByAlias.get(ue)||ue}setDefaultFontSetClass(...ue){return this._defaultFontSetClass=ue,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(ue){const be=this._sanitizer.sanitize(t.SecurityContext.RESOURCE_URL,ue);if(!be)throw D(ue);const Ze=this._cachedIconsByUrl.get(be);return Ze?(0,E.of)(N(Ze)):this._loadSvgIconFromConfig(new T(ue,null)).pipe((0,f.M)(pt=>this._cachedIconsByUrl.set(be,pt)),(0,d.T)(pt=>N(pt)))}getNamedSvgIcon(ue,be=""){const Ze=A(be,ue);let pt=this._svgIconConfigs.get(Ze);if(pt)return this._getSvgFromConfig(pt);if(pt=this._getIconConfigFromResolvers(be,ue),pt)return this._svgIconConfigs.set(Ze,pt),this._getSvgFromConfig(pt);const ct=this._iconSetConfigs.get(be);return ct?this._getSvgFromIconSetConfigs(ue,ct):(0,c.$)(k(Ze))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(ue){return ue.svgText?(0,E.of)(N(this._svgElementFromConfig(ue))):this._loadSvgIconFromConfig(ue).pipe((0,d.T)(be=>N(be)))}_getSvgFromIconSetConfigs(ue,be){const Ze=this._extractIconWithNameFromAnySet(ue,be);if(Ze)return(0,E.of)(Ze);const pt=be.filter(ct=>!ct.svgText).map(ct=>this._loadSvgIconSetFromConfig(ct).pipe((0,a.W)(Ct=>{const Ae=`Loading icon set URL: ${this._sanitizer.sanitize(t.SecurityContext.RESOURCE_URL,ct.url)} failed: ${Ct.message}`;return this._errorHandler.handleError(new Error(Ae)),(0,E.of)(null)})));return(0,b.p)(pt).pipe((0,d.T)(()=>{const ct=this._extractIconWithNameFromAnySet(ue,be);if(!ct)throw k(ue);return ct}))}_extractIconWithNameFromAnySet(ue,be){for(let Ze=be.length-1;Ze>=0;Ze--){const pt=be[Ze];if(pt.svgText&&pt.svgText.toString().indexOf(ue)>-1){const ct=this._svgElementFromConfig(pt),Ct=this._extractSvgIconFromSet(ct,ue,pt.options);if(Ct)return Ct}}return null}_loadSvgIconFromConfig(ue){return this._fetchIcon(ue).pipe((0,f.M)(be=>ue.svgText=be),(0,d.T)(()=>this._svgElementFromConfig(ue)))}_loadSvgIconSetFromConfig(ue){return ue.svgText?(0,E.of)(null):this._fetchIcon(ue).pipe((0,f.M)(be=>ue.svgText=be))}_extractSvgIconFromSet(ue,be,Ze){const pt=ue.querySelector(`[id="${be}"]`);if(!pt)return null;const ct=pt.cloneNode(!0);if(ct.removeAttribute("id"),"svg"===ct.nodeName.toLowerCase())return this._setSvgAttributes(ct,Ze);if("symbol"===ct.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(ct),Ze);const Ct=this._svgElementFromString(w(""));return Ct.appendChild(ct),this._setSvgAttributes(Ct,Ze)}_svgElementFromString(ue){const be=this._document.createElement("DIV");be.innerHTML=ue;const Ze=be.querySelector("svg");if(!Ze)throw Error(" tag not found");return Ze}_toSvgElement(ue){const be=this._svgElementFromString(w("")),Ze=ue.attributes;for(let pt=0;ptw(Ae)),(0,l.j)(()=>this._inProgressUrlFetches.delete(ct)),(0,r.u)());return this._inProgressUrlFetches.set(ct,Ne),Ne}_addSvgIconConfig(ue,be,Ze){return this._svgIconConfigs.set(A(ue,be),Ze),this}_addSvgIconSetConfig(ue,be){const Ze=this._iconSetConfigs.get(ue);return Ze?Ze.push(be):this._iconSetConfigs.set(ue,[be]),this}_svgElementFromConfig(ue){if(!ue.svgElement){const be=this._svgElementFromString(ue.svgText);this._setSvgAttributes(be,ue.options),ue.svgElement=be}return ue.svgElement}_getIconConfigFromResolvers(ue,be){for(let Ze=0;Zece?ce.pathname+ce.search:""}}const $=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],j=$.map(K=>`[${K}]`).join(", "),G=/^url\(['"]?#(.*?)['"]?\)$/;let V=(()=>{class K{get color(){return this._color||this._defaultColor}set color(ue){this._color=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 be=this._cleanupFontValue(ue);be!==this._fontSet&&(this._fontSet=be,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(ue){const be=this._cleanupFontValue(ue);be!==this._fontIcon&&(this._fontIcon=be,this._updateFontIconClasses())}constructor(ue,be,Ze,pt,ct,Ct){this._elementRef=ue,this._iconRegistry=be,this._location=pt,this._errorHandler=ct,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=s.yU.EMPTY,Ct&&(Ct.color&&(this.color=this._defaultColor=Ct.color),Ct.fontSet&&(this.fontSet=Ct.fontSet)),Ze||ue.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(ue){if(!ue)return["",""];const be=ue.split(":");switch(be.length){case 1:return["",be[0]];case 2:return be;default:throw Error(`Invalid icon name: "${ue}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const ue=this._elementsWithExternalReferences;if(ue&&ue.size){const be=this._location.getPathname();be!==this._previousPath&&(this._previousPath=be,this._prependPathToReferences(be))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(ue){this._clearSvgElement();const be=this._location.getPathname();this._previousPath=be,this._cacheChildrenWithExternalReferences(ue),this._prependPathToReferences(be),this._elementRef.nativeElement.appendChild(ue)}_clearSvgElement(){const ue=this._elementRef.nativeElement;let be=ue.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();be--;){const Ze=ue.childNodes[be];(1!==Ze.nodeType||"svg"===Ze.nodeName.toLowerCase())&&Ze.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const ue=this._elementRef.nativeElement,be=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Ze=>Ze.length>0);this._previousFontSetClass.forEach(Ze=>ue.classList.remove(Ze)),be.forEach(Ze=>ue.classList.add(Ze)),this._previousFontSetClass=be,this.fontIcon!==this._previousFontIconClass&&!be.includes("mat-ligature-font")&&(this._previousFontIconClass&&ue.classList.remove(this._previousFontIconClass),this.fontIcon&&ue.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(ue){return"string"==typeof ue?ue.trim().split(" ")[0]:ue}_prependPathToReferences(ue){const be=this._elementsWithExternalReferences;be&&be.forEach((Ze,pt)=>{Ze.forEach(ct=>{pt.setAttribute(ct.name,`url('${ue}#${ct.value}')`)})})}_cacheChildrenWithExternalReferences(ue){const be=ue.querySelectorAll(j),Ze=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let pt=0;pt{const Ct=be[pt],Ne=Ct.getAttribute(ct),Ae=Ne?Ne.match(G):null;if(Ae){let fe=Ze.get(Ct);fe||(fe=[],Ze.set(Ct,fe)),fe.push({name:ct,value:Ae[1]})}})}_updateSvgIcon(ue){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),ue){const[be,Ze]=this._splitIconName(ue);be&&(this._svgNamespace=be),Ze&&(this._svgName=Ze),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Ze,be).pipe((0,u.s)(1)).subscribe(pt=>this._setSvgElement(pt),pt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${be}:${Ze}! ${pt.message}`))})}}static#e=this.\u0275fac=function(be){return new(be||K)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(U),t.\u0275\u0275injectAttribute("aria-hidden"),t.\u0275\u0275directiveInject(ee),t.\u0275\u0275directiveInject(t.ErrorHandler),t.\u0275\u0275directiveInject(Y,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:K,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(be,Ze){2&be&&(t.\u0275\u0275attribute("data-mat-icon-type",Ze._usingFontIcon()?"font":"svg")("data-mat-icon-name",Ze._svgName||Ze.fontIcon)("data-mat-icon-namespace",Ze._svgNamespace||Ze.fontSet)("fontIcon",Ze._usingFontIcon()?Ze.fontIcon:null),t.\u0275\u0275classMap(Ze.color?"mat-"+Ze.color:""),t.\u0275\u0275classProp("mat-icon-inline",Ze.inline)("mat-icon-no-color","primary"!==Ze.color&&"accent"!==Ze.color&&"warn"!==Ze.color))},inputs:{color:"color",inline:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"inline","inline",t.booleanAttribute],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:v,decls:1,vars:0,template:function(be,Ze){1&be&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0})}return K})(),W=(()=>{class K{static#e=this.\u0275fac=function(be){return new(be||K)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:K});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[_.MatCommonModule,_.MatCommonModule]})}return K})()},9631:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_INPUT_VALUE_ACCESSOR:()=>p,MatError:()=>u.MatError,MatFormField:()=>u.MatFormField,MatHint:()=>u.MatHint,MatInput:()=>M,MatInputModule:()=>w,MatLabel:()=>u.MatLabel,MatPrefix:()=>u.MatPrefix,MatSuffix:()=>u.MatSuffix,getMatInputUnsupportedTypeError:()=>h});var t=g(4085),_=g(6860),C=g(4438),E=g(983),c=g(1413);const b=(0,_.BQ)({passive:!0});let s=(()=>{class k{constructor(D,O){this._platform=D,this._ngZone=O,this._monitoredElements=new Map}monitor(D){if(!this._platform.isBrowser)return E.w;const O=(0,t.i8)(D),T=this._monitoredElements.get(O);if(T)return T.subject;const U=new c.B,S="cdk-text-field-autofilled",R=N=>{"cdk-text-field-autofill-start"!==N.animationName||O.classList.contains(S)?"cdk-text-field-autofill-end"===N.animationName&&O.classList.contains(S)&&(O.classList.remove(S),this._ngZone.run(()=>U.next({target:N.target,isAutofilled:!1}))):(O.classList.add(S),this._ngZone.run(()=>U.next({target:N.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{O.addEventListener("animationstart",R,b),O.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(O,{subject:U,unlisten:()=>{O.removeEventListener("animationstart",R,b)}}),U}stopMonitoring(D){const O=(0,t.i8)(D),T=this._monitoredElements.get(O);T&&(T.unlisten(),T.subject.complete(),O.classList.remove("cdk-text-field-autofill-monitored"),O.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(O))}ngOnDestroy(){this._monitoredElements.forEach((D,O)=>this.stopMonitoring(O))}static#e=this.\u0275fac=function(O){return new(O||k)(C.\u0275\u0275inject(_.OD),C.\u0275\u0275inject(C.NgZone))};static#t=this.\u0275prov=C.\u0275\u0275defineInjectable({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})(),a=(()=>{class k{static#e=this.\u0275fac=function(O){return new(O||k)};static#t=this.\u0275mod=C.\u0275\u0275defineNgModule({type:k});static#n=this.\u0275inj=C.\u0275\u0275defineInjector({})}return k})();var l=g(9417),r=g(6600),u=g(2102);function h(k){return Error(`Input type "${k}" isn't supported by matInput.`)}const p=new C.InjectionToken("MAT_INPUT_VALUE_ACCESSOR"),v=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let y=0,M=(()=>{class k{get disabled(){return this._disabled}set disabled(D){this._disabled=(0,t.he)(D),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(D){this._id=D||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(l.Validators.required)??!1}set required(D){this._required=(0,t.he)(D)}get type(){return this._type}set type(D){this._type=D||"text",this._validateType(),!this._isTextarea&&(0,_.MU)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(D){this._errorStateTracker.matcher=D}get value(){return this._inputValueAccessor.value}set value(D){D!==this.value&&(this._inputValueAccessor.value=D,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(D){this._readonly=(0,t.he)(D)}get errorState(){return this._errorStateTracker.errorState}set errorState(D){this._errorStateTracker.errorState=D}constructor(D,O,T,U,S,R,N,A,F,Y){this._elementRef=D,this._platform=O,this.ngControl=T,this._autofillMonitor=A,this._formField=Y,this._uid="mat-input-"+y++,this.focused=!1,this.stateChanges=new c.B,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($=>(0,_.MU)().has($)),this._iOSKeyupListener=$=>{const j=$.target;!j.value&&0===j.selectionStart&&0===j.selectionEnd&&(j.setSelectionRange(1,1),j.setSelectionRange(0,0))};const ee=this._elementRef.nativeElement,ie=ee.nodeName.toLowerCase();this._inputValueAccessor=N||ee,this._previousNativeValue=this.value,this.id=this.id,O.IOS&&F.runOutsideAngular(()=>{D.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new r._ErrorStateTracker(R,T,S,U,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ie,this._isTextarea="textarea"===ie,this._isInFormField=!!Y,this._isNativeSelect&&(this.controlType=ee.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(D=>{this.autofilled=D.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(D){this._elementRef.nativeElement.focus(D)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(D){D!==this.focused&&(this.focused=D,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const D=this._elementRef.nativeElement.value;this._previousNativeValue!==D&&(this._previousNativeValue=D,this.stateChanges.next())}_dirtyCheckPlaceholder(){const D=this._getPlaceholder();if(D!==this._previousPlaceholder){const O=this._elementRef.nativeElement;this._previousPlaceholder=D,D?O.setAttribute("placeholder",D):O.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){v.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let D=this._elementRef.nativeElement.validity;return D&&D.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const D=this._elementRef.nativeElement,O=D.options[0];return this.focused||D.multiple||!this.empty||!!(D.selectedIndex>-1&&O&&O.label)}return this.focused||!this.empty}setDescribedByIds(D){D.length?this._elementRef.nativeElement.setAttribute("aria-describedby",D.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const D=this._elementRef.nativeElement;return this._isNativeSelect&&(D.multiple||D.size>1)}static#e=this.\u0275fac=function(O){return new(O||k)(C.\u0275\u0275directiveInject(C.ElementRef),C.\u0275\u0275directiveInject(_.OD),C.\u0275\u0275directiveInject(l.NgControl,10),C.\u0275\u0275directiveInject(l.NgForm,8),C.\u0275\u0275directiveInject(l.FormGroupDirective,8),C.\u0275\u0275directiveInject(r.ErrorStateMatcher),C.\u0275\u0275directiveInject(p,10),C.\u0275\u0275directiveInject(s),C.\u0275\u0275directiveInject(C.NgZone),C.\u0275\u0275directiveInject(u.MAT_FORM_FIELD,8))};static#t=this.\u0275dir=C.\u0275\u0275defineDirective({type:k,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(O,T){1&O&&C.\u0275\u0275listener("focus",function(){return T._focusChanged(!0)})("blur",function(){return T._focusChanged(!1)})("input",function(){return T._onInput()}),2&O&&(C.\u0275\u0275hostProperty("id",T.id)("disabled",T.disabled)("required",T.required),C.\u0275\u0275attribute("name",T.name||null)("readonly",T.readonly&&!T._isNativeSelect||null)("aria-invalid",T.empty&&T.required?null:T.errorState)("aria-required",T.required)("id",T.id),C.\u0275\u0275classProp("mat-input-server",T._isServer)("mat-mdc-form-field-textarea-control",T._isInFormField&&T._isTextarea)("mat-mdc-form-field-input-control",T._isInFormField)("mdc-text-field__input",T._isInFormField)("mat-mdc-native-select-inline",T._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[C.\u0275\u0275InputFlags.None,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[C.\u0275\u0275ProvidersFeature([{provide:u.MatFormFieldControl,useExisting:k}]),C.\u0275\u0275NgOnChangesFeature]})}return k})(),w=(()=>{class k{static#e=this.\u0275fac=function(O){return new(O||k)};static#t=this.\u0275mod=C.\u0275\u0275defineNgModule({type:k});static#n=this.\u0275inj=C.\u0275\u0275defineInjector({imports:[r.MatCommonModule,u.MatFormFieldModule,u.MatFormFieldModule,a,r.MatCommonModule]})}return k})()},9115:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_MENU_CONTENT:()=>$,MAT_MENU_DEFAULT_OPTIONS:()=>ce,MAT_MENU_PANEL:()=>A,MAT_MENU_SCROLL_STRATEGY:()=>Ze,MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>ct,MENU_PANEL_TOP_PADDING:()=>Ne,MatMenu:()=>be,MatMenuContent:()=>j,MatMenuItem:()=>F,MatMenuModule:()=>fe,MatMenuTrigger:()=>Ae,fadeInItems:()=>V,matMenuAnimations:()=>G,transformMenu:()=>W});var t=g(4438),_=g(6039),C=g(7336),E=g(1413),c=g(7786),b=g(8359),s=g(7673),f=g(5007),d=g(9172),a=g(5558),l=g(6697),r=g(6977),u=g(5964),h=g(3103),p=g(177),v=g(6600),y=g(6939),M=g(9969),w=g(8203),k=g(7987),I=g(6860),D=g(5478);const O=["mat-menu-item",""],T=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],U=["mat-icon, [matMenuItemIcon]","*"];function S(We,Pe){1&We&&(t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(0,"svg",2),t.\u0275\u0275element(1,"polygon",3),t.\u0275\u0275elementEnd())}const R=["*"];function N(We,Pe){if(1&We){const Me=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",0),t.\u0275\u0275listener("keydown",function(q){t.\u0275\u0275restoreView(Me);const _e=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(_e._handleKeydown(q))})("click",function(){t.\u0275\u0275restoreView(Me);const q=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(q.closed.emit("click"))})("@transformMenu.start",function(q){t.\u0275\u0275restoreView(Me);const _e=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(_e._onAnimationStart(q))})("@transformMenu.done",function(q){t.\u0275\u0275restoreView(Me);const _e=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(_e._onAnimationDone(q))}),t.\u0275\u0275elementStart(1,"div",1),t.\u0275\u0275projection(2),t.\u0275\u0275elementEnd()()}if(2&We){const Me=t.\u0275\u0275nextContext();t.\u0275\u0275property("id",Me.panelId)("ngClass",Me._classList)("@transformMenu",Me._panelAnimationState),t.\u0275\u0275attribute("aria-label",Me.ariaLabel||null)("aria-labelledby",Me.ariaLabelledby||null)("aria-describedby",Me.ariaDescribedby||null)}}const A=new t.InjectionToken("MAT_MENU_PANEL");let F=(()=>{class We{constructor(Me,$e,q,_e,Oe){this._elementRef=Me,this._document=$e,this._focusMonitor=q,this._parentMenu=_e,this._changeDetectorRef=Oe,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new E.B,this._focused=new E.B,this._highlighted=!1,this._triggersSubmenu=!1,_e?.addItem?.(this)}focus(Me,$e){this._focusMonitor&&Me?this._focusMonitor.focusVia(this._getHostElement(),Me,$e):this._getHostElement().focus($e),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(Me){this.disabled&&(Me.preventDefault(),Me.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const Me=this._elementRef.nativeElement.cloneNode(!0),$e=Me.querySelectorAll("mat-icon, .material-icons");for(let q=0;q<$e.length;q++)$e[q].remove();return Me.textContent?.trim()||""}_setHighlighted(Me){this._highlighted=Me,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(Me){this._triggersSubmenu=Me,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static#e=this.\u0275fac=function($e){return new($e||We)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(p.DOCUMENT),t.\u0275\u0275directiveInject(_.FN),t.\u0275\u0275directiveInject(A,8),t.\u0275\u0275directiveInject(t.ChangeDetectorRef))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:We,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator"],hostVars:8,hostBindings:function($e,q){1&$e&&t.\u0275\u0275listener("click",function(Oe){return q._checkDisabled(Oe)})("mouseenter",function(){return q._handleMouseEnter()}),2&$e&&(t.\u0275\u0275attribute("role",q.role)("tabindex",q._getTabIndex())("aria-disabled",q.disabled)("disabled",q.disabled||null),t.\u0275\u0275classProp("mat-mdc-menu-item-highlighted",q._highlighted)("mat-mdc-menu-item-submenu-trigger",q._triggersSubmenu))},inputs:{role:"role",disabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",t.booleanAttribute],disableRipple:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",t.booleanAttribute]},exportAs:["matMenuItem"],standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275StandaloneFeature],attrs:O,ngContentSelectors:U,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function($e,q){1&$e&&(t.\u0275\u0275projectionDef(T),t.\u0275\u0275projection(0),t.\u0275\u0275elementStart(1,"span",0),t.\u0275\u0275projection(2,1),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(3,"div",1),t.\u0275\u0275template(4,S,2,0,":svg:svg",2)),2&$e&&(t.\u0275\u0275advance(3),t.\u0275\u0275property("matRippleDisabled",q.disableRipple||q.disabled)("matRippleTrigger",q._getHostElement()),t.\u0275\u0275advance(),t.\u0275\u0275conditional(4,q._triggersSubmenu?4:-1))},dependencies:[v.MatRipple],encapsulation:2,changeDetection:0})}return We})();const $=new t.InjectionToken("MatMenuContent");let j=(()=>{class We{constructor(Me,$e,q,_e,Oe,vt,rt){this._template=Me,this._componentFactoryResolver=$e,this._appRef=q,this._injector=_e,this._viewContainerRef=Oe,this._document=vt,this._changeDetectorRef=rt,this._attached=new E.B}attach(Me={}){this._portal||(this._portal=new y.VA(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new y.aI(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const $e=this._template.elementRef.nativeElement;$e.parentNode.insertBefore(this._outlet.outletElement,$e),this._changeDetectorRef?.markForCheck(),this._portal.attach(this._outlet,Me),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}static#e=this.\u0275fac=function($e){return new($e||We)(t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.ComponentFactoryResolver),t.\u0275\u0275directiveInject(t.ApplicationRef),t.\u0275\u0275directiveInject(t.Injector),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(p.DOCUMENT),t.\u0275\u0275directiveInject(t.ChangeDetectorRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:We,selectors:[["ng-template","matMenuContent",""]],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:$,useExisting:We}])]})}return We})();const G={transformMenu:(0,M.hZ)("transformMenu",[(0,M.wk)("void",(0,M.iF)({opacity:0,transform:"scale(0.8)"})),(0,M.kY)("void => enter",(0,M.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,M.iF)({opacity:1,transform:"scale(1)"}))),(0,M.kY)("* => void",(0,M.i0)("100ms 25ms linear",(0,M.iF)({opacity:0})))]),fadeInItems:(0,M.hZ)("fadeInItems",[(0,M.wk)("showing",(0,M.iF)({opacity:1})),(0,M.kY)("void => *",[(0,M.iF)({opacity:0}),(0,M.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},V=G.fadeInItems,W=G.transformMenu;let K=0;const ce=new t.InjectionToken("mat-menu-default-options",{providedIn:"root",factory:function ue(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let be=(()=>{class We{get xPosition(){return this._xPosition}set xPosition(Me){this._xPosition=Me,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(Me){this._yPosition=Me,this.setPositionClasses()}set panelClass(Me){const $e=this._previousPanelClass;$e&&$e.length&&$e.split(" ").forEach(q=>{this._classList[q]=!1}),this._previousPanelClass=Me,Me&&Me.length&&(Me.split(" ").forEach(q=>{this._classList[q]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(Me){this.panelClass=Me}constructor(Me,$e,q,_e){this._elementRef=Me,this._ngZone=$e,this._changeDetectorRef=_e,this._elevationPrefix="mat-elevation-z",this._baseElevation=8,this._directDescendantItems=new t.QueryList,this._classList={},this._panelAnimationState="void",this._animationDone=new E.B,this.closed=new t.EventEmitter,this.close=this.closed,this.panelId="mat-menu-panel-"+K++,this.overlayPanelClass=q.overlayPanelClass||"",this._xPosition=q.xPosition,this._yPosition=q.yPosition,this.backdropClass=q.backdropClass,this.overlapTrigger=q.overlapTrigger,this.hasBackdrop=q.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new _.Bu(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,d.Z)(this._directDescendantItems),(0,a.n)(Me=>(0,c.h)(...Me.map($e=>$e._focused)))).subscribe(Me=>this._keyManager.updateActiveItem(Me)),this._directDescendantItems.changes.subscribe(Me=>{const $e=this._keyManager;if("enter"===this._panelAnimationState&&$e.activeItem?._hasFocus()){const q=Me.toArray(),_e=Math.max(0,Math.min(q.length-1,$e.activeItemIndex||0));q[_e]&&!q[_e].disabled?$e.setActiveItem(_e):$e.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,d.Z)(this._directDescendantItems),(0,a.n)($e=>(0,c.h)(...$e.map(q=>q._hovered))))}addItem(Me){}removeItem(Me){}_handleKeydown(Me){const $e=Me.keyCode,q=this._keyManager;switch($e){case C._f:(0,C.rp)(Me)||(Me.preventDefault(),this.closed.emit("keydown"));break;case C.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case C.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return($e===C.i7||$e===C.n6)&&q.setFocusOrigin("keyboard"),void q.onKeydown(Me)}Me.stopPropagation()}focusFirstItem(Me="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,l.s)(1)).subscribe(()=>{let $e=null;if(this._directDescendantItems.length&&($e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!$e||!$e.contains(document.activeElement)){const q=this._keyManager;q.setFocusOrigin(Me).setFirstItemActive(),!q.activeItem&&$e&&$e.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Me){const $e=Math.min(this._baseElevation+Me,24),q=`${this._elevationPrefix}${$e}`,_e=Object.keys(this._classList).find(Oe=>Oe.startsWith(this._elevationPrefix));(!_e||_e===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[q]=!0,this._previousElevation=q)}setPositionClasses(Me=this.xPosition,$e=this.yPosition){const q=this._classList;q["mat-menu-before"]="before"===Me,q["mat-menu-after"]="after"===Me,q["mat-menu-above"]="above"===$e,q["mat-menu-below"]="below"===$e,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(Me){this._animationDone.next(Me),this._isAnimating=!1}_onAnimationStart(Me){this._isAnimating=!0,"enter"===Me.toState&&0===this._keyManager.activeItemIndex&&(Me.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,d.Z)(this._allItems)).subscribe(Me=>{this._directDescendantItems.reset(Me.filter($e=>$e._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static#e=this.\u0275fac=function($e){return new($e||We)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(ce),t.\u0275\u0275directiveInject(t.ChangeDetectorRef))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:We,selectors:[["mat-menu"]],contentQueries:function($e,q,_e){if(1&$e&&(t.\u0275\u0275contentQuery(_e,$,5),t.\u0275\u0275contentQuery(_e,F,5),t.\u0275\u0275contentQuery(_e,F,4)),2&$e){let Oe;t.\u0275\u0275queryRefresh(Oe=t.\u0275\u0275loadQuery())&&(q.lazyContent=Oe.first),t.\u0275\u0275queryRefresh(Oe=t.\u0275\u0275loadQuery())&&(q._allItems=Oe),t.\u0275\u0275queryRefresh(Oe=t.\u0275\u0275loadQuery())&&(q.items=Oe)}},viewQuery:function($e,q){if(1&$e&&t.\u0275\u0275viewQuery(t.TemplateRef,5),2&$e){let _e;t.\u0275\u0275queryRefresh(_e=t.\u0275\u0275loadQuery())&&(q.templateRef=_e.first)}},hostVars:3,hostBindings:function($e,q){2&$e&&t.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[t.\u0275\u0275InputFlags.None,"aria-label","ariaLabel"],ariaLabelledby:[t.\u0275\u0275InputFlags.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[t.\u0275\u0275InputFlags.None,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"overlapTrigger","overlapTrigger",t.booleanAttribute],hasBackdrop:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"hasBackdrop","hasBackdrop",Me=>null==Me?null:(0,t.booleanAttribute)(Me)],panelClass:[t.\u0275\u0275InputFlags.None,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:A,useExisting:We}]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:R,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id","ngClass"],[1,"mat-mdc-menu-content"]],template:function($e,q){1&$e&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275template(0,N,3,6,"ng-template"))},dependencies:[p.NgClass],styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-divider{color:var(--mat-menu-divider-color);margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:var(--mat-menu-item-trailing-spacing);padding-right:var(--mat-menu-item-leading-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]),.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon])[dir=rtl]{padding-left:var(--mat-menu-item-with-icon-trailing-spacing);padding-right:var(--mat-menu-item-with-icon-leading-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;padding-right:var(--mat-menu-item-spacing);padding-left:0}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[G.transformMenu,G.fadeInItems]},changeDetection:0})}return We})();const Ze=new t.InjectionToken("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const We=(0,t.inject)(k.hJ);return()=>We.scrollStrategies.reposition()}}),ct={provide:Ze,deps:[k.hJ],useFactory:function pt(We){return()=>We.scrollStrategies.reposition()}},Ct=(0,I.BQ)({passive:!0}),Ne=8;let Ae=(()=>{class We{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(Me){this.menu=Me}get menu(){return this._menu}set menu(Me){Me!==this._menu&&(this._menu=Me,this._menuCloseSubscription.unsubscribe(),Me&&(this._menuCloseSubscription=Me.close.subscribe($e=>{this._destroyMenu($e),("click"===$e||"tab"===$e)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit($e)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(Me,$e,q,_e,Oe,vt,rt,we,Ge){this._overlay=Me,this._element=$e,this._viewContainerRef=q,this._menuItemInstance=vt,this._dir=rt,this._focusMonitor=we,this._ngZone=Ge,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=b.yU.EMPTY,this._hoverSubscription=b.yU.EMPTY,this._menuCloseSubscription=b.yU.EMPTY,this._changeDetectorRef=(0,t.inject)(t.ChangeDetectorRef),this._handleTouchStart=De=>{(0,_.w6)(De)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new t.EventEmitter,this.onMenuOpen=this.menuOpened,this.menuClosed=new t.EventEmitter,this.onMenuClose=this.menuClosed,this._scrollStrategy=_e,this._parentMaterialMenu=Oe instanceof be?Oe:void 0,$e.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ct)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ct),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&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const Me=this.menu;if(this._menuOpen||!Me)return;const $e=this._createOverlay(Me),q=$e.getConfig(),_e=q.positionStrategy;this._setPosition(Me,_e),q.hasBackdrop=null==Me.hasBackdrop?!this.triggersSubmenu():Me.hasBackdrop,$e.attach(this._getPortal(Me)),Me.lazyContent&&Me.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(Me),Me instanceof be&&(Me._startAnimation(),Me._directDescendantItems.changes.pipe((0,r.Q)(Me.close)).subscribe(()=>{_e.withLockedPosition(!1).reapplyLastPosition(),_e.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(Me,$e){this._focusMonitor&&Me?this._focusMonitor.focusVia(this._element,Me,$e):this._element.nativeElement.focus($e)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(Me){if(!this._overlayRef||!this.menuOpen)return;const $e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Me||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,$e instanceof be?($e._resetAnimation(),$e.lazyContent?$e._animationDone.pipe((0,u.p)(q=>"void"===q.toState),(0,l.s)(1),(0,r.Q)($e.lazyContent._attached)).subscribe({next:()=>$e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),$e?.lazyContent?.detach())}_initMenu(Me){Me.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,Me.direction=this.dir,this._setMenuElevation(Me),Me.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(Me){if(Me.setElevation){let $e=0,q=Me.parentMenu;for(;q;)$e++,q=q.parentMenu;Me.setElevation($e)}}_setIsMenuOpen(Me){Me!==this._menuOpen&&(this._menuOpen=Me,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Me),this._changeDetectorRef.markForCheck())}_createOverlay(Me){if(!this._overlayRef){const $e=this._getOverlayConfig(Me);this._subscribeToPositions(Me,$e.positionStrategy),this._overlayRef=this._overlay.create($e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(Me){return new k.rR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:Me.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:Me.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(Me,$e){Me.setPositionClasses&&$e.positionChanges.subscribe(q=>{const _e="start"===q.connectionPair.overlayX?"after":"before",Oe="top"===q.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>Me.setPositionClasses(_e,Oe)):Me.setPositionClasses(_e,Oe)})}_setPosition(Me,$e){let[q,_e]="before"===Me.xPosition?["end","start"]:["start","end"],[Oe,vt]="above"===Me.yPosition?["bottom","top"]:["top","bottom"],[rt,we]=[Oe,vt],[Ge,De]=[q,_e],ot=0;if(this.triggersSubmenu()){if(De=q="before"===Me.xPosition?"start":"end",_e=Ge="end"===q?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const xt=this._parentMaterialMenu.items.first;this._parentInnerPadding=xt?xt._getHostElement().offsetTop:0}ot="bottom"===Oe?this._parentInnerPadding:-this._parentInnerPadding}}else Me.overlapTrigger||(rt="top"===Oe?"bottom":"top",we="top"===vt?"bottom":"top");$e.withPositions([{originX:q,originY:rt,overlayX:Ge,overlayY:Oe,offsetY:ot},{originX:_e,originY:rt,overlayX:De,overlayY:Oe,offsetY:ot},{originX:q,originY:we,overlayX:Ge,overlayY:vt,offsetY:-ot},{originX:_e,originY:we,overlayX:De,overlayY:vt,offsetY:-ot}])}_menuClosingActions(){const Me=this._overlayRef.backdropClick(),$e=this._overlayRef.detachments(),q=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,s.of)(),_e=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,u.p)(Oe=>Oe!==this._menuItemInstance),(0,u.p)(()=>this._menuOpen)):(0,s.of)();return(0,c.h)(Me,q,_e,$e)}_handleMousedown(Me){(0,_._G)(Me)||(this._openedBy=0===Me.button?"mouse":void 0,this.triggersSubmenu()&&Me.preventDefault())}_handleKeydown(Me){const $e=Me.keyCode;($e===C.Fm||$e===C.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&($e===C.LE&&"ltr"===this.dir||$e===C.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(Me){this.triggersSubmenu()?(Me.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,u.p)(Me=>Me===this._menuItemInstance&&!Me.disabled),(0,h.c)(0,f.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof be&&this.menu._isAnimating?this.menu._animationDone.pipe((0,l.s)(1),(0,h.c)(0,f.$),(0,r.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(Me){return(!this._portal||this._portal.templateRef!==Me.templateRef)&&(this._portal=new y.VA(Me.templateRef,this._viewContainerRef)),this._portal}static#e=this.\u0275fac=function($e){return new($e||We)(t.\u0275\u0275directiveInject(k.hJ),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(Ze),t.\u0275\u0275directiveInject(A,8),t.\u0275\u0275directiveInject(F,10),t.\u0275\u0275directiveInject(w.dS,8),t.\u0275\u0275directiveInject(_.FN),t.\u0275\u0275directiveInject(t.NgZone))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:We,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function($e,q){1&$e&&t.\u0275\u0275listener("click",function(Oe){return q._handleClick(Oe)})("mousedown",function(Oe){return q._handleMousedown(Oe)})("keydown",function(Oe){return q._handleKeydown(Oe)}),2&$e&&t.\u0275\u0275attribute("aria-haspopup",q.menu?"menu":null)("aria-expanded",q.menuOpen)("aria-controls",q.menuOpen?q.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[t.\u0275\u0275InputFlags.None,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[t.\u0275\u0275InputFlags.None,"matMenuTriggerFor","menu"],menuData:[t.\u0275\u0275InputFlags.None,"matMenuTriggerData","menuData"],restoreFocus:[t.\u0275\u0275InputFlags.None,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0})}return We})(),fe=(()=>{class We{static#e=this.\u0275fac=function($e){return new($e||We)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:We});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({providers:[ct],imports:[p.CommonModule,v.MatRippleModule,v.MatCommonModule,k.z_,D.Gj,v.MatCommonModule]})}return We})()},6695:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_PAGINATOR_DEFAULT_OPTIONS:()=>k,MAT_PAGINATOR_INTL_PROVIDER:()=>y,MAT_PAGINATOR_INTL_PROVIDER_FACTORY:()=>v,MatPaginator:()=>D,MatPaginatorIntl:()=>p,MatPaginatorModule:()=>O,PageEvent:()=>w});var t=g(4438),_=g(1413),C=g(2771),E=g(8834),c=g(2798),b=g(4823),s=g(6600),f=g(2102);function d(T,U){if(1&T&&(t.\u0275\u0275elementStart(0,"mat-option",16),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&T){const S=U.$implicit;t.\u0275\u0275property("value",S),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",S," ")}}function a(T,U){if(1&T){const S=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"mat-form-field",13)(1,"mat-select",15),t.\u0275\u0275listener("selectionChange",function(N){t.\u0275\u0275restoreView(S);const A=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(A._changePageSize(N.value))}),t.\u0275\u0275repeaterCreate(2,d,2,2,"mat-option",16,t.\u0275\u0275repeaterTrackByIdentity),t.\u0275\u0275elementEnd()()}if(2&T){const S=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("appearance",S._formFieldAppearance)("color",S.color),t.\u0275\u0275advance(),t.\u0275\u0275property("value",S.pageSize)("disabled",S.disabled)("aria-labelledby",S._pageSizeLabelId)("panelClass",S.selectConfig.panelClass||"")("disableOptionCentering",S.selectConfig.disableOptionCentering),t.\u0275\u0275advance(),t.\u0275\u0275repeater(S._displayedPageSizeOptions)}}function l(T,U){if(1&T&&(t.\u0275\u0275elementStart(0,"div",14),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&T){const S=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate(S.pageSize)}}function r(T,U){if(1&T&&(t.\u0275\u0275elementStart(0,"div",2)(1,"div",12),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(3,a,4,7,"mat-form-field",13)(4,l,2,1,"div",14),t.\u0275\u0275elementEnd()),2&T){const S=t.\u0275\u0275nextContext();t.\u0275\u0275advance(),t.\u0275\u0275attribute("id",S._pageSizeLabelId),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",S._intl.itemsPerPageLabel," "),t.\u0275\u0275advance(),t.\u0275\u0275conditional(3,S._displayedPageSizeOptions.length>1?3:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(4,S._displayedPageSizeOptions.length<=1?4:-1)}}function u(T,U){if(1&T){const S=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",17),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(S);const N=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(N.firstPage())}),t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(1,"svg",7),t.\u0275\u0275element(2,"path",18),t.\u0275\u0275elementEnd()()}if(2&T){const S=t.\u0275\u0275nextContext();t.\u0275\u0275property("matTooltip",S._intl.firstPageLabel)("matTooltipDisabled",S._previousButtonsDisabled())("matTooltipPosition","above")("disabled",S._previousButtonsDisabled()),t.\u0275\u0275attribute("aria-label",S._intl.firstPageLabel)}}function h(T,U){if(1&T){const S=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",19),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(S);const N=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(N.lastPage())}),t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(1,"svg",7),t.\u0275\u0275element(2,"path",20),t.\u0275\u0275elementEnd()()}if(2&T){const S=t.\u0275\u0275nextContext();t.\u0275\u0275property("matTooltip",S._intl.lastPageLabel)("matTooltipDisabled",S._nextButtonsDisabled())("matTooltipPosition","above")("disabled",S._nextButtonsDisabled()),t.\u0275\u0275attribute("aria-label",S._intl.lastPageLabel)}}let p=(()=>{class T{constructor(){this.changes=new _.B,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(S,R,N)=>{if(0==N||0==R)return`0 of ${N}`;const A=S*R;return`${A+1} \u2013 ${A<(N=Math.max(N,0))?Math.min(A+R,N):A+R} of ${N}`}}static#e=this.\u0275fac=function(R){return new(R||T)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})();function v(T){return T||new p}const y={provide:p,deps:[[new t.Optional,new t.SkipSelf,p]],useFactory:v};class w{}const k=new t.InjectionToken("MAT_PAGINATOR_DEFAULT_OPTIONS");let I=0,D=(()=>{class T{get pageIndex(){return this._pageIndex}set pageIndex(S){this._pageIndex=Math.max(S||0,0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(S){this._length=S||0,this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(S){this._pageSize=Math.max(S||0,0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(S){this._pageSizeOptions=(S||[]).map(R=>(0,t.numberAttribute)(R,0)),this._updateDisplayedPageSizeOptions()}constructor(S,R,N){if(this._intl=S,this._changeDetectorRef=R,this._pageSizeLabelId="mat-paginator-page-size-label-"+I++,this._isInitialized=!1,this._initializedStream=new C.m(1),this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this.hidePageSize=!1,this.showFirstLastButtons=!1,this.selectConfig={},this.disabled=!1,this.page=new t.EventEmitter,this.initialized=this._initializedStream,this._intlChanges=S.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),N){const{pageSize:A,pageSizeOptions:F,hidePageSize:Y,showFirstLastButtons:ee}=N;null!=A&&(this._pageSize=A),null!=F&&(this._pageSizeOptions=F),null!=Y&&(this.hidePageSize=Y),null!=ee&&(this.showFirstLastButtons=ee)}this._formFieldAppearance=N?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const S=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(S)}previousPage(){if(!this.hasPreviousPage())return;const S=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(S)}firstPage(){if(!this.hasPreviousPage())return;const S=this.pageIndex;this.pageIndex=0,this._emitPageEvent(S)}lastPage(){if(!this.hasNextPage())return;const S=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(S)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const S=this.getNumberOfPages()-1;return this.pageIndexS-R),this._changeDetectorRef.markForCheck())}_emitPageEvent(S){this.page.emit({previousPageIndex:S,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}static#e=this.\u0275fac=function(R){return new(R||T)(t.\u0275\u0275directiveInject(p),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(k,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:T,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"pageIndex","pageIndex",t.numberAttribute],length:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"length","length",t.numberAttribute],pageSize:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"pageSize","pageSize",t.numberAttribute],pageSizeOptions:"pageSizeOptions",hidePageSize:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"hidePageSize","hidePageSize",t.booleanAttribute],showFirstLastButtons:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"showFirstLastButtons","showFirstLastButtons",t.booleanAttribute],selectConfig:"selectConfig",disabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",t.booleanAttribute]},outputs:{page:"page"},exportAs:["matPaginator"],standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275StandaloneFeature],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-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-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(R,N){1&R&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1),t.\u0275\u0275template(2,r,5,4,"div",2),t.\u0275\u0275elementStart(3,"div",3)(4,"div",4),t.\u0275\u0275text(5),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(6,u,3,5,"button",5),t.\u0275\u0275elementStart(7,"button",6),t.\u0275\u0275listener("click",function(){return N.previousPage()}),t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(8,"svg",7),t.\u0275\u0275element(9,"path",8),t.\u0275\u0275elementEnd()(),t.\u0275\u0275namespaceHTML(),t.\u0275\u0275elementStart(10,"button",9),t.\u0275\u0275listener("click",function(){return N.nextPage()}),t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(11,"svg",7),t.\u0275\u0275element(12,"path",10),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(13,h,3,5,"button",11),t.\u0275\u0275elementEnd()()()),2&R&&(t.\u0275\u0275advance(2),t.\u0275\u0275conditional(2,N.hidePageSize?-1:2),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",N._intl.getRangeLabel(N.pageIndex,N.pageSize,N.length)," "),t.\u0275\u0275advance(),t.\u0275\u0275conditional(6,N.showFirstLastButtons?6:-1),t.\u0275\u0275advance(),t.\u0275\u0275property("matTooltip",N._intl.previousPageLabel)("matTooltipDisabled",N._previousButtonsDisabled())("matTooltipPosition","above")("disabled",N._previousButtonsDisabled()),t.\u0275\u0275attribute("aria-label",N._intl.previousPageLabel),t.\u0275\u0275advance(3),t.\u0275\u0275property("matTooltip",N._intl.nextPageLabel)("matTooltipDisabled",N._nextButtonsDisabled())("matTooltipPosition","above")("disabled",N._nextButtonsDisabled()),t.\u0275\u0275attribute("aria-label",N._intl.nextPageLabel),t.\u0275\u0275advance(3),t.\u0275\u0275conditional(13,N.showFirstLastButtons?13:-1))},dependencies:[f.MatFormField,c.MatSelect,s.MatOption,E.MatIconButton,b.oV],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking);--mat-form-field-container-height:var(--mat-paginator-form-field-container-height);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return T})(),O=(()=>{class T{static#e=this.\u0275fac=function(R){return new(R||T)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:T});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({providers:[y],imports:[E.MatButtonModule,c.MatSelectModule,b.uc,D]})}return T})()},9183:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS:()=>b,MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY:()=>s,MatProgressSpinner:()=>a,MatProgressSpinnerModule:()=>r,MatSpinner:()=>l});var t=g(4438),_=g(177),C=g(6600);const E=["determinateSpinner"];function c(u,h){if(1&u&&(t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(0,"svg",11),t.\u0275\u0275element(1,"circle",12),t.\u0275\u0275elementEnd()),2&u){const p=t.\u0275\u0275nextContext();t.\u0275\u0275attribute("viewBox",p._viewBox()),t.\u0275\u0275advance(),t.\u0275\u0275styleProp("stroke-dasharray",p._strokeCircumference(),"px")("stroke-dashoffset",p._strokeCircumference()/2,"px")("stroke-width",p._circleStrokeWidth(),"%"),t.\u0275\u0275attribute("r",p._circleRadius())}}const b=new t.InjectionToken("mat-progress-spinner-default-options",{providedIn:"root",factory:s});function s(){return{diameter:f}}const f=100;let a=(()=>{class u{get color(){return this._color||this._defaultColor}set color(p){this._color=p}constructor(p,v,y){this._elementRef=p,this._defaultColor="primary",this._value=0,this._diameter=f,this._noopAnimations="NoopAnimations"===v&&!!y&&!y._forceAnimations,this.mode="mat-spinner"===p.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",y&&(y.color&&(this.color=this._defaultColor=y.color),y.diameter&&(this.diameter=y.diameter),y.strokeWidth&&(this.strokeWidth=y.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(p){this._value=Math.max(0,Math.min(100,p||0))}get diameter(){return this._diameter}set diameter(p){this._diameter=p||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(p){this._strokeWidth=p||0}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const p=2*this._circleRadius()+this.strokeWidth;return`0 0 ${p} ${p}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static#e=this.\u0275fac=function(v){return new(v||u)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8),t.\u0275\u0275directiveInject(b))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:u,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(v,y){if(1&v&&t.\u0275\u0275viewQuery(E,5),2&v){let M;t.\u0275\u0275queryRefresh(M=t.\u0275\u0275loadQuery())&&(y._determinateCircle=M.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(v,y){2&v&&(t.\u0275\u0275attribute("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===y.mode?y.value:null)("mode",y.mode),t.\u0275\u0275classMap("mat-"+y.color),t.\u0275\u0275styleProp("width",y.diameter,"px")("height",y.diameter,"px")("--mdc-circular-progress-size",y.diameter+"px")("--mdc-circular-progress-active-indicator-width",y.diameter+"px"),t.\u0275\u0275classProp("_mat-animation-noopable",y._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===y.mode))},inputs:{color:"color",mode:"mode",value:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"value","value",t.numberAttribute],diameter:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"diameter","diameter",t.numberAttribute],strokeWidth:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"strokeWidth","strokeWidth",t.numberAttribute]},exportAs:["matProgressSpinner"],standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275StandaloneFeature],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(v,y){if(1&v&&(t.\u0275\u0275template(0,c,2,8,"ng-template",null,0,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementStart(2,"div",2,1),t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(4,"svg",3),t.\u0275\u0275element(5,"circle",4),t.\u0275\u0275elementEnd()(),t.\u0275\u0275namespaceHTML(),t.\u0275\u0275elementStart(6,"div",5)(7,"div",6)(8,"div",7),t.\u0275\u0275elementContainer(9,8),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(10,"div",9),t.\u0275\u0275elementContainer(11,8),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(12,"div",10),t.\u0275\u0275elementContainer(13,8),t.\u0275\u0275elementEnd()()()),2&v){const M=t.\u0275\u0275reference(1);t.\u0275\u0275advance(4),t.\u0275\u0275attribute("viewBox",y._viewBox()),t.\u0275\u0275advance(),t.\u0275\u0275styleProp("stroke-dasharray",y._strokeCircumference(),"px")("stroke-dashoffset",y._strokeDashOffset(),"px")("stroke-width",y._circleStrokeWidth(),"%"),t.\u0275\u0275attribute("r",y._circleRadius()),t.\u0275\u0275advance(4),t.\u0275\u0275property("ngTemplateOutlet",M),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngTemplateOutlet",M),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngTemplateOutlet",M)}},dependencies:[_.NgTemplateOutlet],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0})}return u})();const l=a;let r=(()=>{class u{static#e=this.\u0275fac=function(v){return new(v||u)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:u});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[_.CommonModule,C.MatCommonModule]})}return u})()},5951:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_RADIO_DEFAULT_OPTIONS:()=>h,MAT_RADIO_DEFAULT_OPTIONS_FACTORY:()=>p,MAT_RADIO_GROUP:()=>u,MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR:()=>r,MatRadioButton:()=>y,MatRadioChange:()=>l,MatRadioGroup:()=>v,MatRadioModule:()=>M});var t=g(4438),_=g(6600),C=g(6039),E=g(5024),c=g(9417),b=g(177);const s=["input"],f=["formField"],d=["*"];let a=0;class l{constructor(k,I){this.source=k,this.value=I}}const r={provide:c.NG_VALUE_ACCESSOR,useExisting:(0,t.forwardRef)(()=>v),multi:!0},u=new t.InjectionToken("MatRadioGroup"),h=new t.InjectionToken("mat-radio-default-options",{providedIn:"root",factory:p});function p(){return{color:"accent"}}let v=(()=>{class w{get name(){return this._name}set name(I){this._name=I,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(I){this._labelPosition="before"===I?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(I){this._value!==I&&(this._value=I,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(I){this._selected=I,this.value=I?I.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(I){this._disabled=I,this._markRadiosForCheck()}get required(){return this._required}set required(I){this._required=I,this._markRadiosForCheck()}constructor(I){this._changeDetector=I,this._value=null,this._name="mat-radio-group-"+a++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new t.EventEmitter}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(I=>I===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(I=>{I.name=this.name,I._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(D=>{D.checked=this.value===D.value,D.checked&&(this._selected=D)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new l(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(I=>I._markForCheck())}writeValue(I){this.value=I,this._changeDetector.markForCheck()}registerOnChange(I){this._controlValueAccessorChangeFn=I}registerOnTouched(I){this.onTouched=I}setDisabledState(I){this.disabled=I,this._changeDetector.markForCheck()}static#e=this.\u0275fac=function(D){return new(D||w)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:w,selectors:[["mat-radio-group"]],contentQueries:function(D,O,T){if(1&D&&t.\u0275\u0275contentQuery(T,y,5),2&D){let U;t.\u0275\u0275queryRefresh(U=t.\u0275\u0275loadQuery())&&(O._radios=U)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",t.booleanAttribute],required:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"required","required",t.booleanAttribute]},outputs:{change:"change"},exportAs:["matRadioGroup"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([r,{provide:u,useExisting:w}]),t.\u0275\u0275InputTransformsFeature]})}return w})(),y=(()=>{class w{get checked(){return this._checked}set checked(I){this._checked!==I&&(this._checked=I,I&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!I&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),I&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(I){this._value!==I&&(this._value=I,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===I),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(I){this._labelPosition=I}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(I){this._setDisabled(I)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(I){this._required=I}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(I){this._color=I}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(I,D,O,T,U,S,R,N){this._elementRef=D,this._changeDetector=O,this._focusMonitor=T,this._radioDispatcher=U,this._providerOverride=R,this._uniqueId="mat-radio-"+ ++a,this.id=this._uniqueId,this.disableRipple=!1,this.tabIndex=0,this.change=new t.EventEmitter,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=I,this._noopAnimations="NoopAnimations"===S,N&&(this.tabIndex=(0,t.numberAttribute)(N,0))}focus(I,D){D?this._focusMonitor.focusVia(this._inputElement,D,I):this._inputElement.nativeElement.focus(I)}_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),this._removeUniqueSelectionListener=this._radioDispatcher.listen((I,D)=>{I!==this.id&&D===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(I=>{!I&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new l(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(I){I.stopPropagation()}_onInputInteraction(I){if(I.stopPropagation(),!this.checked&&!this.disabled){const D=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),D&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(I){this._onInputInteraction(I),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(I){this._disabled!==I&&(this._disabled=I,this._changeDetector.markForCheck())}_updateTabIndex(){const I=this.radioGroup;let D;if(D=I&&I.selected&&!this.disabled?I.selected===this?this.tabIndex:-1:this.tabIndex,D!==this._previousTabIndex){const O=this._inputElement?.nativeElement;O&&(O.setAttribute("tabindex",D+""),this._previousTabIndex=D)}}static#e=this.\u0275fac=function(D){return new(D||w)(t.\u0275\u0275directiveInject(u,8),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(C.FN),t.\u0275\u0275directiveInject(E.zP),t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8),t.\u0275\u0275directiveInject(h,8),t.\u0275\u0275injectAttribute("tabindex"))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:w,selectors:[["mat-radio-button"]],viewQuery:function(D,O){if(1&D&&(t.\u0275\u0275viewQuery(s,5),t.\u0275\u0275viewQuery(f,7,t.ElementRef)),2&D){let T;t.\u0275\u0275queryRefresh(T=t.\u0275\u0275loadQuery())&&(O._inputElement=T.first),t.\u0275\u0275queryRefresh(T=t.\u0275\u0275loadQuery())&&(O._rippleTrigger=T.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(D,O){1&D&&t.\u0275\u0275listener("focus",function(){return O._inputElement.nativeElement.focus()}),2&D&&(t.\u0275\u0275attribute("id",O.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),t.\u0275\u0275classProp("mat-primary","primary"===O.color)("mat-accent","accent"===O.color)("mat-warn","warn"===O.color)("mat-mdc-radio-checked",O.checked)("_mat-animation-noopable",O._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[t.\u0275\u0275InputFlags.None,"aria-label","ariaLabel"],ariaLabelledby:[t.\u0275\u0275InputFlags.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[t.\u0275\u0275InputFlags.None,"aria-describedby","ariaDescribedby"],disableRipple:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",t.booleanAttribute],tabIndex:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"tabIndex","tabIndex",I=>null==I?0:(0,t.numberAttribute)(I)],checked:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"checked","checked",t.booleanAttribute],value:"value",labelPosition:"labelPosition",disabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",t.booleanAttribute],required:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"required","required",t.booleanAttribute],color:"color"},outputs:{change:"change"},exportAs:["matRadioButton"],standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:d,decls:13,vars:16,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(D,O){if(1&D){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275projectionDef(),t.\u0275\u0275elementStart(0,"div",2,0)(2,"div",3)(3,"div",4),t.\u0275\u0275listener("click",function(S){return t.\u0275\u0275restoreView(T),t.\u0275\u0275resetView(O._onTouchTargetClick(S))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"input",5,1),t.\u0275\u0275listener("change",function(S){return t.\u0275\u0275restoreView(T),t.\u0275\u0275resetView(O._onInputInteraction(S))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"div",6),t.\u0275\u0275element(7,"div",7)(8,"div",8),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(9,"div",9),t.\u0275\u0275element(10,"div",10),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(11,"label",11),t.\u0275\u0275projection(12),t.\u0275\u0275elementEnd()()}2&D&&(t.\u0275\u0275property("labelPosition",O.labelPosition),t.\u0275\u0275advance(2),t.\u0275\u0275classProp("mdc-radio--disabled",O.disabled),t.\u0275\u0275advance(2),t.\u0275\u0275property("id",O.inputId)("checked",O.checked)("disabled",O.disabled)("required",O.required),t.\u0275\u0275attribute("name",O.name)("value",O.value)("aria-label",O.ariaLabel)("aria-labelledby",O.ariaLabelledby)("aria-describedby",O.ariaDescribedby),t.\u0275\u0275advance(5),t.\u0275\u0275property("matRippleTrigger",O._rippleTrigger.nativeElement)("matRippleDisabled",O._isRippleDisabled())("matRippleCentered",!0),t.\u0275\u0275advance(2),t.\u0275\u0275property("for",O.inputId))},dependencies:[_.MatRipple,_._MatInternalFormField],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);right:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);left:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0})}return w})(),M=(()=>{class w{static#e=this.\u0275fac=function(D){return new(D||w)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:w});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[_.MatCommonModule,b.CommonModule,_.MatRippleModule,y,_.MatCommonModule]})}return w})()},2798:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_SELECT_CONFIG:()=>K,MAT_SELECT_SCROLL_STRATEGY:()=>V,MAT_SELECT_SCROLL_STRATEGY_PROVIDER:()=>ce,MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY:()=>W,MAT_SELECT_TRIGGER:()=>ue,MatError:()=>c.MatError,MatFormField:()=>c.MatFormField,MatHint:()=>c.MatHint,MatLabel:()=>c.MatLabel,MatOptgroup:()=>E.MatOptgroup,MatOption:()=>E.MatOption,MatPrefix:()=>c.MatPrefix,MatSelect:()=>Ze,MatSelectChange:()=>be,MatSelectModule:()=>ct,MatSelectTrigger:()=>pt,MatSuffix:()=>c.MatSuffix,matSelectAnimations:()=>ee});var t=g(7987),_=g(177),C=g(4438),E=g(6600),c=g(2102),b=g(5478),s=g(6039),f=g(8203),d=g(5024),a=g(7336),l=g(9417),r=g(1413),u=g(9030),h=g(7786),p=g(9172),v=g(5558),y=g(5964),M=g(6354),w=g(3294),k=g(6977),I=g(6697),D=g(9969);const O=["trigger"],T=["panel"],U=[[["mat-select-trigger"]],"*"],S=["mat-select-trigger","*"];function R(Ct,Ne){if(1&Ct&&(C.\u0275\u0275elementStart(0,"span",4),C.\u0275\u0275text(1),C.\u0275\u0275elementEnd()),2&Ct){const Ae=C.\u0275\u0275nextContext();C.\u0275\u0275advance(),C.\u0275\u0275textInterpolate(Ae.placeholder)}}function N(Ct,Ne){1&Ct&&C.\u0275\u0275projection(0)}function A(Ct,Ne){if(1&Ct&&(C.\u0275\u0275elementStart(0,"span",11),C.\u0275\u0275text(1),C.\u0275\u0275elementEnd()),2&Ct){const Ae=C.\u0275\u0275nextContext(2);C.\u0275\u0275advance(),C.\u0275\u0275textInterpolate(Ae.triggerValue)}}function F(Ct,Ne){if(1&Ct&&(C.\u0275\u0275elementStart(0,"span",10),C.\u0275\u0275template(1,N,1,0)(2,A,2,1),C.\u0275\u0275elementEnd()),2&Ct){const Ae=C.\u0275\u0275nextContext();C.\u0275\u0275advance(),C.\u0275\u0275conditional(1,Ae.customTrigger?1:2)}}function Y(Ct,Ne){if(1&Ct){const Ae=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementStart(0,"div",12,1),C.\u0275\u0275listener("@transformPanel.done",function(We){C.\u0275\u0275restoreView(Ae);const Pe=C.\u0275\u0275nextContext();return C.\u0275\u0275resetView(Pe._panelDoneAnimatingStream.next(We.toState))})("keydown",function(We){C.\u0275\u0275restoreView(Ae);const Pe=C.\u0275\u0275nextContext();return C.\u0275\u0275resetView(Pe._handleKeydown(We))}),C.\u0275\u0275projection(2,1),C.\u0275\u0275elementEnd()}if(2&Ct){const Ae=C.\u0275\u0275nextContext();C.\u0275\u0275classMapInterpolate1("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",Ae._getPanelTheme(),""),C.\u0275\u0275property("ngClass",Ae.panelClass)("@transformPanel","showing"),C.\u0275\u0275attribute("id",Ae.id+"-panel")("aria-multiselectable",Ae.multiple)("aria-label",Ae.ariaLabel||null)("aria-labelledby",Ae._getPanelAriaLabelledby())}}const ee={transformPanelWrap:(0,D.hZ)("transformPanelWrap",[(0,D.kY)("* => void",(0,D.P)("@transformPanel",[(0,D.MA)()],{optional:!0}))]),transformPanel:(0,D.hZ)("transformPanel",[(0,D.wk)("void",(0,D.iF)({opacity:0,transform:"scale(1, 0.8)"})),(0,D.kY)("void => showing",(0,D.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,D.iF)({opacity:1,transform:"scale(1, 1)"}))),(0,D.kY)("* => void",(0,D.i0)("100ms linear",(0,D.iF)({opacity:0})))])};let G=0;const V=new C.InjectionToken("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const Ct=(0,C.inject)(t.hJ);return()=>Ct.scrollStrategies.reposition()}});function W(Ct){return()=>Ct.scrollStrategies.reposition()}const K=new C.InjectionToken("MAT_SELECT_CONFIG"),ce={provide:V,deps:[t.hJ],useFactory:W},ue=new C.InjectionToken("MatSelectTrigger");class be{constructor(Ne,Ae){this.source=Ne,this.value=Ae}}let Ze=(()=>{class Ct{_scrollOptionIntoView(Ae){const fe=this.options.toArray()[Ae];if(fe){const We=this.panel.nativeElement,Pe=(0,E._countGroupLabelsBeforeOption)(Ae,this.options,this.optionGroups),Me=fe._getHostElement();We.scrollTop=0===Ae&&1===Pe?0:(0,E._getOptionScrollPosition)(Me.offsetTop,Me.offsetHeight,We.scrollTop,We.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(Ae){return new be(this,Ae)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(Ae){this._hideSingleSelectionIndicator=Ae,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(Ae){this._placeholder=Ae,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(l.Validators.required)??!1}set required(Ae){this._required=Ae,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(Ae){this._multiple=Ae}get compareWith(){return this._compareWith}set compareWith(Ae){this._compareWith=Ae,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(Ae){this._assignValue(Ae)&&this._onChange(Ae)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(Ae){this._errorStateTracker.matcher=Ae}get id(){return this._id}set id(Ae){this._id=Ae||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(Ae){this._errorStateTracker.errorState=Ae}constructor(Ae,fe,We,Pe,Me,$e,q,_e,Oe,vt,rt,we,Ge,De){this._viewportRuler=Ae,this._changeDetectorRef=fe,this._elementRef=Me,this._dir=$e,this._parentFormField=Oe,this.ngControl=vt,this._liveAnnouncer=Ge,this._defaultOptions=De,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(ot,xt)=>ot===xt,this._uid="mat-select-"+G++,this._triggerAriaLabelledBy=null,this._destroy=new r.B,this.stateChanges=new r.B,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+G++,this._panelDoneAnimatingStream=new r.B,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new r.B,this.optionSelectionChanges=(0,u.v)(()=>{const ot=this.options;return ot?ot.changes.pipe((0,p.Z)(ot),(0,v.n)(()=>(0,h.h)(...ot.map(xt=>xt.onSelectionChange)))):this._initialized.pipe((0,v.n)(()=>this.optionSelectionChanges))}),this.openedChange=new C.EventEmitter,this._openedStream=this.openedChange.pipe((0,y.p)(ot=>ot),(0,M.T)(()=>{})),this._closedStream=this.openedChange.pipe((0,y.p)(ot=>!ot),(0,M.T)(()=>{})),this.selectionChange=new C.EventEmitter,this.valueChange=new C.EventEmitter,this._trackedModal=null,this._skipPredicate=ot=>!this.panelOpen&&ot.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),null!=De?.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=De.typeaheadDebounceInterval),this._errorStateTracker=new E._ErrorStateTracker(Pe,vt,_e,q,this.stateChanges),this._scrollStrategyFactory=we,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(rt)||0,this.id=this.id}ngOnInit(){this._selectionModel=new d.CB(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,w.F)(),(0,k.Q)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe((0,k.Q)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe((0,k.Q)(this._destroy)).subscribe(Ae=>{Ae.added.forEach(fe=>fe.select()),Ae.removed.forEach(fe=>fe.deselect())}),this.options.changes.pipe((0,p.Z)(null),(0,k.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const Ae=this._getTriggerAriaLabelledby(),fe=this.ngControl;if(Ae!==this._triggerAriaLabelledBy){const We=this._elementRef.nativeElement;this._triggerAriaLabelledBy=Ae,Ae?We.setAttribute("aria-labelledby",Ae):We.removeAttribute("aria-labelledby")}fe&&(this._previousControl!==fe.control&&(void 0!==this._previousControl&&null!==fe.disabled&&fe.disabled!==this.disabled&&(this.disabled=fe.disabled),this._previousControl=fe.control),this.updateErrorState())}ngOnChanges(Ae){(Ae.disabled||Ae.userAriaDescribedBy)&&this.stateChanges.next(),Ae.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){const Ae=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!Ae)return;const fe=`${this.id}-panel`;this._trackedModal&&(0,s.Ae)(this._trackedModal,"aria-owns",fe),(0,s.px)(Ae,"aria-owns",fe),this._trackedModal=Ae}_clearFromModal(){this._trackedModal&&((0,s.Ae)(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(Ae){this._assignValue(Ae)}registerOnChange(Ae){this._onChange=Ae}registerOnTouched(Ae){this._onTouched=Ae}setDisabledState(Ae){this.disabled=Ae,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const Ae=this._selectionModel.selected.map(fe=>fe.viewValue);return this._isRtl()&&Ae.reverse(),Ae.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(Ae){this.disabled||(this.panelOpen?this._handleOpenKeydown(Ae):this._handleClosedKeydown(Ae))}_handleClosedKeydown(Ae){const fe=Ae.keyCode,We=fe===a.n6||fe===a.i7||fe===a.UQ||fe===a.LE,Pe=fe===a.Fm||fe===a.t6,Me=this._keyManager;if(!Me.isTyping()&&Pe&&!(0,a.rp)(Ae)||(this.multiple||Ae.altKey)&&We)Ae.preventDefault(),this.open();else if(!this.multiple){const $e=this.selected;Me.onKeydown(Ae);const q=this.selected;q&&$e!==q&&this._liveAnnouncer.announce(q.viewValue,1e4)}}_handleOpenKeydown(Ae){const fe=this._keyManager,We=Ae.keyCode,Pe=We===a.n6||We===a.i7,Me=fe.isTyping();if(Pe&&Ae.altKey)Ae.preventDefault(),this.close();else if(Me||We!==a.Fm&&We!==a.t6||!fe.activeItem||(0,a.rp)(Ae))if(!Me&&this._multiple&&We===a.A&&Ae.ctrlKey){Ae.preventDefault();const $e=this.options.some(q=>!q.disabled&&!q.selected);this.options.forEach(q=>{q.disabled||($e?q.select():q.deselect())})}else{const $e=fe.activeItemIndex;fe.onKeydown(Ae),this._multiple&&Pe&&Ae.shiftKey&&fe.activeItem&&fe.activeItemIndex!==$e&&fe.activeItem._selectViaInteraction()}else Ae.preventDefault(),fe.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,I.s)(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.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(Ae){if(this.options.forEach(fe=>fe.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&Ae)Array.isArray(Ae),Ae.forEach(fe=>this._selectOptionByValue(fe)),this._sortValues();else{const fe=this._selectOptionByValue(Ae);fe?this._keyManager.updateActiveItem(fe):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(Ae){const fe=this.options.find(We=>{if(this._selectionModel.isSelected(We))return!1;try{return null!=We.value&&this._compareWith(We.value,Ae)}catch{return!1}});return fe&&this._selectionModel.select(fe),fe}_assignValue(Ae){return!!(Ae!==this._value||this._multiple&&Array.isArray(Ae))&&(this.options&&this._setSelectionByValue(Ae),this._value=Ae,!0)}_getOverlayWidth(Ae){return"auto"===this.panelWidth?(Ae instanceof t.$Q?Ae.elementRef:Ae||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const Ae of this.options)Ae._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new s.Au(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const Ae=(0,h.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,k.Q)(Ae)).subscribe(fe=>{this._onSelect(fe.source,fe.isUserInput),fe.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,h.h)(...this.options.map(fe=>fe._stateChanges)).pipe((0,k.Q)(Ae)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(Ae,fe){const We=this._selectionModel.isSelected(Ae);null!=Ae.value||this._multiple?(We!==Ae.selected&&(Ae.selected?this._selectionModel.select(Ae):this._selectionModel.deselect(Ae)),fe&&this._keyManager.setActiveItem(Ae),this.multiple&&(this._sortValues(),fe&&this.focus())):(Ae.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(Ae.value)),We!==this._selectionModel.isSelected(Ae)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const Ae=this.options.toArray();this._selectionModel.sort((fe,We)=>this.sortComparator?this.sortComparator(fe,We,Ae):Ae.indexOf(fe)-Ae.indexOf(We)),this.stateChanges.next()}}_propagateChanges(Ae){let fe;fe=this.multiple?this.selected.map(We=>We.value):this.selected?this.selected.value:Ae,this._value=fe,this.valueChange.emit(fe),this._onChange(fe),this.selectionChange.emit(this._getChangeEvent(fe)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let Ae=-1;for(let fe=0;fe0}focus(Ae){this._elementRef.nativeElement.focus(Ae)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const Ae=this._parentFormField?.getLabelId();return this.ariaLabelledby?(Ae?Ae+" ":"")+this.ariaLabelledby:Ae}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const Ae=this._parentFormField?.getLabelId();let fe=(Ae?Ae+" ":"")+this._valueId;return this.ariaLabelledby&&(fe+=" "+this.ariaLabelledby),fe}_panelDoneAnimating(Ae){this.openedChange.emit(Ae)}setDescribedByIds(Ae){Ae.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Ae.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static#e=this.\u0275fac=function(fe){return new(fe||Ct)(C.\u0275\u0275directiveInject(b.Xj),C.\u0275\u0275directiveInject(C.ChangeDetectorRef),C.\u0275\u0275directiveInject(C.NgZone),C.\u0275\u0275directiveInject(E.ErrorStateMatcher),C.\u0275\u0275directiveInject(C.ElementRef),C.\u0275\u0275directiveInject(f.dS,8),C.\u0275\u0275directiveInject(l.NgForm,8),C.\u0275\u0275directiveInject(l.FormGroupDirective,8),C.\u0275\u0275directiveInject(c.MAT_FORM_FIELD,8),C.\u0275\u0275directiveInject(l.NgControl,10),C.\u0275\u0275injectAttribute("tabindex"),C.\u0275\u0275directiveInject(V),C.\u0275\u0275directiveInject(s.Ai),C.\u0275\u0275directiveInject(K,8))};static#t=this.\u0275cmp=C.\u0275\u0275defineComponent({type:Ct,selectors:[["mat-select"]],contentQueries:function(fe,We,Pe){if(1&fe&&(C.\u0275\u0275contentQuery(Pe,ue,5),C.\u0275\u0275contentQuery(Pe,E.MatOption,5),C.\u0275\u0275contentQuery(Pe,E.MAT_OPTGROUP,5)),2&fe){let Me;C.\u0275\u0275queryRefresh(Me=C.\u0275\u0275loadQuery())&&(We.customTrigger=Me.first),C.\u0275\u0275queryRefresh(Me=C.\u0275\u0275loadQuery())&&(We.options=Me),C.\u0275\u0275queryRefresh(Me=C.\u0275\u0275loadQuery())&&(We.optionGroups=Me)}},viewQuery:function(fe,We){if(1&fe&&(C.\u0275\u0275viewQuery(O,5),C.\u0275\u0275viewQuery(T,5),C.\u0275\u0275viewQuery(t.WB,5)),2&fe){let Pe;C.\u0275\u0275queryRefresh(Pe=C.\u0275\u0275loadQuery())&&(We.trigger=Pe.first),C.\u0275\u0275queryRefresh(Pe=C.\u0275\u0275loadQuery())&&(We.panel=Pe.first),C.\u0275\u0275queryRefresh(Pe=C.\u0275\u0275loadQuery())&&(We._overlayDir=Pe.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(fe,We){1&fe&&C.\u0275\u0275listener("keydown",function(Me){return We._handleKeydown(Me)})("focus",function(){return We._onFocus()})("blur",function(){return We._onBlur()}),2&fe&&(C.\u0275\u0275attribute("id",We.id)("tabindex",We.disabled?-1:We.tabIndex)("aria-controls",We.panelOpen?We.id+"-panel":null)("aria-expanded",We.panelOpen)("aria-label",We.ariaLabel||null)("aria-required",We.required.toString())("aria-disabled",We.disabled.toString())("aria-invalid",We.errorState)("aria-activedescendant",We._getAriaActiveDescendant()),C.\u0275\u0275classProp("mat-mdc-select-disabled",We.disabled)("mat-mdc-select-invalid",We.errorState)("mat-mdc-select-required",We.required)("mat-mdc-select-empty",We.empty)("mat-mdc-select-multiple",We.multiple))},inputs:{userAriaDescribedBy:[C.\u0275\u0275InputFlags.None,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",C.booleanAttribute],disableRipple:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",C.booleanAttribute],tabIndex:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"tabIndex","tabIndex",Ae=>null==Ae?0:(0,C.numberAttribute)(Ae)],hideSingleSelectionIndicator:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",C.booleanAttribute],placeholder:"placeholder",required:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"required","required",C.booleanAttribute],multiple:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"multiple","multiple",C.booleanAttribute],disableOptionCentering:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableOptionCentering","disableOptionCentering",C.booleanAttribute],compareWith:"compareWith",value:"value",ariaLabel:[C.\u0275\u0275InputFlags.None,"aria-label","ariaLabel"],ariaLabelledby:[C.\u0275\u0275InputFlags.None,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"typeaheadDebounceInterval","typeaheadDebounceInterval",C.numberAttribute],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[C.\u0275\u0275ProvidersFeature([{provide:c.MatFormFieldControl,useExisting:Ct},{provide:E.MAT_OPTION_PARENT_COMPONENT,useExisting:Ct}]),C.\u0275\u0275InputTransformsFeature,C.\u0275\u0275NgOnChangesFeature,C.\u0275\u0275StandaloneFeature],ngContentSelectors:S,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(fe,We){if(1&fe){const Pe=C.\u0275\u0275getCurrentView();C.\u0275\u0275projectionDef(U),C.\u0275\u0275elementStart(0,"div",2,0),C.\u0275\u0275listener("click",function(){return C.\u0275\u0275restoreView(Pe),C.\u0275\u0275resetView(We.open())}),C.\u0275\u0275elementStart(3,"div",3),C.\u0275\u0275template(4,R,2,1,"span",4)(5,F,3,1),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(6,"div",5)(7,"div",6),C.\u0275\u0275namespaceSVG(),C.\u0275\u0275elementStart(8,"svg",7),C.\u0275\u0275element(9,"path",8),C.\u0275\u0275elementEnd()()()(),C.\u0275\u0275template(10,Y,3,9,"ng-template",9),C.\u0275\u0275listener("backdropClick",function(){return C.\u0275\u0275restoreView(Pe),C.\u0275\u0275resetView(We.close())})("attach",function(){return C.\u0275\u0275restoreView(Pe),C.\u0275\u0275resetView(We._onAttached())})("detach",function(){return C.\u0275\u0275restoreView(Pe),C.\u0275\u0275resetView(We.close())})}if(2&fe){const Pe=C.\u0275\u0275reference(1);C.\u0275\u0275advance(3),C.\u0275\u0275attribute("id",We._valueId),C.\u0275\u0275advance(),C.\u0275\u0275conditional(4,We.empty?4:5),C.\u0275\u0275advance(6),C.\u0275\u0275property("cdkConnectedOverlayPanelClass",We._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",We._scrollStrategy)("cdkConnectedOverlayOrigin",We._preferredOverlayOrigin||Pe)("cdkConnectedOverlayOpen",We.panelOpen)("cdkConnectedOverlayPositions",We._positions)("cdkConnectedOverlayWidth",We._overlayWidth)}},dependencies:[t.$Q,t.WB,_.NgClass],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[ee.transformPanel]},changeDetection:0})}return Ct})(),pt=(()=>{class Ct{static#e=this.\u0275fac=function(fe){return new(fe||Ct)};static#t=this.\u0275dir=C.\u0275\u0275defineDirective({type:Ct,selectors:[["mat-select-trigger"]],standalone:!0,features:[C.\u0275\u0275ProvidersFeature([{provide:ue,useExisting:Ct}])]})}return Ct})(),ct=(()=>{class Ct{static#e=this.\u0275fac=function(fe){return new(fe||Ct)};static#t=this.\u0275mod=C.\u0275\u0275defineNgModule({type:Ct});static#n=this.\u0275inj=C.\u0275\u0275defineInjector({providers:[ce],imports:[_.CommonModule,t.z_,E.MatOptionModule,E.MatCommonModule,b.Gj,c.MatFormFieldModule,E.MatOptionModule,E.MatCommonModule]})}return Ct})()},450:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS:()=>f,MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR:()=>u,MAT_SLIDE_TOGGLE_VALUE_ACCESSOR:()=>d,MatSlideToggle:()=>r,MatSlideToggleChange:()=>a,MatSlideToggleModule:()=>v,MatSlideToggleRequiredValidator:()=>h,_MatSlideToggleRequiredValidatorModule:()=>p});var t=g(4438),_=g(9417),C=g(6039),E=g(6600);const c=["switch"],b=["*"];function s(y,M){1&y&&(t.\u0275\u0275elementStart(0,"div",10),t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(1,"svg",12),t.\u0275\u0275element(2,"path",13),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"svg",14),t.\u0275\u0275element(4,"path",15),t.\u0275\u0275elementEnd()())}const f=new t.InjectionToken("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),d={provide:_.NG_VALUE_ACCESSOR,useExisting:(0,t.forwardRef)(()=>r),multi:!0};class a{constructor(M,w){this.source=M,this.checked=w}}let l=0,r=(()=>{class y{_createChangeEvent(w){return new a(this,w)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(w){this._checked=w,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(w,k,I,D,O,T){this._elementRef=w,this._focusMonitor=k,this._changeDetectorRef=I,this.defaults=O,this._onChange=U=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new t.EventEmitter,this.toggleChange=new t.EventEmitter,this.tabIndex=parseInt(D)||0,this.color=O.color||"accent",this._noopAnimations="NoopAnimations"===T,this.id=this._uniqueId="mat-mdc-slide-toggle-"+ ++l,this.hideIcon=O.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(w=>{"keyboard"===w||"program"===w?(this._focused=!0,this._changeDetectorRef.markForCheck()):w||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(w){w.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(w){this.checked=!!w}registerOnChange(w){this._onChange=w}registerOnTouched(w){this._onTouched=w}validate(w){return this.required&&!0!==w.value?{required:!0}:null}registerOnValidatorChange(w){this._validatorOnChange=w}setDisabledState(w){this.disabled=w,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new a(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static#e=this.\u0275fac=function(k){return new(k||y)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(C.FN),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275injectAttribute("tabindex"),t.\u0275\u0275directiveInject(f),t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:y,selectors:[["mat-slide-toggle"]],viewQuery:function(k,I){if(1&k&&t.\u0275\u0275viewQuery(c,5),2&k){let D;t.\u0275\u0275queryRefresh(D=t.\u0275\u0275loadQuery())&&(I._switchElement=D.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(k,I){2&k&&(t.\u0275\u0275hostProperty("id",I.id),t.\u0275\u0275attribute("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),t.\u0275\u0275classMap(I.color?"mat-"+I.color:""),t.\u0275\u0275classProp("mat-mdc-slide-toggle-focused",I._focused)("mat-mdc-slide-toggle-checked",I.checked)("_mat-animation-noopable",I._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[t.\u0275\u0275InputFlags.None,"aria-label","ariaLabel"],ariaLabelledby:[t.\u0275\u0275InputFlags.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[t.\u0275\u0275InputFlags.None,"aria-describedby","ariaDescribedby"],required:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"required","required",t.booleanAttribute],color:"color",disabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",t.booleanAttribute],disableRipple:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",t.booleanAttribute],tabIndex:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"tabIndex","tabIndex",w=>null==w?0:(0,t.numberAttribute)(w)],checked:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"checked","checked",t.booleanAttribute],hideIcon:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"hideIcon","hideIcon",t.booleanAttribute]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([d,{provide:_.NG_VALIDATORS,useExisting:y,multi:!0}]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275NgOnChangesFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:b,decls:13,vars:24,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(k,I){if(1&k){const D=t.\u0275\u0275getCurrentView();t.\u0275\u0275projectionDef(),t.\u0275\u0275elementStart(0,"div",1)(1,"button",2,0),t.\u0275\u0275listener("click",function(){return t.\u0275\u0275restoreView(D),t.\u0275\u0275resetView(I._handleClick())}),t.\u0275\u0275element(3,"div",3),t.\u0275\u0275elementStart(4,"div",4)(5,"div",5)(6,"div",6),t.\u0275\u0275element(7,"div",7),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(8,"div",8),t.\u0275\u0275element(9,"div",9),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(10,s,5,0,"div",10),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(11,"label",11),t.\u0275\u0275listener("click",function(T){return t.\u0275\u0275restoreView(D),t.\u0275\u0275resetView(T.stopPropagation())}),t.\u0275\u0275projection(12),t.\u0275\u0275elementEnd()()}if(2&k){const D=t.\u0275\u0275reference(2);t.\u0275\u0275property("labelPosition",I.labelPosition),t.\u0275\u0275advance(),t.\u0275\u0275classProp("mdc-switch--selected",I.checked)("mdc-switch--unselected",!I.checked)("mdc-switch--checked",I.checked)("mdc-switch--disabled",I.disabled),t.\u0275\u0275property("tabIndex",I.disabled?-1:I.tabIndex)("disabled",I.disabled),t.\u0275\u0275attribute("id",I.buttonId)("name",I.name)("aria-label",I.ariaLabel)("aria-labelledby",I._getAriaLabelledBy())("aria-describedby",I.ariaDescribedby)("aria-required",I.required||null)("aria-checked",I.checked),t.\u0275\u0275advance(8),t.\u0275\u0275property("matRippleTrigger",D)("matRippleDisabled",I.disableRipple||I.disabled)("matRippleCentered",!0),t.\u0275\u0275advance(),t.\u0275\u0275conditional(10,I.hideIcon?-1:10),t.\u0275\u0275advance(),t.\u0275\u0275property("for",I.buttonId),t.\u0275\u0275attribute("id",I._labelId)}},dependencies:[E.MatRipple,E._MatInternalFormField],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}.mdc-switch{width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mdc-switch__handle{transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle:active .mdc-switch:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--selected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--unselected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch__track::after,.mdc-switch__track::before{border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color)}.mdc-switch--selected .mdc-switch__track::after,.mdc-switch--selected .mdc-switch__track::before{border-width:var(--mat-switch-selected-track-outline-width)}.mdc-switch--disabled .mdc-switch__track::after,.mdc-switch--disabled .mdc-switch__track::before{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}'],encapsulation:2,changeDetection:0})}return y})();const u={provide:_.NG_VALIDATORS,useExisting:(0,t.forwardRef)(()=>h),multi:!0};let h=(()=>{class y extends _.CheckboxRequiredValidator{static#e=this.\u0275fac=(()=>{let w;return function(I){return(w||(w=t.\u0275\u0275getInheritedFactory(y)))(I||y)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:y,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([u]),t.\u0275\u0275InheritDefinitionFeature]})}return y})(),p=(()=>{class y{static#e=this.\u0275fac=function(k){return new(k||y)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:y});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({})}return y})(),v=(()=>{class y{static#e=this.\u0275fac=function(k){return new(k||y)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:y});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[r,E.MatCommonModule,E.MatCommonModule]})}return y})()},3881:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MatSlider:()=>T,MatSliderChange:()=>D,MatSliderModule:()=>Y,MatSliderRangeThumb:()=>F,MatSliderThumb:()=>A,MatSliderVisualThumb:()=>O});var t=g(8203),_=g(6860),C=g(4438),E=g(6600),c=g(9417),b=g(1413);const s=["knob"],f=["valueIndicatorContainer"];function d(ee,ie){if(1&ee&&(C.\u0275\u0275elementStart(0,"div",2,1)(2,"div",5)(3,"span",6),C.\u0275\u0275text(4),C.\u0275\u0275elementEnd()()()),2&ee){const $=C.\u0275\u0275nextContext();C.\u0275\u0275advance(4),C.\u0275\u0275textInterpolate($.valueIndicatorText)}}const a=["trackActive"],l=["*"];function r(ee,ie){if(1&ee&&C.\u0275\u0275element(0,"div"),2&ee){const $=ie.$implicit,j=ie.$index,G=C.\u0275\u0275nextContext(3);C.\u0275\u0275classMap(0===$?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),C.\u0275\u0275styleProp("transform",G._calcTickMarkTransform(j))}}function u(ee,ie){if(1&ee&&C.\u0275\u0275repeaterCreate(0,r,1,4,"div",8,C.\u0275\u0275repeaterTrackByIdentity),2&ee){const $=C.\u0275\u0275nextContext(2);C.\u0275\u0275repeater($._tickMarks)}}function h(ee,ie){if(1&ee&&(C.\u0275\u0275elementStart(0,"div",6,1),C.\u0275\u0275template(2,u,2,0),C.\u0275\u0275elementEnd()),2&ee){const $=C.\u0275\u0275nextContext();C.\u0275\u0275advance(2),C.\u0275\u0275conditional(2,$._cachedWidth?2:-1)}}function p(ee,ie){if(1&ee&&C.\u0275\u0275element(0,"mat-slider-visual-thumb",7),2&ee){const $=C.\u0275\u0275nextContext();C.\u0275\u0275property("discrete",$.discrete)("thumbPosition",1)("valueIndicatorText",$.startValueIndicatorText)}}var v=function(ee){return ee[ee.START=1]="START",ee[ee.END=2]="END",ee}(v||{}),y=function(ee){return ee[ee.ACTIVE=0]="ACTIVE",ee[ee.INACTIVE=1]="INACTIVE",ee}(y||{});const M=new C.InjectionToken("_MatSlider"),w=new C.InjectionToken("_MatSliderThumb"),k=new C.InjectionToken("_MatSliderRangeThumb"),I=new C.InjectionToken("_MatSliderVisualThumb");class D{}let O=(()=>{class ee{constructor($,j,G,V){this._cdr=$,this._ngZone=j,this._slider=V,this._isHovered=!1,this._isActive=!1,this._isValueIndicatorVisible=!1,this._platform=(0,C.inject)(_.OD),this._onPointerMove=W=>{if(this._sliderInput._isFocused)return;const K=this._hostElement.getBoundingClientRect(),ce=this._slider._isCursorOnSliderThumb(W,K);this._isHovered=ce,ce?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)},this._onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)},this._onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")},this._onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")},this._onDragStart=W=>{0===W.button&&(this._isActive=!0,this._showActiveRipple())},this._onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef),this._platform.SAFARI&&this._showHoverRipple()},this._hostElement=G.nativeElement}ngAfterViewInit(){this._ripple.radius=24,this._sliderInput=this._slider._getInput(this.thumbPosition),this._sliderInputEl=this._sliderInput._hostElement;const $=this._sliderInputEl;this._ngZone.runOutsideAngular(()=>{$.addEventListener("pointermove",this._onPointerMove),$.addEventListener("pointerdown",this._onDragStart),$.addEventListener("pointerup",this._onDragEnd),$.addEventListener("pointerleave",this._onMouseLeave),$.addEventListener("focus",this._onFocus),$.addEventListener("blur",this._onBlur)})}ngOnDestroy(){const $=this._sliderInputEl;$&&($.removeEventListener("pointermove",this._onPointerMove),$.removeEventListener("pointerdown",this._onDragStart),$.removeEventListener("pointerup",this._onDragEnd),$.removeEventListener("pointerleave",this._onMouseLeave),$.removeEventListener("focus",this._onFocus),$.removeEventListener("blur",this._onBlur))}_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple($){return $?.state===E.RippleState.FADING_IN||$?.state===E.RippleState.VISIBLE}_showRipple($,j){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(this.thumbPosition===v.START?v.END:v.START)._showValueIndicator(),!this._slider._globalRippleOptions?.disabled||j))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:$,centered:!0,persistent:!0})}_hideRipple($){if($?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();const j=this._getSibling();j._isShowingAnyRipple()||(this._hideValueIndicator(),j._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(this.thumbPosition===v.START?v.END:v.START)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}static#e=this.\u0275fac=function(j){return new(j||ee)(C.\u0275\u0275directiveInject(C.ChangeDetectorRef),C.\u0275\u0275directiveInject(C.NgZone),C.\u0275\u0275directiveInject(C.ElementRef),C.\u0275\u0275directiveInject(M))};static#t=this.\u0275cmp=C.\u0275\u0275defineComponent({type:ee,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(j,G){if(1&j&&(C.\u0275\u0275viewQuery(E.MatRipple,5),C.\u0275\u0275viewQuery(s,5),C.\u0275\u0275viewQuery(f,5)),2&j){let V;C.\u0275\u0275queryRefresh(V=C.\u0275\u0275loadQuery())&&(G._ripple=V.first),C.\u0275\u0275queryRefresh(V=C.\u0275\u0275loadQuery())&&(G._knob=V.first),C.\u0275\u0275queryRefresh(V=C.\u0275\u0275loadQuery())&&(G._valueIndicatorContainer=V.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},standalone:!0,features:[C.\u0275\u0275ProvidersFeature([{provide:I,useExisting:ee}]),C.\u0275\u0275StandaloneFeature],decls:4,vars:2,consts:[["knob",""],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator-container"],[1,"mdc-slider__thumb-knob"],["matRipple","",1,"mat-mdc-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(j,G){1&j&&(C.\u0275\u0275template(0,d,5,1,"div",2),C.\u0275\u0275element(1,"div",3,0)(3,"div",4)),2&j&&(C.\u0275\u0275conditional(0,G.discrete?0:-1),C.\u0275\u0275advance(3),C.\u0275\u0275property("matRippleDisabled",!0))},dependencies:[E.MatRipple],styles:[".mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}"],encapsulation:2,changeDetection:0})}return ee})(),T=(()=>{class ee{get disabled(){return this._disabled}set disabled($){this._disabled=$;const j=this._getInput(v.END),G=this._getInput(v.START);j&&(j.disabled=this._disabled),G&&(G.disabled=this._disabled)}get discrete(){return this._discrete}set discrete($){this._discrete=$,this._updateValueIndicatorUIs()}get min(){return this._min}set min($){const j=isNaN($)?this._min:$;this._min!==j&&this._updateMin(j)}_updateMin($){const j=this._min;this._min=$,this._isRange?this._updateMinRange({old:j,new:$}):this._updateMinNonRange($),this._onMinMaxOrStepChange()}_updateMinRange($){const j=this._getInput(v.END),G=this._getInput(v.START),V=j.value,W=G.value;G.min=$.new,j.min=Math.max($.new,G.value),G.max=Math.min(j.max,j.value),G._updateWidthInactive(),j._updateWidthInactive(),$.new<$.old?this._onTranslateXChangeBySideEffect(j,G):this._onTranslateXChangeBySideEffect(G,j),V!==j.value&&this._onValueChange(j),W!==G.value&&this._onValueChange(G)}_updateMinNonRange($){const j=this._getInput(v.END);if(j){const G=j.value;j.min=$,j._updateThumbUIByValue(),this._updateTrackUI(j),G!==j.value&&this._onValueChange(j)}}get max(){return this._max}set max($){const j=isNaN($)?this._max:$;this._max!==j&&this._updateMax(j)}_updateMax($){const j=this._max;this._max=$,this._isRange?this._updateMaxRange({old:j,new:$}):this._updateMaxNonRange($),this._onMinMaxOrStepChange()}_updateMaxRange($){const j=this._getInput(v.END),G=this._getInput(v.START),V=j.value,W=G.value;j.max=$.new,G.max=Math.min($.new,j.value),j.min=G.value,j._updateWidthInactive(),G._updateWidthInactive(),$.new>$.old?this._onTranslateXChangeBySideEffect(G,j):this._onTranslateXChangeBySideEffect(j,G),V!==j.value&&this._onValueChange(j),W!==G.value&&this._onValueChange(G)}_updateMaxNonRange($){const j=this._getInput(v.END);if(j){const G=j.value;j.max=$,j._updateThumbUIByValue(),this._updateTrackUI(j),G!==j.value&&this._onValueChange(j)}}get step(){return this._step}set step($){const j=isNaN($)?this._step:$;this._step!==j&&this._updateStep(j)}_updateStep($){this._step=$,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange()}_updateStepRange(){const $=this._getInput(v.END),j=this._getInput(v.START),G=$.value,V=j.value,W=j.value;$.min=this._min,j.max=this._max,$.step=this._step,j.step=this._step,this._platform.SAFARI&&($.value=$.value,j.value=j.value),$.min=Math.max(this._min,j.value),j.max=Math.min(this._max,$.value),j._updateWidthInactive(),$._updateWidthInactive(),$.value`${ce}`,this._rippleRadius=24,this.startValueIndicatorText="",this.endValueIndicatorText="",this._isRange=!1,this._isRtl=!1,this._hasViewInitialized=!1,this._tickMarkTrackWidth=0,this._hasAnimation=!1,this._resizeTimer=null,this._platform=(0,C.inject)(_.OD),this._knobRadius=8,this._thumbsOverlap=!1,this._noopAnimations="NoopAnimations"===K,this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl="rtl"===this._dir.value}ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();const $=this._getInput(v.END),j=this._getInput(v.START);this._isRange=!!$&&!!j,this._cdr.detectChanges();const G=this._getThumb(v.END);this._rippleRadius=G._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._isRange?this._initUIRange($,j):this._initUINonRange($),this._updateTrackUI($),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges()}_initUINonRange($){$.initProps(),$.initUI(),this._updateValueIndicatorUI($),this._hasViewInitialized=!0,$._updateThumbUIByValue()}_initUIRange($,j){$.initProps(),$.initUI(),j.initProps(),j.initUI(),$._updateMinMax(),j._updateMinMax(),$._updateStaticStyles(),j._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,$._updateThumbUIByValue(),j._updateThumbUIByValue()}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null}_onDirChange(){this._isRtl="rtl"===this._dir.value,this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI()}_onDirChangeRange(){const $=this._getInput(v.END),j=this._getInput(v.START);$._setIsLeftThumb(),j._setIsLeftThumb(),$.translateX=$._calcTranslateXByValue(),j.translateX=j._calcTranslateXByValue(),$._updateStaticStyles(),j._updateStaticStyles(),$._updateWidthInactive(),j._updateWidthInactive(),$._updateThumbUIByValue(),j._updateThumbUIByValue()}_onDirChangeNonRange(){this._getInput(v.END)._updateThumbUIByValue()}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize())}),this._resizeObserver.observe(this._elementRef.nativeElement)})}_isActive(){return this._getThumb(v.START)._isActive||this._getThumb(v.END)._isActive}_getValue($=v.END){const j=this._getInput($);return j?j.value:this.min}_skipUpdate(){return!(!this._getInput(v.START)?._skipUIUpdate&&!this._getInput(v.END)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left}_setTrackActiveStyles($){const j=this._trackActive.nativeElement.style;j.left=$.left,j.right=$.right,j.transformOrigin=$.transformOrigin,j.transform=$.transform}_calcTickMarkTransform($){return`translateX(${$*(this._tickMarkTrackWidth/(this._tickMarks.length-1))}px`}_onTranslateXChange($){this._hasViewInitialized&&(this._updateThumbUI($),this._updateTrackUI($),this._updateOverlappingThumbUI($))}_onTranslateXChangeBySideEffect($,j){this._hasViewInitialized&&($._updateThumbUIByValue(),j._updateThumbUIByValue())}_onValueChange($){this._hasViewInitialized&&(this._updateValueIndicatorUI($),this._updateTickMarkUI(),this._cdr.detectChanges())}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){const $=this._getInput(v.END),j=this._getInput(v.START);$._updateThumbUIByValue(),j._updateThumbUIByValue(),$._updateStaticStyles(),j._updateStaticStyles(),$._updateMinMax(),j._updateMinMax(),$._updateWidthInactive(),j._updateWidthInactive()}else{const $=this._getInput(v.END);$&&$._updateThumbUIByValue()}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges()}}_areThumbsOverlapping(){const $=this._getInput(v.START),j=this._getInput(v.END);return!(!$||!j)&&j.translateX-$.translateX<20}_updateOverlappingThumbClassNames($){const j=$.getSibling(),G=this._getThumb($.thumbPosition);this._getThumb(j.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),G._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)}_updateOverlappingThumbUI($){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames($))}_updateThumbUI($){this._skipUpdate()||(this._getThumb($.thumbPosition===v.END?v.END:v.START)._hostElement.style.transform=`translateX(${$.translateX}px)`)}_updateValueIndicatorUI($){if(this._skipUpdate())return;const j=this.displayWith($.value);if(this._hasViewInitialized?$._valuetext=j:$._hostElement.setAttribute("aria-valuetext",j),this.discrete){$.thumbPosition===v.START?this.startValueIndicatorText=j:this.endValueIndicatorText=j;const G=this._getThumb($.thumbPosition);j.length<3?G._hostElement.classList.add("mdc-slider__thumb--short-value"):G._hostElement.classList.remove("mdc-slider__thumb--short-value")}}_updateValueIndicatorUIs(){const $=this._getInput(v.END),j=this._getInput(v.START);$&&this._updateValueIndicatorUI($),j&&this._updateValueIndicatorUI(j)}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;const $=this._step&&this._step>0?this._step:1,G=(Math.floor(this.max/$)*$-this.min)/(this.max-this.min);this._tickMarkTrackWidth=this._cachedWidth*G-6}_updateTrackUI($){this._skipUpdate()||(this._isRange?this._updateTrackUIRange($):this._updateTrackUINonRange($))}_updateTrackUIRange($){const j=$.getSibling();if(!j||!this._cachedWidth)return;const G=Math.abs(j.translateX-$.translateX)/this._cachedWidth;this._setTrackActiveStyles($._isLeftThumb&&this._cachedWidth?{left:"auto",right:this._cachedWidth-j.translateX+"px",transformOrigin:"right",transform:`scaleX(${G})`}:{left:`${j.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${G})`})}_updateTrackUINonRange($){this._setTrackActiveStyles(this._isRtl?{left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-$.fillPercentage})`}:{left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${$.fillPercentage})`})}_updateTickMarkUI(){if(!this.showTickMarks||void 0===this.step||void 0===this.min||void 0===this.max)return;const $=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange($):this._updateTickMarkUINonRange($),this._isRtl&&this._tickMarks.reverse()}_updateTickMarkUINonRange($){const j=this._getValue();let G=Math.max(Math.floor((j-this.min)/$),0),V=Math.max(Math.floor((this.max-j)/$),0);this._isRtl?G++:V++,this._tickMarks=Array(G).fill(y.ACTIVE).concat(Array(V).fill(y.INACTIVE))}_updateTickMarkUIRange($){const j=this._getValue(),G=this._getValue(v.START),V=Math.max(Math.floor((G-this.min)/$),0),W=Math.max(Math.floor((j-G)/$)+1,0),K=Math.max(Math.floor((this.max-j)/$),0);this._tickMarks=Array(V).fill(y.INACTIVE).concat(Array(W).fill(y.ACTIVE),Array(K).fill(y.INACTIVE))}_getInput($){return $===v.END&&this._input?this._input:this._inputs?.length?$===v.START?this._inputs.first:this._inputs.last:void 0}_getThumb($){return $===v.END?this._thumbs?.last:this._thumbs?.first}_setTransition($){this._hasAnimation=!this._platform.IOS&&$&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)}_isCursorOnSliderThumb($,j){const G=j.width/2,ce=$.clientY-(j.y+G);return Math.pow($.clientX-(j.x+G),2)+Math.pow(ce,2)A),multi:!0},N={provide:c.NG_VALUE_ACCESSOR,useExisting:(0,C.forwardRef)(()=>F),multi:!0};let A=(()=>{class ee{get value(){return(0,C.numberAttribute)(this._hostElement.value,0)}set value($){const j=($=isNaN($)?0:$)+"";this._hasSetInitialValue?this._isActive||this._setValue(j):this._initialValue=j}_setValue($){this._hostElement.value=$,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck()}get translateX(){return this._slider.min>=this._slider.max?(this._translateX=this._tickMarkOffset,this._translateX):(void 0===this._translateX&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX($){this._translateX=$}get min(){return(0,C.numberAttribute)(this._hostElement.min,0)}set min($){this._hostElement.min=$+"",this._cdr.detectChanges()}get max(){return(0,C.numberAttribute)(this._hostElement.max,0)}set max($){this._hostElement.max=$+"",this._cdr.detectChanges()}get step(){return(0,C.numberAttribute)(this._hostElement.step,0)}set step($){this._hostElement.step=$+"",this._cdr.detectChanges()}get disabled(){return(0,C.booleanAttribute)(this._hostElement.disabled)}set disabled($){this._hostElement.disabled=$,this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?0===this._translateX?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_setIsFocused($){this._isFocused=$}constructor($,j,G,V){this._ngZone=$,this._elementRef=j,this._cdr=G,this._slider=V,this.valueChange=new C.EventEmitter,this.dragStart=new C.EventEmitter,this.dragEnd=new C.EventEmitter,this.thumbPosition=v.END,this._knobRadius=8,this._tickMarkOffset=3,this._isActive=!1,this._isFocused=!1,this._hasSetInitialValue=!1,this._destroyed=new b.B,this._skipUIUpdate=!1,this._onTouchedFn=()=>{},this._isControlInitialized=!1,this._platform=(0,C.inject)(_.OD),this._hostElement=j.nativeElement,this._ngZone.runOutsideAngular(()=>{this._hostElement.addEventListener("pointerdown",this._onPointerDown.bind(this)),this._hostElement.addEventListener("pointermove",this._onPointerMove.bind(this)),this._hostElement.addEventListener("pointerup",this._onPointerUp.bind(this))})}ngOnDestroy(){this._hostElement.removeEventListener("pointerdown",this._onPointerDown),this._hostElement.removeEventListener("pointermove",this._onPointerMove),this._hostElement.removeEventListener("pointerup",this._onPointerUp),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,void 0===this._initialValue?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._slider._setTransition(!1),this._slider._updateTrackUI(this),this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown($){if(!this.disabled&&0===$.button){if(this._platform.IOS){const j=this._slider._isCursorOnSliderThumb($,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());return this._isActive=j,this._updateWidthActive(),void this._slider._updateDimensions()}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent($,{withAnimation:!0}),this.disabled||(this._handleValueCorrection($),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection($){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue($)},0)}_fixValue($){const j=$.clientX-this._slider._cachedLeft,G=this._slider._cachedWidth,V=0===this._slider.step?1:this._slider.step,W=Math.floor((this._slider.max-this._slider.min)/V),ue=Math.round((this._slider._isRtl?1-j/G:j/G)*W)/W*(this._slider.max-this._slider.min)+this._slider.min,be=Math.round(ue/V)*V;if(be===this.value)return this._slider._onValueChange(this),void(this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent($,{withAnimation:this._slider._hasAnimation}));this.value=be,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent($,{withAnimation:this._slider._hasAnimation})}_onPointerMove($){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent($)}_onPointerUp(){this._isActive&&(this._isActive=!1,this._platform.SAFARI&&this._setIsFocused(!1),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp($){const j=this._tickMarkOffset;return Math.max(Math.min($,this._slider._cachedWidth-this._tickMarkOffset),j)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*(this._slider._cachedWidth-2*this._tickMarkOffset)+this._tickMarkOffset:this.percentage*(this._slider._cachedWidth-2*this._tickMarkOffset)+this._tickMarkOffset}_calcTranslateXByPointerEvent($){return $.clientX-this._slider._cachedLeft}_updateWidthActive(){}_updateWidthInactive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding-2*this._tickMarkOffset}px)`,this._hostElement.style.left=`-${this._slider._rippleRadius-this._tickMarkOffset}px`}_updateThumbUIByValue($){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI($)}_updateThumbUIByPointerEvent($,j){this.translateX=this._clamp(this._calcTranslateXByPointerEvent($)),this._updateThumbUI(j)}_updateThumbUI($){this._slider._setTransition(!!$?.withAnimation),this._slider._onTranslateXChange(this)}writeValue($){(this._isControlInitialized||null!==$)&&(this.value=$)}registerOnChange($){this._onChangeFn=$,this._isControlInitialized=!0}registerOnTouched($){this._onTouchedFn=$}setDisabledState($){this.disabled=$}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}static#e=this.\u0275fac=function(j){return new(j||ee)(C.\u0275\u0275directiveInject(C.NgZone),C.\u0275\u0275directiveInject(C.ElementRef),C.\u0275\u0275directiveInject(C.ChangeDetectorRef),C.\u0275\u0275directiveInject(M))};static#t=this.\u0275dir=C.\u0275\u0275defineDirective({type:ee,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(j,G){1&j&&C.\u0275\u0275listener("change",function(){return G._onChange()})("input",function(){return G._onInput()})("blur",function(){return G._onBlur()})("focus",function(){return G._onFocus()}),2&j&&C.\u0275\u0275attribute("aria-valuetext",G._valuetext)},inputs:{value:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"value","value",C.numberAttribute]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],standalone:!0,features:[C.\u0275\u0275ProvidersFeature([R,{provide:w,useExisting:ee}]),C.\u0275\u0275InputTransformsFeature]})}return ee})(),F=(()=>{class ee extends A{getSibling(){return this._sibling||(this._sibling=this._slider._getInput(this._isEndThumb?v.START:v.END)),this._sibling}getMinPos(){const $=this.getSibling();return!this._isLeftThumb&&$?$.translateX:this._tickMarkOffset}getMaxPos(){const $=this.getSibling();return this._isLeftThumb&&$?$.translateX:this._slider._cachedWidth-this._tickMarkOffset}_setIsLeftThumb(){this._isLeftThumb=this._isEndThumb&&this._slider._isRtl||!this._isEndThumb&&!this._slider._isRtl}constructor($,j,G,V){super($,G,V,j),this._cdr=V,this._isEndThumb=this._hostElement.hasAttribute("matSliderEndThumb"),this._setIsLeftThumb(),this.thumbPosition=this._isEndThumb?v.END:v.START}_getDefaultValue(){return this._isEndThumb&&this._slider._isRange?this.max:this.min}_onInput(){super._onInput(),this._updateSibling(),this._isActive||this._updateWidthInactive()}_onNgControlValueChange(){super._onNgControlValueChange(),this.getSibling()?._updateMinMax()}_onPointerDown($){this.disabled||0!==$.button||(this._sibling&&(this._sibling._updateWidthActive(),this._sibling._hostElement.classList.add("mat-mdc-slider-input-no-pointer-events")),super._onPointerDown($))}_onPointerUp(){super._onPointerUp(),this._sibling&&setTimeout(()=>{this._sibling._updateWidthInactive(),this._sibling._hostElement.classList.remove("mat-mdc-slider-input-no-pointer-events")})}_onPointerMove($){super._onPointerMove($),!this._slider.step&&this._isActive&&this._updateSibling()}_fixValue($){super._fixValue($),this._sibling?._updateMinMax()}_clamp($){return Math.max(Math.min($,this.getMaxPos()),this.getMinPos())}_updateMinMax(){const $=this.getSibling();$&&(this._isEndThumb?(this.min=Math.max(this._slider.min,$.value),this.max=this._slider.max):(this.min=this._slider.min,this.max=Math.min(this._slider.max,$.value)))}_updateWidthActive(){const $=2*this._slider._rippleRadius-2*this._slider._inputPadding;this._hostElement.style.width=`${(this._slider._cachedWidth+this._slider._inputPadding-$-2*this._tickMarkOffset)*(this._slider.min{class ee{static#e=this.\u0275fac=function(j){return new(j||ee)};static#t=this.\u0275mod=C.\u0275\u0275defineNgModule({type:ee});static#n=this.\u0275inj=C.\u0275\u0275defineInjector({imports:[E.MatCommonModule,E.MatRippleModule]})}return ee})()},9159:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MatCell:()=>_t,MatCellDef:()=>de,MatColumnDef:()=>It,MatFooterCell:()=>an,MatFooterCellDef:()=>it,MatFooterRow:()=>dt,MatFooterRowDef:()=>Fe,MatHeaderCell:()=>Gt,MatHeaderCellDef:()=>Se,MatHeaderRow:()=>He,MatHeaderRowDef:()=>qe,MatNoDataRow:()=>qt,MatRecycleRows:()=>Ke,MatRow:()=>At,MatRowDef:()=>tt,MatTable:()=>te,MatTableDataSource:()=>jn,MatTableModule:()=>Oi,MatTextColumn:()=>Cn});var t=g(4438),_=g(8203),C=g(5024),E=g(6860),c=g(5478),b=g(177),s=g(1413),f=g(8455),d=g(4412),a=g(4402),l=g(7673),r=g(6977),u=g(6697);const h=[[["caption"]],[["colgroup"],["col"]],"*"],p=["caption","colgroup, col","*"];function v(at,Jt){1&at&&t.\u0275\u0275projection(0,2)}function y(at,Jt){1&at&&(t.\u0275\u0275elementStart(0,"thead",0),t.\u0275\u0275elementContainer(1,1),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(2,"tbody",0),t.\u0275\u0275elementContainer(3,2)(4,3),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"tfoot",0),t.\u0275\u0275elementContainer(6,4),t.\u0275\u0275elementEnd())}function M(at,Jt){1&at&&t.\u0275\u0275elementContainer(0,1)(1,2)(2,3)(3,4)}function w(at,Jt){if(1&at&&(t.\u0275\u0275elementStart(0,"th",3),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&at){const Be=t.\u0275\u0275nextContext();t.\u0275\u0275styleProp("text-align",Be.justify),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",Be.headerText," ")}}function k(at,Jt){if(1&at&&(t.\u0275\u0275elementStart(0,"td",4),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&at){const Be=Jt.$implicit,lt=t.\u0275\u0275nextContext();t.\u0275\u0275styleProp("text-align",lt.justify),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",lt.dataAccessor(Be,lt.name)," ")}}const I=new t.InjectionToken("CDK_TABLE"),D=new t.InjectionToken("text-column-options");let O=(()=>{class at{constructor(Be){this.template=Be}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.TemplateRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","cdkCellDef",""]],standalone:!0})}return at})(),T=(()=>{class at{constructor(Be){this.template=Be}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.TemplateRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","cdkHeaderCellDef",""]],standalone:!0})}return at})(),U=(()=>{class at{constructor(Be){this.template=Be}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.TemplateRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","cdkFooterCellDef",""]],standalone:!0})}return at})(),S=(()=>{class at{get name(){return this._name}set name(Be){this._setNameInput(Be)}get sticky(){return this._sticky}set sticky(Be){Be!==this._sticky&&(this._sticky=Be,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(Be){Be!==this._stickyEnd&&(this._stickyEnd=Be,this._hasStickyChanged=!0)}constructor(Be){this._table=Be,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){const Be=this._hasStickyChanged;return this.resetStickyChanged(),Be}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(Be){Be&&(this._name=Be,this.cssClassFriendlyName=Be.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(I,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","cdkColumnDef",""]],contentQueries:function(lt,Et,nn){if(1<&&(t.\u0275\u0275contentQuery(nn,O,5),t.\u0275\u0275contentQuery(nn,T,5),t.\u0275\u0275contentQuery(nn,U,5)),2<){let _n;t.\u0275\u0275queryRefresh(_n=t.\u0275\u0275loadQuery())&&(Et.cell=_n.first),t.\u0275\u0275queryRefresh(_n=t.\u0275\u0275loadQuery())&&(Et.headerCell=_n.first),t.\u0275\u0275queryRefresh(_n=t.\u0275\u0275loadQuery())&&(Et.footerCell=_n.first)}},inputs:{name:[t.\u0275\u0275InputFlags.None,"cdkColumnDef","name"],sticky:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"sticky","sticky",t.booleanAttribute],stickyEnd:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"stickyEnd","stickyEnd",t.booleanAttribute]},standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:at}]),t.\u0275\u0275InputTransformsFeature]})}return at})();class R{constructor(Jt,Be){Be.nativeElement.classList.add(...Jt._columnCssClassName)}}let N=(()=>{class at extends R{constructor(Be,lt){super(Be,lt)}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(S),t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature]})}return at})(),A=(()=>{class at extends R{constructor(Be,lt){super(Be,lt);const Et=Be._table?._getCellRole();Et&<.nativeElement.setAttribute("role",Et)}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(S),t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature]})}return at})(),F=(()=>{class at extends R{constructor(Be,lt){super(Be,lt);const Et=Be._table?._getCellRole();Et&<.nativeElement.setAttribute("role",Et)}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(S),t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature]})}return at})();class Y{constructor(){this.tasks=[],this.endTasks=[]}}const ee=new t.InjectionToken("_COALESCED_STYLE_SCHEDULER");let ie=(()=>{class at{constructor(Be){this._ngZone=Be,this._currentSchedule=null,this._destroyed=new s.B}schedule(Be){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(Be)}scheduleEnd(Be){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(Be)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Y,this._getScheduleObservable().pipe((0,r.Q)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const Be=this._currentSchedule;this._currentSchedule=new Y;for(const lt of Be.tasks)lt();for(const lt of Be.endTasks)lt()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,f.H)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,u.s)(1))}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275inject(t.NgZone))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:at,factory:at.\u0275fac})}return at})(),j=(()=>{class at{constructor(Be,lt){this.template=Be,this._differs=lt}ngOnChanges(Be){if(!this._columnsDiffer){const lt=Be.columns&&Be.columns.currentValue||[];this._columnsDiffer=this._differs.find(lt).create(),this._columnsDiffer.diff(lt)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(Be){return this instanceof G?Be.headerCell.template:this instanceof V?Be.footerCell.template:Be.cell.template}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.IterableDiffers))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,features:[t.\u0275\u0275NgOnChangesFeature]})}return at})(),G=(()=>{class at extends j{get sticky(){return this._sticky}set sticky(Be){Be!==this._sticky&&(this._sticky=Be,this._hasStickyChanged=!0)}constructor(Be,lt,Et){super(Be,lt),this._table=Et,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(Be){super.ngOnChanges(Be)}hasStickyChanged(){const Be=this._hasStickyChanged;return this.resetStickyChanged(),Be}resetStickyChanged(){this._hasStickyChanged=!1}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.IterableDiffers),t.\u0275\u0275directiveInject(I,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[t.\u0275\u0275InputFlags.None,"cdkHeaderRowDef","columns"],sticky:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkHeaderRowDefSticky","sticky",t.booleanAttribute]},standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]})}return at})(),V=(()=>{class at extends j{get sticky(){return this._sticky}set sticky(Be){Be!==this._sticky&&(this._sticky=Be,this._hasStickyChanged=!0)}constructor(Be,lt,Et){super(Be,lt),this._table=Et,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(Be){super.ngOnChanges(Be)}hasStickyChanged(){const Be=this._hasStickyChanged;return this.resetStickyChanged(),Be}resetStickyChanged(){this._hasStickyChanged=!1}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.IterableDiffers),t.\u0275\u0275directiveInject(I,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[t.\u0275\u0275InputFlags.None,"cdkFooterRowDef","columns"],sticky:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkFooterRowDefSticky","sticky",t.booleanAttribute]},standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]})}return at})(),W=(()=>{class at extends j{constructor(Be,lt,Et){super(Be,lt),this._table=Et}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.IterableDiffers),t.\u0275\u0275directiveInject(I,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","cdkRowDef",""]],inputs:{columns:[t.\u0275\u0275InputFlags.None,"cdkRowDefColumns","columns"],when:[t.\u0275\u0275InputFlags.None,"cdkRowDefWhen","when"]},standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature]})}return at})(),K=(()=>{class at{static#e=this.mostRecentCellOutlet=null;constructor(Be){this._viewContainer=Be,at.mostRecentCellOutlet=this}ngOnDestroy(){at.mostRecentCellOutlet===this&&(at.mostRecentCellOutlet=null)}static#t=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.ViewContainerRef))};static#n=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","cdkCellOutlet",""]],standalone:!0})}return at})(),ce=(()=>{class at{static#e=this.\u0275fac=function(lt){return new(lt||at)};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:at,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[t.\u0275\u0275StandaloneFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(lt,Et){1<&&t.\u0275\u0275elementContainer(0,0)},dependencies:[K],encapsulation:2})}return at})(),ue=(()=>{class at{static#e=this.\u0275fac=function(lt){return new(lt||at)};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:at,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],standalone:!0,features:[t.\u0275\u0275StandaloneFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(lt,Et){1<&&t.\u0275\u0275elementContainer(0,0)},dependencies:[K],encapsulation:2})}return at})(),be=(()=>{class at{static#e=this.\u0275fac=function(lt){return new(lt||at)};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:at,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[t.\u0275\u0275StandaloneFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(lt,Et){1<&&t.\u0275\u0275elementContainer(0,0)},dependencies:[K],encapsulation:2})}return at})(),Ze=(()=>{class at{constructor(Be){this.templateRef=Be,this._contentClassName="cdk-no-data-row"}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.TemplateRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0})}return at})();const pt=["top","bottom","left","right"];class ct{constructor(Jt,Be,lt,Et,nn=!0,_n=!0,Ue){this._isNativeHtmlTable=Jt,this._stickCellCss=Be,this.direction=lt,this._coalescedStyleScheduler=Et,this._isBrowser=nn,this._needsPositionStickyOnElement=_n,this._positionListener=Ue,this._cachedCellWidths=[],this._borderCellCss={top:`${Be}-border-elem-top`,bottom:`${Be}-border-elem-bottom`,left:`${Be}-border-elem-left`,right:`${Be}-border-elem-right`}}clearStickyPositioning(Jt,Be){const lt=[];for(const Et of Jt)if(Et.nodeType===Et.ELEMENT_NODE){lt.push(Et);for(let nn=0;nn{for(const Et of lt)this._removeStickyStyle(Et,Be)})}updateStickyColumns(Jt,Be,lt,Et=!0){Jt.length&&this._isBrowser&&(Be.some(nn=>nn)||lt.some(nn=>nn))?this._coalescedStyleScheduler.schedule(()=>{const nn=Jt[0],_n=nn.children.length,Ue=this._getCellWidths(nn,Et),ut=this._getStickyStartColumnPositions(Ue,Be),Ye=this._getStickyEndColumnPositions(Ue,lt),mt=Be.lastIndexOf(!0),Ee=lt.indexOf(!0),Mt="rtl"===this.direction,H=Mt?"right":"left",pe=Mt?"left":"right";for(const le of Jt)for(let Ve=0;Ve<_n;Ve++){const wt=le.children[Ve];Be[Ve]&&this._addStickyStyle(wt,H,ut[Ve],Ve===mt),lt[Ve]&&this._addStickyStyle(wt,pe,Ye[Ve],Ve===Ee)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===mt?[]:Ue.slice(0,mt+1).map((le,Ve)=>Be[Ve]?le:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Ee?[]:Ue.slice(Ee).map((le,Ve)=>lt[Ve+Ee]?le:null).reverse()}))}):this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}))}stickRows(Jt,Be,lt){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{const Et="bottom"===lt?Jt.slice().reverse():Jt,nn="bottom"===lt?Be.slice().reverse():Be,_n=[],Ue=[],ut=[];for(let mt=0,Ee=0;mt{const lt=Jt.querySelector("tfoot");lt&&(Be.some(Et=>!Et)?this._removeStickyStyle(lt,["bottom"]):this._addStickyStyle(lt,"bottom",0,!1))})}_removeStickyStyle(Jt,Be){for(const Et of Be)Jt.style[Et]="",Jt.classList.remove(this._borderCellCss[Et]);pt.some(Et=>-1===Be.indexOf(Et)&&Jt.style[Et])?Jt.style.zIndex=this._getCalculatedZIndex(Jt):(Jt.style.zIndex="",this._needsPositionStickyOnElement&&(Jt.style.position=""),Jt.classList.remove(this._stickCellCss))}_addStickyStyle(Jt,Be,lt,Et){Jt.classList.add(this._stickCellCss),Et&&Jt.classList.add(this._borderCellCss[Be]),Jt.style[Be]=`${lt}px`,Jt.style.zIndex=this._getCalculatedZIndex(Jt),this._needsPositionStickyOnElement&&(Jt.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Jt){const Be={top:100,bottom:10,left:1,right:1};let lt=0;for(const Et of pt)Jt.style[Et]&&(lt+=Be[Et]);return lt?`${lt}`:""}_getCellWidths(Jt,Be=!0){if(!Be&&this._cachedCellWidths.length)return this._cachedCellWidths;const lt=[],Et=Jt.children;for(let nn=0;nn0;nn--)Be[nn]&&(lt[nn]=Et,Et+=Jt[nn]);return lt}}const q=new t.InjectionToken("CDK_SPL");let Oe=(()=>{class at{constructor(Be,lt){this.viewContainer=Be,this.elementRef=lt;const Et=(0,t.inject)(I);Et._rowOutlet=this,Et._outletAssigned()}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","rowOutlet",""]],standalone:!0})}return at})(),vt=(()=>{class at{constructor(Be,lt){this.viewContainer=Be,this.elementRef=lt;const Et=(0,t.inject)(I);Et._headerRowOutlet=this,Et._outletAssigned()}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","headerRowOutlet",""]],standalone:!0})}return at})(),rt=(()=>{class at{constructor(Be,lt){this.viewContainer=Be,this.elementRef=lt;const Et=(0,t.inject)(I);Et._footerRowOutlet=this,Et._outletAssigned()}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","footerRowOutlet",""]],standalone:!0})}return at})(),we=(()=>{class at{constructor(Be,lt){this.viewContainer=Be,this.elementRef=lt;const Et=(0,t.inject)(I);Et._noDataRowOutlet=this,Et._outletAssigned()}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","noDataRowOutlet",""]],standalone:!0})}return at})(),ot=(()=>{class at{_getCellRole(){if(void 0===this._cellRoleInternal){const Be=this._elementRef.nativeElement.getAttribute("role"),lt="grid"===Be||"treegrid"===Be?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&"cell"===lt?null:lt}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(Be){this._trackByFn=Be}get dataSource(){return this._dataSource}set dataSource(Be){this._dataSource!==Be&&this._switchDataSource(Be)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(Be){this._multiTemplateDataRows=Be,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(Be){this._fixedLayout=Be,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(Be,lt,Et,nn,_n,Ue,ut,Ye,mt,Ee,Mt,H){this._differs=Be,this._changeDetectorRef=lt,this._elementRef=Et,this._dir=_n,this._platform=ut,this._viewRepeater=Ye,this._coalescedStyleScheduler=mt,this._viewportRuler=Ee,this._stickyPositioningListener=Mt,this._ngZone=H,this._onDestroy=new s.B,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._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new t.EventEmitter,this.viewChange=new d.t({start:0,end:Number.MAX_VALUE}),nn||Et.nativeElement.setAttribute("role","table"),this._document=Ue,this._isServer=!ut.isBrowser,this._isNativeHtmlTable="TABLE"===Et.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((Be,lt)=>this.trackBy?this.trackBy(lt.dataIndex,lt.data):lt),this._viewportRuler.change().pipe((0,r.Q)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(Be=>{Be?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,C.y4)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const Be=this._dataDiffer.diff(this._renderRows);if(!Be)return this._updateNoDataRow(),void this.contentChanged.next();const lt=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(Be,lt,(Et,nn,_n)=>this._getEmbeddedViewArgs(Et.item,_n),Et=>Et.item.data,Et=>{Et.operation===C.Q3.INSERTED&&Et.context&&this._renderCellTemplateForItem(Et.record.item.rowDef,Et.context)}),this._updateRowIndexContext(),Be.forEachIdentityChange(Et=>{lt.get(Et.currentIndex).context.$implicit=Et.item.data}),this._updateNoDataRow(),this._ngZone&&t.NgZone.isInAngularZone()?this._ngZone.onStable.pipe((0,u.s)(1),(0,r.Q)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(Be){this._customColumnDefs.add(Be)}removeColumnDef(Be){this._customColumnDefs.delete(Be)}addRowDef(Be){this._customRowDefs.add(Be)}removeRowDef(Be){this._customRowDefs.delete(Be)}addHeaderRowDef(Be){this._customHeaderRowDefs.add(Be),this._headerRowDefChanged=!0}removeHeaderRowDef(Be){this._customHeaderRowDefs.delete(Be),this._headerRowDefChanged=!0}addFooterRowDef(Be){this._customFooterRowDefs.add(Be),this._footerRowDefChanged=!0}removeFooterRowDef(Be){this._customFooterRowDefs.delete(Be),this._footerRowDefChanged=!0}setNoDataRow(Be){this._customNoDataRow=Be}updateStickyHeaderRowStyles(){const Be=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){const Et=jt(this._headerRowOutlet,"thead");Et&&(Et.style.display=Be.length?"":"none")}const lt=this._headerRowDefs.map(Et=>Et.sticky);this._stickyStyler.clearStickyPositioning(Be,["top"]),this._stickyStyler.stickRows(Be,lt,"top"),this._headerRowDefs.forEach(Et=>Et.resetStickyChanged())}updateStickyFooterRowStyles(){const Be=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){const Et=jt(this._footerRowOutlet,"tfoot");Et&&(Et.style.display=Be.length?"":"none")}const lt=this._footerRowDefs.map(Et=>Et.sticky);this._stickyStyler.clearStickyPositioning(Be,["bottom"]),this._stickyStyler.stickRows(Be,lt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,lt),this._footerRowDefs.forEach(Et=>Et.resetStickyChanged())}updateStickyColumnStyles(){const Be=this._getRenderedRows(this._headerRowOutlet),lt=this._getRenderedRows(this._rowOutlet),Et=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...Be,...lt,...Et],["left","right"]),this._stickyColumnStylesNeedReset=!1),Be.forEach((nn,_n)=>{this._addStickyColumnStyles([nn],this._headerRowDefs[_n])}),this._rowDefs.forEach(nn=>{const _n=[];for(let Ue=0;Ue{this._addStickyColumnStyles([nn],this._footerRowDefs[_n])}),Array.from(this._columnDefsByName.values()).forEach(nn=>nn.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs();const lt=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||lt,this._forceRecalculateCellWidths=lt,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()}_getAllRenderRows(){const Be=[],lt=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let Et=0;Et{const Ue=Et&&Et.has(_n)?Et.get(_n):[];if(Ue.length){const ut=Ue.shift();return ut.dataIndex=lt,ut}return{data:Be,rowDef:_n,dataIndex:lt}})}_cacheColumnDefs(){this._columnDefsByName.clear(),xt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(lt=>{this._columnDefsByName.has(lt.name),this._columnDefsByName.set(lt.name,lt)})}_cacheRowDefs(){this._headerRowDefs=xt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=xt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=xt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const Be=this._rowDefs.filter(lt=>!lt.when);this._defaultRowDef=Be[0]}_renderUpdatedColumns(){const Be=(_n,Ue)=>_n||!!Ue.getColumnsDiff(),lt=this._rowDefs.reduce(Be,!1);lt&&this._forceRenderDataRows();const Et=this._headerRowDefs.reduce(Be,!1);Et&&this._forceRenderHeaderRows();const nn=this._footerRowDefs.reduce(Be,!1);return nn&&this._forceRenderFooterRows(),lt||Et||nn}_switchDataSource(Be){this._data=[],(0,C.y4)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),Be||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=Be}_observeRenderChanges(){if(!this.dataSource)return;let Be;(0,C.y4)(this.dataSource)?Be=this.dataSource.connect(this):(0,a.A)(this.dataSource)?Be=this.dataSource:Array.isArray(this.dataSource)&&(Be=(0,l.of)(this.dataSource)),this._renderChangeSubscription=Be.pipe((0,r.Q)(this._onDestroy)).subscribe(lt=>{this._data=lt||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((Be,lt)=>this._renderRow(this._headerRowOutlet,Be,lt)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((Be,lt)=>this._renderRow(this._footerRowOutlet,Be,lt)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(Be,lt){const Et=Array.from(lt.columns||[]).map(Ue=>this._columnDefsByName.get(Ue)),nn=Et.map(Ue=>Ue.sticky),_n=Et.map(Ue=>Ue.stickyEnd);this._stickyStyler.updateStickyColumns(Be,nn,_n,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(Be){const lt=[];for(let Et=0;Et!nn.when||nn.when(lt,Be));else{let nn=this._rowDefs.find(_n=>_n.when&&_n.when(lt,Be))||this._defaultRowDef;nn&&Et.push(nn)}return Et}_getEmbeddedViewArgs(Be,lt){return{templateRef:Be.rowDef.template,context:{$implicit:Be.data},index:lt}}_renderRow(Be,lt,Et,nn={}){const _n=Be.viewContainer.createEmbeddedView(lt.template,nn,Et);return this._renderCellTemplateForItem(lt,nn),_n}_renderCellTemplateForItem(Be,lt){for(let Et of this._getCellTemplates(Be))K.mostRecentCellOutlet&&K.mostRecentCellOutlet._viewContainer.createEmbeddedView(Et,lt);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const Be=this._rowOutlet.viewContainer;for(let lt=0,Et=Be.length;lt{const Et=this._columnDefsByName.get(lt);return Be.extractCellTemplate(Et)}):[]}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const Be=(lt,Et)=>lt||Et.hasStickyChanged();this._headerRowDefs.reduce(Be,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(Be,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(Be,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new ct(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,l.of)()).pipe((0,r.Q)(this._onDestroy)).subscribe(lt=>{this._stickyStyler.direction=lt,this.updateStickyColumnStyles()})}_getOwnDefs(Be){return Be.filter(lt=>!lt._table||lt._table===this)}_updateNoDataRow(){const Be=this._customNoDataRow||this._noDataRow;if(!Be)return;const lt=0===this._rowOutlet.viewContainer.length;if(lt===this._isShowingNoDataRow)return;const Et=this._noDataRowOutlet.viewContainer;if(lt){const nn=Et.createEmbeddedView(Be.templateRef),_n=nn.rootNodes[0];1===nn.rootNodes.length&&_n?.nodeType===this._document.ELEMENT_NODE&&(_n.setAttribute("role","row"),_n.classList.add(Be._contentClassName))}else Et.clear();this._isShowingNoDataRow=lt,this._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.IterableDiffers),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275injectAttribute("role"),t.\u0275\u0275directiveInject(_.dS,8),t.\u0275\u0275directiveInject(b.DOCUMENT),t.\u0275\u0275directiveInject(E.OD),t.\u0275\u0275directiveInject(C.sL),t.\u0275\u0275directiveInject(ee),t.\u0275\u0275directiveInject(c.Xj),t.\u0275\u0275directiveInject(q,12),t.\u0275\u0275directiveInject(t.NgZone,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:at,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(lt,Et,nn){if(1<&&(t.\u0275\u0275contentQuery(nn,Ze,5),t.\u0275\u0275contentQuery(nn,S,5),t.\u0275\u0275contentQuery(nn,W,5),t.\u0275\u0275contentQuery(nn,G,5),t.\u0275\u0275contentQuery(nn,V,5)),2<){let _n;t.\u0275\u0275queryRefresh(_n=t.\u0275\u0275loadQuery())&&(Et._noDataRow=_n.first),t.\u0275\u0275queryRefresh(_n=t.\u0275\u0275loadQuery())&&(Et._contentColumnDefs=_n),t.\u0275\u0275queryRefresh(_n=t.\u0275\u0275loadQuery())&&(Et._contentRowDefs=_n),t.\u0275\u0275queryRefresh(_n=t.\u0275\u0275loadQuery())&&(Et._contentHeaderRowDefs=_n),t.\u0275\u0275queryRefresh(_n=t.\u0275\u0275loadQuery())&&(Et._contentFooterRowDefs=_n)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(lt,Et){2<&&t.\u0275\u0275classProp("cdk-table-fixed-layout",Et.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"multiTemplateDataRows","multiTemplateDataRows",t.booleanAttribute],fixedLayout:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"fixedLayout","fixedLayout",t.booleanAttribute]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:I,useExisting:at},{provide:C.sL,useClass:C.xn},{provide:ee,useClass:ie},{provide:q,useValue:null}]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:p,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(lt,Et){1<&&(t.\u0275\u0275projectionDef(h),t.\u0275\u0275projection(0),t.\u0275\u0275projection(1,1),t.\u0275\u0275template(2,v,1,0)(3,y,7,0)(4,M,4,0)),2<&&(t.\u0275\u0275advance(2),t.\u0275\u0275conditional(2,Et._isServer?2:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(3,Et._isNativeHtmlTable?3:4))},dependencies:[vt,Oe,we,rt],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return at})();function xt(at,Jt){return at.concat(Array.from(Jt))}function jt(at,Jt){const Be=Jt.toUpperCase();let lt=at.viewContainer.element.nativeElement;for(;lt;){const Et=1===lt.nodeType?lt.nodeName:null;if(Et===Be)return lt;if("TABLE"===Et)break;lt=lt.parentNode}return null}let Xt=(()=>{class at{get name(){return this._name}set name(Be){this._name=Be,this._syncColumnDefName()}constructor(Be,lt){this._table=Be,this._options=lt,this.justify="start",this._options=lt||{}}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((Be,lt)=>Be[lt])),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 Be=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(Be):Be[0].toUpperCase()+Be.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(ot,8),t.\u0275\u0275directiveInject(D,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:at,selectors:[["cdk-text-column"]],viewQuery:function(lt,Et){if(1<&&(t.\u0275\u0275viewQuery(S,7),t.\u0275\u0275viewQuery(O,7),t.\u0275\u0275viewQuery(T,7)),2<){let nn;t.\u0275\u0275queryRefresh(nn=t.\u0275\u0275loadQuery())&&(Et.columnDef=nn.first),t.\u0275\u0275queryRefresh(nn=t.\u0275\u0275loadQuery())&&(Et.cell=nn.first),t.\u0275\u0275queryRefresh(nn=t.\u0275\u0275loadQuery())&&(Et.headerCell=nn.first)}},inputs:{name:"name",headerText:"headerText",dataAccessor:"dataAccessor",justify:"justify"},standalone:!0,features:[t.\u0275\u0275StandaloneFeature],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(lt,Et){1<&&(t.\u0275\u0275elementContainerStart(0,0),t.\u0275\u0275template(1,w,2,3,"th",1)(2,k,2,3,"td",2),t.\u0275\u0275elementContainerEnd())},dependencies:[S,T,N,O,F],encapsulation:2})}return at})(),dn=(()=>{class at{static#e=this.\u0275fac=function(lt){return new(lt||at)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:at});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[c.E9]})}return at})();var rn=g(6600),hn=g(7786),Nt=g(4572),Bt=g(4085),ve=g(6354);const Qe=[[["caption"]],[["colgroup"],["col"]],"*"],Xe=["caption","colgroup, col","*"];function Ot(at,Jt){1&at&&t.\u0275\u0275projection(0,2)}function nt(at,Jt){1&at&&(t.\u0275\u0275elementStart(0,"thead",0),t.\u0275\u0275elementContainer(1,1),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(2,"tbody",2),t.\u0275\u0275elementContainer(3,3)(4,4),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"tfoot",0),t.\u0275\u0275elementContainer(6,5),t.\u0275\u0275elementEnd())}function ft(at,Jt){1&at&&t.\u0275\u0275elementContainer(0,1)(1,3)(2,4)(3,5)}function Re(at,Jt){if(1&at&&(t.\u0275\u0275elementStart(0,"th",3),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&at){const Be=t.\u0275\u0275nextContext();t.\u0275\u0275styleProp("text-align",Be.justify),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",Be.headerText," ")}}function me(at,Jt){if(1&at&&(t.\u0275\u0275elementStart(0,"td",4),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&at){const Be=Jt.$implicit,lt=t.\u0275\u0275nextContext();t.\u0275\u0275styleProp("text-align",lt.justify),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",lt.dataAccessor(Be,lt.name)," ")}}let Ke=(()=>{class at{static#e=this.\u0275fac=function(lt){return new(lt||at)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:C.sL,useClass:C.DQ}])]})}return at})(),te=(()=>{class at extends ot{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:at,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(lt,Et){2<&&t.\u0275\u0275classProp("mdc-table-fixed-layout",Et.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:ot,useExisting:at},{provide:I,useExisting:at},{provide:ee,useClass:ie},{provide:C.sL,useClass:C.xn},{provide:q,useValue:null}]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:Xe,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(lt,Et){1<&&(t.\u0275\u0275projectionDef(Qe),t.\u0275\u0275projection(0),t.\u0275\u0275projection(1,1),t.\u0275\u0275template(2,Ot,1,0)(3,nt,7,0)(4,ft,4,0)),2<&&(t.\u0275\u0275advance(2),t.\u0275\u0275conditional(2,Et._isServer?2:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(3,Et._isNativeHtmlTable?3:4))},dependencies:[vt,Oe,we,rt],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}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-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}.mat-mdc-table{table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}return at})(),de=(()=>{class at extends O{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","matCellDef",""]],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:O,useExisting:at}]),t.\u0275\u0275InheritDefinitionFeature]})}return at})(),Se=(()=>{class at extends T{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:T,useExisting:at}]),t.\u0275\u0275InheritDefinitionFeature]})}return at})(),it=(()=>{class at extends U{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","matFooterCellDef",""]],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:U,useExisting:at}]),t.\u0275\u0275InheritDefinitionFeature]})}return at})(),It=(()=>{class at extends S{get name(){return this._name}set name(Be){this._setNameInput(Be)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","matColumnDef",""]],inputs:{name:[t.\u0275\u0275InputFlags.None,"matColumnDef","name"]},standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:S,useExisting:at},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:at}]),t.\u0275\u0275InheritDefinitionFeature]})}return at})(),Gt=(()=>{class at extends N{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature]})}return at})(),an=(()=>{class at extends A{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature]})}return at})(),_t=(()=>{class at extends F{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature]})}return at})(),qe=(()=>{class at extends G{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[t.\u0275\u0275InputFlags.None,"matHeaderRowDef","columns"],sticky:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"matHeaderRowDefSticky","sticky",t.booleanAttribute]},standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:G,useExisting:at}]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275InheritDefinitionFeature]})}return at})(),Fe=(()=>{class at extends V{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","matFooterRowDef",""]],inputs:{columns:[t.\u0275\u0275InputFlags.None,"matFooterRowDef","columns"],sticky:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"matFooterRowDefSticky","sticky",t.booleanAttribute]},standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:V,useExisting:at}]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275InheritDefinitionFeature]})}return at})(),tt=(()=>{class at extends W{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","matRowDef",""]],inputs:{columns:[t.\u0275\u0275InputFlags.None,"matRowDefColumns","columns"],when:[t.\u0275\u0275InputFlags.None,"matRowDefWhen","when"]},standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:W,useExisting:at}]),t.\u0275\u0275InheritDefinitionFeature]})}return at})(),He=(()=>{class at extends ce{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:at,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:ce,useExisting:at}]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275StandaloneFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(lt,Et){1<&&t.\u0275\u0275elementContainer(0,0)},dependencies:[K],encapsulation:2})}return at})(),dt=(()=>{class at extends ue{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:at,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:ue,useExisting:at}]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275StandaloneFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(lt,Et){1<&&t.\u0275\u0275elementContainer(0,0)},dependencies:[K],encapsulation:2})}return at})(),At=(()=>{class at extends be{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:at,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:be,useExisting:at}]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275StandaloneFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(lt,Et){1<&&t.\u0275\u0275elementContainer(0,0)},dependencies:[K],encapsulation:2})}return at})(),qt=(()=>{class at extends Ze{constructor(){super(...arguments),this._contentClassName="mat-mdc-no-data-row"}static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["ng-template","matNoDataRow",""]],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:Ze,useExisting:at}]),t.\u0275\u0275InheritDefinitionFeature]})}return at})(),Cn=(()=>{class at extends Xt{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:at,selectors:[["mat-text-column"]],standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275StandaloneFeature],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(lt,Et){1<&&(t.\u0275\u0275elementContainerStart(0,0),t.\u0275\u0275template(1,Re,2,3,"th",1)(2,me,2,3,"td",2),t.\u0275\u0275elementContainerEnd())},dependencies:[It,Se,Gt,de,_t],encapsulation:2})}return at})(),Oi=(()=>{class at{static#e=this.\u0275fac=function(lt){return new(lt||at)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:at});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[rn.MatCommonModule,dn,rn.MatCommonModule]})}return at})();class jn extends C.qS{get data(){return this._data.value}set data(Jt){Jt=Array.isArray(Jt)?Jt:[],this._data.next(Jt),this._renderChangesSubscription||this._filterData(Jt)}get filter(){return this._filter.value}set filter(Jt){this._filter.next(Jt),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Jt){this._sort=Jt,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Jt){this._paginator=Jt,this._updateChangeSubscription()}constructor(Jt=[]){super(),this._renderData=new d.t([]),this._filter=new d.t(""),this._internalPageChanges=new s.B,this._renderChangesSubscription=null,this.sortingDataAccessor=(Be,lt)=>{const Et=Be[lt];if((0,Bt.o1)(Et)){const nn=Number(Et);return nn<9007199254740991?nn:Et}return Et},this.sortData=(Be,lt)=>{const Et=lt.active,nn=lt.direction;return Et&&""!=nn?Be.sort((_n,Ue)=>{let ut=this.sortingDataAccessor(_n,Et),Ye=this.sortingDataAccessor(Ue,Et);const mt=typeof ut,Ee=typeof Ye;mt!==Ee&&("number"===mt&&(ut+=""),"number"===Ee&&(Ye+=""));let Mt=0;return null!=ut&&null!=Ye?ut>Ye?Mt=1:ut{const Et=Object.keys(Be).reduce((_n,Ue)=>_n+Be[Ue]+"\u25ec","").toLowerCase(),nn=lt.trim().toLowerCase();return-1!=Et.indexOf(nn)},this._data=new d.t(Jt),this._updateChangeSubscription()}_updateChangeSubscription(){const Jt=this._sort?(0,hn.h)(this._sort.sortChange,this._sort.initialized):(0,l.of)(null),Be=this._paginator?(0,hn.h)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,l.of)(null),Et=(0,Nt.z)([this._data,this._filter]).pipe((0,ve.T)(([Ue])=>this._filterData(Ue))),nn=(0,Nt.z)([Et,Jt]).pipe((0,ve.T)(([Ue])=>this._orderData(Ue))),_n=(0,Nt.z)([nn,Be]).pipe((0,ve.T)(([Ue])=>this._pageData(Ue)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=_n.subscribe(Ue=>this._renderData.next(Ue))}_filterData(Jt){return this.filteredData=null==this.filter||""===this.filter?Jt:Jt.filter(Be=>this.filterPredicate(Be,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Jt){return this.sort?this.sortData(Jt.slice(),this.sort):Jt}_pageData(Jt){if(!this.paginator)return Jt;const Be=this.paginator.pageIndex*this.paginator.pageSize;return Jt.slice(Be,Be+this.paginator.pageSize)}_updatePaginator(Jt){Promise.resolve().then(()=>{const Be=this.paginator;if(Be&&(Be.length=Jt,Be.pageIndex>0)){const lt=Math.ceil(Be.length/Be.pageSize)-1||0,Et=Math.min(Be.pageIndex,lt);Et!==Be.pageIndex&&(Be.pageIndex=Et,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}},6850:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_TAB:()=>Pe,MAT_TABS_CONFIG:()=>dn,MAT_TAB_CONTENT:()=>Ae,MAT_TAB_GROUP:()=>$e,MAT_TAB_LABEL:()=>We,MatInkBar:()=>vt,MatPaginatedTabHeader:()=>Xt,MatTab:()=>q,MatTabBody:()=>hn,MatTabBodyPortal:()=>rn,MatTabChangeEvent:()=>Qe,MatTabContent:()=>fe,MatTabGroup:()=>ve,MatTabHeader:()=>un,MatTabLabel:()=>Me,MatTabLabelWrapper:()=>De,MatTabLink:()=>nt,MatTabNav:()=>Ot,MatTabNavPanel:()=>ft,MatTabsModule:()=>Re,_MAT_INK_BAR_POSITIONER:()=>Ge,_MAT_INK_BAR_POSITIONER_FACTORY:()=>we,matTabsAnimations:()=>cn});var t=g(4438),_=g(6600),C=g(6939),E=g(1413),c=g(3726),b=g(7673),s=g(7786),f=g(983),d=g(1985),a=g(1807),l=g(8359),r=g(4412),u=g(5478),h=g(6860),p=g(8203),v=g(6039),y=g(7336),M=g(6977),w=g(6697),k=g(9172),I=g(5558),D=g(5245),O=g(5964),T=g(3294),U=g(2318),S=g(177),R=g(9969);const N=["*"];function A(me,Ke){1&me&&t.\u0275\u0275projection(0)}const F=["tabListContainer"],Y=["tabList"],ee=["tabListInner"],ie=["nextPaginator"],$=["previousPaginator"],j=me=>({animationDuration:me}),G=(me,Ke)=>({value:me,params:Ke});function V(me,Ke){}const W=["tabBodyWrapper"],K=["tabHeader"];function ce(me,Ke){}function ue(me,Ke){if(1&me&&t.\u0275\u0275template(0,ce,0,0,"ng-template",12),2&me){const te=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275property("cdkPortalOutlet",te.templateLabel)}}function be(me,Ke){if(1&me&&t.\u0275\u0275text(0),2&me){const te=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275textInterpolate(te.textLabel)}}function Ze(me,Ke){if(1&me){const te=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",7,2),t.\u0275\u0275listener("click",function(){const Se=t.\u0275\u0275restoreView(te),it=Se.$implicit,It=Se.$index,Gt=t.\u0275\u0275nextContext(),an=t.\u0275\u0275reference(1);return t.\u0275\u0275resetView(Gt._handleClick(it,an,It))})("cdkFocusChange",function(Se){const it=t.\u0275\u0275restoreView(te).$index,It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It._tabFocusChanged(Se,it))}),t.\u0275\u0275element(2,"span",8)(3,"div",9),t.\u0275\u0275elementStart(4,"span",10)(5,"span",11),t.\u0275\u0275template(6,ue,1,1,null,12)(7,be,1,1),t.\u0275\u0275elementEnd()()()}if(2&me){const te=Ke.$implicit,de=Ke.$index,Se=t.\u0275\u0275reference(1),it=t.\u0275\u0275nextContext();t.\u0275\u0275classProp("mdc-tab--active",it.selectedIndex===de),t.\u0275\u0275property("id",it._getTabLabelId(de))("ngClass",te.labelClass)("disabled",te.disabled)("fitInkBarToContent",it.fitInkBarToContent),t.\u0275\u0275attribute("tabIndex",it._getTabIndex(de))("aria-posinset",de+1)("aria-setsize",it._tabs.length)("aria-controls",it._getTabContentId(de))("aria-selected",it.selectedIndex===de)("aria-label",te.ariaLabel||null)("aria-labelledby",!te.ariaLabel&&te.ariaLabelledby?te.ariaLabelledby:null),t.\u0275\u0275advance(3),t.\u0275\u0275property("matRippleTrigger",Se)("matRippleDisabled",te.disabled||it.disableRipple),t.\u0275\u0275advance(3),t.\u0275\u0275conditional(6,te.templateLabel?6:7)}}function pt(me,Ke){1&me&&t.\u0275\u0275projection(0)}function ct(me,Ke){if(1&me){const te=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"mat-tab-body",13),t.\u0275\u0275listener("_onCentered",function(){t.\u0275\u0275restoreView(te);const Se=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Se._removeTabBodyWrapperHeight())})("_onCentering",function(Se){t.\u0275\u0275restoreView(te);const it=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(it._setTabBodyWrapperHeight(Se))}),t.\u0275\u0275elementEnd()}if(2&me){const te=Ke.$implicit,de=Ke.$index,Se=t.\u0275\u0275nextContext();t.\u0275\u0275classProp("mat-mdc-tab-body-active",Se.selectedIndex===de),t.\u0275\u0275property("id",Se._getTabContentId(de))("ngClass",te.bodyClass)("content",te.content)("position",te.position)("origin",te.origin)("animationDuration",Se.animationDuration)("preserveContent",Se.preserveContent),t.\u0275\u0275attribute("tabindex",null!=Se.contentTabIndex&&Se.selectedIndex===de?Se.contentTabIndex:null)("aria-labelledby",Se._getTabLabelId(de))("aria-hidden",Se.selectedIndex!==de)}}const Ct=["mat-tab-nav-bar",""],Ne=["mat-tab-link",""],Ae=new t.InjectionToken("MatTabContent");let fe=(()=>{class me{constructor(te){this.template=te}static#e=this.\u0275fac=function(de){return new(de||me)(t.\u0275\u0275directiveInject(t.TemplateRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:me,selectors:[["","matTabContent",""]],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:Ae,useExisting:me}])]})}return me})();const We=new t.InjectionToken("MatTabLabel"),Pe=new t.InjectionToken("MAT_TAB");let Me=(()=>{class me extends C.bV{constructor(te,de,Se){super(te,de),this._closestTab=Se}static#e=this.\u0275fac=function(de){return new(de||me)(t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(Pe,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:me,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:We,useExisting:me}]),t.\u0275\u0275InheritDefinitionFeature]})}return me})();const $e=new t.InjectionToken("MAT_TAB_GROUP");let q=(()=>{class me{get templateLabel(){return this._templateLabel}set templateLabel(te){this._setTemplateLabelInput(te)}get content(){return this._contentPortal}constructor(te,de){this._viewContainerRef=te,this._closestTabGroup=de,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new E.B,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(te){(te.hasOwnProperty("textLabel")||te.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new C.VA(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(te){te&&te._closestTab===this&&(this._templateLabel=te)}static#e=this.\u0275fac=function(de){return new(de||me)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject($e,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:me,selectors:[["mat-tab"]],contentQueries:function(de,Se,it){if(1&de&&(t.\u0275\u0275contentQuery(it,Me,5),t.\u0275\u0275contentQuery(it,fe,7,t.TemplateRef)),2&de){let It;t.\u0275\u0275queryRefresh(It=t.\u0275\u0275loadQuery())&&(Se.templateLabel=It.first),t.\u0275\u0275queryRefresh(It=t.\u0275\u0275loadQuery())&&(Se._explicitContent=It.first)}},viewQuery:function(de,Se){if(1&de&&t.\u0275\u0275viewQuery(t.TemplateRef,7),2&de){let it;t.\u0275\u0275queryRefresh(it=t.\u0275\u0275loadQuery())&&(Se._implicitContent=it.first)}},hostAttrs:["hidden",""],inputs:{disabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",t.booleanAttribute],textLabel:[t.\u0275\u0275InputFlags.None,"label","textLabel"],ariaLabel:[t.\u0275\u0275InputFlags.None,"aria-label","ariaLabel"],ariaLabelledby:[t.\u0275\u0275InputFlags.None,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:Pe,useExisting:me}]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275NgOnChangesFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:N,decls:1,vars:0,template:function(de,Se){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275template(0,A,1,0,"ng-template"))},encapsulation:2})}return me})();const _e="mdc-tab-indicator--active",Oe="mdc-tab-indicator--no-transition";class vt{constructor(Ke){this._items=Ke}hide(){this._items.forEach(Ke=>Ke.deactivateInkBar())}alignToElement(Ke){const te=this._items.find(Se=>Se.elementRef.nativeElement===Ke),de=this._currentItem;if(te!==de&&(de?.deactivateInkBar(),te)){const Se=de?.elementRef.nativeElement.getBoundingClientRect?.();te.activateInkBar(Se),this._currentItem=te}}}let rt=(()=>{class me{constructor(){this._elementRef=(0,t.inject)(t.ElementRef),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(te){this._fitToContent!==te&&(this._fitToContent=te,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(te){const de=this._elementRef.nativeElement;if(!te||!de.getBoundingClientRect||!this._inkBarContentElement)return void de.classList.add(_e);const Se=de.getBoundingClientRect(),it=te.width/Se.width,It=te.left-Se.left;de.classList.add(Oe),this._inkBarContentElement.style.setProperty("transform",`translateX(${It}px) scaleX(${it})`),de.getBoundingClientRect(),de.classList.remove(Oe),de.classList.add(_e),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(_e)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const te=this._elementRef.nativeElement.ownerDocument||document,de=this._inkBarElement=te.createElement("span"),Se=this._inkBarContentElement=te.createElement("span");de.className="mdc-tab-indicator",Se.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",de.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement).appendChild(this._inkBarElement)}static#e=this.\u0275fac=function(de){return new(de||me)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:me,inputs:{fitInkBarToContent:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"fitInkBarToContent","fitInkBarToContent",t.booleanAttribute]},features:[t.\u0275\u0275InputTransformsFeature]})}return me})();function we(){return Ke=>({left:Ke?(Ke.offsetLeft||0)+"px":"0",width:Ke?(Ke.offsetWidth||0)+"px":"0"})}const Ge=new t.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:we});let De=(()=>{class me extends rt{constructor(te){super(),this.elementRef=te,this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static#e=this.\u0275fac=function(de){return new(de||me)(t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:me,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(de,Se){2&de&&(t.\u0275\u0275attribute("aria-disabled",!!Se.disabled),t.\u0275\u0275classProp("mat-mdc-tab-disabled",Se.disabled))},inputs:{disabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",t.booleanAttribute]},standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275InheritDefinitionFeature]})}return me})();const ot=(0,h.BQ)({passive:!0});let Xt=(()=>{class me{get selectedIndex(){return this._selectedIndex}set selectedIndex(te){const de=isNaN(te)?0:te;this._selectedIndex!=de&&(this._selectedIndexChanged=!0,this._selectedIndex=de,this._keyManager&&this._keyManager.updateActiveItem(de))}constructor(te,de,Se,it,It,Gt,an){this._elementRef=te,this._changeDetectorRef=de,this._viewportRuler=Se,this._dir=it,this._ngZone=It,this._platform=Gt,this._animationMode=an,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new E.B,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new E.B,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new t.EventEmitter,this.indexFocused=new t.EventEmitter,It.runOutsideAngular(()=>{(0,c.R)(te.nativeElement,"mouseleave").pipe((0,M.Q)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,c.R)(this._previousPaginator.nativeElement,"touchstart",ot).pipe((0,M.Q)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,c.R)(this._nextPaginator.nativeElement,"touchstart",ot).pipe((0,M.Q)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const te=this._dir?this._dir.change:(0,b.of)("ltr"),de=this._viewportRuler.change(150),Se=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new v.Bu(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,w.s)(1)).subscribe(Se),(0,s.h)(te,de,this._items.changes,this._itemsResized()).pipe((0,M.Q)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Se()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(it=>{this.indexFocused.emit(it),this._setTabFocus(it)})}_itemsResized(){return"function"!=typeof ResizeObserver?f.w:this._items.changes.pipe((0,k.Z)(this._items),(0,I.n)(te=>new d.c(de=>this._ngZone.runOutsideAngular(()=>{const Se=new ResizeObserver(it=>de.next(it));return te.forEach(it=>Se.observe(it.elementRef.nativeElement)),()=>{Se.disconnect()}}))),(0,D.i)(1),(0,O.p)(te=>te.some(de=>de.contentRect.width>0&&de.contentRect.height>0)))}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._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(te){if(!(0,y.rp)(te))switch(te.keyCode){case y.Fm:case y.t6:if(this.focusIndex!==this.selectedIndex){const de=this._items.get(this.focusIndex);de&&!de.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(te))}break;default:this._keyManager.onKeydown(te)}}_onContentChanges(){const te=this._elementRef.nativeElement.textContent;te!==this._currentTextContent&&(this._currentTextContent=te||"",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(te){!this._isValidIndex(te)||this.focusIndex===te||!this._keyManager||this._keyManager.setActiveItem(te)}_isValidIndex(te){return!this._items||!!this._items.toArray()[te]}_setTabFocus(te){if(this._showPaginationControls&&this._scrollToLabel(te),this._items&&this._items.length){this._items.toArray()[te].focus();const de=this._tabListContainer.nativeElement;de.scrollLeft="ltr"==this._getLayoutDirection()?0:de.scrollWidth-de.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const te=this.scrollDistance,de="ltr"===this._getLayoutDirection()?-te:te;this._tabList.nativeElement.style.transform=`translateX(${Math.round(de)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(te){this._scrollTo(te)}_scrollHeader(te){return this._scrollTo(this._scrollDistance+("before"==te?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(te){this._stopInterval(),this._scrollHeader(te)}_scrollToLabel(te){if(this.disablePagination)return;const de=this._items?this._items.toArray()[te]:null;if(!de)return;const Se=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:it,offsetWidth:It}=de.elementRef.nativeElement;let Gt,an;"ltr"==this._getLayoutDirection()?(Gt=it,an=Gt+It):(an=this._tabListInner.nativeElement.offsetWidth-it,Gt=an-It);const _t=this.scrollDistance,Lt=this.scrollDistance+Se;Gt<_t?this.scrollDistance-=_t-Gt:an>Lt&&(this.scrollDistance+=Math.min(an-Lt,Gt-_t))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const te=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;te||(this.scrollDistance=0),te!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=te}}_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 te=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,de=te?te.elementRef.nativeElement:null;de?this._inkBar.alignToElement(de):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(te,de){de&&null!=de.button&&0!==de.button||(this._stopInterval(),(0,a.O)(650,100).pipe((0,M.Q)((0,s.h)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Se,distance:it}=this._scrollHeader(te);(0===it||it>=Se)&&this._stopInterval()}))}_scrollTo(te){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const de=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(de,te)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:de,distance:this._scrollDistance}}static#e=this.\u0275fac=function(de){return new(de||me)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(u.Xj),t.\u0275\u0275directiveInject(p.dS,8),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(h.OD),t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:me,inputs:{disablePagination:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disablePagination","disablePagination",t.booleanAttribute],selectedIndex:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"selectedIndex","selectedIndex",t.numberAttribute]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[t.\u0275\u0275InputTransformsFeature]})}return me})(),un=(()=>{class me extends Xt{constructor(te,de,Se,it,It,Gt,an){super(te,de,Se,it,It,Gt,an),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new vt(this._items),super.ngAfterContentInit()}_itemSelected(te){te.preventDefault()}static#e=this.\u0275fac=function(de){return new(de||me)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(u.Xj),t.\u0275\u0275directiveInject(p.dS,8),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(h.OD),t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:me,selectors:[["mat-tab-header"]],contentQueries:function(de,Se,it){if(1&de&&t.\u0275\u0275contentQuery(it,De,4),2&de){let It;t.\u0275\u0275queryRefresh(It=t.\u0275\u0275loadQuery())&&(Se._items=It)}},viewQuery:function(de,Se){if(1&de&&(t.\u0275\u0275viewQuery(F,7),t.\u0275\u0275viewQuery(Y,7),t.\u0275\u0275viewQuery(ee,7),t.\u0275\u0275viewQuery(ie,5),t.\u0275\u0275viewQuery($,5)),2&de){let it;t.\u0275\u0275queryRefresh(it=t.\u0275\u0275loadQuery())&&(Se._tabListContainer=it.first),t.\u0275\u0275queryRefresh(it=t.\u0275\u0275loadQuery())&&(Se._tabList=it.first),t.\u0275\u0275queryRefresh(it=t.\u0275\u0275loadQuery())&&(Se._tabListInner=it.first),t.\u0275\u0275queryRefresh(it=t.\u0275\u0275loadQuery())&&(Se._nextPaginator=it.first),t.\u0275\u0275queryRefresh(it=t.\u0275\u0275loadQuery())&&(Se._previousPaginator=it.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(de,Se){2&de&&t.\u0275\u0275classProp("mat-mdc-tab-header-pagination-controls-enabled",Se._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==Se._getLayoutDirection())},inputs:{disableRipple:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",t.booleanAttribute]},standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:N,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled","disabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled","disabled"]],template:function(de,Se){if(1&de){const it=t.\u0275\u0275getCurrentView();t.\u0275\u0275projectionDef(),t.\u0275\u0275elementStart(0,"button",5,0),t.\u0275\u0275listener("click",function(){return t.\u0275\u0275restoreView(it),t.\u0275\u0275resetView(Se._handlePaginatorClick("before"))})("mousedown",function(Gt){return t.\u0275\u0275restoreView(it),t.\u0275\u0275resetView(Se._handlePaginatorPress("before",Gt))})("touchend",function(){return t.\u0275\u0275restoreView(it),t.\u0275\u0275resetView(Se._stopInterval())}),t.\u0275\u0275element(2,"div",6),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"div",7,1),t.\u0275\u0275listener("keydown",function(Gt){return t.\u0275\u0275restoreView(it),t.\u0275\u0275resetView(Se._handleKeydown(Gt))}),t.\u0275\u0275elementStart(5,"div",8,2),t.\u0275\u0275listener("cdkObserveContent",function(){return t.\u0275\u0275restoreView(it),t.\u0275\u0275resetView(Se._onContentChanges())}),t.\u0275\u0275elementStart(7,"div",9,3),t.\u0275\u0275projection(9),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(10,"button",10,4),t.\u0275\u0275listener("mousedown",function(Gt){return t.\u0275\u0275restoreView(it),t.\u0275\u0275resetView(Se._handlePaginatorPress("after",Gt))})("click",function(){return t.\u0275\u0275restoreView(it),t.\u0275\u0275resetView(Se._handlePaginatorClick("after"))})("touchend",function(){return t.\u0275\u0275restoreView(it),t.\u0275\u0275resetView(Se._stopInterval())}),t.\u0275\u0275element(12,"div",6),t.\u0275\u0275elementEnd()}2&de&&(t.\u0275\u0275classProp("mat-mdc-tab-header-pagination-disabled",Se._disableScrollBefore),t.\u0275\u0275property("matRippleDisabled",Se._disableScrollBefore||Se.disableRipple)("disabled",Se._disableScrollBefore||null),t.\u0275\u0275advance(3),t.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===Se._animationMode),t.\u0275\u0275advance(7),t.\u0275\u0275classProp("mat-mdc-tab-header-pagination-disabled",Se._disableScrollAfter),t.\u0275\u0275property("matRippleDisabled",Se._disableScrollAfter||Se.disableRipple)("disabled",Se._disableScrollAfter||null))},dependencies:[_.MatRipple,U.Wv],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-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:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}return me})();const dn=new t.InjectionToken("MAT_TABS_CONFIG"),cn={translateTab:(0,R.hZ)("translateTab",[(0,R.wk)("center, void, left-origin-center, right-origin-center",(0,R.iF)({transform:"none"})),(0,R.wk)("left",(0,R.iF)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,R.wk)("right",(0,R.iF)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,R.kY)("* => left, * => right, left => center, right => center",(0,R.i0)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,R.kY)("void => left-origin-center",[(0,R.iF)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,R.i0)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,R.kY)("void => right-origin-center",[(0,R.iF)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,R.i0)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let rn=(()=>{class me extends C.I3{constructor(te,de,Se,it){super(te,de,it),this._host=Se,this._centeringSub=l.yU.EMPTY,this._leavingSub=l.yU.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,k.Z)(this._host._isCenterPosition(this._host._position))).subscribe(te=>{te&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static#e=this.\u0275fac=function(de){return new(de||me)(t.\u0275\u0275directiveInject(t.ComponentFactoryResolver),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject((0,t.forwardRef)(()=>hn)),t.\u0275\u0275directiveInject(S.DOCUMENT))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:me,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature]})}return me})(),hn=(()=>{class me{set position(te){this._positionIndex=te,this._computePositionAnimationState()}constructor(te,de,Se){this._elementRef=te,this._dir=de,this._dirChangeSubscription=l.yU.EMPTY,this._translateTabComplete=new E.B,this._onCentering=new t.EventEmitter,this._beforeCentering=new t.EventEmitter,this._afterLeavingCenter=new t.EventEmitter,this._onCentered=new t.EventEmitter(!0),this.animationDuration="500ms",this.preserveContent=!1,de&&(this._dirChangeSubscription=de.change.subscribe(it=>{this._computePositionAnimationState(it),Se.markForCheck()})),this._translateTabComplete.pipe((0,T.F)((it,It)=>it.fromState===It.fromState&&it.toState===It.toState)).subscribe(it=>{this._isCenterPosition(it.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(it.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(te){const de=this._isCenterPosition(te.toState);this._beforeCentering.emit(de),de&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(te){return"center"==te||"left-origin-center"==te||"right-origin-center"==te}_computePositionAnimationState(te=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==te?"left":"right":this._positionIndex>0?"ltr"==te?"right":"left":"center"}_computePositionFromOrigin(te){const de=this._getLayoutDirection();return"ltr"==de&&te<=0||"rtl"==de&&te>0?"left-origin-center":"right-origin-center"}static#e=this.\u0275fac=function(de){return new(de||me)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(p.dS,8),t.\u0275\u0275directiveInject(t.ChangeDetectorRef))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:me,selectors:[["mat-tab-body"]],viewQuery:function(de,Se){if(1&de&&t.\u0275\u0275viewQuery(C.I3,5),2&de){let it;t.\u0275\u0275queryRefresh(it=t.\u0275\u0275loadQuery())&&(Se._portalHost=it.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[t.\u0275\u0275InputFlags.None,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[t.\u0275\u0275StandaloneFeature],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(de,Se){if(1&de){const it=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",1,0),t.\u0275\u0275listener("@translateTab.start",function(Gt){return t.\u0275\u0275restoreView(it),t.\u0275\u0275resetView(Se._onTranslateTabStarted(Gt))})("@translateTab.done",function(Gt){return t.\u0275\u0275restoreView(it),t.\u0275\u0275resetView(Se._translateTabComplete.next(Gt))}),t.\u0275\u0275template(2,V,0,0,"ng-template",2),t.\u0275\u0275elementEnd()}2&de&&t.\u0275\u0275property("@translateTab",t.\u0275\u0275pureFunction2(3,G,Se._position,t.\u0275\u0275pureFunction1(1,j,Se.animationDuration)))},dependencies:[rn,u.uv],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[cn.translateTab]}})}return me})(),Nt=0,ve=(()=>{class me{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(te){this._fitInkBarToContent=te,this._changeDetectorRef.markForCheck()}get selectedIndex(){return this._selectedIndex}set selectedIndex(te){this._indexToSelect=isNaN(te)?null:te}get animationDuration(){return this._animationDuration}set animationDuration(te){const de=te+"";this._animationDuration=/^\d+$/.test(de)?te+"ms":de}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(te){this._contentTabIndex=isNaN(te)?null:te}get backgroundColor(){return this._backgroundColor}set backgroundColor(te){const de=this._elementRef.nativeElement.classList;de.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),te&&de.add("mat-tabs-with-background",`mat-background-${te}`),this._backgroundColor=te}constructor(te,de,Se,it){this._elementRef=te,this._changeDetectorRef=de,this._animationMode=it,this._tabs=new t.QueryList,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=l.yU.EMPTY,this._tabLabelSubscription=l.yU.EMPTY,this._fitInkBarToContent=!1,this.stretchTabs=!0,this.dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.disablePagination=!1,this.disableRipple=!1,this.preserveContent=!1,this.selectedIndexChange=new t.EventEmitter,this.focusChange=new t.EventEmitter,this.animationDone=new t.EventEmitter,this.selectedTabChange=new t.EventEmitter(!0),this._isServer=!(0,t.inject)(h.OD).isBrowser,this._groupId=Nt++,this.animationDuration=Se&&Se.animationDuration?Se.animationDuration:"500ms",this.disablePagination=!(!Se||null==Se.disablePagination)&&Se.disablePagination,this.dynamicHeight=!(!Se||null==Se.dynamicHeight)&&Se.dynamicHeight,null!=Se?.contentTabIndex&&(this.contentTabIndex=Se.contentTabIndex),this.preserveContent=!!Se?.preserveContent,this.fitInkBarToContent=!(!Se||null==Se.fitInkBarToContent)&&Se.fitInkBarToContent,this.stretchTabs=!Se||null==Se.stretchTabs||Se.stretchTabs}ngAfterContentChecked(){const te=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=te){const de=null==this._selectedIndex;if(!de){this.selectedTabChange.emit(this._createChangeEvent(te));const Se=this._tabBodyWrapper.nativeElement;Se.style.minHeight=Se.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Se,it)=>Se.isActive=it===te),de||(this.selectedIndexChange.emit(te),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((de,Se)=>{de.position=Se-te,null!=this._selectedIndex&&0==de.position&&!de.origin&&(de.origin=te-this._selectedIndex)}),this._selectedIndex!==te&&(this._selectedIndex=te,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const te=this._clampTabIndex(this._indexToSelect);if(te===this._selectedIndex){const de=this._tabs.toArray();let Se;for(let it=0;it{de[te].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(te))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,k.Z)(this._allTabs)).subscribe(te=>{this._tabs.reset(te.filter(de=>de._closestTabGroup===this||!de._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(te){const de=this._tabHeader;de&&(de.focusIndex=te)}_focusChanged(te){this._lastFocusedTabIndex=te,this.focusChange.emit(this._createChangeEvent(te))}_createChangeEvent(te){const de=new Qe;return de.index=te,this._tabs&&this._tabs.length&&(de.tab=this._tabs.toArray()[te]),de}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,s.h)(...this._tabs.map(te=>te._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(te){return Math.min(this._tabs.length-1,Math.max(te||0,0))}_getTabLabelId(te){return`mat-tab-label-${this._groupId}-${te}`}_getTabContentId(te){return`mat-tab-content-${this._groupId}-${te}`}_setTabBodyWrapperHeight(te){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return;const de=this._tabBodyWrapper.nativeElement;de.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(de.style.height=te+"px")}_removeTabBodyWrapperHeight(){const te=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=te.clientHeight,te.style.height="",this.animationDone.emit()}_handleClick(te,de,Se){de.focusIndex=Se,te.disabled||(this.selectedIndex=Se)}_getTabIndex(te){return te===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(te,de){te&&"mouse"!==te&&"touch"!==te&&(this._tabHeader.focusIndex=de)}static#e=this.\u0275fac=function(de){return new(de||me)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(dn,8),t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:me,selectors:[["mat-tab-group"]],contentQueries:function(de,Se,it){if(1&de&&t.\u0275\u0275contentQuery(it,q,5),2&de){let It;t.\u0275\u0275queryRefresh(It=t.\u0275\u0275loadQuery())&&(Se._allTabs=It)}},viewQuery:function(de,Se){if(1&de&&(t.\u0275\u0275viewQuery(W,5),t.\u0275\u0275viewQuery(K,5)),2&de){let it;t.\u0275\u0275queryRefresh(it=t.\u0275\u0275loadQuery())&&(Se._tabBodyWrapper=it.first),t.\u0275\u0275queryRefresh(it=t.\u0275\u0275loadQuery())&&(Se._tabHeader=it.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(de,Se){2&de&&(t.\u0275\u0275classMap("mat-"+(Se.color||"primary")),t.\u0275\u0275styleProp("--mat-tab-animation-duration",Se.animationDuration),t.\u0275\u0275classProp("mat-mdc-tab-group-dynamic-height",Se.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===Se.headerPosition)("mat-mdc-tab-group-stretch-tabs",Se.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"fitInkBarToContent","fitInkBarToContent",t.booleanAttribute],stretchTabs:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"mat-stretch-tabs","stretchTabs",t.booleanAttribute],dynamicHeight:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"dynamicHeight","dynamicHeight",t.booleanAttribute],selectedIndex:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"selectedIndex","selectedIndex",t.numberAttribute],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"contentTabIndex","contentTabIndex",t.numberAttribute],disablePagination:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disablePagination","disablePagination",t.booleanAttribute],disableRipple:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",t.booleanAttribute],preserveContent:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"preserveContent","preserveContent",t.booleanAttribute],backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:$e,useExisting:me}]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:N,decls:9,vars:6,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","ngClass","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","ngClass","content","position","origin","animationDuration","preserveContent"]],template:function(de,Se){if(1&de){const it=t.\u0275\u0275getCurrentView();t.\u0275\u0275projectionDef(),t.\u0275\u0275elementStart(0,"mat-tab-header",3,0),t.\u0275\u0275listener("indexFocused",function(Gt){return t.\u0275\u0275restoreView(it),t.\u0275\u0275resetView(Se._focusChanged(Gt))})("selectFocusedIndex",function(Gt){return t.\u0275\u0275restoreView(it),t.\u0275\u0275resetView(Se.selectedIndex=Gt)}),t.\u0275\u0275repeaterCreate(2,Ze,8,16,"div",4,t.\u0275\u0275repeaterTrackByIdentity),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(4,pt,1,0),t.\u0275\u0275elementStart(5,"div",5,1),t.\u0275\u0275repeaterCreate(7,ct,1,12,"mat-tab-body",6,t.\u0275\u0275repeaterTrackByIdentity),t.\u0275\u0275elementEnd()}2&de&&(t.\u0275\u0275property("selectedIndex",Se.selectedIndex||0)("disableRipple",Se.disableRipple)("disablePagination",Se.disablePagination),t.\u0275\u0275advance(2),t.\u0275\u0275repeater(Se._tabs),t.\u0275\u0275advance(2),t.\u0275\u0275conditional(4,Se._isServer?4:-1),t.\u0275\u0275advance(),t.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===Se._animationMode),t.\u0275\u0275advance(2),t.\u0275\u0275repeater(Se._tabs))},dependencies:[un,De,v.vR,S.NgClass,_.MatRipple,C.I3,hn],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}return me})();class Qe{}let Xe=0,Ot=(()=>{class me extends Xt{get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(te){this._fitInkBarToContent.next(te),this._changeDetectorRef.markForCheck()}get animationDuration(){return this._animationDuration}set animationDuration(te){const de=te+"";this._animationDuration=/^\d+$/.test(de)?te+"ms":de}get backgroundColor(){return this._backgroundColor}set backgroundColor(te){const de=this._elementRef.nativeElement.classList;de.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),te&&de.add("mat-tabs-with-background",`mat-background-${te}`),this._backgroundColor=te}constructor(te,de,Se,it,It,Gt,an,_t){super(te,it,It,de,Se,Gt,an),this._fitInkBarToContent=new r.t(!1),this.stretchTabs=!0,this.disableRipple=!1,this.color="primary",this.disablePagination=!(!_t||null==_t.disablePagination)&&_t.disablePagination,this.fitInkBarToContent=!(!_t||null==_t.fitInkBarToContent)&&_t.fitInkBarToContent,this.stretchTabs=!_t||null==_t.stretchTabs||_t.stretchTabs}_itemSelected(){}ngAfterContentInit(){this._inkBar=new vt(this._items),this._items.changes.pipe((0,k.Z)(null),(0,M.Q)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}ngAfterViewInit(){super.ngAfterViewInit()}updateActiveLink(){if(!this._items)return;const te=this._items.toArray();for(let de=0;de.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}"],encapsulation:2})}return me})(),nt=(()=>{class me extends rt{get active(){return this._isActive}set active(te){te!==this._isActive&&(this._isActive=te,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}constructor(te,de,Se,it,It,Gt){super(),this._tabNavBar=te,this.elementRef=de,this._focusMonitor=It,this._destroyed=new E.B,this._isActive=!1,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.id="mat-tab-link-"+Xe++,this.rippleConfig=Se||{},this.tabIndex=parseInt(it)||0,"NoopAnimations"===Gt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),te._fitInkBarToContent.pipe((0,M.Q)(this._destroyed)).subscribe(an=>{this.fitInkBarToContent=an})}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),super.ngOnDestroy(),this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(te){(te.keyCode===y.t6||te.keyCode===y.Fm)&&(this.disabled?te.preventDefault():this._tabNavBar.tabPanel&&(te.keyCode===y.t6&&te.preventDefault(),this.elementRef.nativeElement.click()))}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.disabled?-1:this.tabIndex}static#e=this.\u0275fac=function(de){return new(de||me)(t.\u0275\u0275directiveInject(Ot),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(_.MAT_RIPPLE_GLOBAL_OPTIONS,8),t.\u0275\u0275injectAttribute("tabindex"),t.\u0275\u0275directiveInject(v.FN),t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:me,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-mdc-focus-indicator"],hostVars:11,hostBindings:function(de,Se){1&de&&t.\u0275\u0275listener("focus",function(){return Se._handleFocus()})("keydown",function(It){return Se._handleKeydown(It)}),2&de&&(t.\u0275\u0275attribute("aria-controls",Se._getAriaControls())("aria-current",Se._getAriaCurrent())("aria-disabled",Se.disabled)("aria-selected",Se._getAriaSelected())("id",Se.id)("tabIndex",Se._getTabIndex())("role",Se._getRole()),t.\u0275\u0275classProp("mat-mdc-tab-disabled",Se.disabled)("mdc-tab--active",Se.active))},inputs:{active:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"active","active",t.booleanAttribute],disabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",t.booleanAttribute],disableRipple:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",t.booleanAttribute],tabIndex:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"tabIndex","tabIndex",te=>null==te?0:(0,t.numberAttribute)(te)],id:"id"},exportAs:["matTabLink"],standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275StandaloneFeature],attrs:Ne,ngContentSelectors:N,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],template:function(de,Se){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275element(0,"span",0)(1,"div",1),t.\u0275\u0275elementStart(2,"span",2)(3,"span",3),t.\u0275\u0275projection(4),t.\u0275\u0275elementEnd()()),2&de&&(t.\u0275\u0275advance(),t.\u0275\u0275property("matRippleTrigger",Se.elementRef.nativeElement)("matRippleDisabled",Se.rippleDisabled))},dependencies:[_.MatRipple],styles:['.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab-link:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab-link:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}}'],encapsulation:2,changeDetection:0})}return me})(),ft=(()=>{class me{constructor(){this.id="mat-tab-nav-panel-"+Xe++}static#e=this.\u0275fac=function(de){return new(de||me)};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:me,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(de,Se){2&de&&t.\u0275\u0275attribute("aria-labelledby",Se._activeTabId)("id",Se.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],standalone:!0,features:[t.\u0275\u0275StandaloneFeature],ngContentSelectors:N,decls:1,vars:0,template:function(de,Se){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0})}return me})(),Re=(()=>{class me{static#e=this.\u0275fac=function(de){return new(de||me)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:me});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[_.MatCommonModule,_.MatCommonModule]})}return me})()},5911:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MatToolbar:()=>f,MatToolbarModule:()=>a,MatToolbarRow:()=>s,throwToolbarMixedModesError:()=>d});var t=g(4438),_=g(6600),C=g(6860),E=g(177);const c=["*",[["mat-toolbar-row"]]],b=["*","mat-toolbar-row"];let s=(()=>{class l{static#e=this.\u0275fac=function(h){return new(h||l)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:l,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0})}return l})(),f=(()=>{class l{constructor(u,h,p){this._elementRef=u,this._platform=h,this._document=p}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static#e=this.\u0275fac=function(h){return new(h||l)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(C.OD),t.\u0275\u0275directiveInject(E.DOCUMENT))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:l,selectors:[["mat-toolbar"]],contentQueries:function(h,p,v){if(1&h&&t.\u0275\u0275contentQuery(v,s,5),2&h){let y;t.\u0275\u0275queryRefresh(y=t.\u0275\u0275loadQuery())&&(p._toolbarRows=y)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(h,p){2&h&&(t.\u0275\u0275classMap(p.color?"mat-"+p.color:""),t.\u0275\u0275classProp("mat-toolbar-multiple-rows",p._toolbarRows.length>0)("mat-toolbar-single-row",0===p._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[t.\u0275\u0275StandaloneFeature],ngContentSelectors:b,decls:2,vars:0,template:function(h,p){1&h&&(t.\u0275\u0275projectionDef(c),t.\u0275\u0275projection(0),t.\u0275\u0275projection(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.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;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}return l})();function d(){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 a=(()=>{class l{static#e=this.\u0275fac=function(h){return new(h||l)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:l});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[_.MatCommonModule,_.MatCommonModule]})}return l})()},4823:(Ie,ne,g)=>{"use strict";g.d(ne,{oV:()=>Y,uc:()=>$});var t=g(6977),_=g(6697),C=g(4085),E=g(7336),c=g(4438),b=g(177),s=g(6860),f=g(6039),d=g(8203),a=g(7987),l=g(5478),r=g(6939),u=g(1413),p=(g(9969),g(6600));const v=["tooltip"],w=new c.InjectionToken("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const j=(0,c.inject)(a.hJ);return()=>j.scrollStrategies.reposition({scrollThrottle:20})}}),I={provide:w,deps:[a.hJ],useFactory:function k(j){return()=>j.scrollStrategies.reposition({scrollThrottle:20})}},O=new c.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:function D(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),U="tooltip-panel",S=(0,s.BQ)({passive:!0});let Y=(()=>{class j{get position(){return this._position}set position(V){V!==this._position&&(this._position=V,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(V){this._positionAtOrigin=(0,C.he)(V),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(V){this._disabled=(0,C.he)(V),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(V){this._showDelay=(0,C.OE)(V)}get hideDelay(){return this._hideDelay}set hideDelay(V){this._hideDelay=(0,C.OE)(V),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(V){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=V?String(V).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(V){this._tooltipClass=V,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(V,W,K,ce,ue,be,Ze,pt,ct,Ct,Ne,Ae){this._overlay=V,this._elementRef=W,this._scrollDispatcher=K,this._viewContainerRef=ce,this._ngZone=ue,this._platform=be,this._ariaDescriber=Ze,this._focusMonitor=pt,this._dir=Ct,this._defaultOptions=Ne,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=ee,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new u.B,this._scrollStrategy=ct,this._document=Ae,Ne&&(this._showDelay=Ne.showDelay,this._hideDelay=Ne.hideDelay,Ne.position&&(this.position=Ne.position),Ne.positionAtOrigin&&(this.positionAtOrigin=Ne.positionAtOrigin),Ne.touchGestures&&(this.touchGestures=Ne.touchGestures)),Ct.change.pipe((0,t.Q)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,t.Q)(this._destroyed)).subscribe(V=>{V?"keyboard"===V&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const V=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([W,K])=>{V.removeEventListener(W,K,S)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(V,this.message,"tooltip"),this._focusMonitor.stopMonitoring(V)}show(V=this.showDelay,W){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const K=this._createOverlay(W);this._detach(),this._portal=this._portal||new r.A8(this._tooltipComponent,this._viewContainerRef);const ce=this._tooltipInstance=K.attach(this._portal).instance;ce._triggerElement=this._elementRef.nativeElement,ce._mouseLeaveHideDelay=this._hideDelay,ce.afterHidden().pipe((0,t.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),ce.show(V)}hide(V=this.hideDelay){const W=this._tooltipInstance;W&&(W.isVisible()?W.hide(V):(W._cancelPendingAnimations(),this._detach()))}toggle(V){this._isTooltipVisible()?this.hide():this.show(void 0,V)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(V){if(this._overlayRef){const ce=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!V)&&ce._origin instanceof c.ElementRef)return this._overlayRef;this._detach()}const W=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),K=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&V||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(W);return K.positionChanges.pipe((0,t.Q)(this._destroyed)).subscribe(ce=>{this._updateCurrentPositionClass(ce.connectionPair),this._tooltipInstance&&ce.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:K,panelClass:`${this._cssClassPrefix}-${U}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,t.Q)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,t.Q)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,t.Q)(this._destroyed)).subscribe(ce=>{this._isTooltipVisible()&&ce.keyCode===E._f&&!(0,E.rp)(ce)&&(ce.preventDefault(),ce.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(V){const W=V.getConfig().positionStrategy,K=this._getOrigin(),ce=this._getOverlayPosition();W.withPositions([this._addOffset({...K.main,...ce.main}),this._addOffset({...K.fallback,...ce.fallback})])}_addOffset(V){const K=!this._dir||"ltr"==this._dir.value;return"top"===V.originY?V.offsetY=-8:"bottom"===V.originY?V.offsetY=8:"start"===V.originX?V.offsetX=K?-8:8:"end"===V.originX&&(V.offsetX=K?8:-8),V}_getOrigin(){const V=!this._dir||"ltr"==this._dir.value,W=this.position;let K;"above"==W||"below"==W?K={originX:"center",originY:"above"==W?"top":"bottom"}:"before"==W||"left"==W&&V||"right"==W&&!V?K={originX:"start",originY:"center"}:("after"==W||"right"==W&&V||"left"==W&&!V)&&(K={originX:"end",originY:"center"});const{x:ce,y:ue}=this._invertPosition(K.originX,K.originY);return{main:K,fallback:{originX:ce,originY:ue}}}_getOverlayPosition(){const V=!this._dir||"ltr"==this._dir.value,W=this.position;let K;"above"==W?K={overlayX:"center",overlayY:"bottom"}:"below"==W?K={overlayX:"center",overlayY:"top"}:"before"==W||"left"==W&&V||"right"==W&&!V?K={overlayX:"end",overlayY:"center"}:("after"==W||"right"==W&&V||"left"==W&&!V)&&(K={overlayX:"start",overlayY:"center"});const{x:ce,y:ue}=this._invertPosition(K.overlayX,K.overlayY);return{main:K,fallback:{overlayX:ce,overlayY:ue}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,_.s)(1),(0,t.Q)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(V){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=V,this._tooltipInstance._markForCheck())}_invertPosition(V,W){return"above"===this.position||"below"===this.position?"top"===W?W="bottom":"bottom"===W&&(W="top"):"end"===V?V="start":"start"===V&&(V="end"),{x:V,y:W}}_updateCurrentPositionClass(V){const{overlayY:W,originX:K,originY:ce}=V;let ue;if(ue="center"===W?this._dir&&"rtl"===this._dir.value?"end"===K?"left":"right":"start"===K?"left":"right":"bottom"===W&&"top"===ce?"above":"below",ue!==this._currentPosition){const be=this._overlayRef;if(be){const Ze=`${this._cssClassPrefix}-${U}-`;be.removePanelClass(Ze+this._currentPosition),be.addPanelClass(Ze+ue)}this._currentPosition=ue}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",V=>{let W;this._setupPointerExitEventsIfNeeded(),void 0!==V.x&&void 0!==V.y&&(W=V),this.show(void 0,W)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",V=>{const W=V.targetTouches?.[0],K=W?{x:W.clientX,y:W.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,K),this._defaultOptions.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const V=[];if(this._platformSupportsMouseEvents())V.push(["mouseleave",W=>{const K=W.relatedTarget;(!K||!this._overlayRef?.overlayElement.contains(K))&&this.hide()}],["wheel",W=>this._wheelListener(W)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const W=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};V.push(["touchend",W],["touchcancel",W])}this._addListeners(V),this._passiveListeners.push(...V)}_addListeners(V){V.forEach(([W,K])=>{this._elementRef.nativeElement.addEventListener(W,K,S)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(V){if(this._isTooltipVisible()){const W=this._document.elementFromPoint(V.clientX,V.clientY),K=this._elementRef.nativeElement;W!==K&&!K.contains(W)&&this.hide()}}_disableNativeGesturesIfNecessary(){const V=this.touchGestures;if("off"!==V){const W=this._elementRef.nativeElement,K=W.style;("on"===V||"INPUT"!==W.nodeName&&"TEXTAREA"!==W.nodeName)&&(K.userSelect=K.msUserSelect=K.webkitUserSelect=K.MozUserSelect="none"),("on"===V||!W.draggable)&&(K.webkitUserDrag="none"),K.touchAction="none",K.webkitTapHighlightColor="transparent"}}static#e=this.\u0275fac=function(W){return new(W||j)(c.\u0275\u0275directiveInject(a.hJ),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(l.R),c.\u0275\u0275directiveInject(c.ViewContainerRef),c.\u0275\u0275directiveInject(c.NgZone),c.\u0275\u0275directiveInject(s.OD),c.\u0275\u0275directiveInject(f.vr),c.\u0275\u0275directiveInject(f.FN),c.\u0275\u0275directiveInject(w),c.\u0275\u0275directiveInject(d.dS),c.\u0275\u0275directiveInject(O,8),c.\u0275\u0275directiveInject(b.DOCUMENT))};static#t=this.\u0275dir=c.\u0275\u0275defineDirective({type:j,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(W,K){2&W&&c.\u0275\u0275classProp("mat-mdc-tooltip-disabled",K.disabled)},inputs:{position:[c.\u0275\u0275InputFlags.None,"matTooltipPosition","position"],positionAtOrigin:[c.\u0275\u0275InputFlags.None,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[c.\u0275\u0275InputFlags.None,"matTooltipDisabled","disabled"],showDelay:[c.\u0275\u0275InputFlags.None,"matTooltipShowDelay","showDelay"],hideDelay:[c.\u0275\u0275InputFlags.None,"matTooltipHideDelay","hideDelay"],touchGestures:[c.\u0275\u0275InputFlags.None,"matTooltipTouchGestures","touchGestures"],message:[c.\u0275\u0275InputFlags.None,"matTooltip","message"],tooltipClass:[c.\u0275\u0275InputFlags.None,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0})}return j})(),ee=(()=>{class j{constructor(V,W,K){this._changeDetectorRef=V,this._elementRef=W,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new u.B,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled="NoopAnimations"===K}show(V){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},V)}hide(V){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},V)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:V}){(!V||!this._triggerElement.contains(V))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const V=this._elementRef.nativeElement.getBoundingClientRect();return V.height>24&&V.width>=200}_handleAnimationEnd({animationName:V}){(V===this._showAnimation||V===this._hideAnimation)&&this._finalizeAnimation(V===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(V){V?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(V){const W=this._tooltip.nativeElement,K=this._showAnimation,ce=this._hideAnimation;if(W.classList.remove(V?ce:K),W.classList.add(V?K:ce),this._isVisible=V,V&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const ue=getComputedStyle(W);("0s"===ue.getPropertyValue("animation-duration")||"none"===ue.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}V&&this._onShow(),this._animationsDisabled&&(W.classList.add("_mat-animation-noopable"),this._finalizeAnimation(V))}static#e=this.\u0275fac=function(W){return new(W||j)(c.\u0275\u0275directiveInject(c.ChangeDetectorRef),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275cmp=c.\u0275\u0275defineComponent({type:j,selectors:[["mat-tooltip-component"]],viewQuery:function(W,K){if(1&W&&c.\u0275\u0275viewQuery(v,7),2&W){let ce;c.\u0275\u0275queryRefresh(ce=c.\u0275\u0275loadQuery())&&(K._tooltip=ce.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(W,K){1&W&&c.\u0275\u0275listener("mouseleave",function(ue){return K._handleMouseLeave(ue)}),2&W&&c.\u0275\u0275styleProp("zoom",K.isVisible()?1:null)},standalone:!0,features:[c.\u0275\u0275StandaloneFeature],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(W,K){if(1&W){const ce=c.\u0275\u0275getCurrentView();c.\u0275\u0275elementStart(0,"div",1,0),c.\u0275\u0275listener("animationend",function(be){return c.\u0275\u0275restoreView(ce),c.\u0275\u0275resetView(K._handleAnimationEnd(be))}),c.\u0275\u0275elementStart(2,"div",2),c.\u0275\u0275text(3),c.\u0275\u0275elementEnd()()}2&W&&(c.\u0275\u0275classProp("mdc-tooltip--multiline",K._isMultiline),c.\u0275\u0275property("ngClass",K.tooltipClass),c.\u0275\u0275advance(3),c.\u0275\u0275textInterpolate(K.message))},dependencies:[b.NgClass],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return j})(),$=(()=>{class j{static#e=this.\u0275fac=function(W){return new(W||j)};static#t=this.\u0275mod=c.\u0275\u0275defineNgModule({type:j});static#n=this.\u0275inj=c.\u0275\u0275defineInjector({providers:[I],imports:[f.Pd,b.CommonModule,a.z_,p.MatCommonModule,p.MatCommonModule,l.Gj]})}return j})()},345:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{BrowserModule:()=>Pe,By:()=>De,DomSanitizer:()=>rn,EVENT_MANAGER_PLUGINS:()=>l,EventManager:()=>r,EventManagerPlugin:()=>u,HAMMER_GESTURE_CONFIG:()=>jt,HAMMER_LOADER:()=>Xt,HammerGestureConfig:()=>un,HammerModule:()=>cn,HydrationFeatureKind:()=>Nt,Meta:()=>Me,REMOVE_STYLES_ON_COMPONENT_DESTROY:()=>D,Title:()=>q,TransferState:()=>Re,VERSION:()=>nt,bootstrapApplication:()=>K,createApplication:()=>ce,disableDebugTools:()=>Ge,enableDebugTools:()=>we,makeStateKey:()=>ft,platformBrowser:()=>Ne,provideClientHydration:()=>Ot,provideProtractorTestingSupport:()=>be,withHttpTransferCacheOptions:()=>Qe,withNoHttpTransferCache:()=>ve,\u0275BrowserDomAdapter:()=>c,\u0275BrowserGetTestability:()=>d,\u0275DomEventsPlugin:()=>$,\u0275DomRendererFactory2:()=>S,\u0275DomSanitizerImpl:()=>hn,\u0275HammerGesturesPlugin:()=>dn,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>Ct,\u0275KeyEventsPlugin:()=>W,\u0275SharedStylesHost:()=>p,\u0275getDOM:()=>_.\u0275getDOM,\u0275initDomAdapter:()=>Ze});var t=g(4438),_=g(177),C=g(1626);class E extends _.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class c extends E{static makeCurrent(){(0,_.\u0275setRootDomAdapter)(new c)}onAndCancel(Ke,te,de){return Ke.addEventListener(te,de),()=>{Ke.removeEventListener(te,de)}}dispatchEvent(Ke,te){Ke.dispatchEvent(te)}remove(Ke){Ke.parentNode&&Ke.parentNode.removeChild(Ke)}createElement(Ke,te){return(te=te||this.getDefaultDocument()).createElement(Ke)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ke){return Ke.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ke){return Ke instanceof DocumentFragment}getGlobalEventTarget(Ke,te){return"window"===te?window:"document"===te?Ke:"body"===te?Ke.body:null}getBaseHref(Ke){const te=function s(){return b=b||document.querySelector("base"),b?b.getAttribute("href"):null}();return null==te?null:function f(me){return new URL(me,document.baseURI).pathname}(te)}resetBaseElement(){b=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ke){return(0,_.\u0275parseCookieValue)(document.cookie,Ke)}}let b=null;class d{addToWindow(Ke){t.\u0275global.getAngularTestability=(de,Se=!0)=>{const it=Ke.findTestabilityInTree(de,Se);if(null==it)throw new t.\u0275RuntimeError(5103,!1);return it},t.\u0275global.getAllAngularTestabilities=()=>Ke.getAllTestabilities(),t.\u0275global.getAllAngularRootElements=()=>Ke.getAllRootElements(),t.\u0275global.frameworkStabilizers||(t.\u0275global.frameworkStabilizers=[]),t.\u0275global.frameworkStabilizers.push(de=>{const Se=t.\u0275global.getAllAngularTestabilities();let it=Se.length;const It=function(){it--,0==it&&de()};Se.forEach(Gt=>{Gt.whenStable(It)})})}findTestabilityInTree(Ke,te,de){return null==te?null:Ke.getTestability(te)??(de?(0,_.\u0275getDOM)().isShadowRoot(te)?this.findTestabilityInTree(Ke,te.host,!0):this.findTestabilityInTree(Ke,te.parentElement,!0):null)}}let a=(()=>{class me{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(de){return new(de||me)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac})}return me})();const l=new t.InjectionToken("");let r=(()=>{class me{constructor(te,de){this._zone=de,this._eventNameToPlugin=new Map,te.forEach(Se=>{Se.manager=this}),this._plugins=te.slice().reverse()}addEventListener(te,de,Se){return this._findPluginFor(de).addEventListener(te,de,Se)}getZone(){return this._zone}_findPluginFor(te){let de=this._eventNameToPlugin.get(te);if(de)return de;if(de=this._plugins.find(it=>it.supports(te)),!de)throw new t.\u0275RuntimeError(5101,!1);return this._eventNameToPlugin.set(te,de),de}static#e=this.\u0275fac=function(de){return new(de||me)(t.\u0275\u0275inject(l),t.\u0275\u0275inject(t.NgZone))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac})}return me})();class u{constructor(Ke){this._doc=Ke}}const h="ng-app-id";let p=(()=>{class me{constructor(te,de,Se,it={}){this.doc=te,this.appId=de,this.nonce=Se,this.platformId=it,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,_.isPlatformServer)(it),this.resetHostNodes()}addStyles(te){for(const de of te)1===this.changeUsageCount(de,1)&&this.onStyleAdded(de)}removeStyles(te){for(const de of te)this.changeUsageCount(de,-1)<=0&&this.onStyleRemoved(de)}ngOnDestroy(){const te=this.styleNodesInDOM;te&&(te.forEach(de=>de.remove()),te.clear());for(const de of this.getAllStyles())this.onStyleRemoved(de);this.resetHostNodes()}addHost(te){this.hostNodes.add(te);for(const de of this.getAllStyles())this.addStyleToHost(te,de)}removeHost(te){this.hostNodes.delete(te)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(te){for(const de of this.hostNodes)this.addStyleToHost(de,te)}onStyleRemoved(te){const de=this.styleRef;de.get(te)?.elements?.forEach(Se=>Se.remove()),de.delete(te)}collectServerRenderedStyles(){const te=this.doc.head?.querySelectorAll(`style[${h}="${this.appId}"]`);if(te?.length){const de=new Map;return te.forEach(Se=>{null!=Se.textContent&&de.set(Se.textContent,Se)}),de}return null}changeUsageCount(te,de){const Se=this.styleRef;if(Se.has(te)){const it=Se.get(te);return it.usage+=de,it.usage}return Se.set(te,{usage:de,elements:[]}),de}getStyleElement(te,de){const Se=this.styleNodesInDOM,it=Se?.get(de);if(it?.parentNode===te)return Se.delete(de),it.removeAttribute(h),it;{const It=this.doc.createElement("style");return this.nonce&&It.setAttribute("nonce",this.nonce),It.textContent=de,this.platformIsServer&&It.setAttribute(h,this.appId),te.appendChild(It),It}}addStyleToHost(te,de){const Se=this.getStyleElement(te,de),it=this.styleRef,It=it.get(de)?.elements;It?It.push(Se):it.set(de,{elements:[Se],usage:1})}resetHostNodes(){const te=this.hostNodes;te.clear(),te.add(this.doc.head)}static#e=this.\u0275fac=function(de){return new(de||me)(t.\u0275\u0275inject(_.DOCUMENT),t.\u0275\u0275inject(t.APP_ID),t.\u0275\u0275inject(t.CSP_NONCE,8),t.\u0275\u0275inject(t.PLATFORM_ID))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac})}return me})();const v={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/",math:"http://www.w3.org/1998/MathML/"},y=/%COMP%/g,M="%COMP%",w=`_nghost-${M}`,k=`_ngcontent-${M}`,D=new t.InjectionToken("",{providedIn:"root",factory:()=>!0});function U(me,Ke){return Ke.map(te=>te.replace(y,me))}let S=(()=>{class me{constructor(te,de,Se,it,It,Gt,an,_t=null){this.eventManager=te,this.sharedStylesHost=de,this.appId=Se,this.removeStylesOnCompDestroy=it,this.doc=It,this.platformId=Gt,this.ngZone=an,this.nonce=_t,this.rendererByCompId=new Map,this.platformIsServer=(0,_.isPlatformServer)(Gt),this.defaultRenderer=new R(te,It,an,this.platformIsServer)}createRenderer(te,de){if(!te||!de)return this.defaultRenderer;this.platformIsServer&&de.encapsulation===t.ViewEncapsulation.ShadowDom&&(de={...de,encapsulation:t.ViewEncapsulation.Emulated});const Se=this.getOrCreateRenderer(te,de);return Se instanceof ie?Se.applyToHost(te):Se instanceof ee&&Se.applyStyles(),Se}getOrCreateRenderer(te,de){const Se=this.rendererByCompId;let it=Se.get(de.id);if(!it){const It=this.doc,Gt=this.ngZone,an=this.eventManager,_t=this.sharedStylesHost,Lt=this.removeStylesOnCompDestroy,qe=this.platformIsServer;switch(de.encapsulation){case t.ViewEncapsulation.Emulated:it=new ie(an,_t,de,this.appId,Lt,It,Gt,qe);break;case t.ViewEncapsulation.ShadowDom:return new Y(an,_t,te,de,It,Gt,this.nonce,qe);default:it=new ee(an,_t,de,Lt,It,Gt,qe)}Se.set(de.id,it)}return it}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(de){return new(de||me)(t.\u0275\u0275inject(r),t.\u0275\u0275inject(p),t.\u0275\u0275inject(t.APP_ID),t.\u0275\u0275inject(D),t.\u0275\u0275inject(_.DOCUMENT),t.\u0275\u0275inject(t.PLATFORM_ID),t.\u0275\u0275inject(t.NgZone),t.\u0275\u0275inject(t.CSP_NONCE))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac})}return me})();class R{constructor(Ke,te,de,Se){this.eventManager=Ke,this.doc=te,this.ngZone=de,this.platformIsServer=Se,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(Ke,te){return te?this.doc.createElementNS(v[te]||te,Ke):this.doc.createElement(Ke)}createComment(Ke){return this.doc.createComment(Ke)}createText(Ke){return this.doc.createTextNode(Ke)}appendChild(Ke,te){(F(Ke)?Ke.content:Ke).appendChild(te)}insertBefore(Ke,te,de){Ke&&(F(Ke)?Ke.content:Ke).insertBefore(te,de)}removeChild(Ke,te){Ke&&Ke.removeChild(te)}selectRootElement(Ke,te){let de="string"==typeof Ke?this.doc.querySelector(Ke):Ke;if(!de)throw new t.\u0275RuntimeError(-5104,!1);return te||(de.textContent=""),de}parentNode(Ke){return Ke.parentNode}nextSibling(Ke){return Ke.nextSibling}setAttribute(Ke,te,de,Se){if(Se){te=Se+":"+te;const it=v[Se];it?Ke.setAttributeNS(it,te,de):Ke.setAttribute(te,de)}else Ke.setAttribute(te,de)}removeAttribute(Ke,te,de){if(de){const Se=v[de];Se?Ke.removeAttributeNS(Se,te):Ke.removeAttribute(`${de}:${te}`)}else Ke.removeAttribute(te)}addClass(Ke,te){Ke.classList.add(te)}removeClass(Ke,te){Ke.classList.remove(te)}setStyle(Ke,te,de,Se){Se&(t.RendererStyleFlags2.DashCase|t.RendererStyleFlags2.Important)?Ke.style.setProperty(te,de,Se&t.RendererStyleFlags2.Important?"important":""):Ke.style[te]=de}removeStyle(Ke,te,de){de&t.RendererStyleFlags2.DashCase?Ke.style.removeProperty(te):Ke.style[te]=""}setProperty(Ke,te,de){null!=Ke&&(Ke[te]=de)}setValue(Ke,te){Ke.nodeValue=te}listen(Ke,te,de){if("string"==typeof Ke&&!(Ke=(0,_.\u0275getDOM)().getGlobalEventTarget(this.doc,Ke)))throw new Error(`Unsupported event target ${Ke} for event ${te}`);return this.eventManager.addEventListener(Ke,te,this.decoratePreventDefault(de))}decoratePreventDefault(Ke){return te=>{if("__ngUnwrap__"===te)return Ke;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Ke(te)):Ke(te))&&te.preventDefault()}}}function F(me){return"TEMPLATE"===me.tagName&&void 0!==me.content}class Y extends R{constructor(Ke,te,de,Se,it,It,Gt,an){super(Ke,it,It,an),this.sharedStylesHost=te,this.hostEl=de,this.shadowRoot=de.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const _t=U(Se.id,Se.styles);for(const Lt of _t){const qe=document.createElement("style");Gt&&qe.setAttribute("nonce",Gt),qe.textContent=Lt,this.shadowRoot.appendChild(qe)}}nodeOrShadowRoot(Ke){return Ke===this.hostEl?this.shadowRoot:Ke}appendChild(Ke,te){return super.appendChild(this.nodeOrShadowRoot(Ke),te)}insertBefore(Ke,te,de){return super.insertBefore(this.nodeOrShadowRoot(Ke),te,de)}removeChild(Ke,te){return super.removeChild(this.nodeOrShadowRoot(Ke),te)}parentNode(Ke){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ke)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class ee extends R{constructor(Ke,te,de,Se,it,It,Gt,an){super(Ke,it,It,Gt),this.sharedStylesHost=te,this.removeStylesOnCompDestroy=Se,this.styles=an?U(an,de.styles):de.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class ie extends ee{constructor(Ke,te,de,Se,it,It,Gt,an){const _t=Se+"-"+de.id;super(Ke,te,de,it,It,Gt,an,_t),this.contentAttr=function O(me){return k.replace(y,me)}(_t),this.hostAttr=function T(me){return w.replace(y,me)}(_t)}applyToHost(Ke){this.applyStyles(),this.setAttribute(Ke,this.hostAttr,"")}createElement(Ke,te){const de=super.createElement(Ke,te);return super.setAttribute(de,this.contentAttr,""),de}}let $=(()=>{class me extends u{constructor(te){super(te)}supports(te){return!0}addEventListener(te,de,Se){return te.addEventListener(de,Se,!1),()=>this.removeEventListener(te,de,Se)}removeEventListener(te,de,Se){return te.removeEventListener(de,Se)}static#e=this.\u0275fac=function(de){return new(de||me)(t.\u0275\u0275inject(_.DOCUMENT))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac})}return me})();const j=["alt","control","meta","shift"],G={"\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"},V={alt:me=>me.altKey,control:me=>me.ctrlKey,meta:me=>me.metaKey,shift:me=>me.shiftKey};let W=(()=>{class me extends u{constructor(te){super(te)}supports(te){return null!=me.parseEventName(te)}addEventListener(te,de,Se){const it=me.parseEventName(de),It=me.eventCallback(it.fullKey,Se,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,_.\u0275getDOM)().onAndCancel(te,it.domEventName,It))}static parseEventName(te){const de=te.toLowerCase().split("."),Se=de.shift();if(0===de.length||"keydown"!==Se&&"keyup"!==Se)return null;const it=me._normalizeKey(de.pop());let It="",Gt=de.indexOf("code");if(Gt>-1&&(de.splice(Gt,1),It="code."),j.forEach(_t=>{const Lt=de.indexOf(_t);Lt>-1&&(de.splice(Lt,1),It+=_t+".")}),It+=it,0!=de.length||0===it.length)return null;const an={};return an.domEventName=Se,an.fullKey=It,an}static matchEventFullKeyCode(te,de){let Se=G[te.key]||te.key,it="";return de.indexOf("code.")>-1&&(Se=te.code,it="code."),!(null==Se||!Se)&&(Se=Se.toLowerCase()," "===Se?Se="space":"."===Se&&(Se="dot"),j.forEach(It=>{It!==Se&&(0,V[It])(te)&&(it+=It+".")}),it+=Se,it===de)}static eventCallback(te,de,Se){return it=>{me.matchEventFullKeyCode(it,te)&&Se.runGuarded(()=>de(it))}}static _normalizeKey(te){return"esc"===te?"escape":te}static#e=this.\u0275fac=function(de){return new(de||me)(t.\u0275\u0275inject(_.DOCUMENT))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac})}return me})();function K(me,Ke){return(0,t.\u0275internalCreateApplication)({rootComponent:me,...ue(Ke)})}function ce(me){return(0,t.\u0275internalCreateApplication)(ue(me))}function ue(me){return{appProviders:[...We,...me?.providers??[]],platformProviders:Ct}}function be(){return[...fe]}function Ze(){c.makeCurrent()}const Ct=[{provide:t.PLATFORM_ID,useValue:_.\u0275PLATFORM_BROWSER_ID},{provide:t.PLATFORM_INITIALIZER,useValue:Ze,multi:!0},{provide:_.DOCUMENT,useFactory:function ct(){return(0,t.\u0275setDocument)(document),document},deps:[]}],Ne=(0,t.createPlatformFactory)(t.platformCore,"browser",Ct),Ae=new t.InjectionToken(""),fe=[{provide:t.\u0275TESTABILITY_GETTER,useClass:d,deps:[]},{provide:t.\u0275TESTABILITY,useClass:t.Testability,deps:[t.NgZone,t.TestabilityRegistry,t.\u0275TESTABILITY_GETTER]},{provide:t.Testability,useClass:t.Testability,deps:[t.NgZone,t.TestabilityRegistry,t.\u0275TESTABILITY_GETTER]}],We=[{provide:t.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:t.ErrorHandler,useFactory:function pt(){return new t.ErrorHandler},deps:[]},{provide:l,useClass:$,multi:!0,deps:[_.DOCUMENT,t.NgZone,t.PLATFORM_ID]},{provide:l,useClass:W,multi:!0,deps:[_.DOCUMENT]},S,p,r,{provide:t.RendererFactory2,useExisting:S},{provide:_.XhrFactory,useClass:a,deps:[]},[]];let Pe=(()=>{class me{constructor(te){}static withServerTransition(te){return{ngModule:me,providers:[{provide:t.APP_ID,useValue:te.appId}]}}static#e=this.\u0275fac=function(de){return new(de||me)(t.\u0275\u0275inject(Ae,12))};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:me});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({providers:[...We,...fe],imports:[_.CommonModule,t.ApplicationModule]})}return me})(),Me=(()=>{class me{constructor(te){this._doc=te,this._dom=(0,_.\u0275getDOM)()}addTag(te,de=!1){return te?this._getOrCreateElement(te,de):null}addTags(te,de=!1){return te?te.reduce((Se,it)=>(it&&Se.push(this._getOrCreateElement(it,de)),Se),[]):[]}getTag(te){return te&&this._doc.querySelector(`meta[${te}]`)||null}getTags(te){if(!te)return[];const de=this._doc.querySelectorAll(`meta[${te}]`);return de?[].slice.call(de):[]}updateTag(te,de){if(!te)return null;de=de||this._parseSelector(te);const Se=this.getTag(de);return Se?this._setMetaElementAttributes(te,Se):this._getOrCreateElement(te,!0)}removeTag(te){this.removeTagElement(this.getTag(te))}removeTagElement(te){te&&this._dom.remove(te)}_getOrCreateElement(te,de=!1){if(!de){const It=this._parseSelector(te),Gt=this.getTags(It).filter(an=>this._containsAttributes(te,an))[0];if(void 0!==Gt)return Gt}const Se=this._dom.createElement("meta");return this._setMetaElementAttributes(te,Se),this._doc.getElementsByTagName("head")[0].appendChild(Se),Se}_setMetaElementAttributes(te,de){return Object.keys(te).forEach(Se=>de.setAttribute(this._getMetaKeyMap(Se),te[Se])),de}_parseSelector(te){const de=te.name?"name":"property";return`${de}="${te[de]}"`}_containsAttributes(te,de){return Object.keys(te).every(Se=>de.getAttribute(this._getMetaKeyMap(Se))===te[Se])}_getMetaKeyMap(te){return $e[te]||te}static#e=this.\u0275fac=function(de){return new(de||me)(t.\u0275\u0275inject(_.DOCUMENT))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac,providedIn:"root"})}return me})();const $e={httpEquiv:"http-equiv"};let q=(()=>{class me{constructor(te){this._doc=te}getTitle(){return this._doc.title}setTitle(te){this._doc.title=te||""}static#e=this.\u0275fac=function(de){return new(de||me)(t.\u0275\u0275inject(_.DOCUMENT))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac,providedIn:"root"})}return me})();function _e(me,Ke){(typeof COMPILED>"u"||!COMPILED)&&((t.\u0275global.ng=t.\u0275global.ng||{})[me]=Ke)}class Oe{constructor(Ke,te){this.msPerTick=Ke,this.numTicks=te}}class vt{constructor(Ke){this.appRef=Ke.injector.get(t.ApplicationRef)}timeChangeDetection(Ke){const te=Ke&&Ke.record,de="Change Detection";te&&"profile"in console&&"function"==typeof console.profile&&console.profile(de);const Se=performance.now();let it=0;for(;it<5||performance.now()-Se<500;)this.appRef.tick(),it++;const It=performance.now();te&&"profileEnd"in console&&"function"==typeof console.profileEnd&&console.profileEnd(de);const Gt=(It-Se)/it;return console.log(`ran ${it} change detection cycles`),console.log(`${Gt.toFixed(2)} ms per check`),new Oe(Gt,it)}}const rt="profiler";function we(me){return _e(rt,new vt(me)),me}function Ge(){_e(rt,null)}class De{static all(){return()=>!0}static css(Ke){return te=>null!=te.nativeElement&&function ot(me,Ke){return!!(0,_.\u0275getDOM)().isElementNode(me)&&(me.matches&&me.matches(Ke)||me.msMatchesSelector&&me.msMatchesSelector(Ke)||me.webkitMatchesSelector&&me.webkitMatchesSelector(Ke))}(te.nativeElement,Ke)}static directive(Ke){return te=>-1!==te.providerTokens.indexOf(Ke)}}const xt={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},jt=new t.InjectionToken("HammerGestureConfig"),Xt=new t.InjectionToken("HammerLoader");let un=(()=>{class me{constructor(){this.events=[],this.overrides={}}buildHammer(te){const de=new Hammer(te,this.options);de.get("pinch").set({enable:!0}),de.get("rotate").set({enable:!0});for(const Se in this.overrides)de.get(Se).set(this.overrides[Se]);return de}static#e=this.\u0275fac=function(de){return new(de||me)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac})}return me})(),dn=(()=>{class me extends u{constructor(te,de,Se,it){super(te),this._config=de,this.console=Se,this.loader=it,this._loaderPromise=null}supports(te){return!(!xt.hasOwnProperty(te.toLowerCase())&&!this.isCustomEvent(te)||!window.Hammer&&!this.loader)}addEventListener(te,de,Se){const it=this.manager.getZone();if(de=de.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||it.runOutsideAngular(()=>this.loader());let It=!1,Gt=()=>{It=!0};return it.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?It||(Gt=this.addEventListener(te,de,Se)):Gt=()=>{}}).catch(()=>{Gt=()=>{}})),()=>{Gt()}}return it.runOutsideAngular(()=>{const It=this._config.buildHammer(te),Gt=function(an){it.runGuarded(function(){Se(an)})};return It.on(de,Gt),()=>{It.off(de,Gt),"function"==typeof It.destroy&&It.destroy()}})}isCustomEvent(te){return this._config.events.indexOf(te)>-1}static#e=this.\u0275fac=function(de){return new(de||me)(t.\u0275\u0275inject(_.DOCUMENT),t.\u0275\u0275inject(jt),t.\u0275\u0275inject(t.\u0275Console),t.\u0275\u0275inject(Xt,8))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac})}return me})(),cn=(()=>{class me{static#e=this.\u0275fac=function(de){return new(de||me)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:me});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({providers:[{provide:l,useClass:dn,multi:!0,deps:[_.DOCUMENT,jt,t.\u0275Console,[new t.Optional,Xt]]},{provide:jt,useClass:un,deps:[]}]})}return me})(),rn=(()=>{class me{static#e=this.\u0275fac=function(de){return new(de||me)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:me,factory:function(de){let Se=null;return Se=de?new(de||me):t.\u0275\u0275inject(hn),Se},providedIn:"root"})}return me})(),hn=(()=>{class me extends rn{constructor(te){super(),this._doc=te}sanitize(te,de){if(null==de)return null;switch(te){case t.SecurityContext.NONE:return de;case t.SecurityContext.HTML:return(0,t.\u0275allowSanitizationBypassAndThrow)(de,"HTML")?(0,t.\u0275unwrapSafeValue)(de):(0,t.\u0275_sanitizeHtml)(this._doc,String(de)).toString();case t.SecurityContext.STYLE:return(0,t.\u0275allowSanitizationBypassAndThrow)(de,"Style")?(0,t.\u0275unwrapSafeValue)(de):de;case t.SecurityContext.SCRIPT:if((0,t.\u0275allowSanitizationBypassAndThrow)(de,"Script"))return(0,t.\u0275unwrapSafeValue)(de);throw new t.\u0275RuntimeError(5200,!1);case t.SecurityContext.URL:return(0,t.\u0275allowSanitizationBypassAndThrow)(de,"URL")?(0,t.\u0275unwrapSafeValue)(de):(0,t.\u0275_sanitizeUrl)(String(de));case t.SecurityContext.RESOURCE_URL:if((0,t.\u0275allowSanitizationBypassAndThrow)(de,"ResourceURL"))return(0,t.\u0275unwrapSafeValue)(de);throw new t.\u0275RuntimeError(5201,!1);default:throw new t.\u0275RuntimeError(5202,!1)}}bypassSecurityTrustHtml(te){return(0,t.\u0275bypassSanitizationTrustHtml)(te)}bypassSecurityTrustStyle(te){return(0,t.\u0275bypassSanitizationTrustStyle)(te)}bypassSecurityTrustScript(te){return(0,t.\u0275bypassSanitizationTrustScript)(te)}bypassSecurityTrustUrl(te){return(0,t.\u0275bypassSanitizationTrustUrl)(te)}bypassSecurityTrustResourceUrl(te){return(0,t.\u0275bypassSanitizationTrustResourceUrl)(te)}static#e=this.\u0275fac=function(de){return new(de||me)(t.\u0275\u0275inject(_.DOCUMENT))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac,providedIn:"root"})}return me})();var Nt=function(me){return me[me.NoHttpTransferCache=0]="NoHttpTransferCache",me[me.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",me}(Nt||{});function Bt(me,Ke=[],te={}){return{\u0275kind:me,\u0275providers:Ke}}function ve(){return Bt(Nt.NoHttpTransferCache)}function Qe(me){return Bt(Nt.HttpTransferCacheOptions,(0,C.\u0275withHttpTransferCache)(me))}function Ot(...me){const Ke=[],te=new Set,de=te.has(Nt.HttpTransferCacheOptions);for(const{\u0275providers:Se,\u0275kind:it}of me)te.add(it),Se.length&&Ke.push(Se);return(0,t.makeEnvironmentProviders)([[],(0,t.\u0275withDomHydration)(),te.has(Nt.NoHttpTransferCache)||de?[]:(0,C.\u0275withHttpTransferCache)({}),Ke])}const nt=new t.Version("17.3.3"),ft=t.makeStateKey,Re=t.TransferState},7901:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{ActivatedRoute:()=>Hn,ActivatedRouteSnapshot:()=>Ji,ActivationEnd:()=>hi,ActivationStart:()=>_i,BaseRouteReuseStrategy:()=>Ko,ChildActivationEnd:()=>ar,ChildActivationStart:()=>yi,ChildrenOutletContexts:()=>qn,DefaultTitleStrategy:()=>Ss,DefaultUrlSerializer:()=>jt,EventType:()=>ut,GuardsCheckEnd:()=>Gn,GuardsCheckStart:()=>ln,NavigationCancel:()=>pe,NavigationCancellationCode:()=>Mt,NavigationEnd:()=>Ee,NavigationError:()=>Ve,NavigationSkipped:()=>le,NavigationSkippedCode:()=>H,NavigationStart:()=>mt,NoPreloading:()=>fi,OutletContext:()=>$i,PRIMARY_OUTLET:()=>V,PreloadAllModules:()=>jr,PreloadingStrategy:()=>tr,ROUTER_CONFIGURATION:()=>is,ROUTER_INITIALIZER:()=>hr,ROUTES:()=>Rr,ResolveEnd:()=>ti,ResolveStart:()=>Jn,RouteConfigLoadEnd:()=>Fn,RouteConfigLoadStart:()=>In,RouteReuseStrategy:()=>uo,Router:()=>ci,RouterEvent:()=>Ye,RouterLink:()=>Qn,RouterLinkActive:()=>Yi,RouterLinkWithHref:()=>Qn,RouterModule:()=>fs,RouterOutlet:()=>Sr,RouterPreloader:()=>mn,RouterState:()=>vn,RouterStateSnapshot:()=>Gi,RoutesRecognized:()=>wt,Scroll:()=>xi,TitleStrategy:()=>Ws,UrlHandlingStrategy:()=>lo,UrlSegment:()=>we,UrlSegmentGroup:()=>rt,UrlSerializer:()=>xt,UrlTree:()=>vt,VERSION:()=>wl,convertToParamMap:()=>ce,createUrlTreeFromSnapshot:()=>Lt,defaultUrlMatcher:()=>ue,mapToCanActivate:()=>Xo,mapToCanActivateChild:()=>ss,mapToCanDeactivate:()=>ha,mapToCanMatch:()=>Zs,mapToResolve:()=>Cl,provideRouter:()=>cr,provideRoutes:()=>pr,withComponentInputBinding:()=>fo,withDebugTracing:()=>Ao,withDisabledInitialNavigation:()=>Qi,withEnabledBlockingInitialNavigation:()=>Gs,withHashLocation:()=>Zo,withInMemoryScrolling:()=>rs,withNavigationErrorHandler:()=>Os,withPreloading:()=>Pr,withRouterConfig:()=>Ys,withViewTransitions:()=>Rs,\u0275EmptyOutletComponent:()=>bt,\u0275ROUTER_PROVIDERS:()=>po,\u0275afterNextNavigation:()=>st,\u0275loadChildren:()=>Lr});var t=g(4438),_=g(4402),C=g(8455),E=g(7673),c=g(4412),b=g(4572),s=g(9350),f=g(2688),d=g(9030),a=g(1203),l=g(8810),r=g(983),u=g(17),h=g(1413),p=g(8359),v=g(177),y=g(6354),M=g(5558),w=g(6697),k=g(9172),I=g(5964),D=g(3028),O=g(1594),T=g(274),U=g(8141),S=g(9437),R=g(1943),N=g(9901),A=g(7018),F=g(5109),Y=g(3703),ee=g(980),ie=g(9898),$=g(6977),j=g(6365),G=g(345);const V="primary",W=Symbol("RouteTitle");class K{constructor(re){this.params=re||{}}has(re){return Object.prototype.hasOwnProperty.call(this.params,re)}get(re){if(this.has(re)){const Q=this.params[re];return Array.isArray(Q)?Q[0]:Q}return null}getAll(re){if(this.has(re)){const Q=this.params[re];return Array.isArray(Q)?Q:[Q]}return[]}get keys(){return Object.keys(this.params)}}function ce(z){return new K(z)}function ue(z,re,Q){const se=Q.path.split("/");if(se.length>z.length||"full"===Q.pathMatch&&(re.hasChildren()||se.lengthse[ze]===xe)}return z===re}function Ct(z){return z.length>0?z[z.length-1]:null}function Ne(z){return(0,_.A)(z)?z:(0,t.\u0275isPromise)(z)?(0,C.H)(Promise.resolve(z)):(0,E.of)(z)}const Ae={exact:function Me(z,re,Q){if(!De(z.segments,re.segments)||!Oe(z.segments,re.segments,Q)||z.numberOfChildren!==re.numberOfChildren)return!1;for(const se in re.children)if(!z.children[se]||!Me(z.children[se],re.children[se],Q))return!1;return!0},subset:q},fe={exact:function Pe(z,re){return Ze(z,re)},subset:function $e(z,re){return Object.keys(re).length<=Object.keys(z).length&&Object.keys(re).every(Q=>ct(z[Q],re[Q]))},ignored:()=>!0};function We(z,re,Q){return Ae[Q.paths](z.root,re.root,Q.matrixParams)&&fe[Q.queryParams](z.queryParams,re.queryParams)&&!("exact"===Q.fragment&&z.fragment!==re.fragment)}function q(z,re,Q){return _e(z,re,re.segments,Q)}function _e(z,re,Q,se){if(z.segments.length>Q.length){const xe=z.segments.slice(0,Q.length);return!(!De(xe,Q)||re.hasChildren()||!Oe(xe,Q,se))}if(z.segments.length===Q.length){if(!De(z.segments,Q)||!Oe(z.segments,Q,se))return!1;for(const xe in re.children)if(!z.children[xe]||!q(z.children[xe],re.children[xe],se))return!1;return!0}{const xe=Q.slice(0,z.segments.length),ze=Q.slice(z.segments.length);return!!(De(z.segments,xe)&&Oe(z.segments,xe,se)&&z.children[V])&&_e(z.children[V],re,ze,se)}}function Oe(z,re,Q){return re.every((se,xe)=>fe[Q](z[xe].parameters,se.parameters))}class vt{constructor(re=new rt([],{}),Q={},se=null){this.root=re,this.queryParams=Q,this.fragment=se}get queryParamMap(){return this._queryParamMap??=ce(this.queryParams),this._queryParamMap}toString(){return Xt.serialize(this)}}class rt{constructor(re,Q){this.segments=re,this.children=Q,this.parent=null,Object.values(Q).forEach(se=>se.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return un(this)}}class we{constructor(re,Q){this.path=re,this.parameters=Q}get parameterMap(){return this._parameterMap??=ce(this.parameters),this._parameterMap}toString(){return Qe(this)}}function De(z,re){return z.length===re.length&&z.every((Q,se)=>Q.path===re[se].path)}let xt=(()=>{class z{static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:()=>new jt,providedIn:"root"})}return z})();class jt{parse(re){const Q=new it(re);return new vt(Q.parseRootSegment(),Q.parseQueryParams(),Q.parseFragment())}serialize(re){const Q=`/${dn(re.root,!0)}`,se=function Ot(z){const re=Object.entries(z).map(([Q,se])=>Array.isArray(se)?se.map(xe=>`${rn(Q)}=${rn(xe)}`).join("&"):`${rn(Q)}=${rn(se)}`).filter(Q=>Q);return re.length?`?${re.join("&")}`:""}(re.queryParams);return`${Q}${se}${"string"==typeof re.fragment?`#${function hn(z){return encodeURI(z)}(re.fragment)}`:""}`}}const Xt=new jt;function un(z){return z.segments.map(re=>Qe(re)).join("/")}function dn(z,re){if(!z.hasChildren())return un(z);if(re){const Q=z.children[V]?dn(z.children[V],!1):"",se=[];return Object.entries(z.children).forEach(([xe,ze])=>{xe!==V&&se.push(`${xe}:${dn(ze,!1)}`)}),se.length>0?`${Q}(${se.join("//")})`:Q}{const Q=function ot(z,re){let Q=[];return Object.entries(z.children).forEach(([se,xe])=>{se===V&&(Q=Q.concat(re(xe,se)))}),Object.entries(z.children).forEach(([se,xe])=>{se!==V&&(Q=Q.concat(re(xe,se)))}),Q}(z,(se,xe)=>xe===V?[dn(z.children[V],!1)]:[`${xe}:${dn(se,!1)}`]);return 1===Object.keys(z.children).length&&null!=z.children[V]?`${un(z)}/${Q[0]}`:`${un(z)}/(${Q.join("//")})`}}function cn(z){return encodeURIComponent(z).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rn(z){return cn(z).replace(/%3B/gi,";")}function Nt(z){return cn(z).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bt(z){return decodeURIComponent(z)}function ve(z){return Bt(z.replace(/\+/g,"%20"))}function Qe(z){return`${Nt(z.path)}${function Xe(z){return Object.entries(z).map(([re,Q])=>`;${Nt(re)}=${Nt(Q)}`).join("")}(z.parameters)}`}const nt=/^[^\/()?;#]+/;function ft(z){const re=z.match(nt);return re?re[0]:""}const Re=/^[^\/()?;=#]+/,Ke=/^[^=?&#]+/,de=/^[^&#]+/;class it{constructor(re){this.url=re,this.remaining=re}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new rt([],{}):new rt([],this.parseChildren())}parseQueryParams(){const re={};if(this.consumeOptional("?"))do{this.parseQueryParam(re)}while(this.consumeOptional("&"));return re}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const re=[];for(this.peekStartsWith("(")||re.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),re.push(this.parseSegment());let Q={};this.peekStartsWith("/(")&&(this.capture("/"),Q=this.parseParens(!0));let se={};return this.peekStartsWith("(")&&(se=this.parseParens(!1)),(re.length>0||Object.keys(Q).length>0)&&(se[V]=new rt(re,Q)),se}parseSegment(){const re=ft(this.remaining);if(""===re&&this.peekStartsWith(";"))throw new t.\u0275RuntimeError(4009,!1);return this.capture(re),new we(Bt(re),this.parseMatrixParams())}parseMatrixParams(){const re={};for(;this.consumeOptional(";");)this.parseParam(re);return re}parseParam(re){const Q=function me(z){const re=z.match(Re);return re?re[0]:""}(this.remaining);if(!Q)return;this.capture(Q);let se="";if(this.consumeOptional("=")){const xe=ft(this.remaining);xe&&(se=xe,this.capture(se))}re[Bt(Q)]=Bt(se)}parseQueryParam(re){const Q=function te(z){const re=z.match(Ke);return re?re[0]:""}(this.remaining);if(!Q)return;this.capture(Q);let se="";if(this.consumeOptional("=")){const yt=function Se(z){const re=z.match(de);return re?re[0]:""}(this.remaining);yt&&(se=yt,this.capture(se))}const xe=ve(Q),ze=ve(se);if(re.hasOwnProperty(xe)){let yt=re[xe];Array.isArray(yt)||(yt=[yt],re[xe]=yt),yt.push(ze)}else re[xe]=ze}parseParens(re){const Q={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const se=ft(this.remaining),xe=this.remaining[se.length];if("/"!==xe&&")"!==xe&&";"!==xe)throw new t.\u0275RuntimeError(4010,!1);let ze;se.indexOf(":")>-1?(ze=se.slice(0,se.indexOf(":")),this.capture(ze),this.capture(":")):re&&(ze=V);const yt=this.parseChildren();Q[ze]=1===Object.keys(yt).length?yt[V]:new rt([],yt),this.consumeOptional("//")}return Q}peekStartsWith(re){return this.remaining.startsWith(re)}consumeOptional(re){return!!this.peekStartsWith(re)&&(this.remaining=this.remaining.substring(re.length),!0)}capture(re){if(!this.consumeOptional(re))throw new t.\u0275RuntimeError(4011,!1)}}function It(z){return z.segments.length>0?new rt([],{[V]:z}):z}function Gt(z){const re={};for(const[se,xe]of Object.entries(z.children)){const ze=Gt(xe);if(se===V&&0===ze.segments.length&&ze.hasChildren())for(const[yt,Yt]of Object.entries(ze.children))re[yt]=Yt;else(ze.segments.length>0||ze.hasChildren())&&(re[se]=ze)}return function an(z){if(1===z.numberOfChildren&&z.children[V]){const re=z.children[V];return new rt(z.segments.concat(re.segments),re.children)}return z}(new rt(z.segments,re))}function _t(z){return z instanceof vt}function Lt(z,re,Q=null,se=null){return Fe(qe(z),re,Q,se)}function qe(z){let re;const xe=It(function Q(ze){const yt={};for(const zt of ze.children){const Mn=Q(zt);yt[zt.outlet]=Mn}const Yt=new rt(ze.url,yt);return ze===z&&(re=Yt),Yt}(z.root));return re??xe}function Fe(z,re,Q,se){let xe=z;for(;xe.parent;)xe=xe.parent;if(0===re.length)return dt(xe,xe,xe,Q,se);const ze=function Cn(z){if("string"==typeof z[0]&&1===z.length&&"/"===z[0])return new qt(!0,0,z);let re=0,Q=!1;const se=z.reduce((xe,ze,yt)=>{if("object"==typeof ze&&null!=ze){if(ze.outlets){const Yt={};return Object.entries(ze.outlets).forEach(([zt,Mn])=>{Yt[zt]="string"==typeof Mn?Mn.split("/"):Mn}),[...xe,{outlets:Yt}]}if(ze.segmentPath)return[...xe,ze.segmentPath]}return"string"!=typeof ze?[...xe,ze]:0===yt?(ze.split("/").forEach((Yt,zt)=>{0==zt&&"."===Yt||(0==zt&&""===Yt?Q=!0:".."===Yt?re++:""!=Yt&&xe.push(Yt))}),xe):[...xe,ze]},[]);return new qt(Q,re,se)}(re);if(ze.toRoot())return dt(xe,xe,new rt([],{}),Q,se);const yt=function Oi(z,re,Q){if(z.isAbsolute)return new Ln(re,!0,0);if(!Q)return new Ln(re,!1,NaN);if(null===Q.parent)return new Ln(Q,!0,0);const se=tt(z.commands[0])?0:1;return function Ei(z,re,Q){let se=z,xe=re,ze=Q;for(;ze>xe;){if(ze-=xe,se=se.parent,!se)throw new t.\u0275RuntimeError(4005,!1);xe=se.segments.length}return new Ln(se,!1,xe-ze)}(Q,Q.segments.length-1+se,z.numberOfDoubleDots)}(ze,xe,z),Yt=yt.processChildren?Jt(yt.segmentGroup,yt.index,ze.commands):at(yt.segmentGroup,yt.index,ze.commands);return dt(xe,yt.segmentGroup,Yt,Q,se)}function tt(z){return"object"==typeof z&&null!=z&&!z.outlets&&!z.segmentPath}function He(z){return"object"==typeof z&&null!=z&&z.outlets}function dt(z,re,Q,se,xe){let yt,ze={};se&&Object.entries(se).forEach(([zt,Mn])=>{ze[zt]=Array.isArray(Mn)?Mn.map(L=>`${L}`):`${Mn}`}),yt=z===re?Q:At(z,re,Q);const Yt=It(Gt(yt));return new vt(Yt,ze,xe)}function At(z,re,Q){const se={};return Object.entries(z.children).forEach(([xe,ze])=>{se[xe]=ze===re?Q:At(ze,re,Q)}),new rt(z.segments,se)}class qt{constructor(re,Q,se){if(this.isAbsolute=re,this.numberOfDoubleDots=Q,this.commands=se,re&&se.length>0&&tt(se[0]))throw new t.\u0275RuntimeError(4003,!1);const xe=se.find(He);if(xe&&xe!==Ct(se))throw new t.\u0275RuntimeError(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ln{constructor(re,Q,se){this.segmentGroup=re,this.processChildren=Q,this.index=se}}function at(z,re,Q){if(z??=new rt([],{}),0===z.segments.length&&z.hasChildren())return Jt(z,re,Q);const se=function Be(z,re,Q){let se=0,xe=re;const ze={match:!1,pathIndex:0,commandIndex:0};for(;xe=Q.length)return ze;const yt=z.segments[xe],Yt=Q[se];if(He(Yt))break;const zt=`${Yt}`,Mn=se0&&void 0===zt)break;if(zt&&Mn&&"object"==typeof Mn&&void 0===Mn.outlets){if(!_n(zt,Mn,yt))return ze;se+=2}else{if(!_n(zt,{},yt))return ze;se++}xe++}return{match:!0,pathIndex:xe,commandIndex:se}}(z,re,Q),xe=Q.slice(se.commandIndex);if(se.match&&se.pathIndexze!==V)&&z.children[V]&&1===z.numberOfChildren&&0===z.children[V].segments.length){const ze=Jt(z.children[V],re,Q);return new rt(z.segments,ze.children)}return Object.entries(se).forEach(([ze,yt])=>{"string"==typeof yt&&(yt=[yt]),null!==yt&&(xe[ze]=at(z.children[ze],re,yt))}),Object.entries(z.children).forEach(([ze,yt])=>{void 0===se[ze]&&(xe[ze]=yt)}),new rt(z.segments,xe)}}function lt(z,re,Q){const se=z.segments.slice(0,re);let xe=0;for(;xe{"string"==typeof se&&(se=[se]),null!==se&&(re[Q]=lt(new rt([],{}),0,se))}),re}function nn(z){const re={};return Object.entries(z).forEach(([Q,se])=>re[Q]=`${se}`),re}function _n(z,re,Q){return z==Q.path&&Ze(re,Q.parameters)}const Ue="imperative";var ut=function(z){return z[z.NavigationStart=0]="NavigationStart",z[z.NavigationEnd=1]="NavigationEnd",z[z.NavigationCancel=2]="NavigationCancel",z[z.NavigationError=3]="NavigationError",z[z.RoutesRecognized=4]="RoutesRecognized",z[z.ResolveStart=5]="ResolveStart",z[z.ResolveEnd=6]="ResolveEnd",z[z.GuardsCheckStart=7]="GuardsCheckStart",z[z.GuardsCheckEnd=8]="GuardsCheckEnd",z[z.RouteConfigLoadStart=9]="RouteConfigLoadStart",z[z.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",z[z.ChildActivationStart=11]="ChildActivationStart",z[z.ChildActivationEnd=12]="ChildActivationEnd",z[z.ActivationStart=13]="ActivationStart",z[z.ActivationEnd=14]="ActivationEnd",z[z.Scroll=15]="Scroll",z[z.NavigationSkipped=16]="NavigationSkipped",z}(ut||{});class Ye{constructor(re,Q){this.id=re,this.url=Q}}class mt extends Ye{constructor(re,Q,se="imperative",xe=null){super(re,Q),this.type=ut.NavigationStart,this.navigationTrigger=se,this.restoredState=xe}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ee extends Ye{constructor(re,Q,se){super(re,Q),this.urlAfterRedirects=se,this.type=ut.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Mt=function(z){return z[z.Redirect=0]="Redirect",z[z.SupersededByNewNavigation=1]="SupersededByNewNavigation",z[z.NoDataFromResolver=2]="NoDataFromResolver",z[z.GuardRejected=3]="GuardRejected",z}(Mt||{}),H=function(z){return z[z.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",z[z.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",z}(H||{});class pe extends Ye{constructor(re,Q,se,xe){super(re,Q),this.reason=se,this.code=xe,this.type=ut.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class le extends Ye{constructor(re,Q,se,xe){super(re,Q),this.reason=se,this.code=xe,this.type=ut.NavigationSkipped}}class Ve extends Ye{constructor(re,Q,se,xe){super(re,Q),this.error=se,this.target=xe,this.type=ut.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class wt extends Ye{constructor(re,Q,se,xe){super(re,Q),this.urlAfterRedirects=se,this.state=xe,this.type=ut.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ln extends Ye{constructor(re,Q,se,xe){super(re,Q),this.urlAfterRedirects=se,this.state=xe,this.type=ut.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gn extends Ye{constructor(re,Q,se,xe,ze){super(re,Q),this.urlAfterRedirects=se,this.state=xe,this.shouldActivate=ze,this.type=ut.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Jn extends Ye{constructor(re,Q,se,xe){super(re,Q),this.urlAfterRedirects=se,this.state=xe,this.type=ut.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ti extends Ye{constructor(re,Q,se,xe){super(re,Q),this.urlAfterRedirects=se,this.state=xe,this.type=ut.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class In{constructor(re){this.route=re,this.type=ut.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Fn{constructor(re){this.route=re,this.type=ut.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class yi{constructor(re){this.snapshot=re,this.type=ut.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ar{constructor(re){this.snapshot=re,this.type=ut.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _i{constructor(re){this.snapshot=re,this.type=ut.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hi{constructor(re){this.snapshot=re,this.type=ut.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xi{constructor(re,Q,se){this.routerEvent=re,this.position=Q,this.anchor=se,this.type=ut.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ri{}class On{constructor(re){this.url=re}}class $i{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new qn,this.attachRef=null}}let qn=(()=>{class z{constructor(){this.contexts=new Map}onChildOutletCreated(Q,se){const xe=this.getOrCreateContext(Q);xe.outlet=se,this.contexts.set(Q,xe)}onChildOutletDestroyed(Q){const se=this.getContext(Q);se&&(se.outlet=null,se.attachRef=null)}onOutletDeactivated(){const Q=this.contexts;return this.contexts=new Map,Q}onOutletReAttached(Q){this.contexts=Q}getOrCreateContext(Q){let se=this.getContext(Q);return se||(se=new $i,this.contexts.set(Q,se)),se}getContext(Q){return this.contexts.get(Q)||null}static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})();class Zn{constructor(re){this._root=re}get root(){return this._root.value}parent(re){const Q=this.pathFromRoot(re);return Q.length>1?Q[Q.length-2]:null}children(re){const Q=ii(re,this._root);return Q?Q.children.map(se=>se.value):[]}firstChild(re){const Q=ii(re,this._root);return Q&&Q.children.length>0?Q.children[0].value:null}siblings(re){const Q=Wi(re,this._root);return Q.length<2?[]:Q[Q.length-2].children.map(xe=>xe.value).filter(xe=>xe!==re)}pathFromRoot(re){return Wi(re,this._root).map(Q=>Q.value)}}function ii(z,re){if(z===re.value)return re;for(const Q of re.children){const se=ii(z,Q);if(se)return se}return null}function Wi(z,re){if(z===re.value)return[re];for(const Q of re.children){const se=Wi(z,Q);if(se.length)return se.unshift(re),se}return[]}class Ui{constructor(re,Q){this.value=re,this.children=Q}toString(){return`TreeNode(${this.value})`}}function Un(z){const re={};return z&&z.children.forEach(Q=>re[Q.value.outlet]=Q),re}class vn extends Zn{constructor(re,Q){super(re),this.snapshot=Q,lr(this,re)}toString(){return this.snapshot.toString()}}function Dn(z){const re=function Rn(z){const ze=new Ji([],{},{},"",{},V,z,null,{});return new Gi("",new Ui(ze,[]))}(z),Q=new c.t([new we("",{})]),se=new c.t({}),xe=new c.t({}),ze=new c.t({}),yt=new c.t(""),Yt=new Hn(Q,se,ze,yt,xe,V,z,re.root);return Yt.snapshot=re.root,new vn(new Ui(Yt,[]),re)}class Hn{constructor(re,Q,se,xe,ze,yt,Yt,zt){this.urlSubject=re,this.paramsSubject=Q,this.queryParamsSubject=se,this.fragmentSubject=xe,this.dataSubject=ze,this.outlet=yt,this.component=Yt,this._futureSnapshot=zt,this.title=this.dataSubject?.pipe((0,y.T)(Mn=>Mn[W]))??(0,E.of)(void 0),this.url=re,this.params=Q,this.queryParams=se,this.fragment=xe,this.data=ze}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.params.pipe((0,y.T)(re=>ce(re))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,y.T)(re=>ce(re))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ji(z,re,Q="emptyOnly"){let se;const{routeConfig:xe}=z;return se=null===re||"always"!==Q&&""!==xe?.path&&(re.component||re.routeConfig?.loadComponent)?{params:{...z.params},data:{...z.data},resolve:{...z.data,...z._resolvedData??{}}}:{params:{...re.params,...z.params},data:{...re.data,...z.data},resolve:{...z.data,...re.data,...xe?.data,...z._resolvedData}},xe&&_s(xe)&&(se.resolve[W]=xe.title),se}class Ji{get title(){return this.data?.[W]}constructor(re,Q,se,xe,ze,yt,Yt,zt,Mn){this.url=re,this.params=Q,this.queryParams=se,this.fragment=xe,this.data=ze,this.outlet=yt,this.component=Yt,this.routeConfig=zt,this._resolve=Mn}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??=ce(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ce(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(se=>se.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Gi extends Zn{constructor(re,Q){super(Q),this.url=re,lr(this,Q)}toString(){return Hr(this._root)}}function lr(z,re){re.value._routerState=z,re.children.forEach(Q=>lr(z,Q))}function Hr(z){const re=z.children.length>0?` { ${z.children.map(Hr).join(", ")} } `:"";return`${z.value}${re}`}function Tr(z){if(z.snapshot){const re=z.snapshot,Q=z._futureSnapshot;z.snapshot=Q,Ze(re.queryParams,Q.queryParams)||z.queryParamsSubject.next(Q.queryParams),re.fragment!==Q.fragment&&z.fragmentSubject.next(Q.fragment),Ze(re.params,Q.params)||z.paramsSubject.next(Q.params),function be(z,re){if(z.length!==re.length)return!1;for(let Q=0;QZe(Q.parameters,re[se].parameters))}(z.url,re.url);return Q&&!(!z.parent!=!re.parent)&&(!z.parent||wr(z.parent,re.parent))}function _s(z){return"string"==typeof z.title||null===z.title}let Sr=(()=>{class z{constructor(){this.activated=null,this._activatedRoute=null,this.name=V,this.activateEvents=new t.EventEmitter,this.deactivateEvents=new t.EventEmitter,this.attachEvents=new t.EventEmitter,this.detachEvents=new t.EventEmitter,this.parentContexts=(0,t.inject)(qn),this.location=(0,t.inject)(t.ViewContainerRef),this.changeDetector=(0,t.inject)(t.ChangeDetectorRef),this.environmentInjector=(0,t.inject)(t.EnvironmentInjector),this.inputBinder=(0,t.inject)(Ur,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(Q){if(Q.name){const{firstChange:se,previousValue:xe}=Q.name;if(se)return;this.isTrackedInParentContexts(xe)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(xe)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(Q){return this.parentContexts.getContext(Q)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const Q=this.parentContexts.getContext(this.name);Q?.route&&(Q.attachRef?this.attach(Q.attachRef,Q.route):this.activateWith(Q.route,Q.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new t.\u0275RuntimeError(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new t.\u0275RuntimeError(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new t.\u0275RuntimeError(4012,!1);this.location.detach();const Q=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(Q.instance),Q}attach(Q,se){this.activated=Q,this._activatedRoute=se,this.location.insert(Q.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),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,se){if(this.isActivated)throw new t.\u0275RuntimeError(4013,!1);this._activatedRoute=Q;const xe=this.location,yt=Q.snapshot.component,Yt=this.parentContexts.getOrCreateContext(this.name).children,zt=new Fr(Q,Yt,xe.injector);this.activated=xe.createComponent(yt,{index:xe.length,injector:zt,environmentInjector:se??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:z,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[t.\u0275\u0275NgOnChangesFeature]})}return z})();class Fr{constructor(re,Q,se){this.route=re,this.childContexts=Q,this.parent=se,this.__ngOutletInjector=!0}get(re,Q){return re===Hn?this.route:re===qn?this.childContexts:this.parent.get(re,Q)}}const Ur=new t.InjectionToken("");let mr=(()=>{class z{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(Q){this.unsubscribeFromRouteData(Q),this.subscribeToRouteData(Q)}unsubscribeFromRouteData(Q){this.outletDataSubscriptions.get(Q)?.unsubscribe(),this.outletDataSubscriptions.delete(Q)}subscribeToRouteData(Q){const{activatedRoute:se}=Q,xe=(0,b.z)([se.queryParams,se.params,se.data]).pipe((0,M.n)(([ze,yt,Yt],zt)=>(Yt={...ze,...yt,...Yt},0===zt?(0,E.of)(Yt):Promise.resolve(Yt)))).subscribe(ze=>{if(!Q.isActivated||!Q.activatedComponentRef||Q.activatedRoute!==se||null===se.component)return void this.unsubscribeFromRouteData(Q);const yt=(0,t.reflectComponentType)(se.component);if(yt)for(const{templateName:Yt}of yt.inputs)Q.activatedComponentRef.setInput(Yt,ze[Yt]);else this.unsubscribeFromRouteData(Q)});this.outletDataSubscriptions.set(Q,xe)}static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac})}return z})();function Li(z,re,Q){if(Q&&z.shouldReuseRoute(re.value,Q.value.snapshot)){const se=Q.value;se._futureSnapshot=re.value;const xe=function ts(z,re,Q){return re.children.map(se=>{for(const xe of Q.children)if(z.shouldReuseRoute(se.value,xe.value.snapshot))return Li(z,se,xe);return Li(z,se)})}(z,re,Q);return new Ui(se,xe)}{if(z.shouldAttach(re.value)){const ze=z.retrieve(re.value);if(null!==ze){const yt=ze.route;return yt.value._futureSnapshot=re.value,yt.children=re.children.map(Yt=>Li(z,Yt)),yt}}const se=function Bn(z){return new Hn(new c.t(z.url),new c.t(z.params),new c.t(z.queryParams),new c.t(z.fragment),new c.t(z.data),z.outlet,z.component,z)}(re.value),xe=re.children.map(ze=>Li(z,ze));return new Ui(se,xe)}}const zr="ngNavigationCancelingError";function us(z,re){const{redirectTo:Q,navigationBehaviorOptions:se}=_t(re)?{redirectTo:re,navigationBehaviorOptions:void 0}:re,xe=br(!1,Mt.Redirect);return xe.url=Q,xe.navigationBehaviorOptions=se,xe}function br(z,re){const Q=new Error(`NavigationCancelingError: ${z||""}`);return Q[zr]=!0,Q.cancellationCode=re,Q}function Dt(z){return!!z&&z[zr]}let bt=(()=>{class z{static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:z,selectors:[["ng-component"]],standalone:!0,features:[t.\u0275\u0275StandaloneFeature],decls:1,vars:0,template:function(se,xe){1&se&&t.\u0275\u0275element(0,"router-outlet")},dependencies:[Sr],encapsulation:2})}return z})();function Mi(z){const re=z.children&&z.children.map(Mi),Q=re?{...z,children:re}:{...z};return!Q.component&&!Q.loadComponent&&(re||Q.loadChildren)&&Q.outlet&&Q.outlet!==V&&(Q.component=bt),Q}function Xn(z){return z.outlet||V}function Vn(z){if(!z)return null;if(z.routeConfig?._injector)return z.routeConfig._injector;for(let re=z.parent;re;re=re.parent){const Q=re.routeConfig;if(Q?._loadedInjector)return Q._loadedInjector;if(Q?._injector)return Q._injector}return null}class ur{constructor(re,Q,se,xe,ze){this.routeReuseStrategy=re,this.futureState=Q,this.currState=se,this.forwardEvent=xe,this.inputBindingEnabled=ze}activate(re){const Q=this.futureState._root,se=this.currState?this.currState._root:null;this.deactivateChildRoutes(Q,se,re),Tr(this.futureState.root),this.activateChildRoutes(Q,se,re)}deactivateChildRoutes(re,Q,se){const xe=Un(Q);re.children.forEach(ze=>{const yt=ze.value.outlet;this.deactivateRoutes(ze,xe[yt],se),delete xe[yt]}),Object.values(xe).forEach(ze=>{this.deactivateRouteAndItsChildren(ze,se)})}deactivateRoutes(re,Q,se){const xe=re.value,ze=Q?Q.value:null;if(xe===ze)if(xe.component){const yt=se.getContext(xe.outlet);yt&&this.deactivateChildRoutes(re,Q,yt.children)}else this.deactivateChildRoutes(re,Q,se);else ze&&this.deactivateRouteAndItsChildren(Q,se)}deactivateRouteAndItsChildren(re,Q){re.value.component&&this.routeReuseStrategy.shouldDetach(re.value.snapshot)?this.detachAndStoreRouteSubtree(re,Q):this.deactivateRouteAndOutlet(re,Q)}detachAndStoreRouteSubtree(re,Q){const se=Q.getContext(re.value.outlet),xe=se&&re.value.component?se.children:Q,ze=Un(re);for(const yt of Object.values(ze))this.deactivateRouteAndItsChildren(yt,xe);if(se&&se.outlet){const yt=se.outlet.detach(),Yt=se.children.onOutletDeactivated();this.routeReuseStrategy.store(re.value.snapshot,{componentRef:yt,route:re,contexts:Yt})}}deactivateRouteAndOutlet(re,Q){const se=Q.getContext(re.value.outlet),xe=se&&re.value.component?se.children:Q,ze=Un(re);for(const yt of Object.values(ze))this.deactivateRouteAndItsChildren(yt,xe);se&&(se.outlet&&(se.outlet.deactivate(),se.children.onOutletDeactivated()),se.attachRef=null,se.route=null)}activateChildRoutes(re,Q,se){const xe=Un(Q);re.children.forEach(ze=>{this.activateRoutes(ze,xe[ze.value.outlet],se),this.forwardEvent(new hi(ze.value.snapshot))}),re.children.length&&this.forwardEvent(new ar(re.value.snapshot))}activateRoutes(re,Q,se){const xe=re.value,ze=Q?Q.value:null;if(Tr(xe),xe===ze)if(xe.component){const yt=se.getOrCreateContext(xe.outlet);this.activateChildRoutes(re,Q,yt.children)}else this.activateChildRoutes(re,Q,se);else if(xe.component){const yt=se.getOrCreateContext(xe.outlet);if(this.routeReuseStrategy.shouldAttach(xe.snapshot)){const Yt=this.routeReuseStrategy.retrieve(xe.snapshot);this.routeReuseStrategy.store(xe.snapshot,null),yt.children.onOutletReAttached(Yt.contexts),yt.attachRef=Yt.componentRef,yt.route=Yt.route.value,yt.outlet&&yt.outlet.attach(Yt.componentRef,Yt.route.value),Tr(Yt.route.value),this.activateChildRoutes(re,null,yt.children)}else{const Yt=Vn(xe.snapshot);yt.attachRef=null,yt.route=xe,yt.injector=Yt,yt.outlet&&yt.outlet.activateWith(xe,yt.injector),this.activateChildRoutes(re,null,yt.children)}}else this.activateChildRoutes(re,null,se)}}class Bi{constructor(re){this.path=re,this.route=this.path[this.path.length-1]}}class Ar{constructor(re,Q){this.component=re,this.route=Q}}function Wr(z,re,Q){const se=z._root;return qi(se,re?re._root:null,Q,[se.value])}function Br(z,re){const Q=Symbol(),se=re.get(z,Q);return se===Q?"function"!=typeof z||(0,t.\u0275isInjectable)(z)?re.get(z):z:se}function qi(z,re,Q,se,xe={canDeactivateChecks:[],canActivateChecks:[]}){const ze=Un(re);return z.children.forEach(yt=>{(function di(z,re,Q,se,xe={canDeactivateChecks:[],canActivateChecks:[]}){const ze=z.value,yt=re?re.value:null,Yt=Q?Q.getContext(z.value.outlet):null;if(yt&&ze.routeConfig===yt.routeConfig){const zt=function ns(z,re,Q){if("function"==typeof Q)return Q(z,re);switch(Q){case"pathParamsChange":return!De(z.url,re.url);case"pathParamsOrQueryParamsChange":return!De(z.url,re.url)||!Ze(z.queryParams,re.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!wr(z,re)||!Ze(z.queryParams,re.queryParams);default:return!wr(z,re)}}(yt,ze,ze.routeConfig.runGuardsAndResolvers);zt?xe.canActivateChecks.push(new Bi(se)):(ze.data=yt.data,ze._resolvedData=yt._resolvedData),qi(z,re,ze.component?Yt?Yt.children:null:Q,se,xe),zt&&Yt&&Yt.outlet&&Yt.outlet.isActivated&&xe.canDeactivateChecks.push(new Ar(Yt.outlet.component,yt))}else yt&&Gr(re,Yt,xe),xe.canActivateChecks.push(new Bi(se)),qi(z,null,ze.component?Yt?Yt.children:null:Q,se,xe)})(yt,ze[yt.value.outlet],Q,se.concat([yt.value]),xe),delete ze[yt.value.outlet]}),Object.entries(ze).forEach(([yt,Yt])=>Gr(Yt,Q.getContext(yt),xe)),xe}function Gr(z,re,Q){const se=Un(z),xe=z.value;Object.entries(se).forEach(([ze,yt])=>{Gr(yt,xe.component?re?re.children.getContext(ze):null:re,Q)}),Q.canDeactivateChecks.push(new Ar(xe.component&&re&&re.outlet&&re.outlet.isActivated?re.outlet.component:null,xe))}function $r(z){return"function"==typeof z}function Te(z){return z instanceof s.G||"EmptyError"===z?.name}const ae=Symbol("INITIAL_VALUE");function je(){return(0,M.n)(z=>(0,b.z)(z.map(re=>re.pipe((0,w.s)(1),(0,k.Z)(ae)))).pipe((0,y.T)(re=>{for(const Q of re)if(!0!==Q){if(Q===ae)return ae;if(!1===Q||Q instanceof vt)return Q}return!0}),(0,I.p)(re=>re!==ae),(0,w.s)(1)))}function Io(z){return(0,a.F)((0,U.M)(re=>{if(_t(re))throw us(0,re)}),(0,y.T)(re=>!0===re))}class no{constructor(re){this.segmentGroup=re||null}}class $o extends Error{constructor(re){super(),this.urlTree=re}}function bs(z){return(0,l.$)(new no(z))}class jo{constructor(re,Q){this.urlSerializer=re,this.urlTree=Q}lineralizeSegments(re,Q){let se=[],xe=Q.root;for(;;){if(se=se.concat(xe.segments),0===xe.numberOfChildren)return(0,E.of)(se);if(xe.numberOfChildren>1||!xe.children[V])return(0,l.$)(new t.\u0275RuntimeError(4e3,!1));xe=xe.children[V]}}applyRedirectCommands(re,Q,se){const xe=this.applyRedirectCreateUrlTree(Q,this.urlSerializer.parse(Q),re,se);if(Q.startsWith("/"))throw new $o(xe);return xe}applyRedirectCreateUrlTree(re,Q,se,xe){const ze=this.createSegmentGroup(re,Q.root,se,xe);return new vt(ze,this.createQueryParams(Q.queryParams,this.urlTree.queryParams),Q.fragment)}createQueryParams(re,Q){const se={};return Object.entries(re).forEach(([xe,ze])=>{if("string"==typeof ze&&ze.startsWith(":")){const Yt=ze.substring(1);se[xe]=Q[Yt]}else se[xe]=ze}),se}createSegmentGroup(re,Q,se,xe){const ze=this.createSegments(re,Q.segments,se,xe);let yt={};return Object.entries(Q.children).forEach(([Yt,zt])=>{yt[Yt]=this.createSegmentGroup(re,zt,se,xe)}),new rt(ze,yt)}createSegments(re,Q,se,xe){return Q.map(ze=>ze.path.startsWith(":")?this.findPosParam(re,ze,xe):this.findOrReturn(ze,se))}findPosParam(re,Q,se){const xe=se[Q.path.substring(1)];if(!xe)throw new t.\u0275RuntimeError(4001,!1);return xe}findOrReturn(re,Q){let se=0;for(const xe of Q){if(xe.path===re.path)return Q.splice(se),xe;se++}return re}}const Fs={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function aa(z,re,Q,se,xe){const ze=Us(z,re,Q);return ze.matched?(se=function Tt(z,re){return z.providers&&!z._injector&&(z._injector=(0,t.createEnvironmentInjector)(z.providers,re,`Route: ${z.path}`)),z._injector??re}(re,se),function Ni(z,re,Q,se){const xe=re.canMatch;if(!xe||0===xe.length)return(0,E.of)(!0);const ze=xe.map(yt=>{const Yt=Br(yt,z);return Ne(function ye(z){return z&&$r(z.canMatch)}(Yt)?Yt.canMatch(re,Q):(0,t.runInInjectionContext)(z,()=>Yt(re,Q)))});return(0,E.of)(ze).pipe(je(),Io())}(se,re,Q).pipe((0,y.T)(yt=>!0===yt?ze:{...Fs}))):(0,E.of)(ze)}function Us(z,re,Q){if("**"===re.path)return function Bs(z){return{matched:!0,parameters:z.length>0?Ct(z).parameters:{},consumedSegments:z,remainingSegments:[],positionalParamSegments:{}}}(Q);if(""===re.path)return"full"===re.pathMatch&&(z.hasChildren()||Q.length>0)?{...Fs}:{matched:!0,consumedSegments:[],remainingSegments:Q,parameters:{},positionalParamSegments:{}};const xe=(re.matcher||ue)(Q,z,re);if(!xe)return{...Fs};const ze={};Object.entries(xe.posParams??{}).forEach(([Yt,zt])=>{ze[Yt]=zt.path});const yt=xe.consumed.length>0?{...ze,...xe.consumed[xe.consumed.length-1].parameters}:ze;return{matched:!0,consumedSegments:xe.consumed,remainingSegments:Q.slice(xe.consumed.length),parameters:yt,positionalParamSegments:xe.posParams??{}}}function Xr(z,re,Q,se){return Q.length>0&&function pi(z,re,Q){return Q.some(se=>Or(z,re,se)&&Xn(se)!==V)}(z,Q,se)?{segmentGroup:new rt(re,oi(se,new rt(Q,z.children))),slicedSegments:[]}:0===Q.length&&function er(z,re,Q){return Q.some(se=>Or(z,re,se))}(z,Q,se)?{segmentGroup:new rt(z.segments,To(z,Q,se,z.children)),slicedSegments:Q}:{segmentGroup:new rt(z.segments,z.children),slicedSegments:Q}}function To(z,re,Q,se){const xe={};for(const ze of Q)if(Or(z,re,ze)&&!se[Xn(ze)]){const yt=new rt([],{});xe[Xn(ze)]=yt}return{...se,...xe}}function oi(z,re){const Q={};Q[V]=re;for(const se of z)if(""===se.path&&Xn(se)!==V){const xe=new rt([],{});Q[Xn(se)]=xe}return Q}function Or(z,re,Q){return(!(z.hasChildren()||re.length>0)||"full"!==Q.pathMatch)&&""===Q.path}class Ts{}class la{constructor(re,Q,se,xe,ze,yt,Yt){this.injector=re,this.configLoader=Q,this.rootComponentType=se,this.config=xe,this.urlTree=ze,this.paramsInheritanceStrategy=yt,this.urlSerializer=Yt,this.applyRedirects=new jo(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(re){return new t.\u0275RuntimeError(4002,`'${re.segmentGroup}'`)}recognize(){const re=Xr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(re).pipe((0,y.T)(Q=>{const se=new Ji([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},V,this.rootComponentType,null,{}),xe=new Ui(se,Q),ze=new Gi("",xe),yt=Lt(se,[],this.urlTree.queryParams,this.urlTree.fragment);return yt.queryParams=this.urlTree.queryParams,ze.url=this.urlSerializer.serialize(yt),this.inheritParamsAndData(ze._root,null),{state:ze,tree:yt}}))}match(re){return this.processSegmentGroup(this.injector,this.config,re,V).pipe((0,S.W)(se=>{if(se instanceof $o)return this.urlTree=se.urlTree,this.match(se.urlTree.root);throw se instanceof no?this.noMatchError(se):se}))}inheritParamsAndData(re,Q){const se=re.value,xe=ji(se,Q,this.paramsInheritanceStrategy);se.params=Object.freeze(xe.params),se.data=Object.freeze(xe.data),re.children.forEach(ze=>this.inheritParamsAndData(ze,se))}processSegmentGroup(re,Q,se,xe){return 0===se.segments.length&&se.hasChildren()?this.processChildren(re,Q,se):this.processSegment(re,Q,se,se.segments,xe,!0).pipe((0,y.T)(ze=>ze instanceof Ui?[ze]:[]))}processChildren(re,Q,se){const xe=[];for(const ze of Object.keys(se.children))"primary"===ze?xe.unshift(ze):xe.push(ze);return(0,C.H)(xe).pipe((0,T.H)(ze=>{const yt=se.children[ze],Yt=function Ti(z,re){const Q=z.filter(se=>Xn(se)===re);return Q.push(...z.filter(se=>Xn(se)!==re)),Q}(Q,ze);return this.processSegmentGroup(re,Yt,yt,ze)}),(0,R.S)((ze,yt)=>(ze.push(...yt),ze)),(0,N.U)(null),(0,A.H)(),(0,D.Z)(ze=>{if(null===ze)return bs(se);const yt=Vs(ze);return function ys(z){z.sort((re,Q)=>re.value.outlet===V?-1:Q.value.outlet===V?1:re.value.outlet.localeCompare(Q.value.outlet))}(yt),(0,E.of)(yt)}))}processSegment(re,Q,se,xe,ze,yt){return(0,C.H)(Q).pipe((0,T.H)(Yt=>this.processSegmentAgainstRoute(Yt._injector??re,Q,Yt,se,xe,ze,yt).pipe((0,S.W)(zt=>{if(zt instanceof no)return(0,E.of)(null);throw zt}))),(0,O.$)(Yt=>!!Yt),(0,S.W)(Yt=>{if(Te(Yt))return function io(z,re,Q){return 0===re.length&&!z.children[Q]}(se,xe,ze)?(0,E.of)(new Ts):bs(se);throw Yt}))}processSegmentAgainstRoute(re,Q,se,xe,ze,yt,Yt){return function dr(z,re,Q,se){return!!(Xn(z)===se||se!==V&&Or(re,Q,z))&&Us(re,z,Q).matched}(se,xe,ze,yt)?void 0===se.redirectTo?this.matchSegmentAgainstRoute(re,xe,se,ze,yt):this.allowRedirects&&Yt?this.expandSegmentAgainstRouteUsingRedirect(re,xe,Q,se,ze,yt):bs(xe):bs(xe)}expandSegmentAgainstRouteUsingRedirect(re,Q,se,xe,ze,yt){const{matched:Yt,consumedSegments:zt,positionalParamSegments:Mn,remainingSegments:L}=Us(Q,xe,ze);if(!Yt)return bs(Q);xe.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Ce=this.applyRedirects.applyRedirectCommands(zt,xe.redirectTo,Mn);return this.applyRedirects.lineralizeSegments(xe,Ce).pipe((0,D.Z)(Z=>this.processSegment(re,se,Q,Z.concat(L),yt,!1)))}matchSegmentAgainstRoute(re,Q,se,xe,ze){const yt=aa(Q,se,xe,re);return"**"===se.path&&(Q.children={}),yt.pipe((0,M.n)(Yt=>Yt.matched?this.getChildConfig(re=se._injector??re,se,xe).pipe((0,M.n)(({routes:zt})=>{const Mn=se._loadedInjector??re,{consumedSegments:L,remainingSegments:Ce,parameters:Z}=Yt,Je=new Ji(L,Z,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function js(z){return z.data||{}}(se),Xn(se),se.component??se._loadedComponent??null,se,function Ta(z){return z.resolve||{}}(se)),{segmentGroup:gt,slicedSegments:ht}=Xr(Q,L,Ce,zt);if(0===ht.length&>.hasChildren())return this.processChildren(Mn,zt,gt).pipe((0,y.T)(Ut=>null===Ut?null:new Ui(Je,Ut)));if(0===zt.length&&0===ht.length)return(0,E.of)(new Ui(Je,[]));const Kt=Xn(se)===ze;return this.processSegment(Mn,zt,gt,ht,Kt?V:ze,!0).pipe((0,y.T)(Ut=>new Ui(Je,Ut instanceof Ui?[Ut]:[])))})):bs(Q)))}getChildConfig(re,Q,se){return Q.children?(0,E.of)({routes:Q.children,injector:re}):Q.loadChildren?void 0!==Q._loadedRoutes?(0,E.of)({routes:Q._loadedRoutes,injector:Q._loadedInjector}):function Ns(z,re,Q,se){const xe=re.canLoad;if(void 0===xe||0===xe.length)return(0,E.of)(!0);const ze=xe.map(yt=>{const Yt=Br(yt,z);return Ne(function Yr(z){return z&&$r(z.canLoad)}(Yt)?Yt.canLoad(re,Q):(0,t.runInInjectionContext)(z,()=>Yt(re,Q)))});return(0,E.of)(ze).pipe(je(),Io())}(re,Q,se).pipe((0,D.Z)(xe=>xe?this.configLoader.loadChildren(re,Q).pipe((0,U.M)(ze=>{Q._loadedRoutes=ze.routes,Q._loadedInjector=ze.injector})):function Vo(z){return(0,l.$)(br(!1,Mt.GuardRejected))}())):(0,E.of)({routes:[],injector:re})}}function ro(z){const re=z.value.routeConfig;return re&&""===re.path}function Vs(z){const re=[],Q=new Set;for(const se of z){if(!ro(se)){re.push(se);continue}const xe=re.find(ze=>se.value.routeConfig===ze.value.routeConfig);void 0!==xe?(xe.children.push(...se.children),Q.add(xe)):re.push(se)}for(const se of Q){const xe=Vs(se.children);re.push(new Ui(se.value,xe))}return re.filter(se=>!Q.has(se))}function zs(z){const re=z.children.map(Q=>zs(Q)).flat();return[z,...re]}function oo(z){return(0,M.n)(re=>{const Q=z(re);return Q?(0,C.H)(Q).pipe((0,y.T)(()=>re)):(0,E.of)(re)})}let Ws=(()=>{class z{buildTitle(Q){let se,xe=Q.root;for(;void 0!==xe;)se=this.getResolvedTitleForRoute(xe)??se,xe=xe.children.find(ze=>ze.outlet===V);return se}getResolvedTitleForRoute(Q){return Q.data[W]}static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:()=>(0,t.inject)(Ss),providedIn:"root"})}return z})(),Ss=(()=>{class z extends Ws{constructor(Q){super(),this.title=Q}updateTitle(Q){const se=this.buildTitle(Q);void 0!==se&&this.title.setTitle(se)}static#e=this.\u0275fac=function(se){return new(se||z)(t.\u0275\u0275inject(G.Title))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})();const is=new t.InjectionToken("",{providedIn:"root",factory:()=>({})}),Rr=new t.InjectionToken("");let Cs=(()=>{class z{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,t.inject)(t.Compiler)}loadComponent(Q){if(this.componentLoaders.get(Q))return this.componentLoaders.get(Q);if(Q._loadedComponent)return(0,E.of)(Q._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(Q);const se=Ne(Q.loadComponent()).pipe((0,y.T)(ao),(0,U.M)(ze=>{this.onLoadEndListener&&this.onLoadEndListener(Q),Q._loadedComponent=ze}),(0,ee.j)(()=>{this.componentLoaders.delete(Q)})),xe=new u.G(se,()=>new h.B).pipe((0,ie.B)());return this.componentLoaders.set(Q,xe),xe}loadChildren(Q,se){if(this.childrenLoaders.get(se))return this.childrenLoaders.get(se);if(se._loadedRoutes)return(0,E.of)({routes:se._loadedRoutes,injector:se._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(se);const ze=Lr(se,this.compiler,Q,this.onLoadEndListener).pipe((0,ee.j)(()=>{this.childrenLoaders.delete(se)})),yt=new u.G(ze,()=>new h.B).pipe((0,ie.B)());return this.childrenLoaders.set(se,yt),yt}static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})();function Lr(z,re,Q,se){return Ne(z.loadChildren()).pipe((0,y.T)(ao),(0,D.Z)(xe=>xe instanceof t.NgModuleFactory||Array.isArray(xe)?(0,E.of)(xe):(0,C.H)(re.compileModuleAsync(xe))),(0,y.T)(xe=>{se&&se(z);let ze,yt;return Array.isArray(xe)?yt=xe:(ze=xe.create(Q).injector,yt=ze.get(Rr,[],{optional:!0,self:!0}).flat()),{routes:yt.map(Mi),injector:ze}}))}function ao(z){return function As(z){return z&&"object"==typeof z&&"default"in z}(z)?z.default:z}let lo=(()=>{class z{static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:()=>(0,t.inject)(Go),providedIn:"root"})}return z})(),Go=(()=>{class z{shouldProcessUrl(Q){return!0}extract(Q){return Q}merge(Q,se){return Q}static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})();const So=new t.InjectionToken(""),ws=new t.InjectionToken("");function Ki(z,re,Q){const se=z.get(ws),xe=z.get(v.DOCUMENT);return z.get(t.NgZone).runOutsideAngular(()=>{if(!xe.startViewTransition||se.skipNextTransition)return se.skipNextTransition=!1,Promise.resolve();let ze;const yt=new Promise(Mn=>{ze=Mn}),Yt=xe.startViewTransition(()=>(ze(),function ca(z){return new Promise(re=>{(0,t.afterNextRender)(re,{injector:z})})}(z))),{onViewTransitionCreated:zt}=se;return zt&&(0,t.runInInjectionContext)(z,()=>zt({transition:Yt,from:re,to:Q})),yt})}let co=(()=>{class z{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new h.B,this.transitionAbortSubject=new h.B,this.configLoader=(0,t.inject)(Cs),this.environmentInjector=(0,t.inject)(t.EnvironmentInjector),this.urlSerializer=(0,t.inject)(xt),this.rootContexts=(0,t.inject)(qn),this.location=(0,t.inject)(v.Location),this.inputBindingEnabled=null!==(0,t.inject)(Ur,{optional:!0}),this.titleStrategy=(0,t.inject)(Ws),this.options=(0,t.inject)(is,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,t.inject)(lo),this.createViewTransition=(0,t.inject)(So,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,E.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=xe=>this.events.next(new Fn(xe)),this.configLoader.onLoadStartListener=xe=>this.events.next(new In(xe))}complete(){this.transitions?.complete()}handleNavigationRequest(Q){const se=++this.navigationId;this.transitions?.next({...this.transitions.value,...Q,id:se})}setupNavigations(Q,se,xe){return this.transitions=new c.t({id:0,currentUrlTree:se,currentRawUrl:se,extractedUrl:this.urlHandlingStrategy.extract(se),urlAfterRedirects:this.urlHandlingStrategy.extract(se),rawUrl:se,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ue,restoredState:null,currentSnapshot:xe.snapshot,targetSnapshot:null,currentRouterState:xe,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,I.p)(ze=>0!==ze.id),(0,y.T)(ze=>({...ze,extractedUrl:this.urlHandlingStrategy.extract(ze.rawUrl)})),(0,M.n)(ze=>{let yt=!1,Yt=!1;return(0,E.of)(ze).pipe((0,M.n)(zt=>{if(this.navigationId>ze.id)return this.cancelNavigationTransition(ze,"",Mt.SupersededByNewNavigation),r.w;this.currentTransition=ze,this.currentNavigation={id:zt.id,initialUrl:zt.rawUrl,extractedUrl:zt.extractedUrl,trigger:zt.source,extras:zt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const Mn=!Q.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!Mn&&"reload"!==(zt.extras.onSameUrlNavigation??Q.onSameUrlNavigation)){const Ce="";return this.events.next(new le(zt.id,this.urlSerializer.serialize(zt.rawUrl),Ce,H.IgnoredSameUrlNavigation)),zt.resolve(null),r.w}if(this.urlHandlingStrategy.shouldProcessUrl(zt.rawUrl))return(0,E.of)(zt).pipe((0,M.n)(Ce=>{const Z=this.transitions?.getValue();return this.events.next(new mt(Ce.id,this.urlSerializer.serialize(Ce.extractedUrl),Ce.source,Ce.restoredState)),Z!==this.transitions?.getValue()?r.w:Promise.resolve(Ce)}),function Hs(z,re,Q,se,xe,ze){return(0,D.Z)(yt=>function $s(z,re,Q,se,xe,ze,yt="emptyOnly"){return new la(z,re,Q,se,xe,yt,ze).recognize()}(z,re,Q,se,yt.extractedUrl,xe,ze).pipe((0,y.T)(({state:Yt,tree:zt})=>({...yt,targetSnapshot:Yt,urlAfterRedirects:zt}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,Q.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,U.M)(Ce=>{ze.targetSnapshot=Ce.targetSnapshot,ze.urlAfterRedirects=Ce.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Ce.urlAfterRedirects};const Z=new wt(Ce.id,this.urlSerializer.serialize(Ce.extractedUrl),this.urlSerializer.serialize(Ce.urlAfterRedirects),Ce.targetSnapshot);this.events.next(Z)}));if(Mn&&this.urlHandlingStrategy.shouldProcessUrl(zt.currentRawUrl)){const{id:Ce,extractedUrl:Z,source:Je,restoredState:gt,extras:ht}=zt,Kt=new mt(Ce,this.urlSerializer.serialize(Z),Je,gt);this.events.next(Kt);const Ut=Dn(this.rootComponentType).snapshot;return this.currentTransition=ze={...zt,targetSnapshot:Ut,urlAfterRedirects:Z,extras:{...ht,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Z,(0,E.of)(ze)}{const Ce="";return this.events.next(new le(zt.id,this.urlSerializer.serialize(zt.extractedUrl),Ce,H.IgnoredByUrlHandlingStrategy)),zt.resolve(null),r.w}}),(0,U.M)(zt=>{const Mn=new ln(zt.id,this.urlSerializer.serialize(zt.extractedUrl),this.urlSerializer.serialize(zt.urlAfterRedirects),zt.targetSnapshot);this.events.next(Mn)}),(0,y.T)(zt=>(this.currentTransition=ze={...zt,guards:Wr(zt.targetSnapshot,zt.currentSnapshot,this.rootContexts)},ze)),function St(z,re){return(0,D.Z)(Q=>{const{targetSnapshot:se,currentSnapshot:xe,guards:{canActivateChecks:ze,canDeactivateChecks:yt}}=Q;return 0===yt.length&&0===ze.length?(0,E.of)({...Q,guardsResult:!0}):function xn(z,re,Q,se){return(0,C.H)(z).pipe((0,D.Z)(xe=>function Bo(z,re,Q,se,xe){const ze=re&&re.routeConfig?re.routeConfig.canDeactivate:null;if(!ze||0===ze.length)return(0,E.of)(!0);const yt=ze.map(Yt=>{const zt=Vn(re)??xe,Mn=Br(Yt,zt);return Ne(function Do(z){return z&&$r(z.canDeactivate)}(Mn)?Mn.canDeactivate(z,re,Q,se):(0,t.runInInjectionContext)(zt,()=>Mn(z,re,Q,se))).pipe((0,O.$)())});return(0,E.of)(yt).pipe(je())}(xe.component,xe.route,Q,re,se)),(0,O.$)(xe=>!0!==xe,!0))}(yt,se,xe,z).pipe((0,D.Z)(Yt=>Yt&&function Kr(z){return"boolean"==typeof z}(Yt)?function ni(z,re,Q,se){return(0,C.H)(re).pipe((0,T.H)(xe=>(0,f.x)(function Vr(z,re){return null!==z&&re&&re(new yi(z)),(0,E.of)(!0)}(xe.route.parent,se),function Er(z,re){return null!==z&&re&&re(new _i(z)),(0,E.of)(!0)}(xe.route,se),function kr(z,re,Q){const se=re[re.length-1],ze=re.slice(0,re.length-1).reverse().map(yt=>function to(z){const re=z.routeConfig?z.routeConfig.canActivateChild:null;return re&&0!==re.length?{node:z,guards:re}:null}(yt)).filter(yt=>null!==yt).map(yt=>(0,d.v)(()=>{const Yt=yt.guards.map(zt=>{const Mn=Vn(yt.node)??Q,L=Br(zt,Mn);return Ne(function Qr(z){return z&&$r(z.canActivateChild)}(L)?L.canActivateChild(se,z):(0,t.runInInjectionContext)(Mn,()=>L(se,z))).pipe((0,O.$)())});return(0,E.of)(Yt).pipe(je())}));return(0,E.of)(ze).pipe(je())}(z,xe.path,Q),function Is(z,re,Q){const se=re.routeConfig?re.routeConfig.canActivate:null;if(!se||0===se.length)return(0,E.of)(!0);const xe=se.map(ze=>(0,d.v)(()=>{const yt=Vn(re)??Q,Yt=Br(ze,yt);return Ne(function Zr(z){return z&&$r(z.canActivate)}(Yt)?Yt.canActivate(re,z):(0,t.runInInjectionContext)(yt,()=>Yt(re,z))).pipe((0,O.$)())}));return(0,E.of)(xe).pipe(je())}(z,xe.route,Q))),(0,O.$)(xe=>!0!==xe,!0))}(se,ze,z,re):(0,E.of)(Yt)),(0,y.T)(Yt=>({...Q,guardsResult:Yt})))})}(this.environmentInjector,zt=>this.events.next(zt)),(0,U.M)(zt=>{if(ze.guardsResult=zt.guardsResult,_t(zt.guardsResult))throw us(0,zt.guardsResult);const Mn=new Gn(zt.id,this.urlSerializer.serialize(zt.extractedUrl),this.urlSerializer.serialize(zt.urlAfterRedirects),zt.targetSnapshot,!!zt.guardsResult);this.events.next(Mn)}),(0,I.p)(zt=>!!zt.guardsResult||(this.cancelNavigationTransition(zt,"",Mt.GuardRejected),!1)),oo(zt=>{if(zt.guards.canActivateChecks.length)return(0,E.of)(zt).pipe((0,U.M)(Mn=>{const L=new Jn(Mn.id,this.urlSerializer.serialize(Mn.extractedUrl),this.urlSerializer.serialize(Mn.urlAfterRedirects),Mn.targetSnapshot);this.events.next(L)}),(0,M.n)(Mn=>{let L=!1;return(0,E.of)(Mn).pipe(function ds(z,re){return(0,D.Z)(Q=>{const{targetSnapshot:se,guards:{canActivateChecks:xe}}=Q;if(!xe.length)return(0,E.of)(Q);const ze=new Set(xe.map(zt=>zt.route)),yt=new Set;for(const zt of ze)if(!yt.has(zt))for(const Mn of zs(zt))yt.add(Mn);let Yt=0;return(0,C.H)(yt).pipe((0,T.H)(zt=>ze.has(zt)?function Wo(z,re,Q,se){const xe=z.routeConfig,ze=z._resolve;return void 0!==xe?.title&&!_s(xe)&&(ze[W]=xe.title),function so(z,re,Q,se){const xe=pt(z);if(0===xe.length)return(0,E.of)({});const ze={};return(0,C.H)(xe).pipe((0,D.Z)(yt=>function hs(z,re,Q,se){const xe=Vn(re)??se,ze=Br(z,xe);return Ne(ze.resolve?ze.resolve(re,Q):(0,t.runInInjectionContext)(xe,()=>ze(re,Q)))}(z[yt],re,Q,se).pipe((0,O.$)(),(0,U.M)(Yt=>{ze[yt]=Yt}))),(0,F.o)(1),(0,Y.u)(ze),(0,S.W)(yt=>Te(yt)?r.w:(0,l.$)(yt)))}(ze,z,re,se).pipe((0,y.T)(yt=>(z._resolvedData=yt,z.data=ji(z,z.parent,Q).resolve,null)))}(zt,se,z,re):(zt.data=ji(zt,zt.parent,z).resolve,(0,E.of)(void 0))),(0,U.M)(()=>Yt++),(0,F.o)(1),(0,D.Z)(zt=>Yt===yt.size?(0,E.of)(Q):r.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,U.M)({next:()=>L=!0,complete:()=>{L||this.cancelNavigationTransition(Mn,"",Mt.NoDataFromResolver)}}))}),(0,U.M)(Mn=>{const L=new ti(Mn.id,this.urlSerializer.serialize(Mn.extractedUrl),this.urlSerializer.serialize(Mn.urlAfterRedirects),Mn.targetSnapshot);this.events.next(L)}))}),oo(zt=>{const Mn=L=>{const Ce=[];L.routeConfig?.loadComponent&&!L.routeConfig._loadedComponent&&Ce.push(this.configLoader.loadComponent(L.routeConfig).pipe((0,U.M)(Z=>{L.component=Z}),(0,y.T)(()=>{})));for(const Z of L.children)Ce.push(...Mn(Z));return Ce};return(0,b.z)(Mn(zt.targetSnapshot.root)).pipe((0,N.U)(null),(0,w.s)(1))}),oo(()=>this.afterPreactivation()),(0,M.n)(()=>{const{currentSnapshot:zt,targetSnapshot:Mn}=ze,L=this.createViewTransition?.(this.environmentInjector,zt.root,Mn.root);return L?(0,C.H)(L).pipe((0,y.T)(()=>ze)):(0,E.of)(ze)}),(0,y.T)(zt=>{const Mn=function es(z,re,Q){const se=Li(z,re._root,Q?Q._root:void 0);return new vn(se,re)}(Q.routeReuseStrategy,zt.targetSnapshot,zt.currentRouterState);return this.currentTransition=ze={...zt,targetRouterState:Mn},this.currentNavigation.targetRouterState=Mn,ze}),(0,U.M)(()=>{this.events.next(new Ri)}),((z,re,Q,se)=>(0,y.T)(xe=>(new ur(re,xe.targetRouterState,xe.currentRouterState,Q,se).activate(z),xe)))(this.rootContexts,Q.routeReuseStrategy,zt=>this.events.next(zt),this.inputBindingEnabled),(0,w.s)(1),(0,U.M)({next:zt=>{yt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ee(zt.id,this.urlSerializer.serialize(zt.extractedUrl),this.urlSerializer.serialize(zt.urlAfterRedirects))),this.titleStrategy?.updateTitle(zt.targetRouterState.snapshot),zt.resolve(!0)},complete:()=>{yt=!0}}),(0,$.Q)(this.transitionAbortSubject.pipe((0,U.M)(zt=>{throw zt}))),(0,ee.j)(()=>{!yt&&!Yt&&this.cancelNavigationTransition(ze,"",Mt.SupersededByNewNavigation),this.currentTransition?.id===ze.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,S.W)(zt=>{if(Yt=!0,Dt(zt))this.events.next(new pe(ze.id,this.urlSerializer.serialize(ze.extractedUrl),zt.message,zt.cancellationCode)),function vs(z){return Dt(z)&&_t(z.url)}(zt)?this.events.next(new On(zt.url)):ze.resolve(!1);else{this.events.next(new Ve(ze.id,this.urlSerializer.serialize(ze.extractedUrl),zt,ze.targetSnapshot??void 0));try{ze.resolve(Q.errorHandler(zt))}catch(Mn){this.options.resolveNavigationPromiseOnError?ze.resolve(!1):ze.reject(Mn)}}return r.w}))}))}cancelNavigationTransition(Q,se,xe){const ze=new pe(Q.id,this.urlSerializer.serialize(Q.extractedUrl),se,xe);this.events.next(ze),Q.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})();function ks(z){return z!==Ue}let uo=(()=>{class z{static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:()=>(0,t.inject)(X),providedIn:"root"})}return z})();class Ko{shouldDetach(re){return!1}store(re,Q){}shouldAttach(re){return!1}retrieve(re){return null}shouldReuseRoute(re,Q){return re.routeConfig===Q.routeConfig}}let X=(()=>{class z extends Ko{static#e=this.\u0275fac=(()=>{let Q;return function(xe){return(Q||(Q=t.\u0275\u0275getInheritedFactory(z)))(xe||z)}})();static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})(),Le=(()=>{class z{static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:()=>(0,t.inject)(oe),providedIn:"root"})}return z})(),oe=(()=>{class z extends Le{constructor(){super(...arguments),this.location=(0,t.inject)(v.Location),this.urlSerializer=(0,t.inject)(xt),this.options=(0,t.inject)(is,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,t.inject)(lo),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new vt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Dn(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(Q){return this.location.subscribe(se=>{"popstate"===se.type&&Q(se.url,se.state)})}handleRouterEvent(Q,se){if(Q instanceof mt)this.stateMemento=this.createStateMemento();else if(Q instanceof le)this.rawUrlTree=se.initialUrl;else if(Q instanceof wt){if("eager"===this.urlUpdateStrategy&&!se.extras.skipLocationChange){const xe=this.urlHandlingStrategy.merge(se.finalUrl,se.initialUrl);this.setBrowserUrl(xe,se)}}else Q instanceof Ri?(this.currentUrlTree=se.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(se.finalUrl,se.initialUrl),this.routerState=se.targetRouterState,"deferred"===this.urlUpdateStrategy&&(se.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,se))):Q instanceof pe&&(Q.code===Mt.GuardRejected||Q.code===Mt.NoDataFromResolver)?this.restoreHistory(se):Q instanceof Ve?this.restoreHistory(se,!0):Q instanceof Ee&&(this.lastSuccessfulId=Q.id,this.currentPageId=this.browserPageId)}setBrowserUrl(Q,se){const xe=this.urlSerializer.serialize(Q);if(this.location.isCurrentPathEqualTo(xe)||se.extras.replaceUrl){const yt={...se.extras.state,...this.generateNgRouterState(se.id,this.browserPageId)};this.location.replaceState(xe,"",yt)}else{const ze={...se.extras.state,...this.generateNgRouterState(se.id,this.browserPageId+1)};this.location.go(xe,"",ze)}}restoreHistory(Q,se=!1){if("computed"===this.canceledNavigationResolution){const ze=this.currentPageId-this.browserPageId;0!==ze?this.location.historyGo(ze):this.currentUrlTree===Q.finalUrl&&0===ze&&(this.resetState(Q),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(se&&this.resetState(Q),this.resetUrlToCurrentUrlTree())}resetState(Q){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,Q.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(Q,se){return"computed"===this.canceledNavigationResolution?{navigationId:Q,\u0275routerPageId:se}:{navigationId:Q}}static#e=this.\u0275fac=(()=>{let Q;return function(xe){return(Q||(Q=t.\u0275\u0275getInheritedFactory(z)))(xe||z)}})();static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})();var ge=function(z){return z[z.COMPLETE=0]="COMPLETE",z[z.FAILED=1]="FAILED",z[z.REDIRECTING=2]="REDIRECTING",z}(ge||{});function st(z,re){z.events.pipe((0,I.p)(Q=>Q instanceof Ee||Q instanceof pe||Q instanceof Ve||Q instanceof le),(0,y.T)(Q=>Q instanceof Ee||Q instanceof le?ge.COMPLETE:Q instanceof pe&&(Q.code===Mt.Redirect||Q.code===Mt.SupersededByNewNavigation)?ge.REDIRECTING:ge.FAILED),(0,I.p)(Q=>Q!==ge.REDIRECTING),(0,w.s)(1)).subscribe(()=>{re()})}function Ht(z){throw z}const Qt={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},wn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ci=(()=>{class z{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,t.inject)(t.\u0275Console),this.stateManager=(0,t.inject)(Le),this.options=(0,t.inject)(is,{optional:!0})||{},this.pendingTasks=(0,t.inject)(t.\u0275PendingTasks),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,t.inject)(co),this.urlSerializer=(0,t.inject)(xt),this.location=(0,t.inject)(v.Location),this.urlHandlingStrategy=(0,t.inject)(lo),this._events=new h.B,this.errorHandler=this.options.errorHandler||Ht,this.navigated=!1,this.routeReuseStrategy=(0,t.inject)(uo),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,t.inject)(Rr,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,t.inject)(Ur,{optional:!0}),this.eventsSubscription=new p.yU,this.isNgZoneEnabled=(0,t.inject)(t.NgZone)instanceof t.NgZone&&t.NgZone.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:Q=>{this.console.warn(Q)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const Q=this.navigationTransitions.events.subscribe(se=>{try{const xe=this.navigationTransitions.currentTransition,ze=this.navigationTransitions.currentNavigation;if(null!==xe&&null!==ze)if(this.stateManager.handleRouterEvent(se,ze),se instanceof pe&&se.code!==Mt.Redirect&&se.code!==Mt.SupersededByNewNavigation)this.navigated=!0;else if(se instanceof Ee)this.navigated=!0;else if(se instanceof On){const yt=this.urlHandlingStrategy.merge(se.url,xe.currentRawUrl),Yt={info:xe.extras.info,skipLocationChange:xe.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ks(xe.source)};this.scheduleNavigation(yt,Ue,null,Yt,{resolve:xe.resolve,reject:xe.reject,promise:xe.promise})}(function Di(z){return!(z instanceof Ri||z instanceof On)})(se)&&this._events.next(se)}catch(xe){this.navigationTransitions.transitionAbortSubject.next(xe)}});this.eventsSubscription.add(Q)}resetRootComponentType(Q){this.routerState.root.component=Q,this.navigationTransitions.rootComponentType=Q}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ue,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((Q,se)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(Q,"popstate",se)},0)})}navigateToSyncWithBrowser(Q,se,xe){const ze={replaceUrl:!0},yt=xe?.navigationId?xe:null;if(xe){const zt={...xe};delete zt.navigationId,delete zt.\u0275routerPageId,0!==Object.keys(zt).length&&(ze.state=zt)}const Yt=this.parseUrl(Q);this.scheduleNavigation(Yt,se,yt,ze)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(Q){this.config=Q.map(Mi),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(Q,se={}){const{relativeTo:xe,queryParams:ze,fragment:yt,queryParamsHandling:Yt,preserveFragment:zt}=se,Mn=zt?this.currentUrlTree.fragment:yt;let Ce,L=null;switch(Yt){case"merge":L={...this.currentUrlTree.queryParams,...ze};break;case"preserve":L=this.currentUrlTree.queryParams;break;default:L=ze||null}null!==L&&(L=this.removeEmptyProps(L));try{Ce=qe(xe?xe.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof Q[0]||!Q[0].startsWith("/"))&&(Q=[]),Ce=this.currentUrlTree.root}return Fe(Ce,Q,L,Mn??null)}navigateByUrl(Q,se={skipLocationChange:!1}){const xe=_t(Q)?Q:this.parseUrl(Q),ze=this.urlHandlingStrategy.merge(xe,this.rawUrlTree);return this.scheduleNavigation(ze,Ue,null,se)}navigate(Q,se={skipLocationChange:!1}){return function Si(z){for(let re=0;re(null!=ze&&(se[xe]=ze),se),{})}scheduleNavigation(Q,se,xe,ze,yt){if(this.disposed)return Promise.resolve(!1);let Yt,zt,Mn;yt?(Yt=yt.resolve,zt=yt.reject,Mn=yt.promise):Mn=new Promise((Ce,Z)=>{Yt=Ce,zt=Z});const L=this.pendingTasks.add();return st(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(L))}),this.navigationTransitions.handleNavigationRequest({source:se,restoredState:xe,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:Q,extras:ze,resolve:Yt,reject:zt,promise:Mn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Mn.catch(Ce=>Promise.reject(Ce))}static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})(),Qn=(()=>{class z{constructor(Q,se,xe,ze,yt,Yt){this.router=Q,this.route=se,this.tabIndexAttribute=xe,this.renderer=ze,this.el=yt,this.locationStrategy=Yt,this.href=null,this.commands=null,this.onChanges=new h.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const zt=yt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===zt||"area"===zt,this.isAnchorElement?this.subscription=Q.events.subscribe(Mn=>{Mn instanceof Ee&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(Q){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",Q)}ngOnChanges(Q){this.isAnchorElement&&this.updateHref(),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(Q,se,xe,ze,yt){const Yt=this.urlTree;return!!(null===Yt||this.isAnchorElement&&(0!==Q||se||xe||ze||yt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(Yt,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const Q=this.urlTree;this.href=null!==Q&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(Q)):null;const se=null===this.href?null:(0,t.\u0275\u0275sanitizeUrlOrResourceUrl)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",se)}applyAttributeValue(Q,se){const xe=this.renderer,ze=this.el.nativeElement;null!==se?xe.setAttribute(ze,Q,se):xe.removeAttribute(ze,Q)}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:this.preserveFragment})}static#e=this.\u0275fac=function(se){return new(se||z)(t.\u0275\u0275directiveInject(ci),t.\u0275\u0275directiveInject(Hn),t.\u0275\u0275injectAttribute("tabindex"),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(v.LocationStrategy))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:z,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(se,xe){1&se&&t.\u0275\u0275listener("click",function(yt){return xe.onClick(yt.button,yt.ctrlKey,yt.shiftKey,yt.altKey,yt.metaKey)}),2&se&&t.\u0275\u0275attribute("target",xe.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"preserveFragment","preserveFragment",t.booleanAttribute],skipLocationChange:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",t.booleanAttribute],replaceUrl:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"replaceUrl","replaceUrl",t.booleanAttribute],routerLink:"routerLink"},standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275NgOnChangesFeature]})}return z})(),Yi=(()=>{class z{get isActive(){return this._isActive}constructor(Q,se,xe,ze,yt){this.router=Q,this.element=se,this.renderer=xe,this.cdr=ze,this.link=yt,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.EventEmitter,this.routerEventsSubscription=Q.events.subscribe(Yt=>{Yt instanceof Ee&&this.update()})}ngAfterContentInit(){(0,E.of)(this.links.changes,(0,E.of)(null)).pipe((0,j.U)()).subscribe(Q=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const Q=[...this.links.toArray(),this.link].filter(se=>!!se).map(se=>se.onChanges);this.linkInputChangesSubscription=(0,C.H)(Q).pipe((0,j.U)()).subscribe(se=>{this._isActive!==this.isLinkActive(this.router)(se)&&this.update()})}set routerLinkActive(Q){const se=Array.isArray(Q)?Q:Q.split(" ");this.classes=se.filter(xe=>!!xe)}ngOnChanges(Q){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const Q=this.hasActiveLinks();this.classes.forEach(se=>{Q?this.renderer.addClass(this.element.nativeElement,se):this.renderer.removeClass(this.element.nativeElement,se)}),Q&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==Q&&(this._isActive=Q,this.cdr.markForCheck(),this.isActiveChange.emit(Q))})}isLinkActive(Q){const se=function Ci(z){return!!z.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return xe=>{const ze=xe.urlTree;return!!ze&&Q.isActive(ze,se)}}hasActiveLinks(){const Q=this.isLinkActive(this.router);return this.link&&Q(this.link)||this.links.some(Q)}static#e=this.\u0275fac=function(se){return new(se||z)(t.\u0275\u0275directiveInject(ci),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(Qn,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:z,selectors:[["","routerLinkActive",""]],contentQueries:function(se,xe,ze){if(1&se&&t.\u0275\u0275contentQuery(ze,Qn,5),2&se){let yt;t.\u0275\u0275queryRefresh(yt=t.\u0275\u0275loadQuery())&&(xe.links=yt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.\u0275\u0275NgOnChangesFeature]})}return z})();class tr{}let jr=(()=>{class z{preload(Q,se){return se().pipe((0,S.W)(()=>(0,E.of)(null)))}static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})(),fi=(()=>{class z{preload(Q,se){return(0,E.of)(null)}static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})(),mn=(()=>{class z{constructor(Q,se,xe,ze,yt){this.router=Q,this.injector=xe,this.preloadingStrategy=ze,this.loader=yt}setUpPreloading(){this.subscription=this.router.events.pipe((0,I.p)(Q=>Q instanceof Ee),(0,T.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(Q,se){const xe=[];for(const ze of se){ze.providers&&!ze._injector&&(ze._injector=(0,t.createEnvironmentInjector)(ze.providers,Q,`Route: ${ze.path}`));const yt=ze._injector??Q,Yt=ze._loadedInjector??yt;(ze.loadChildren&&!ze._loadedRoutes&&void 0===ze.canLoad||ze.loadComponent&&!ze._loadedComponent)&&xe.push(this.preloadConfig(yt,ze)),(ze.children||ze._loadedRoutes)&&xe.push(this.processRoutes(Yt,ze.children??ze._loadedRoutes))}return(0,C.H)(xe).pipe((0,j.U)())}preloadConfig(Q,se){return this.preloadingStrategy.preload(se,()=>{let xe;xe=se.loadChildren&&void 0===se.canLoad?this.loader.loadChildren(Q,se):(0,E.of)(null);const ze=xe.pipe((0,D.Z)(yt=>null===yt?(0,E.of)(void 0):(se._loadedRoutes=yt.routes,se._loadedInjector=yt.injector,this.processRoutes(yt.injector??Q,yt.routes))));if(se.loadComponent&&!se._loadedComponent){const yt=this.loader.loadComponent(se);return(0,C.H)([ze,yt]).pipe((0,j.U)())}return ze})}static#e=this.\u0275fac=function(se){return new(se||z)(t.\u0275\u0275inject(ci),t.\u0275\u0275inject(t.Compiler),t.\u0275\u0275inject(t.EnvironmentInjector),t.\u0275\u0275inject(tr),t.\u0275\u0275inject(Cs))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})();const kn=new t.InjectionToken("");let Ai=(()=>{class z{constructor(Q,se,xe,ze,yt={}){this.urlSerializer=Q,this.transitions=se,this.viewportScroller=xe,this.zone=ze,this.options=yt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},yt.scrollPositionRestoration||="disabled",yt.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(Q=>{Q instanceof mt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=Q.navigationTrigger,this.restoredId=Q.restoredState?Q.restoredState.navigationId:0):Q instanceof Ee?(this.lastId=Q.id,this.scheduleScrollEvent(Q,this.urlSerializer.parse(Q.urlAfterRedirects).fragment)):Q instanceof le&&Q.code===H.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(Q,this.urlSerializer.parse(Q.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(Q=>{Q instanceof xi&&(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,se){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new xi(Q,"popstate"===this.lastSource?this.store[this.restoredId]:null,se))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(se){t.\u0275\u0275invalidFactory()};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac})}return z})();function cr(z,...re){return(0,t.makeEnvironmentProviders)([{provide:Rr,multi:!0,useValue:z},[],{provide:Hn,useFactory:nr,deps:[ci]},{provide:t.APP_BOOTSTRAP_LISTENER,multi:!0,useFactory:Wn},re.map(Q=>Q.\u0275providers)])}function nr(z){return z.routerState.root}function Hi(z,re){return{\u0275kind:z,\u0275providers:re}}function pr(z){return[{provide:Rr,multi:!0,useValue:z},[]]}function rs(z={}){return Hi(4,[{provide:kn,useFactory:()=>{const Q=(0,t.inject)(v.ViewportScroller),se=(0,t.inject)(t.NgZone),xe=(0,t.inject)(co),ze=(0,t.inject)(xt);return new Ai(ze,xe,Q,se,z)}}])}function Wn(){const z=(0,t.inject)(t.Injector);return re=>{const Q=z.get(t.ApplicationRef);if(re!==Q.components[0])return;const se=z.get(ci),xe=z.get(Nr);1===z.get(Yo)&&se.initialNavigation(),z.get(Ks,null,t.InjectFlags.Optional)?.setUpPreloading(),z.get(kn,null,t.InjectFlags.Optional)?.init(),se.resetRootComponentType(Q.componentTypes[0]),xe.closed||(xe.next(),xe.complete(),xe.unsubscribe())}}const Nr=new t.InjectionToken("",{factory:()=>new h.B}),Yo=new t.InjectionToken("",{providedIn:"root",factory:()=>1});function Gs(){return Hi(2,[{provide:Yo,useValue:0},{provide:t.APP_INITIALIZER,multi:!0,deps:[t.Injector],useFactory:re=>{const Q=re.get(v.LOCATION_INITIALIZED,Promise.resolve());return()=>Q.then(()=>new Promise(se=>{const xe=re.get(ci),ze=re.get(Nr);st(xe,()=>{se(!0)}),re.get(co).afterPreactivation=()=>(se(!0),ze.closed?(0,E.of)(void 0):ze),xe.initialNavigation()}))}}])}function Qi(){return Hi(3,[{provide:t.APP_INITIALIZER,multi:!0,useFactory:()=>{const re=(0,t.inject)(ci);return()=>{re.setUpLocationChangeListener()}}},{provide:Yo,useValue:2}])}function Ao(){let z=[];return z=[],Hi(1,z)}const Ks=new t.InjectionToken("");function Pr(z){return Hi(0,[{provide:Ks,useExisting:mn},{provide:tr,useExisting:z}])}function Ys(z){return Hi(5,[{provide:is,useValue:z}])}function Zo(){return Hi(6,[{provide:v.LocationStrategy,useClass:v.HashLocationStrategy}])}function Os(z){return Hi(7,[{provide:t.ENVIRONMENT_INITIALIZER,multi:!0,useValue:()=>{const Q=(0,t.inject)(t.EnvironmentInjector);(0,t.inject)(ci).events.subscribe(se=>{se instanceof Ve&&(0,t.runInInjectionContext)(Q,()=>z(se))})}}])}function fo(){return Hi(8,[mr,{provide:Ur,useExisting:mr}])}function Rs(z){return Hi(9,[{provide:So,useValue:Ki},{provide:ws,useValue:{skipNextTransition:!!z?.skipInitialTransition,...z}}])}const mo=new t.InjectionToken("ROUTER_FORROOT_GUARD"),po=[v.Location,{provide:xt,useClass:jt},ci,qn,{provide:Hn,useFactory:nr,deps:[ci]},Cs,[]];let fs=(()=>{class z{constructor(Q){}static forRoot(Q,se){return{ngModule:z,providers:[po,[],{provide:Rr,multi:!0,useValue:Q},{provide:mo,useFactory:ua,deps:[[ci,new t.Optional,new t.SkipSelf]]},{provide:is,useValue:se||{}},se?.useHash?{provide:v.LocationStrategy,useClass:v.HashLocationStrategy}:{provide:v.LocationStrategy,useClass:v.PathLocationStrategy},{provide:kn,useFactory:()=>{const z=(0,t.inject)(v.ViewportScroller),re=(0,t.inject)(t.NgZone),Q=(0,t.inject)(is),se=(0,t.inject)(co),xe=(0,t.inject)(xt);return Q.scrollOffset&&z.setOffset(Q.scrollOffset),new Ai(xe,se,z,re,Q)}},se?.preloadingStrategy?Pr(se.preloadingStrategy).\u0275providers:[],se?.initialNavigation?yr(se):[],se?.bindToComponentInputs?fo().\u0275providers:[],se?.enableViewTransitions?Rs().\u0275providers:[],[{provide:hr,useFactory:Wn},{provide:t.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:hr}]]}}static forChild(Q){return{ngModule:z,providers:[{provide:Rr,multi:!0,useValue:Q}]}}static#e=this.\u0275fac=function(se){return new(se||z)(t.\u0275\u0275inject(mo,8))};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:z});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({})}return z})();function ua(z){return"guarded"}function yr(z){return["disabled"===z.initialNavigation?Qi().\u0275providers:[],"enabledBlocking"===z.initialNavigation?Gs().\u0275providers:[]]}const hr=new t.InjectionToken("");function Zs(z){return z.map(re=>(...Q)=>(0,t.inject)(re).canMatch(...Q))}function Xo(z){return z.map(re=>(...Q)=>(0,t.inject)(re).canActivate(...Q))}function ss(z){return z.map(re=>(...Q)=>(0,t.inject)(re).canActivateChild(...Q))}function ha(z){return z.map(re=>(...Q)=>(0,t.inject)(re).canDeactivate(...Q))}function Cl(z){return(...re)=>(0,t.inject)(z).resolve(...re)}const wl=new t.Version("17.3.3")},3955:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{DEFAULT_LANGUAGE:()=>R,FakeMissingTranslationHandler:()=>p,MissingTranslationHandler:()=>h,TranslateCompiler:()=>D,TranslateDefaultParser:()=>I,TranslateDirective:()=>F,TranslateFakeCompiler:()=>O,TranslateFakeLoader:()=>u,TranslateLoader:()=>r,TranslateModule:()=>ee,TranslateParser:()=>k,TranslatePipe:()=>Y,TranslateService:()=>A,TranslateStore:()=>T,USE_DEFAULT_LANG:()=>S,USE_EXTEND:()=>N,USE_STORE:()=>U});var t=g(4438),_=g(7673),C=g(4402),E=g(7468),c=g(2688),b=g(9030),s=g(6697),f=g(4668),d=g(6354),a=g(274),l=g(5558);class r{}let u=(()=>{class ie extends r{getTranslation(j){return(0,_.of)({})}static \u0275fac=(()=>{let j;return function(V){return(j||(j=t.\u0275\u0275getInheritedFactory(ie)))(V||ie)}})();static \u0275prov=t.\u0275\u0275defineInjectable({token:ie,factory:ie.\u0275fac})}return ie})();class h{}let p=(()=>{class ie{handle(j){return j.key}static \u0275fac=function(G){return new(G||ie)};static \u0275prov=t.\u0275\u0275defineInjectable({token:ie,factory:ie.\u0275fac})}return ie})();function v(ie,$){if(ie===$)return!0;if(null===ie||null===$)return!1;if(ie!=ie&&$!=$)return!0;let V,W,K,j=typeof ie;if(j==typeof $&&"object"==j){if(!Array.isArray(ie)){if(Array.isArray($))return!1;for(W in K=Object.create(null),ie){if(!v(ie[W],$[W]))return!1;K[W]=!0}for(W in $)if(!(W in K)&&typeof $[W]<"u")return!1;return!0}if(!Array.isArray($))return!1;if((V=ie.length)==$.length){for(W=0;W{M($[G])?G in ie?j[G]=w(ie[G],$[G]):Object.assign(j,{[G]:$[G]}):Object.assign(j,{[G]:$[G]})}),j}class k{}let I=(()=>{class ie extends k{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(j,G){let V;return V="string"==typeof j?this.interpolateString(j,G):"function"==typeof j?this.interpolateFunction(j,G):j,V}getValue(j,G){let V="string"==typeof G?G.split("."):[G];G="";do{G+=V.shift(),!y(j)||!y(j[G])||"object"!=typeof j[G]&&V.length?V.length?G+=".":j=void 0:(j=j[G],G="")}while(V.length);return j}interpolateFunction(j,G){return j(G)}interpolateString(j,G){return G?j.replace(this.templateMatcher,(V,W)=>{let K=this.getValue(G,W);return y(K)?K:V}):j}static \u0275fac=(()=>{let j;return function(V){return(j||(j=t.\u0275\u0275getInheritedFactory(ie)))(V||ie)}})();static \u0275prov=t.\u0275\u0275defineInjectable({token:ie,factory:ie.\u0275fac})}return ie})();class D{}let O=(()=>{class ie extends D{compile(j,G){return j}compileTranslations(j,G){return j}static \u0275fac=(()=>{let j;return function(V){return(j||(j=t.\u0275\u0275getInheritedFactory(ie)))(V||ie)}})();static \u0275prov=t.\u0275\u0275defineInjectable({token:ie,factory:ie.\u0275fac})}return ie})();class T{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new t.EventEmitter;onLangChange=new t.EventEmitter;onDefaultLangChange=new t.EventEmitter}const U=new t.InjectionToken("USE_STORE"),S=new t.InjectionToken("USE_DEFAULT_LANG"),R=new t.InjectionToken("DEFAULT_LANGUAGE"),N=new t.InjectionToken("USE_EXTEND");let A=(()=>{class ie{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new t.EventEmitter;_onLangChange=new t.EventEmitter;_onDefaultLangChange=new t.EventEmitter;_defaultLang;_currentLang;_langs=[];_translations={};_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(j){this.isolate?this._defaultLang=j:this.store.defaultLang=j}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(j){this.isolate?this._currentLang=j:this.store.currentLang=j}get langs(){return this.isolate?this._langs:this.store.langs}set langs(j){this.isolate?this._langs=j:this.store.langs=j}get translations(){return this.isolate?this._translations:this.store.translations}set translations(j){this.isolate?this._translations=j:this.store.translations=j}constructor(j,G,V,W,K,ce=!0,ue=!1,be=!1,Ze){this.store=j,this.currentLoader=G,this.compiler=V,this.parser=W,this.missingTranslationHandler=K,this.useDefaultLang=ce,this.isolate=ue,this.extend=be,Ze&&this.setDefaultLang(Ze)}setDefaultLang(j){if(j===this.defaultLang)return;let G=this.retrieveTranslations(j);typeof G<"u"?(null==this.defaultLang&&(this.defaultLang=j),G.pipe((0,s.s)(1)).subscribe(V=>{this.changeDefaultLang(j)})):this.changeDefaultLang(j)}getDefaultLang(){return this.defaultLang}use(j){if(j===this.currentLang)return(0,_.of)(this.translations[j]);let G=this.retrieveTranslations(j);return typeof G<"u"?(this.currentLang||(this.currentLang=j),G.pipe((0,s.s)(1)).subscribe(V=>{this.changeLang(j)}),G):(this.changeLang(j),(0,_.of)(this.translations[j]))}retrieveTranslations(j){let G;return(typeof this.translations[j]>"u"||this.extend)&&(this._translationRequests[j]=this._translationRequests[j]||this.getTranslation(j),G=this._translationRequests[j]),G}getTranslation(j){this.pending=!0;const G=this.currentLoader.getTranslation(j).pipe((0,f.t)(1),(0,s.s)(1));return this.loadingTranslations=G.pipe((0,d.T)(V=>this.compiler.compileTranslations(V,j)),(0,f.t)(1),(0,s.s)(1)),this.loadingTranslations.subscribe({next:V=>{this.translations[j]=this.extend&&this.translations[j]?{...V,...this.translations[j]}:V,this.updateLangs(),this.pending=!1},error:V=>{this.pending=!1}}),G}setTranslation(j,G,V=!1){G=this.compiler.compileTranslations(G,j),this.translations[j]=(V||this.extend)&&this.translations[j]?w(this.translations[j],G):G,this.updateLangs(),this.onTranslationChange.emit({lang:j,translations:this.translations[j]})}getLangs(){return this.langs}addLangs(j){j.forEach(G=>{-1===this.langs.indexOf(G)&&this.langs.push(G)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(j,G,V){let W;if(G instanceof Array){let K={},ce=!1;for(let ue of G)K[ue]=this.getParsedResult(j,ue,V),(0,C.A)(K[ue])&&(ce=!0);if(ce){const ue=G.map(be=>(0,C.A)(K[be])?K[be]:(0,_.of)(K[be]));return(0,E.p)(ue).pipe((0,d.T)(be=>{let Ze={};return be.forEach((pt,ct)=>{Ze[G[ct]]=pt}),Ze}))}return K}if(j&&(W=this.parser.interpolate(this.parser.getValue(j,G),V)),typeof W>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(W=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],G),V)),typeof W>"u"){let K={key:G,translateService:this};typeof V<"u"&&(K.interpolateParams=V),W=this.missingTranslationHandler.handle(K)}return typeof W<"u"?W:G}get(j,G){if(!y(j)||!j.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,a.H)(V=>(V=this.getParsedResult(V,j,G),(0,C.A)(V)?V:(0,_.of)(V))));{let V=this.getParsedResult(this.translations[this.currentLang],j,G);return(0,C.A)(V)?V:(0,_.of)(V)}}getStreamOnTranslationChange(j,G){if(!y(j)||!j.length)throw new Error('Parameter "key" required');return(0,c.x)((0,b.v)(()=>this.get(j,G)),this.onTranslationChange.pipe((0,l.n)(V=>{const W=this.getParsedResult(V.translations,j,G);return"function"==typeof W.subscribe?W:(0,_.of)(W)})))}stream(j,G){if(!y(j)||!j.length)throw new Error('Parameter "key" required');return(0,c.x)((0,b.v)(()=>this.get(j,G)),this.onLangChange.pipe((0,l.n)(V=>{const W=this.getParsedResult(V.translations,j,G);return(0,C.A)(W)?W:(0,_.of)(W)})))}instant(j,G){if(!y(j)||!j.length)throw new Error('Parameter "key" required');let V=this.getParsedResult(this.translations[this.currentLang],j,G);if((0,C.A)(V)){if(j instanceof Array){let W={};return j.forEach((K,ce)=>{W[j[ce]]=j[ce]}),W}return j}return V}set(j,G,V=this.currentLang){this.translations[V][j]=this.compiler.compile(G,V),this.updateLangs(),this.onTranslationChange.emit({lang:V,translations:this.translations[V]})}changeLang(j){this.currentLang=j,this.onLangChange.emit({lang:j,translations:this.translations[j]}),null==this.defaultLang&&this.changeDefaultLang(j)}changeDefaultLang(j){this.defaultLang=j,this.onDefaultLangChange.emit({lang:j,translations:this.translations[j]})}reloadLang(j){return this.resetLang(j),this.getTranslation(j)}resetLang(j){this._translationRequests[j]=void 0,this.translations[j]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let j=window.navigator.languages?window.navigator.languages[0]:null;return j=j||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof j>"u"?void 0:(-1!==j.indexOf("-")&&(j=j.split("-")[0]),-1!==j.indexOf("_")&&(j=j.split("_")[0]),j)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let j=window.navigator.languages?window.navigator.languages[0]:null;return j=j||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,j}static \u0275fac=function(G){return new(G||ie)(t.\u0275\u0275inject(T),t.\u0275\u0275inject(r),t.\u0275\u0275inject(D),t.\u0275\u0275inject(k),t.\u0275\u0275inject(h),t.\u0275\u0275inject(S),t.\u0275\u0275inject(U),t.\u0275\u0275inject(N),t.\u0275\u0275inject(R))};static \u0275prov=t.\u0275\u0275defineInjectable({token:ie,factory:ie.\u0275fac})}return ie})(),F=(()=>{class ie{translateService;element;_ref;key;lastParams;currentParams;onLangChangeSub;onDefaultLangChangeSub;onTranslationChangeSub;set translate(j){j&&(this.key=j,this.checkNodes())}set translateParams(j){v(this.currentParams,j)||(this.currentParams=j,this.checkNodes(!0))}constructor(j,G,V){this.translateService=j,this.element=G,this._ref=V,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(W=>{W.lang===this.translateService.currentLang&&this.checkNodes(!0,W.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(W=>{this.checkNodes(!0,W.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(W=>{this.checkNodes(!0)}))}ngAfterViewChecked(){this.checkNodes()}checkNodes(j=!1,G){let V=this.element.nativeElement.childNodes;V.length||(this.setContent(this.element.nativeElement,this.key),V=this.element.nativeElement.childNodes);for(let W=0;W{K!==j&&(G.lastKey=j),G.originalContent||(G.originalContent=this.getContent(G)),G.currentValue=y(K)?K:G.originalContent||j,this.setContent(G,this.key?G.currentValue:G.originalContent.replace(j,G.currentValue)),this._ref.markForCheck()};if(y(V)){let K=this.translateService.getParsedResult(V,j,this.currentParams);(0,C.A)(K)?K.subscribe({next:W}):W(K)}else this.translateService.get(j,this.currentParams).subscribe(W)}}getContent(j){return y(j.textContent)?j.textContent:j.data}setContent(j,G){y(j.textContent)?j.textContent=G:j.data=G}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}static \u0275fac=function(G){return new(G||ie)(t.\u0275\u0275directiveInject(A),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ChangeDetectorRef))};static \u0275dir=t.\u0275\u0275defineDirective({type:ie,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}})}return ie})(),Y=(()=>{class ie{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(j,G){this.translate=j,this._ref=G}updateValue(j,G,V){let W=K=>{this.value=void 0!==K?K:j,this.lastKey=j,this._ref.markForCheck()};if(V){let K=this.translate.getParsedResult(V,j,G);(0,C.A)(K.subscribe)?K.subscribe(W):W(K)}this.translate.get(j,G).subscribe(W)}transform(j,...G){if(!j||!j.length)return j;if(v(j,this.lastKey)&&v(G,this.lastParams))return this.value;let V;if(y(G[0])&&G.length)if("string"==typeof G[0]&&G[0].length){let W=G[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{V=JSON.parse(W)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${G[0]}`)}}else"object"==typeof G[0]&&!Array.isArray(G[0])&&(V=G[0]);return this.lastKey=j,this.lastParams=G,this.updateValue(j,V),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(W=>{this.lastKey&&W.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(j,V,W.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(W=>{this.lastKey&&(this.lastKey=null,this.updateValue(j,V,W.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(j,V))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(G){return new(G||ie)(t.\u0275\u0275directiveInject(A,16),t.\u0275\u0275directiveInject(t.ChangeDetectorRef,16))};static \u0275pipe=t.\u0275\u0275definePipe({name:"translate",type:ie,pure:!1});static \u0275prov=t.\u0275\u0275defineInjectable({token:ie,factory:ie.\u0275fac})}return ie})(),ee=(()=>{class ie{static forRoot(j={}){return{ngModule:ie,providers:[j.loader||{provide:r,useClass:u},j.compiler||{provide:D,useClass:O},j.parser||{provide:k,useClass:I},j.missingTranslationHandler||{provide:h,useClass:p},T,{provide:U,useValue:j.isolate},{provide:S,useValue:j.useDefaultLang},{provide:N,useValue:j.extend},{provide:R,useValue:j.defaultLanguage},A]}}static forChild(j={}){return{ngModule:ie,providers:[j.loader||{provide:r,useClass:u},j.compiler||{provide:D,useClass:O},j.parser||{provide:k,useClass:I},j.missingTranslationHandler||{provide:h,useClass:p},{provide:U,useValue:j.isolate},{provide:S,useValue:j.useDefaultLang},{provide:N,useValue:j.extend},{provide:R,useValue:j.defaultLanguage},A]}}static \u0275fac=function(G){return new(G||ie)};static \u0275mod=t.\u0275\u0275defineNgModule({type:ie});static \u0275inj=t.\u0275\u0275defineInjector({})}return ie})()},5635:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{TranslateHttpLoader:()=>t});class t{http;prefix;suffix;constructor(C,E="/assets/i18n/",c=".json"){this.http=C,this.prefix=E,this.suffix=c}getTranslation(C){return this.http.get(`${this.prefix}${C}${this.suffix}`)}}},1244:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{AUTH_CONFIG:()=>hn,AbstractValidationHandler:()=>be,AuthConfig:()=>K,DateTimeProvider:()=>S,DefaultHashHandler:()=>we,DefaultOAuthInterceptor:()=>xt,HashHandler:()=>Oe,JwksValidationHandler:()=>rn,LoginOptions:()=>N,MemoryStorage:()=>Y,NullValidationHandler:()=>O,OAuthErrorEvent:()=>G,OAuthEvent:()=>ie,OAuthInfoEvent:()=>j,OAuthLogger:()=>A,OAuthModule:()=>dn,OAuthModuleConfig:()=>T,OAuthNoopResourceServerErrorHandler:()=>ot,OAuthResourceServerConfig:()=>U,OAuthResourceServerErrorHandler:()=>De,OAuthService:()=>Ge,OAuthStorage:()=>F,OAuthSuccessEvent:()=>$,ReceivedTokens:()=>ee,SystemDateTimeProvider:()=>R,UrlHelperService:()=>Ze,ValidationHandler:()=>ue,provideOAuthClient:()=>un});var t=g(467),_=g(4438),C=g(177),E=g(1626),c=g(1413),b=g(7673),s=g(8455),f=g(1033),d=g(8810),a=g(4572),l=g(7786),r=g(5964),u=g(8141),h=g(152),p=g(3103),v=g(5558),y=g(6354),M=g(1594),w=g(9437),k=g(2087),I=g(6697),D=g(3028);class O{validateSignature(Bt){return Promise.resolve(null)}validateAtHash(Bt){return Promise.resolve(!0)}}class T{}class U{}class S{}let R=(()=>{class Nt extends S{now(){return Date.now()}new(){return new Date}static#e=this.\u0275fac=(()=>{let ve;return function(Xe){return(ve||(ve=_.\u0275\u0275getInheritedFactory(Nt)))(Xe||Nt)}})();static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Nt,factory:Nt.\u0275fac})}return Nt})();class N{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class A{}class F{}let Y=(()=>{class Nt{constructor(){this.data=new Map}getItem(ve){return this.data.get(ve)}removeItem(ve){this.data.delete(ve)}setItem(ve,Qe){this.data.set(ve,Qe)}static#e=this.\u0275fac=function(Qe){return new(Qe||Nt)};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Nt,factory:Nt.\u0275fac})}return Nt})();class ee{}class ie{constructor(Bt){this.type=Bt}}class $ extends ie{constructor(Bt,ve=null){super(Bt),this.info=ve}}class j extends ie{constructor(Bt,ve=null){super(Bt),this.info=ve}}class G extends ie{constructor(Bt,ve,Qe=null){super(Bt),this.reason=ve,this.params=Qe}}function V(Nt){const Bt=Nt.replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(Bt).split("").map(function(ve){return"%"+("00"+ve.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function W(Nt){return btoa(Nt).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class K{constructor(Bt){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="",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.decreaseExpirationBySec=0,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.disableIdTokenTimer=!1,this.checkOrigin=!1,this.openUri=ve=>{location.href=ve},Bt&&Object.assign(this,Bt)}}class ce{encodeKey(Bt){return encodeURIComponent(Bt)}encodeValue(Bt){return encodeURIComponent(Bt)}decodeKey(Bt){return decodeURIComponent(Bt)}decodeValue(Bt){return decodeURIComponent(Bt)}}class ue{}class be{validateAtHash(Bt){var ve=this;return(0,t.A)(function*(){const Qe=ve.inferHashAlgorithm(Bt.idTokenHeader),Xe=yield ve.calcHash(Bt.accessToken,Qe),nt=W(Xe.substr(0,Xe.length/2)),ft=Bt.idTokenClaims.at_hash.replace(/=/g,"");return nt!==ft&&(console.error("exptected at_hash: "+nt),console.error("actual at_hash: "+ft)),nt===ft})()}inferHashAlgorithm(Bt){const ve=Bt.alg;if(!ve.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+ve);return"sha-"+ve.substr(2)}}let Ze=(()=>{class Nt{getHashFragmentParams(ve){let Qe=ve||window.location.hash;if(Qe=decodeURIComponent(Qe),0!==Qe.indexOf("#"))return{};const Xe=Qe.indexOf("?");return Qe=Qe.substr(Xe>-1?Xe+1:1),this.parseQueryString(Qe)}parseQueryString(ve){const Qe={};let Xe,Ot,nt,ft,Re,me;if(null===ve)return Qe;const Ke=ve.split("&");for(let te=0;te=64;){for(Ot=Bt[0],nt=Bt[1],ft=Bt[2],Re=Bt[3],me=Bt[4],Ke=Bt[5],te=Bt[6],de=Bt[7],it=0;it<16;it++)It=Qe+4*it,Nt[it]=(255&ve[It])<<24|(255&ve[It+1])<<16|(255&ve[It+2])<<8|255&ve[It+3];for(it=16;it<64;it++)Se=Nt[it-2],Gt=(Se>>>17|Se<<15)^(Se>>>19|Se<<13)^Se>>>10,Se=Nt[it-15],an=(Se>>>7|Se<<25)^(Se>>>18|Se<<14)^Se>>>3,Nt[it]=(Gt+Nt[it-7]|0)+(an+Nt[it-16]|0);for(it=0;it<64;it++)Gt=(((me>>>6|me<<26)^(me>>>11|me<<21)^(me>>>25|me<<7))+(me&Ke^~me&te)|0)+(de+(Ct[it]+Nt[it]|0)|0)|0,an=((Ot>>>2|Ot<<30)^(Ot>>>13|Ot<<19)^(Ot>>>22|Ot<<10))+(Ot&nt^Ot&ft^nt&ft)|0,de=te,te=Ke,Ke=me,me=Re+Gt|0,Re=ft,ft=nt,nt=Ot,Ot=Gt+an|0;Bt[0]+=Ot,Bt[1]+=nt,Bt[2]+=ft,Bt[3]+=Re,Bt[4]+=me,Bt[5]+=Ke,Bt[6]+=te,Bt[7]+=de,Qe+=64,Xe-=64}return Qe}class Ae{constructor(){this.digestLength=32,this.blockSize=64,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()}reset(){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}clean(){for(let Bt=0;Bt0){for(;this.bufferLength<64&&ve>0;)this.buffer[this.bufferLength++]=Bt[Qe++],ve--;64===this.bufferLength&&(Ne(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ve>=64&&(Qe=Ne(this.temp,this.state,Bt,Qe,ve),ve%=64);ve>0;)this.buffer[this.bufferLength++]=Bt[Qe++],ve--;return this}finish(Bt){if(!this.finished){const ve=this.bytesHashed,Qe=this.bufferLength,Xe=ve/536870912|0,Ot=ve<<3,nt=ve%64<56?64:128;this.buffer[Qe]=128;for(let ft=Qe+1;ft>>24&255,this.buffer[nt-7]=Xe>>>16&255,this.buffer[nt-6]=Xe>>>8&255,this.buffer[nt-5]=Xe>>>0&255,this.buffer[nt-4]=Ot>>>24&255,this.buffer[nt-3]=Ot>>>16&255,this.buffer[nt-2]=Ot>>>8&255,this.buffer[nt-1]=Ot>>>0&255,Ne(this.temp,this.state,this.buffer,0,nt),this.finished=!0}for(let ve=0;ve<8;ve++)Bt[4*ve+0]=this.state[ve]>>>24&255,Bt[4*ve+1]=this.state[ve]>>>16&255,Bt[4*ve+2]=this.state[ve]>>>8&255,Bt[4*ve+3]=this.state[ve]>>>0&255;return this}digest(){const Bt=new Uint8Array(this.digestLength);return this.finish(Bt),Bt}_saveState(Bt){for(let ve=0;ve{class Nt{calcHash(ve,Qe){return(0,t.A)(function*(){return function rt(Nt){const Bt=[];for(let ve=0;ve{class Nt extends K{constructor(ve,Qe,Xe,Ot,nt,ft,Re,me,Ke,te){super(),this.ngZone=ve,this.http=Qe,this.config=nt,this.urlHelper=ft,this.logger=Re,this.crypto=me,this.dateTimeService=te,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new c.B,this.discoveryDocumentLoadedSubject=new c.B,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=Ke,nt||(nt={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),Ot&&(this.tokenValidationHandler=Ot),nt&&this.configure(nt);try{Xe?this.setStorage(Xe):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(de){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",de)}if(this.checkLocalStorageAccessable()){const de=window?.navigator?.userAgent;(de?.includes("MSIE ")||de?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const ve="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(ve,ve),localStorage.removeItem(ve),0))}catch{return!1}}configure(ve){Object.assign(this,new K,ve),this.config=Object.assign({},new K,ve),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,r.p)(ve=>"token_received"===ve.type)).subscribe(()=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(ve={},Qe,Xe=!0){let Ot=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,u.M)(nt=>{"token_received"===nt.type?Ot=!0:"logout"===nt.type&&(Ot=!1)}),(0,r.p)(nt=>"token_expires"===nt.type&&(null==Qe||"any"===Qe||nt.info===Qe)),(0,h.B)(1e3)).subscribe(()=>{Ot&&this.refreshInternal(ve,Xe).catch(()=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(ve,Qe){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(ve,Qe):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(ve=null){return this.loadDiscoveryDocument().then(()=>this.tryLogin(ve))}loadDiscoveryDocumentAndLogin(ve=null){return this.loadDiscoveryDocumentAndTryLogin(ve=ve||{}).then(()=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof ve.state?ve.state:""),!1))}debug(...ve){this.showDebugInformation&&this.logger.debug(...ve)}validateUrlFromDiscoveryDocument(ve){const Qe=[],Xe=this.validateUrlForHttps(ve),Ot=this.validateUrlAgainstIssuer(ve);return Xe||Qe.push("https for all urls required. Also for urls received by discovery."),Ot||Qe.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),Qe}validateUrlForHttps(ve){if(!ve)return!0;const Qe=ve.toLowerCase();return!(!1!==this.requireHttps&&(!Qe.match(/^http:\/\/localhost($|[:/])/)&&!Qe.match(/^http:\/\/localhost($|[:/])/)||"remoteOnly"!==this.requireHttps))||Qe.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(ve,Qe){if(!ve)throw new Error(`'${Qe}' should not be null`);if(!this.validateUrlForHttps(ve))throw new Error(`'${Qe}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(ve){return!this.strictDiscoveryDocumentValidation||!ve||ve.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,r.p)(ve=>"token_received"===ve.type)).subscribe(()=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),!this.disableIdTokenTimer&&this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const ve=this.getAccessTokenExpiration(),Qe=this.getAccessTokenStoredAt(),Xe=this.calcTimeout(Qe,ve);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,b.of)(new j("token_expires","access_token")).pipe((0,p.c)(Xe)).subscribe(Ot=>{this.ngZone.run(()=>{this.eventsSubject.next(Ot)})})})}setupIdTokenTimer(){const ve=this.getIdTokenExpiration(),Qe=this.getIdTokenStoredAt(),Xe=this.calcTimeout(Qe,ve);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,b.of)(new j("token_expires","id_token")).pipe((0,p.c)(Xe)).subscribe(Ot=>{this.ngZone.run(()=>{this.eventsSubject.next(Ot)})})})}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(ve,Qe){const Xe=this.dateTimeService.now(),nt=Math.max(0,(Qe-ve)*this.timeoutFactor-(Xe-ve)),ft=2147483647;return nt>ft?ft:nt}setStorage(ve){this._storage=ve,this.configChanged()}loadDiscoveryDocument(ve=null){return new Promise((Qe,Xe)=>{ve||((ve=this.issuer||"").endsWith("/")||(ve+="/"),ve+=".well-known/openid-configuration"),this.validateUrlForHttps(ve)?this.http.get(ve).subscribe(Ot=>{if(!this.validateDiscoveryDocument(Ot))return this.eventsSubject.next(new G("discovery_document_validation_error",null)),void Xe("discovery_document_validation_error");this.loginUrl=Ot.authorization_endpoint,this.logoutUrl=Ot.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=Ot.grant_types_supported,this.issuer=Ot.issuer,this.tokenEndpoint=Ot.token_endpoint,this.userinfoEndpoint=Ot.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=Ot.jwks_uri,this.sessionCheckIFrameUrl=Ot.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(Ot),this.revocationEndpoint=Ot.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(nt=>{const Re=new $("discovery_document_loaded",{discoveryDocument:Ot,jwks:nt});this.eventsSubject.next(Re),Qe(Re)}).catch(nt=>{this.eventsSubject.next(new G("discovery_document_load_error",nt)),Xe(nt)})},Ot=>{this.logger.error("error loading discovery document",Ot),this.eventsSubject.next(new G("discovery_document_load_error",Ot)),Xe(Ot)}):Xe("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((ve,Qe)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(Xe=>{this.jwks=Xe,ve(Xe)},Xe=>{this.logger.error("error loading jwks",Xe),this.eventsSubject.next(new G("jwks_load_error",Xe)),Qe(Xe)}):ve(null)})}validateDiscoveryDocument(ve){let Qe;return this.skipIssuerCheck||ve.issuer===this.issuer?(Qe=this.validateUrlFromDiscoveryDocument(ve.authorization_endpoint),Qe.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",Qe),!1):(Qe=this.validateUrlFromDiscoveryDocument(ve.end_session_endpoint),Qe.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",Qe),!1):(Qe=this.validateUrlFromDiscoveryDocument(ve.token_endpoint),Qe.length>0&&this.logger.error("error validating token_endpoint in discovery document",Qe),Qe=this.validateUrlFromDiscoveryDocument(ve.revocation_endpoint),Qe.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",Qe),Qe=this.validateUrlFromDiscoveryDocument(ve.userinfo_endpoint),Qe.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",Qe),!1):(Qe=this.validateUrlFromDiscoveryDocument(ve.jwks_uri),Qe.length>0?(this.logger.error("error validating jwks_uri in discovery document",Qe),!1):(this.sessionChecksEnabled&&!ve.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: "+ve.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(ve,Qe,Xe=new E.HttpHeaders){return this.fetchTokenUsingPasswordFlow(ve,Qe,Xe).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((ve,Qe)=>{const Xe=(new E.HttpHeaders).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:Xe,observe:"response",responseType:"text"}).subscribe(Ot=>{if(this.debug("userinfo received",JSON.stringify(Ot)),Ot.headers.get("content-type").startsWith("application/json")){let nt=JSON.parse(Ot.body);const ft=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!ft.sub||nt.sub!==ft.sub))return void Qe("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");nt=Object.assign({},ft,nt),this._storage.setItem("id_token_claims_obj",JSON.stringify(nt)),this.eventsSubject.next(new $("user_profile_loaded")),ve({info:nt})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new $("user_profile_loaded")),ve(JSON.parse(Ot.body))},Ot=>{this.logger.error("error loading user info",Ot),this.eventsSubject.next(new G("user_profile_load_error",Ot)),Qe(Ot)})})}fetchTokenUsingPasswordFlow(ve,Qe,Xe=new E.HttpHeaders){return this.fetchTokenUsingGrant("password",{username:ve,password:Qe},Xe)}fetchTokenUsingGrant(ve,Qe,Xe=new E.HttpHeaders){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let Ot=new E.HttpParams({encoder:new ce}).set("grant_type",ve).set("scope",this.scope);if(this.useHttpBasicAuth){const nt=btoa(`${this.clientId}:${this.dummyClientSecret}`);Xe=Xe.set("Authorization","Basic "+nt)}if(this.useHttpBasicAuth||(Ot=Ot.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(Ot=Ot.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const nt of Object.getOwnPropertyNames(this.customQueryParams))Ot=Ot.set(nt,this.customQueryParams[nt]);for(const nt of Object.keys(Qe))Ot=Ot.set(nt,Qe[nt]);return Xe=Xe.set("Content-Type","application/x-www-form-urlencoded"),new Promise((nt,ft)=>{this.http.post(this.tokenEndpoint,Ot,{headers:Xe}).subscribe(Re=>{this.debug("tokenResponse",Re),this.storeAccessTokenResponse(Re.access_token,Re.refresh_token,Re.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Re.scope,this.extractRecognizedCustomParameters(Re)),this.oidc&&Re.id_token&&this.processIdToken(Re.id_token,Re.access_token).then(me=>{this.storeIdToken(me),nt(Re)}),this.eventsSubject.next(new $("token_received")),nt(Re)},Re=>{this.logger.error("Error performing ${grantType} flow",Re),this.eventsSubject.next(new G("token_error",Re)),ft(Re)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((ve,Qe)=>{let Xe=new E.HttpParams({encoder:new ce}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),Ot=(new E.HttpHeaders).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const nt=btoa(`${this.clientId}:${this.dummyClientSecret}`);Ot=Ot.set("Authorization","Basic "+nt)}if(this.useHttpBasicAuth||(Xe=Xe.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(Xe=Xe.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const nt of Object.getOwnPropertyNames(this.customQueryParams))Xe=Xe.set(nt,this.customQueryParams[nt]);this.http.post(this.tokenEndpoint,Xe,{headers:Ot}).pipe((0,v.n)(nt=>this.oidc&&nt.id_token?(0,s.H)(this.processIdToken(nt.id_token,nt.access_token,!0)).pipe((0,u.M)(ft=>this.storeIdToken(ft)),(0,y.T)(()=>nt)):(0,b.of)(nt))).subscribe(nt=>{this.debug("refresh tokenResponse",nt),this.storeAccessTokenResponse(nt.access_token,nt.refresh_token,nt.expires_in||this.fallbackAccessTokenExpirationTimeInSec,nt.scope,this.extractRecognizedCustomParameters(nt)),this.eventsSubject.next(new $("token_received")),this.eventsSubject.next(new $("token_refreshed")),ve(nt)},nt=>{this.logger.error("Error refreshing token",nt),this.eventsSubject.next(new G("token_refresh_error",nt)),Qe(nt)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=ve=>{const Qe=this.processMessageEventMessage(ve);this.checkOrigin&&ve.origin!==location.origin&&console.error("wrong origin requested silent refresh!"),this.tryLogin({customHashFragment:Qe,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(Xe=>this.debug("tryLogin during silent refresh failed",Xe))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(ve={},Qe=!0){const Xe=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(ve.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(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const Ot=this.document.getElementById(this.silentRefreshIFrameName);Ot&&this.document.body.removeChild(Ot),this.silentRefreshSubject=Xe.sub;const nt=this.document.createElement("iframe");nt.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,Qe,ve).then(te=>{nt.setAttribute("src",te),this.silentRefreshShowIFrame||(nt.style.display="none"),this.document.body.appendChild(nt)});const Re=this.events.pipe((0,r.p)(te=>te instanceof G),(0,M.$)()),me=this.events.pipe((0,r.p)(te=>"token_received"===te.type),(0,M.$)()),Ke=(0,b.of)(new G("silent_refresh_timeout",null)).pipe((0,p.c)(this.silentRefreshTimeout));return(0,f.O)([Re,me,Ke]).pipe((0,y.T)(te=>{if(te instanceof G)throw"silent_refresh_timeout"===te.type||(te=new G("silent_refresh_error",te)),this.eventsSubject.next(te),te;return"token_received"===te.type&&(te=new $("silently_refreshed"),this.eventsSubject.next(te)),te})).toPromise()}initImplicitFlowInPopup(ve){return this.initLoginFlowInPopup(ve)}initLoginFlowInPopup(ve){return ve=ve||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(Qe=>new Promise((Xe,Ot)=>{let Re,ft=null;ve.windowRef?ve.windowRef&&!ve.windowRef.closed&&(ft=ve.windowRef,ft.location.href=Qe):ft=window.open(Qe,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(ve));const me=it=>{this.tryLogin({customHashFragment:it,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{te(),Xe(!0)},It=>{te(),Ot(It)})};ft?Re=window.setInterval(()=>{(!ft||ft.closed)&&(te(),Ot(new G("popup_closed",{})))},500):Ot(new G("popup_blocked",{}));const te=()=>{window.clearInterval(Re),window.removeEventListener("storage",Se),window.removeEventListener("message",de),null!==ft&&ft.close(),ft=null},de=it=>{const It=this.processMessageEventMessage(it);It&&null!==It?(window.removeEventListener("storage",Se),me(It)):console.log("false event firing")},Se=it=>{"auth_hash"===it.key&&(window.removeEventListener("message",de),me(it.newValue))};window.addEventListener("message",de),window.addEventListener("storage",Se)}))}calculatePopupFeatures(ve){const Qe=ve.height||470,Xe=ve.width||500,Ot=window.screenLeft+(window.outerWidth-Xe)/2;return`location=no,toolbar=no,width=${Xe},height=${Qe},top=${window.screenTop+(window.outerHeight-Qe)/2},left=${Ot}`}processMessageEventMessage(ve){let Qe="#";if(this.silentRefreshMessagePrefix&&(Qe+=this.silentRefreshMessagePrefix),!ve||!ve.data||"string"!=typeof ve.data)return;const Xe=ve.data;return Xe.startsWith(Qe)?"#"+Xe.substr(Qe.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(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=ve=>{const Qe=ve.origin.toLowerCase(),Xe=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),Xe.startsWith(Qe)){switch(ve.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",ve)}else this.debug("sessionCheckEventListener","wrong origin",Qe,"expected",Xe,"event",ve)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new j("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new j("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(()=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new j("session_terminated")),this.logOut(!0)):this.refreshToken().then(()=>{this.debug("token refresh after session change worked")}).catch(()=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new j("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,r.p)(ve=>"silently_refreshed"===ve.type||"silent_refresh_timeout"===ve.type||"silent_refresh_error"===ve.type),(0,M.$)()).subscribe(ve=>{"silently_refreshed"!==ve.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new j("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new j("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const ve=this.document.getElementById(this.sessionCheckIFrameName);ve&&this.document.body.removeChild(ve);const Qe=this.document.createElement("iframe");Qe.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),Qe.setAttribute("src",this.sessionCheckIFrameUrl),Qe.style.display="none",this.document.body.appendChild(Qe),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 ve=this.document.getElementById(this.sessionCheckIFrameName);ve||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const Qe=this.getSessionState();Qe||this.stopSessionCheckTimer(),ve.contentWindow.postMessage(this.clientId+" "+Qe,this.issuer)}createLoginUrl(ve="",Qe="",Xe="",Ot=!1,nt={}){var ft=this;return(0,t.A)(function*(){const Re=ft;let me;me=Xe||ft.redirectUri;const Ke=yield ft.createAndSaveNonce();if(ve=ve?Ke+ft.config.nonceStateSeparator+encodeURIComponent(ve):Ke,!ft.requestAccessToken&&!ft.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");ft.responseType=ft.config.responseType?ft.config.responseType:ft.oidc&&ft.requestAccessToken?"id_token token":ft.oidc&&!ft.requestAccessToken?"id_token":"token";const te=Re.loginUrl.indexOf("?")>-1?"&":"?";let de=Re.scope;ft.oidc&&!de.match(/(^|\s)openid($|\s)/)&&(de="openid "+de);let Se=Re.loginUrl+te+"response_type="+encodeURIComponent(Re.responseType)+"&client_id="+encodeURIComponent(Re.clientId)+"&state="+encodeURIComponent(ve)+"&redirect_uri="+encodeURIComponent(me)+"&scope="+encodeURIComponent(de);if(ft.responseType.includes("code")&&!ft.disablePKCE){const[it,It]=yield ft.createChallangeVerifierPairForPKCE();ft.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",It):ft._storage.setItem("PKCE_verifier",It),Se+="&code_challenge="+it,Se+="&code_challenge_method=S256"}Qe&&(Se+="&login_hint="+encodeURIComponent(Qe)),Re.resource&&(Se+="&resource="+encodeURIComponent(Re.resource)),Re.oidc&&(Se+="&nonce="+encodeURIComponent(Ke)),Ot&&(Se+="&prompt=none");for(const it of Object.keys(nt))Se+="&"+encodeURIComponent(it)+"="+encodeURIComponent(nt[it]);if(ft.customQueryParams)for(const it of Object.getOwnPropertyNames(ft.customQueryParams))Se+="&"+it+"="+encodeURIComponent(ft.customQueryParams[it]);return Se})()}initImplicitFlowInternal(ve="",Qe=""){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 Xe={},Ot=null;"string"==typeof Qe?Ot=Qe:"object"==typeof Qe&&(Xe=Qe),this.createLoginUrl(ve,Ot,null,!1,Xe).then(this.config.openUri).catch(nt=>{console.error("Error in initImplicitFlow",nt),this.inImplicitFlow=!1})}initImplicitFlow(ve="",Qe=""){""!==this.loginUrl?this.initImplicitFlowInternal(ve,Qe):this.events.pipe((0,r.p)(Xe=>"discovery_document_loaded"===Xe.type)).subscribe(()=>this.initImplicitFlowInternal(ve,Qe))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(ve){const Qe=this;if(ve.onTokenReceived){const Xe={idClaims:Qe.getIdentityClaims(),idToken:Qe.getIdToken(),accessToken:Qe.getAccessToken(),state:Qe.state};ve.onTokenReceived(Xe)}}storeAccessTokenResponse(ve,Qe,Xe,Ot,nt){if(this._storage.setItem("access_token",ve),Ot&&!Array.isArray(Ot)?this._storage.setItem("granted_scopes",JSON.stringify(Ot.split(" "))):Ot&&Array.isArray(Ot)&&this._storage.setItem("granted_scopes",JSON.stringify(Ot)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),Xe){const ft=1e3*Xe,me=this.dateTimeService.new().getTime()+ft;this._storage.setItem("expires_at",""+me)}Qe&&this._storage.setItem("refresh_token",Qe),nt&&nt.forEach((ft,Re)=>{this._storage.setItem(Re,ft)})}tryLogin(ve=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(ve).then(()=>!0):this.tryLoginImplicitFlow(ve)}parseQueryString(ve){return ve&&0!==ve.length?("?"===ve.charAt(0)&&(ve=ve.substr(1)),this.urlHelper.parseQueryString(ve)):{}}tryLoginCodeFlow(ve=null){var Qe=this;return(0,t.A)(function*(){const Xe=(ve=ve||{}).customHashFragment?ve.customHashFragment.substring(1):window.location.search,Ot=Qe.getCodePartsFromUrl(Xe),nt=Ot.code,ft=Ot.state,Re=Ot.session_state;if(!ve.preventClearHashAfterLogin){const te=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,te)}const[me,Ke]=Qe.parseState(ft);if(Qe.state=Ke,Ot.error){Qe.debug("error trying to login"),Qe.handleLoginError(ve,Ot);const te=new G("code_error",{},Ot);return Qe.eventsSubject.next(te),Promise.reject(te)}if(!ve.disableNonceCheck){if(!me)return Qe.saveRequestedRoute(),Promise.resolve();if(!ve.disableOAuth2StateCheck&&!Qe.validateNonce(me)){const de=new G("invalid_nonce_in_state",null);return Qe.eventsSubject.next(de),Promise.reject(de)}}return Qe.storeSessionState(Re),nt&&(yield Qe.getTokenFromCode(nt,ve),Qe.restoreRequestedRoute()),Promise.resolve()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const ve=this._storage.getItem("requested_route");ve&&history.replaceState(null,"",window.location.origin+ve)}getCodePartsFromUrl(ve){return ve&&0!==ve.length?("?"===ve.charAt(0)&&(ve=ve.substr(1)),this.urlHelper.parseQueryString(ve)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(ve,Qe){let Xe=new E.HttpParams({encoder:new ce}).set("grant_type","authorization_code").set("code",ve).set("redirect_uri",Qe.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let Ot;Ot=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),Ot?Xe=Xe.set("code_verifier",Ot):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(Xe,Qe)}fetchAndProcessToken(ve,Qe){Qe=Qe||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let Xe=(new E.HttpHeaders).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const Ot=btoa(`${this.clientId}:${this.dummyClientSecret}`);Xe=Xe.set("Authorization","Basic "+Ot)}return this.useHttpBasicAuth||(ve=ve.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(ve=ve.set("client_secret",this.dummyClientSecret)),new Promise((Ot,nt)=>{if(this.customQueryParams)for(const ft of Object.getOwnPropertyNames(this.customQueryParams))ve=ve.set(ft,this.customQueryParams[ft]);this.http.post(this.tokenEndpoint,ve,{headers:Xe}).subscribe(ft=>{this.debug("refresh tokenResponse",ft),this.storeAccessTokenResponse(ft.access_token,ft.refresh_token,ft.expires_in||this.fallbackAccessTokenExpirationTimeInSec,ft.scope,this.extractRecognizedCustomParameters(ft)),this.oidc&&ft.id_token?this.processIdToken(ft.id_token,ft.access_token,Qe.disableNonceCheck).then(Re=>{this.storeIdToken(Re),this.eventsSubject.next(new $("token_received")),this.eventsSubject.next(new $("token_refreshed")),Ot(ft)}).catch(Re=>{this.eventsSubject.next(new G("token_validation_error",Re)),console.error("Error validating tokens"),console.error(Re),nt(Re)}):(this.eventsSubject.next(new $("token_received")),this.eventsSubject.next(new $("token_refreshed")),Ot(ft))},ft=>{console.error("Error getting token",ft),this.eventsSubject.next(new G("token_refresh_error",ft)),nt(ft)})})}tryLoginImplicitFlow(ve=null){let Qe;Qe=(ve=ve||{}).customHashFragment?this.urlHelper.getHashFragmentParams(ve.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",Qe);const Xe=Qe.state,[Ot,nt]=this.parseState(Xe);if(this.state=nt,Qe.error){this.debug("error trying to login"),this.handleLoginError(ve,Qe);const te=new G("token_error",{},Qe);return this.eventsSubject.next(te),Promise.reject(te)}const ft=Qe.access_token,Re=Qe.id_token,me=Qe.session_state,Ke=Qe.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!ft||this.requestAccessToken&&!ve.disableOAuth2StateCheck&&!Xe||this.oidc&&!Re)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!me&&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&&!ve.disableNonceCheck&&!this.validateNonce(Ot)){const de=new G("invalid_nonce_in_state",null);return this.eventsSubject.next(de),Promise.reject(de)}return this.requestAccessToken&&this.storeAccessTokenResponse(ft,null,Qe.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Ke),this.oidc?this.processIdToken(Re,ft,ve.disableNonceCheck).then(te=>ve.validationHandler?ve.validationHandler({accessToken:ft,idClaims:te.idTokenClaims,idToken:te.idToken,state:Xe}).then(()=>te):te).then(te=>(this.storeIdToken(te),this.storeSessionState(me),this.clearHashAfterLogin&&!ve.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new $("token_received")),this.callOnTokenReceivedIfExists(ve),this.inImplicitFlow=!1,!0)).catch(te=>(this.eventsSubject.next(new G("token_validation_error",te)),this.logger.error("Error validating tokens"),this.logger.error(te),Promise.reject(te))):(this.eventsSubject.next(new $("token_received")),this.clearHashAfterLogin&&!ve.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(ve),Promise.resolve(!0))}parseState(ve){let Qe=ve,Xe="";if(ve){const Ot=ve.indexOf(this.config.nonceStateSeparator);Ot>-1&&(Qe=ve.substr(0,Ot),Xe=ve.substr(Ot+this.config.nonceStateSeparator.length))}return[Qe,Xe]}validateNonce(ve){let Qe;return Qe=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Qe===ve||(console.error("Validating access_token failed, wrong state/nonce.",Qe,ve),!1)}storeIdToken(ve){this._storage.setItem("id_token",ve.idToken),this._storage.setItem("id_token_claims_obj",ve.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+ve.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(ve){this._storage.setItem("session_state",ve)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(ve,Qe){ve.onLoginError&&ve.onLoginError(Qe),this.clearHashAfterLogin&&!ve.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(ve=6e5){return this.clockSkewInSec||0===this.clockSkewInSec?1e3*this.clockSkewInSec:ve}processIdToken(ve,Qe,Xe=!1){const Ot=ve.split("."),ft=V(this.padBase64(Ot[0])),Re=JSON.parse(ft),Ke=V(this.padBase64(Ot[1])),te=JSON.parse(Ke);let de;if(de=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(te.aud)){if(te.aud.every(_t=>_t!==this.clientId)){const _t="Wrong audience: "+te.aud.join(",");return this.logger.warn(_t),Promise.reject(_t)}}else if(te.aud!==this.clientId){const _t="Wrong audience: "+te.aud;return this.logger.warn(_t),Promise.reject(_t)}if(!te.sub){const _t="No sub claim in id_token";return this.logger.warn(_t),Promise.reject(_t)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==te.sub){const _t=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${te.sub}`;return this.logger.warn(_t),Promise.reject(_t)}if(!te.iat){const _t="No iat claim in id_token";return this.logger.warn(_t),Promise.reject(_t)}if(!this.skipIssuerCheck&&te.iss!==this.issuer){const _t="Wrong issuer: "+te.iss;return this.logger.warn(_t),Promise.reject(_t)}if(!Xe&&te.nonce!==de){const _t="Wrong nonce: "+te.nonce;return this.logger.warn(_t),Promise.reject(_t)}if(Object.prototype.hasOwnProperty.call(this,"responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!te.at_hash){const _t="An at_hash is needed!";return this.logger.warn(_t),Promise.reject(_t)}const Se=this.dateTimeService.now(),it=1e3*te.iat,It=1e3*te.exp,Gt=this.getClockSkewInMsec();if(it-Gt>=Se||It+Gt-this.decreaseExpirationBySec<=Se){const _t="Token has expired";return console.error(_t),console.error({now:Se,issuedAtMSec:it,expiresAtMSec:It}),Promise.reject(_t)}const an={accessToken:Qe,idToken:ve,jwks:this.jwks,idTokenClaims:te,idTokenHeader:Re,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(an).then(()=>({idToken:ve,idTokenClaims:te,idTokenClaimsJson:Ke,idTokenHeader:Re,idTokenHeaderJson:ft,idTokenExpiresAt:It})):this.checkAtHash(an).then(_t=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!_t){const Lt="Wrong at_hash";return this.logger.warn(Lt),Promise.reject(Lt)}return this.checkSignature(an).then(()=>{const qe={idToken:ve,idTokenClaims:te,idTokenClaimsJson:Ke,idTokenHeader:Re,idTokenHeaderJson:ft,idTokenExpiresAt:It};return this.disableAtHashCheck?qe:this.checkAtHash(an).then(Fe=>{if(this.requestAccessToken&&!Fe){const tt="Wrong at_hash";return this.logger.warn(tt),Promise.reject(tt)}return qe})})})}getIdentityClaims(){const ve=this._storage.getItem("id_token_claims_obj");return ve?JSON.parse(ve):null}getGrantedScopes(){const ve=this._storage.getItem("granted_scopes");return ve?JSON.parse(ve):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(ve){for(;ve.length%4!=0;)ve+="=";return ve}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 ve=this._storage.getItem("expires_at"),Qe=this.dateTimeService.new();return!(ve&&parseInt(ve,10)-this.decreaseExpirationBySec=0&&null!==this._storage.getItem(ve)?JSON.parse(this._storage.getItem(ve)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(ve={},Qe=""){let Xe=!1;"boolean"==typeof ve&&(Xe=ve,ve={});const Ot=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(ft=>this._storage.removeItem(ft)),this.silentRefreshSubject=null,this.eventsSubject.next(new j("logout")),!this.logoutUrl||Xe)return;let nt;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)nt=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(Ot)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let ft=new E.HttpParams({encoder:new ce});Ot&&(ft=ft.set("id_token_hint",Ot));const Re=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";Re&&(ft=ft.set("post_logout_redirect_uri",Re),Qe&&(ft=ft.set("state",Qe)));for(const me in ve)ft=ft.set(me,ve[me]);nt=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+ft.toString()}this.config.openUri(nt)}createAndSaveNonce(){const ve=this;return this.createNonce().then(function(Qe){return ve.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",Qe):ve._storage.setItem("nonce",Qe),Qe})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const ve=this.document.getElementById(this.silentRefreshIFrameName);ve&&ve.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const Qe=this.document.getElementById(this.sessionCheckIFrameName);Qe&&Qe.remove()}createNonce(){return new Promise(ve=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const Qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let Xe=45,Ot="";const nt=typeof self>"u"?null:self.crypto||self.msCrypto;if(nt){let ft=new Uint8Array(Xe);nt.getRandomValues(ft),ft.map||(ft.map=Array.prototype.map),ft=ft.map(Re=>Qe.charCodeAt(Re%66)),Ot=String.fromCharCode.apply(null,ft)}else for(;0"discovery_document_loaded"===Xe.type)).subscribe(()=>this.initCodeFlowInternal(ve,Qe))}initCodeFlowInternal(ve="",Qe={}){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 Xe={},Ot=null;"string"==typeof Qe?Ot=Qe:"object"==typeof Qe&&(Xe=Qe),this.createLoginUrl(ve,Ot,null,!1,Xe).then(this.config.openUri).catch(nt=>{console.error("Error in initAuthorizationCodeFlow"),console.error(nt)})}createChallangeVerifierPairForPKCE(){var ve=this;return(0,t.A)(function*(){if(!ve.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const Qe=yield ve.createNonce();return[W(yield ve.crypto.calcHash(Qe,"sha-256")),Qe]})()}extractRecognizedCustomParameters(ve){const Qe=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(Xe=>{ve[Xe]&&Qe.set(Xe,JSON.stringify(ve[Xe]))}),Qe}revokeTokenAndLogout(ve={},Qe=!1){const Xe=this.revocationEndpoint,Ot=this.getAccessToken(),nt=this.getRefreshToken();if(!Ot)return Promise.resolve();let ft=new E.HttpParams({encoder:new ce}),Re=(new E.HttpHeaders).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const me=btoa(`${this.clientId}:${this.dummyClientSecret}`);Re=Re.set("Authorization","Basic "+me)}if(this.useHttpBasicAuth||(ft=ft.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(ft=ft.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const me of Object.getOwnPropertyNames(this.customQueryParams))ft=ft.set(me,this.customQueryParams[me]);return new Promise((me,Ke)=>{let te,de;if(Ot){const Se=ft.set("token",Ot).set("token_type_hint","access_token");te=this.http.post(Xe,Se,{headers:Re})}else te=(0,b.of)(null);if(nt){const Se=ft.set("token",nt).set("token_type_hint","refresh_token");de=this.http.post(Xe,Se,{headers:Re})}else de=(0,b.of)(null);Qe&&(te=te.pipe((0,w.W)(Se=>0===Se.status?(0,b.of)(null):(0,d.$)(Se))),de=de.pipe((0,w.W)(Se=>0===Se.status?(0,b.of)(null):(0,d.$)(Se)))),(0,a.z)([te,de]).subscribe(Se=>{this.logOut(ve),me(Se),this.logger.info("Token successfully revoked")},Se=>{this.logger.error("Error revoking token",Se),this.eventsSubject.next(new G("token_revoke_error",Se)),Ke(Se)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}static#e=this.\u0275fac=function(Qe){return new(Qe||Nt)(_.\u0275\u0275inject(_.NgZone),_.\u0275\u0275inject(E.HttpClient),_.\u0275\u0275inject(F,8),_.\u0275\u0275inject(ue,8),_.\u0275\u0275inject(K,8),_.\u0275\u0275inject(Ze),_.\u0275\u0275inject(A),_.\u0275\u0275inject(Oe,8),_.\u0275\u0275inject(C.DOCUMENT),_.\u0275\u0275inject(S))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Nt,factory:Nt.\u0275fac})}return Nt})();class De{}class ot{handleError(Bt){return(0,d.$)(Bt)}}let xt=(()=>{class Nt{constructor(ve,Qe,Xe){this.oAuthService=ve,this.errorHandler=Qe,this.moduleConfig=Xe}checkUrl(ve){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(ve):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(Qe=>ve.toLowerCase().startsWith(Qe.toLowerCase()))}intercept(ve,Qe){const Xe=ve.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(Xe)?this.moduleConfig.resourceServer.sendAccessToken?(0,l.h)((0,b.of)(this.oAuthService.getAccessToken()).pipe((0,r.p)(nt=>!!nt)),this.oAuthService.events.pipe((0,r.p)(nt=>"token_received"===nt.type),(0,k.w)(this.oAuthService.waitForTokenInMsec||0),(0,w.W)(()=>(0,b.of)(null)),(0,y.T)(()=>this.oAuthService.getAccessToken()))).pipe((0,I.s)(1),(0,D.Z)(nt=>{if(nt){const Re=ve.headers.set("Authorization","Bearer "+nt);ve=ve.clone({headers:Re})}return Qe.handle(ve).pipe((0,w.W)(ft=>this.errorHandler.handleError(ft)))})):Qe.handle(ve).pipe((0,w.W)(nt=>this.errorHandler.handleError(nt))):Qe.handle(ve)}static#e=this.\u0275fac=function(Qe){return new(Qe||Nt)(_.\u0275\u0275inject(Ge),_.\u0275\u0275inject(De),_.\u0275\u0275inject(T,8))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Nt,factory:Nt.\u0275fac})}return Nt})();function jt(){return console}function Xt(){return typeof sessionStorage<"u"?sessionStorage:new Y}function un(Nt=null,Bt=O){return(0,_.makeEnvironmentProviders)([Ge,Ze,{provide:A,useFactory:jt},{provide:F,useFactory:Xt},{provide:ue,useClass:Bt},{provide:Oe,useClass:we},{provide:De,useClass:ot},{provide:T,useValue:Nt},{provide:E.HTTP_INTERCEPTORS,useClass:xt,multi:!0},{provide:S,useClass:R}])}let dn=(()=>{class Nt{static forRoot(ve=null,Qe=O){return{ngModule:Nt,providers:[un(ve,Qe)]}}static#e=this.\u0275fac=function(Qe){return new(Qe||Nt)};static#t=this.\u0275mod=_.\u0275\u0275defineNgModule({type:Nt});static#n=this.\u0275inj=_.\u0275\u0275defineInjector({imports:[C.CommonModule]})}return Nt})();class rn extends O{constructor(){super(),console.error("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")}}const hn=new _.InjectionToken("AUTH_CONFIG")},2774:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{HIGHLIGHT_OPTIONS:()=>v,Highlight:()=>O,HighlightJS:()=>D,HighlightLoader:()=>k,HighlightModule:()=>T});var t=g(4438),_=g(177),C=g(4412),E=g(5964),c=g(6697),b=g(5558),s=g(8141),f=g(983),d=g(9437),a=g(8810),l=g(4437),r=g(6354),u=g(8455),h=g(536),p=g(345);const v=new t.InjectionToken("HIGHLIGHT_OPTIONS");let y;let k=(()=>{class U{constructor(R,N,A){this.doc=R,this.platformId=N,this._options=A,this._ready=new C.t(null),this.ready=this._ready.asObservable().pipe((0,E.p)(F=>!!F),(0,c.s)(1)),(0,_.isPlatformBrowser)(N)&&(R.defaultView.hljs?this._ready.next(R.defaultView.hljs):(this._loadLibrary().pipe((0,b.n)(F=>this._options&&this._options.lineNumbersLoader?(R.defaultView.hljs=F,this.loadLineNumbers().pipe((0,s.M)(Y=>{Y.activateLineNumbers(),this._ready.next(F)}))):(this._ready.next(F),f.w)),(0,d.W)(F=>(console.error("[HLJS] ",F),f.w))).subscribe(),this._options?.themePath&&this.loadTheme(this._options.themePath)))}_loadLibrary(){if(this._options){if(this._options.fullLibraryLoader&&this._options.coreLibraryLoader)return(0,a.$)(()=>"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,a.$)(()=>"The highlighting languages were imported they are not needed!");if(this._options.coreLibraryLoader&&!this._options.languages)return(0,a.$)(()=>"The highlighting languages were not imported!");if(!this._options.coreLibraryLoader&&this._options.languages)return(0,a.$)(()=>"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,b.n)(R=>this._loadLanguages(R)))}return(0,a.$)(()=>"Highlight.js library was not imported!")}_loadLanguages(R){const N=Object.entries(this._options.languages).map(([A,F])=>I(F()).pipe((0,s.M)(Y=>R.registerLanguage(A,Y))));return(0,l.y)(...N).pipe((0,r.T)(()=>R))}loadCoreLibrary(){return I(this._options.coreLibraryLoader())}loadFullLibrary(){return I(this._options.fullLibraryLoader())}loadLineNumbers(){return(0,u.H)(this._options.lineNumbersLoader())}setTheme(R){(0,_.isPlatformBrowser)(this.platformId)&&(this._themeLinkElement?this._themeLinkElement.href=R:this.loadTheme(R))}loadTheme(R){this._themeLinkElement=this.doc.createElement("link"),this._themeLinkElement.href=R,this._themeLinkElement.type="text/css",this._themeLinkElement.rel="stylesheet",this._themeLinkElement.media="screen,print",this.doc.head.appendChild(this._themeLinkElement)}static#e=this.\u0275fac=function(N){return new(N||U)(t.\u0275\u0275inject(_.DOCUMENT),t.\u0275\u0275inject(t.PLATFORM_ID),t.\u0275\u0275inject(v,8))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"})}return U})();const I=U=>(0,u.H)(U).pipe((0,E.p)(S=>!!S?.default),(0,r.T)(S=>S.default));let D=(()=>{class U{get hljs(){return this._hljs}constructor(R,N){this._loader=R,this._hljs=null,R.ready.subscribe(A=>{this._hljs=A,N&&N.config&&(A.configure(N.config),A.listLanguages().length<1&&console.error("[HighlightJS]: No languages were registered!"))})}highlight(R,{language:N,ignoreIllegals:A}){return this._loader.ready.pipe((0,r.T)(F=>F.highlight(R,{language:N,ignoreIllegals:A})))}highlightAuto(R,N){return this._loader.ready.pipe((0,r.T)(A=>A.highlightAuto(R,N)))}highlightElement(R){return this._loader.ready.pipe((0,r.T)(N=>N.highlightElement(R)))}highlightAll(){return this._loader.ready.pipe((0,r.T)(R=>R.highlightAll()))}configure(R){return this._loader.ready.pipe((0,r.T)(N=>N.configure(R)))}registerLanguage(R,N){return this._loader.ready.pipe((0,s.M)(A=>A.registerLanguage(R,N)))}unregisterLanguage(R){return this._loader.ready.pipe((0,s.M)(N=>N.unregisterLanguage(R)))}registerAliases(R,{languageName:N}){return this._loader.ready.pipe((0,s.M)(A=>A.registerAliases(R,{languageName:N})))}listLanguages(){return this._loader.ready.pipe((0,r.T)(R=>R.listLanguages()))}getLanguage(R){return this._loader.ready.pipe((0,r.T)(N=>N.getLanguage(R)))}safeMode(){return this._loader.ready.pipe((0,r.T)(R=>R.safeMode()))}debugMode(){return this._loader.ready.pipe((0,r.T)(R=>R.debugMode()))}lineNumbersBlock(R){return this._loader.ready.pipe((0,E.p)(N=>!!N.lineNumbersBlock),(0,s.M)(N=>N.lineNumbersBlock(R)))}static#e=this.\u0275fac=function(N){return new(N||U)(t.\u0275\u0275inject(k),t.\u0275\u0275inject(v,8))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"})}return U})(),O=(()=>{class U{constructor(R,N,A,F,Y){this._hljs=N,this._sanitizer=A,this.platformId=F,this._options=Y,this.highlighted=new t.EventEmitter,this._nativeElement=R.nativeElement}ngOnChanges(R){(0,_.isPlatformBrowser)(this.platformId)&&null!==R?.code?.currentValue&&R.code.currentValue!==R.code.previousValue&&(this.code?this.highlightElement(this.code,this.languages):this.setTextContent(""))}highlightElement(R,N){this.setTextContent(R),this._hljs.highlightAuto(R,N).subscribe(A=>{this.setInnerHTML(A?.value),this.lineNumbers&&this._options&&this._options.lineNumbersLoader&&this.addLineNumbers(),this.highlighted.emit(A)})}addLineNumbers(){this.destroyLineNumbersObserver(),h.X.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(R){h.X.schedule(()=>this._nativeElement.textContent=R)}setInnerHTML(R){h.X.schedule(()=>this._nativeElement.innerHTML=function w(U){return function M(){if(!y)try{y=window?.trustedTypes?.createPolicy("ngx-highlightjs",{createHTML:U=>U})}catch{}return y}()?.createHTML(U)||U}(this._sanitizer.sanitize(t.SecurityContext.HTML,R)||""))}static#e=this.\u0275fac=function(N){return new(N||U)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(D),t.\u0275\u0275directiveInject(p.DomSanitizer),t.\u0275\u0275directiveInject(t.PLATFORM_ID),t.\u0275\u0275directiveInject(v,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["","highlight",""]],hostVars:2,hostBindings:function(N,A){2&N&&t.\u0275\u0275classProp("hljs",!0)},inputs:{code:[t.\u0275\u0275InputFlags.None,"highlight","code"],languages:"languages",lineNumbers:"lineNumbers"},outputs:{highlighted:"highlighted"},standalone:!0,features:[t.\u0275\u0275NgOnChangesFeature]})}return U})(),T=(()=>{class U{static#e=this.\u0275fac=function(N){return new(N||U)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:U});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({})}return U})()},4110:(Ie,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_SELECTSEARCH_DEFAULT_OPTIONS:()=>be,MatSelectNoEntriesFoundDirective:()=>Ze,MatSelectSearchClearDirective:()=>ce,MatSelectSearchComponent:()=>pt,MatSelectSearchVersion:()=>ct,NgxMatSelectSearchModule:()=>Ct,configurableDefaultOptions:()=>ue});var t=g(7336),_=g(4438),C=g(9417),E=g(6600),c=g(2102),b=g(2798),s=g(4412),f=g(7673),d=g(4572),a=g(1413),l=g(5558),r=g(6354),u=g(9172),h=g(3103),p=g(6977),v=g(6697),y=g(8141),M=g(5964),w=g(5478),k=g(177),I=g(8834),D=g(2765),O=g(9213),T=g(9183),U=g(4823),S=g(1997);const R=["searchSelectInput"],N=["innerSelectSearch"],A=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],F=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"],Y=(Ne,Ae)=>({"mat-select-search-inner-multiple":Ne,"mat-select-search-inner-toggle-all":Ae});function ee(Ne,Ae){if(1&Ne){const fe=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"mat-checkbox",12),_.\u0275\u0275listener("change",function(Pe){_.\u0275\u0275restoreView(fe);const Me=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(Me._emitSelectAllBooleanToParent(Pe.checked))}),_.\u0275\u0275elementEnd()}if(2&Ne){const fe=_.\u0275\u0275nextContext();_.\u0275\u0275property("color",null==fe.matFormField?null:fe.matFormField.color)("checked",fe.toggleAllCheckboxChecked)("indeterminate",fe.toggleAllCheckboxIndeterminate)("matTooltip",fe.toggleAllCheckboxTooltipMessage)("matTooltipPosition",fe.toggleAllCheckboxTooltipPosition)}}function ie(Ne,Ae){1&Ne&&_.\u0275\u0275element(0,"mat-spinner",13)}function $(Ne,Ae){1&Ne&&_.\u0275\u0275projection(0,1,["*ngIf","clearIcon; else defaultIcon"])}function j(Ne,Ae){if(1&Ne&&(_.\u0275\u0275elementStart(0,"mat-icon",16),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&Ne){const fe=_.\u0275\u0275nextContext(2);_.\u0275\u0275property("svgIcon",fe.closeSvgIcon),_.\u0275\u0275advance(),_.\u0275\u0275textInterpolate1(" ",fe.closeSvgIcon?null:fe.closeIcon," ")}}function G(Ne,Ae){if(1&Ne){const fe=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"button",14),_.\u0275\u0275listener("click",function(){_.\u0275\u0275restoreView(fe);const Pe=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(Pe._reset(!0))}),_.\u0275\u0275template(1,$,1,0,"ng-content",15)(2,j,2,2,"ng-template",null,2,_.\u0275\u0275templateRefExtractor),_.\u0275\u0275elementEnd()}if(2&Ne){const fe=_.\u0275\u0275reference(3),We=_.\u0275\u0275nextContext();_.\u0275\u0275advance(),_.\u0275\u0275property("ngIf",We.clearIcon)("ngIfElse",fe)}}function V(Ne,Ae){1&Ne&&_.\u0275\u0275projection(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function W(Ne,Ae){if(1&Ne&&_.\u0275\u0275text(0),2&Ne){const fe=_.\u0275\u0275nextContext(2);_.\u0275\u0275textInterpolate(fe.noEntriesFoundLabel)}}function K(Ne,Ae){if(1&Ne&&(_.\u0275\u0275elementStart(0,"div",17),_.\u0275\u0275template(1,V,1,0,"ng-content",15)(2,W,1,1,"ng-template",null,3,_.\u0275\u0275templateRefExtractor),_.\u0275\u0275elementEnd()),2&Ne){const fe=_.\u0275\u0275reference(3),We=_.\u0275\u0275nextContext();_.\u0275\u0275advance(),_.\u0275\u0275property("ngIf",We.noEntriesFound)("ngIfElse",fe)}}let ce=(()=>{class Ne{}return Ne.\u0275fac=function(fe){return new(fe||Ne)},Ne.\u0275dir=_.\u0275\u0275defineDirective({type:Ne,selectors:[["","ngxMatSelectSearchClear",""]]}),Ne})();const ue=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],be=new _.InjectionToken("mat-selectsearch-default-options");let Ze=(()=>{class Ne{}return Ne.\u0275fac=function(fe){return new(fe||Ne)},Ne.\u0275dir=_.\u0275\u0275defineDirective({type:Ne,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),Ne})(),pt=(()=>{class Ne{constructor(fe,We,Pe,Me=null,$e=null,q){this.matSelect=fe,this.changeDetectorRef=We,this._viewportRuler=Pe,this.matOption=Me,this.matFormField=$e,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new _.EventEmitter,this.onTouched=_e=>{},this._options$=new s.t(null),this.optionsList$=this._options$.pipe((0,l.n)(_e=>_e?_e.changes.pipe((0,r.T)(Oe=>Oe.toArray()),(0,u.Z)(_e.toArray())):(0,f.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,r.T)(_e=>_e?_e.length:0)),this._formControl=new C.FormControl(""),this._showNoEntriesFound$=(0,d.z)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,r.T)(([_e,Oe])=>this.noEntriesFoundLabel&&_e&&Oe===this.getOptionsLengthOffset())),this._onDestroy=new a.B,this.applyDefaultOptions(q)}get value(){return this._formControl.value}set _options(fe){this._options$.next(fe)}get _options(){return this._options$.getValue()}applyDefaultOptions(fe){if(fe)for(const We of ue)fe.hasOwnProperty(We)&&(this[We]=fe[We])}ngOnInit(){this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe((0,h.c)(1),(0,p.Q)(this._onDestroy)).subscribe(fe=>{fe?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,v.s)(1),(0,l.n)(fe=>{this._options=this.matSelect.options;let We=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe((0,y.M)(()=>{setTimeout(()=>{const Pe=this._options.toArray(),Me=Pe[this.getOptionsLengthOffset()],$e=this.matSelect._keyManager;$e&&this.matSelect.panelOpen&&Me&&((!We||!this.matSelect.compareWith(We.value,Me.value)||!$e.activeItem||!Pe.find(_e=>this.matSelect.compareWith(_e.value,$e.activeItem.value)))&&$e.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),We=Me})}))})).pipe((0,p.Q)(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe((0,p.Q)(this._onDestroy)).subscribe(fe=>{this.matOption&&(fe?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,p.Q)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,p.Q)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(fe){this.toggleAll.emit(fe)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(fe){(fe.key&&1===fe.key.length||fe.keyCode>=t.A&&fe.keyCode<=t.Z||fe.keyCode>=t.f2&&fe.keyCode<=t.bn||fe.keyCode===t.t6||this.preventHomeEndKeyPropagation&&(fe.keyCode===t.yZ||fe.keyCode===t.Kp))&&fe.stopPropagation(),this.matSelect.multiple&&fe.key&&fe.keyCode===t.Fm&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&fe.keyCode===t._f&&this.value&&(this._reset(!0),fe.stopPropagation())}_handleKeyup(fe){if(fe.keyCode===t.i7||fe.keyCode===t.n6){const We=this.matSelect._getAriaActiveDescendant(),Pe=this._options.toArray().findIndex(Me=>Me.id===We);-1!==Pe&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[Pe]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",We))}}writeValue(fe){this._lastExternalInputValue=fe,this._formControl.setValue(fe),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(fe){this._formControl.valueChanges.pipe((0,M.p)(We=>We!==this._lastExternalInputValue),(0,y.M)(()=>this._lastExternalInputValue=void 0),(0,p.Q)(this._onDestroy)).subscribe(fe)}registerOnTouched(fe){this.onTouched=fe}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const fe=this.matSelect.panel.nativeElement,We=fe.scrollTop;this.searchSelectInput.nativeElement.focus(),fe.scrollTop=We}_reset(fe){this._formControl.setValue(""),fe&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,p.Q)(this._onDestroy)).subscribe(fe=>{let We=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!fe||!Array.isArray(fe))&&(fe=[]);const Pe=this.matSelect.options.map(Me=>Me.value);this.previousSelectedValues.forEach(Me=>{!fe.some($e=>this.matSelect.compareWith($e,Me))&&!Pe.some($e=>this.matSelect.compareWith($e,Me))&&(fe.push(Me),We=!0)})}this.previousSelectedValues=fe,We&&this.matSelect._onChange(fe)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let We,fe=this.innerSelectSearch.nativeElement;for(;fe=fe.parentElement;)if(fe.classList.contains("mat-select-panel")){We=fe;break}We&&(this.innerSelectSearch.nativeElement.style.width=We.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return Ne.\u0275fac=function(fe){return new(fe||Ne)(_.\u0275\u0275directiveInject(b.MatSelect),_.\u0275\u0275directiveInject(_.ChangeDetectorRef),_.\u0275\u0275directiveInject(w.Xj),_.\u0275\u0275directiveInject(E.MatOption,8),_.\u0275\u0275directiveInject(c.MatFormField,8),_.\u0275\u0275directiveInject(be,8))},Ne.\u0275cmp=_.\u0275\u0275defineComponent({type:Ne,selectors:[["ngx-mat-select-search"]],contentQueries:function(fe,We,Pe){if(1&fe&&(_.\u0275\u0275contentQuery(Pe,ce,5),_.\u0275\u0275contentQuery(Pe,Ze,5)),2&fe){let Me;_.\u0275\u0275queryRefresh(Me=_.\u0275\u0275loadQuery())&&(We.clearIcon=Me.first),_.\u0275\u0275queryRefresh(Me=_.\u0275\u0275loadQuery())&&(We.noEntriesFound=Me.first)}},viewQuery:function(fe,We){if(1&fe&&(_.\u0275\u0275viewQuery(R,7,_.ElementRef),_.\u0275\u0275viewQuery(N,7,_.ElementRef)),2&fe){let Pe;_.\u0275\u0275queryRefresh(Pe=_.\u0275\u0275loadQuery())&&(We.searchSelectInput=Pe.first),_.\u0275\u0275queryRefresh(Pe=_.\u0275\u0275loadQuery())&&(We.innerSelectSearch=Pe.first)}},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[_.\u0275\u0275ProvidersFeature([{provide:C.NG_VALUE_ACCESSOR,useExisting:(0,_.forwardRef)(()=>Ne),multi:!0}])],ngContentSelectors:F,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["defaultIcon",""],["defaultNoEntriesFound",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],[1,"mat-select-search-inner-row"],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"]],template:function(fe,We){if(1&fe){const Pe=_.\u0275\u0275getCurrentView();_.\u0275\u0275projectionDef(A),_.\u0275\u0275element(0,"input",4),_.\u0275\u0275elementStart(1,"div",5,0)(3,"div",6),_.\u0275\u0275template(4,ee,1,5,"mat-checkbox",7),_.\u0275\u0275elementStart(5,"input",8,1),_.\u0275\u0275listener("keydown",function($e){return _.\u0275\u0275restoreView(Pe),_.\u0275\u0275resetView(We._handleKeydown($e))})("keyup",function($e){return _.\u0275\u0275restoreView(Pe),_.\u0275\u0275resetView(We._handleKeyup($e))})("blur",function(){return _.\u0275\u0275restoreView(Pe),_.\u0275\u0275resetView(We.onBlur())}),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(7,ie,1,0,"mat-spinner",9)(8,G,4,2,"button",10),_.\u0275\u0275projection(9),_.\u0275\u0275elementEnd(),_.\u0275\u0275element(10,"mat-divider"),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(11,K,4,2,"div",11),_.\u0275\u0275pipe(12,"async")}2&fe&&(_.\u0275\u0275advance(),_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction2(11,Y,We.matSelect.multiple,We._isToggleAllCheckboxVisible())),_.\u0275\u0275advance(3),_.\u0275\u0275property("ngIf",We._isToggleAllCheckboxVisible()),_.\u0275\u0275advance(),_.\u0275\u0275property("type",We.type)("formControl",We._formControl)("placeholder",We.placeholderLabel),_.\u0275\u0275attribute("aria-label",We.ariaLabel),_.\u0275\u0275advance(2),_.\u0275\u0275property("ngIf",We.searching),_.\u0275\u0275advance(),_.\u0275\u0275property("ngIf",!We.hideClearSearchButton&&We.value&&!We.searching),_.\u0275\u0275advance(3),_.\u0275\u0275property("ngIf",_.\u0275\u0275pipeBind1(12,9,We._showNoEntriesFound$)))},dependencies:[k.NgClass,k.NgIf,C.DefaultValueAccessor,C.NgControlStatus,C.FormControlDirective,I.MatIconButton,D.MatCheckbox,O.MatIcon,T.MatProgressSpinner,U.oV,S.MatDivider,k.AsyncPipe],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-select-panel-background-color)}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-select-panel-background-color);padding:0 44px 0 16px;height:calc(3em - 1px);line-height:calc(3em - 1px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-left:5px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding-top:8px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:0}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px} .mat-mdc-option[aria-disabled=true].contains-mat-select-search{position:sticky;top:-8px;z-index:1;opacity:1;margin-top:-8px;pointer-events:all} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-mdc-option[aria-disabled=true].contains-mat-select-search mat-pseudo-checkbox{display:none} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mdc-list-item__primary-text{opacity:1}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}"],changeDetection:0}),Ne})();const ct="7.0.6";let Ct=(()=>{class Ne{}return Ne.\u0275fac=function(fe){return new(fe||Ne)},Ne.\u0275mod=_.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=_.\u0275\u0275defineInjector({imports:[k.CommonModule,C.ReactiveFormsModule,I.MatButtonModule,D.MatCheckboxModule,O.MatIconModule,T.MatProgressSpinnerModule,U.uc,S.MatDividerModule]}),Ne})()},994:(Ie,ne,g)=>{"use strict";function c(L){let Ce=L.length;for(;--Ce>=0;)L[Ce]=0}g.r(ne),g.d(ne,{Deflate:()=>z,Inflate:()=>xe,constants:()=>zt,default:()=>Mn,deflate:()=>re,deflateRaw:()=>Q,gzip:()=>se,inflate:()=>ze,inflateRaw:()=>yt,ungzip:()=>Yt});const T=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]),U=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]),S=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),R=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),A=new Array(576);c(A);const F=new Array(60);c(F);const Y=new Array(512);c(Y);const ee=new Array(256);c(ee);const ie=new Array(29);c(ie);const $=new Array(30);function j(L,Ce,Z,Je,gt){this.static_tree=L,this.extra_bits=Ce,this.extra_base=Z,this.elems=Je,this.max_length=gt,this.has_stree=L&&L.length}let G,V,W;function K(L,Ce){this.dyn_tree=L,this.max_code=0,this.stat_desc=Ce}c($);const ce=L=>L<256?Y[L]:Y[256+(L>>>7)],ue=(L,Ce)=>{L.pending_buf[L.pending++]=255&Ce,L.pending_buf[L.pending++]=Ce>>>8&255},be=(L,Ce,Z)=>{L.bi_valid>16-Z?(L.bi_buf|=Ce<>16-L.bi_valid,L.bi_valid+=Z-16):(L.bi_buf|=Ce<{be(L,Z[2*Ce],Z[2*Ce+1])},pt=(L,Ce)=>{let Z=0;do{Z|=1&L,L>>>=1,Z<<=1}while(--Ce>0);return Z>>>1},Ne=(L,Ce,Z)=>{const Je=new Array(16);let ht,Kt,gt=0;for(ht=1;ht<=15;ht++)gt=gt+Z[ht-1]<<1,Je[ht]=gt;for(Kt=0;Kt<=Ce;Kt++){let Ut=L[2*Kt+1];0!==Ut&&(L[2*Kt]=pt(Je[Ut]++,Ut))}},fe=L=>{let Ce;for(Ce=0;Ce<286;Ce++)L.dyn_ltree[2*Ce]=0;for(Ce=0;Ce<30;Ce++)L.dyn_dtree[2*Ce]=0;for(Ce=0;Ce<19;Ce++)L.bl_tree[2*Ce]=0;L.dyn_ltree[512]=1,L.opt_len=L.static_len=0,L.sym_next=L.matches=0},We=L=>{L.bi_valid>8?ue(L,L.bi_buf):L.bi_valid>0&&(L.pending_buf[L.pending++]=L.bi_buf),L.bi_buf=0,L.bi_valid=0},Pe=(L,Ce,Z,Je)=>{const gt=2*Ce,ht=2*Z;return L[gt]{const Je=L.heap[Z];let gt=Z<<1;for(;gt<=L.heap_len&&(gt{let Je,gt,Kt,Ut,ht=0;if(0!==L.sym_next)do{Je=255&L.pending_buf[L.sym_buf+ht++],Je+=(255&L.pending_buf[L.sym_buf+ht++])<<8,gt=L.pending_buf[L.sym_buf+ht++],0===Je?Ze(L,gt,Ce):(Kt=ee[gt],Ze(L,Kt+256+1,Ce),Ut=T[Kt],0!==Ut&&(gt-=ie[Kt],be(L,gt,Ut)),Je--,Kt=ce(Je),Ze(L,Kt,Z),Ut=U[Kt],0!==Ut&&(Je-=$[Kt],be(L,Je,Ut)))}while(ht{const Z=Ce.dyn_tree,Je=Ce.stat_desc.static_tree,gt=Ce.stat_desc.has_stree,ht=Ce.stat_desc.elems;let Kt,Ut,Pt,Nn=-1;for(L.heap_len=0,L.heap_max=573,Kt=0;Kt>1;Kt>=1;Kt--)Me(L,Z,Kt);Pt=ht;do{Kt=L.heap[1],L.heap[1]=L.heap[L.heap_len--],Me(L,Z,1),Ut=L.heap[1],L.heap[--L.heap_max]=Kt,L.heap[--L.heap_max]=Ut,Z[2*Pt]=Z[2*Kt]+Z[2*Ut],L.depth[Pt]=(L.depth[Kt]>=L.depth[Ut]?L.depth[Kt]:L.depth[Ut])+1,Z[2*Kt+1]=Z[2*Ut+1]=Pt,L.heap[1]=Pt++,Me(L,Z,1)}while(L.heap_len>=2);L.heap[--L.heap_max]=L.heap[1],((L,Ce)=>{const Z=Ce.dyn_tree,Je=Ce.max_code,gt=Ce.stat_desc.static_tree,ht=Ce.stat_desc.has_stree,Kt=Ce.stat_desc.extra_bits,Ut=Ce.stat_desc.extra_base,Nn=Ce.stat_desc.max_length;let Pt,Zt,Pi,An,pn,zn,sr=0;for(An=0;An<=15;An++)L.bl_count[An]=0;for(Z[2*L.heap[L.heap_max]+1]=0,Pt=L.heap_max+1;Pt<573;Pt++)Zt=L.heap[Pt],An=Z[2*Z[2*Zt+1]+1]+1,An>Nn&&(An=Nn,sr++),Z[2*Zt+1]=An,!(Zt>Je)&&(L.bl_count[An]++,pn=0,Zt>=Ut&&(pn=Kt[Zt-Ut]),zn=Z[2*Zt],L.opt_len+=zn*(An+pn),ht&&(L.static_len+=zn*(gt[2*Zt+1]+pn)));if(0!==sr){do{for(An=Nn-1;0===L.bl_count[An];)An--;L.bl_count[An]--,L.bl_count[An+1]+=2,L.bl_count[Nn]--,sr-=2}while(sr>0);for(An=Nn;0!==An;An--)for(Zt=L.bl_count[An];0!==Zt;)Pi=L.heap[--Pt],!(Pi>Je)&&(Z[2*Pi+1]!==An&&(L.opt_len+=(An-Z[2*Pi+1])*Z[2*Pi],Z[2*Pi+1]=An),Zt--)}})(L,Ce),Ne(Z,Nn,L.bl_count)},_e=(L,Ce,Z)=>{let Je,ht,gt=-1,Kt=Ce[1],Ut=0,Nn=7,Pt=4;for(0===Kt&&(Nn=138,Pt=3),Ce[2*(Z+1)+1]=65535,Je=0;Je<=Z;Je++)ht=Kt,Kt=Ce[2*(Je+1)+1],!(++Ut{let Je,ht,gt=-1,Kt=Ce[1],Ut=0,Nn=7,Pt=4;for(0===Kt&&(Nn=138,Pt=3),Je=0;Je<=Z;Je++)if(ht=Kt,Kt=Ce[2*(Je+1)+1],!(++Ut{be(L,0+(Je?1:0),3),We(L),ue(L,Z),ue(L,~Z),Z&&L.pending_buf.set(L.window.subarray(Ce,Ce+Z),L.pending),L.pending+=Z};var Nt={_tr_init:L=>{Ge||((()=>{let L,Ce,Z,Je,gt;const ht=new Array(16);for(Z=0,Je=0;Je<28;Je++)for(ie[Je]=Z,L=0;L<1<>=7;Je<30;Je++)for($[Je]=gt<<7,L=0;L<1<{let gt,ht,Kt=0;L.level>0?(2===L.strm.data_type&&(L.strm.data_type=(L=>{let Z,Ce=4093624447;for(Z=0;Z<=31;Z++,Ce>>>=1)if(1&Ce&&0!==L.dyn_ltree[2*Z])return 0;if(0!==L.dyn_ltree[18]||0!==L.dyn_ltree[20]||0!==L.dyn_ltree[26])return 1;for(Z=32;Z<256;Z++)if(0!==L.dyn_ltree[2*Z])return 1;return 0})(L)),q(L,L.l_desc),q(L,L.d_desc),Kt=(L=>{let Ce;for(_e(L,L.dyn_ltree,L.l_desc.max_code),_e(L,L.dyn_dtree,L.d_desc.max_code),q(L,L.bl_desc),Ce=18;Ce>=3&&0===L.bl_tree[2*R[Ce]+1];Ce--);return L.opt_len+=3*(Ce+1)+5+5+4,Ce})(L),gt=L.opt_len+3+7>>>3,ht=L.static_len+3+7>>>3,ht<=gt&&(gt=ht)):gt=ht=Z+5,Z+4<=gt&&-1!==Ce?ot(L,Ce,Z,Je):4===L.strategy||ht===gt?(be(L,2+(Je?1:0),3),$e(L,A,F)):(be(L,4+(Je?1:0),3),((L,Ce,Z,Je)=>{let gt;for(be(L,Ce-257,5),be(L,Z-1,5),be(L,Je-4,4),gt=0;gt(L.pending_buf[L.sym_buf+L.sym_next++]=Ce,L.pending_buf[L.sym_buf+L.sym_next++]=Ce>>8,L.pending_buf[L.sym_buf+L.sym_next++]=Z,0===Ce?L.dyn_ltree[2*Z]++:(L.matches++,Ce--,L.dyn_ltree[2*(ee[Z]+256+1)]++,L.dyn_dtree[2*ce(Ce)]++),L.sym_next===L.sym_end),_tr_align:L=>{be(L,2,3),Ze(L,256,A),(L=>{16===L.bi_valid?(ue(L,L.bi_buf),L.bi_buf=0,L.bi_valid=0):L.bi_valid>=8&&(L.pending_buf[L.pending++]=255&L.bi_buf,L.bi_buf>>=8,L.bi_valid-=8)})(L)}},ve=(L,Ce,Z,Je)=>{let gt=65535&L,ht=L>>>16&65535,Kt=0;for(;0!==Z;){Kt=Z>2e3?2e3:Z,Z-=Kt;do{gt=gt+Ce[Je++]|0,ht=ht+gt|0}while(--Kt);gt%=65521,ht%=65521}return gt|ht<<16};const Xe=new Uint32Array((()=>{let L,Ce=[];for(var Z=0;Z<256;Z++){L=Z;for(var Je=0;Je<8;Je++)L=1&L?3988292384^L>>>1:L>>>1;Ce[Z]=L}return Ce})());var nt=(L,Ce,Z,Je)=>{const gt=Xe,ht=Je+Z;L^=-1;for(let Kt=Je;Kt>>8^gt[255&(L^Ce[Kt])];return~L},ft={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:Ke,_tr_flush_block:te,_tr_tally:de,_tr_align:Se}=Nt,{Z_NO_FLUSH:it,Z_PARTIAL_FLUSH:It,Z_FULL_FLUSH:Gt,Z_FINISH:an,Z_BLOCK:_t,Z_OK:Lt,Z_STREAM_END:qe,Z_STREAM_ERROR:Fe,Z_DATA_ERROR:tt,Z_BUF_ERROR:He,Z_DEFAULT_COMPRESSION:dt,Z_FILTERED:At,Z_HUFFMAN_ONLY:qt,Z_RLE:Cn,Z_FIXED:Ln,Z_DEFAULT_STRATEGY:Oi,Z_UNKNOWN:Ei,Z_DEFLATED:jn}=Re,Mt=262,hi=(L,Ce)=>(L.msg=ft[Ce],Ce),xi=L=>2*L-(L>4?9:0),Ri=L=>{let Ce=L.length;for(;--Ce>=0;)L[Ce]=0},On=L=>{let Ce,Z,Je,gt=L.w_size;Ce=L.hash_size,Je=Ce;do{Z=L.head[--Je],L.head[Je]=Z>=gt?Z-gt:0}while(--Ce);Ce=gt,Je=Ce;do{Z=L.prev[--Je],L.prev[Je]=Z>=gt?Z-gt:0}while(--Ce)};let $i=(L,Ce,Z)=>(Ce<{const Ce=L.state;let Z=Ce.pending;Z>L.avail_out&&(Z=L.avail_out),0!==Z&&(L.output.set(Ce.pending_buf.subarray(Ce.pending_out,Ce.pending_out+Z),L.next_out),L.next_out+=Z,Ce.pending_out+=Z,L.total_out+=Z,L.avail_out-=Z,Ce.pending-=Z,0===Ce.pending&&(Ce.pending_out=0))},Zn=(L,Ce)=>{te(L,L.block_start>=0?L.block_start:-1,L.strstart-L.block_start,Ce),L.block_start=L.strstart,qn(L.strm)},ii=(L,Ce)=>{L.pending_buf[L.pending++]=Ce},Wi=(L,Ce)=>{L.pending_buf[L.pending++]=Ce>>>8&255,L.pending_buf[L.pending++]=255&Ce},Ui=(L,Ce,Z,Je)=>{let gt=L.avail_in;return gt>Je&&(gt=Je),0===gt?0:(L.avail_in-=gt,Ce.set(L.input.subarray(L.next_in,L.next_in+gt),Z),1===L.state.wrap?L.adler=ve(L.adler,Ce,gt,Z):2===L.state.wrap&&(L.adler=nt(L.adler,Ce,gt,Z)),L.next_in+=gt,L.total_in+=gt,gt)},Un=(L,Ce)=>{let gt,ht,Z=L.max_chain_length,Je=L.strstart,Kt=L.prev_length,Ut=L.nice_match;const Nn=L.strstart>L.w_size-Mt?L.strstart-(L.w_size-Mt):0,Pt=L.window,Zt=L.w_mask,Pi=L.prev,An=L.strstart+258;let pn=Pt[Je+Kt-1],zn=Pt[Je+Kt];L.prev_length>=L.good_match&&(Z>>=2),Ut>L.lookahead&&(Ut=L.lookahead);do{if(gt=Ce,Pt[gt+Kt]===zn&&Pt[gt+Kt-1]===pn&&Pt[gt]===Pt[Je]&&Pt[++gt]===Pt[Je+1]){Je+=2,gt++;do{}while(Pt[++Je]===Pt[++gt]&&Pt[++Je]===Pt[++gt]&&Pt[++Je]===Pt[++gt]&&Pt[++Je]===Pt[++gt]&&Pt[++Je]===Pt[++gt]&&Pt[++Je]===Pt[++gt]&&Pt[++Je]===Pt[++gt]&&Pt[++Je]===Pt[++gt]&&JeKt){if(L.match_start=Ce,Kt=ht,ht>=Ut)break;pn=Pt[Je+Kt-1],zn=Pt[Je+Kt]}}}while((Ce=Pi[Ce&Zt])>Nn&&0!=--Z);return Kt<=L.lookahead?Kt:L.lookahead},vn=L=>{const Ce=L.w_size;let Z,Je,gt;do{if(Je=L.window_size-L.lookahead-L.strstart,L.strstart>=Ce+(Ce-Mt)&&(L.window.set(L.window.subarray(Ce,Ce+Ce-Je),0),L.match_start-=Ce,L.strstart-=Ce,L.block_start-=Ce,L.insert>L.strstart&&(L.insert=L.strstart),On(L),Je+=Ce),0===L.strm.avail_in)break;if(Z=Ui(L.strm,L.window,L.strstart+L.lookahead,Je),L.lookahead+=Z,L.lookahead+L.insert>=3)for(gt=L.strstart-L.insert,L.ins_h=L.window[gt],L.ins_h=$i(L,L.ins_h,L.window[gt+1]);L.insert&&(L.ins_h=$i(L,L.ins_h,L.window[gt+3-1]),L.prev[gt&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=gt,gt++,L.insert--,!(L.lookahead+L.insert<3)););}while(L.lookahead{let Je,gt,ht,Z=L.pending_buf_size-5>L.w_size?L.w_size:L.pending_buf_size-5,Kt=0,Ut=L.strm.avail_in;do{if(Je=65535,ht=L.bi_valid+42>>3,L.strm.avail_outgt+L.strm.avail_in&&(Je=gt+L.strm.avail_in),Je>ht&&(Je=ht),Je>8,L.pending_buf[L.pending-2]=~Je,L.pending_buf[L.pending-1]=~Je>>8,qn(L.strm),gt&&(gt>Je&&(gt=Je),L.strm.output.set(L.window.subarray(L.block_start,L.block_start+gt),L.strm.next_out),L.strm.next_out+=gt,L.strm.avail_out-=gt,L.strm.total_out+=gt,L.block_start+=gt,Je-=gt),Je&&(Ui(L.strm,L.strm.output,L.strm.next_out,Je),L.strm.next_out+=Je,L.strm.avail_out-=Je,L.strm.total_out+=Je)}while(0===Kt);return Ut-=L.strm.avail_in,Ut&&(Ut>=L.w_size?(L.matches=2,L.window.set(L.strm.input.subarray(L.strm.next_in-L.w_size,L.strm.next_in),0),L.strstart=L.w_size,L.insert=L.strstart):(L.window_size-L.strstart<=Ut&&(L.strstart-=L.w_size,L.window.set(L.window.subarray(L.w_size,L.w_size+L.strstart),0),L.matches<2&&L.matches++,L.insert>L.strstart&&(L.insert=L.strstart)),L.window.set(L.strm.input.subarray(L.strm.next_in-Ut,L.strm.next_in),L.strstart),L.strstart+=Ut,L.insert+=Ut>L.w_size-L.insert?L.w_size-L.insert:Ut),L.block_start=L.strstart),L.high_waterht&&L.block_start>=L.w_size&&(L.block_start-=L.w_size,L.strstart-=L.w_size,L.window.set(L.window.subarray(L.w_size,L.w_size+L.strstart),0),L.matches<2&&L.matches++,ht+=L.w_size,L.insert>L.strstart&&(L.insert=L.strstart)),ht>L.strm.avail_in&&(ht=L.strm.avail_in),ht&&(Ui(L.strm,L.window,L.strstart,ht),L.strstart+=ht,L.insert+=ht>L.w_size-L.insert?L.w_size-L.insert:ht),L.high_water>3,ht=L.pending_buf_size-ht>65535?65535:L.pending_buf_size-ht,Z=ht>L.w_size?L.w_size:ht,gt=L.strstart-L.block_start,(gt>=Z||(gt||Ce===an)&&Ce!==it&&0===L.strm.avail_in&><=ht)&&(Je=gt>ht?ht:gt,Kt=Ce===an&&0===L.strm.avail_in&&Je===gt?1:0,Ke(L,L.block_start,Je,Kt),L.block_start+=Je,qn(L.strm)),Kt?3:1)},Rn=(L,Ce)=>{let Z,Je;for(;;){if(L.lookahead=3&&(L.ins_h=$i(L,L.ins_h,L.window[L.strstart+3-1]),Z=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart),0!==Z&&L.strstart-Z<=L.w_size-Mt&&(L.match_length=Un(L,Z)),L.match_length>=3)if(Je=de(L,L.strstart-L.match_start,L.match_length-3),L.lookahead-=L.match_length,L.match_length<=L.max_lazy_match&&L.lookahead>=3){L.match_length--;do{L.strstart++,L.ins_h=$i(L,L.ins_h,L.window[L.strstart+3-1]),Z=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart}while(0!=--L.match_length);L.strstart++}else L.strstart+=L.match_length,L.match_length=0,L.ins_h=L.window[L.strstart],L.ins_h=$i(L,L.ins_h,L.window[L.strstart+1]);else Je=de(L,0,L.window[L.strstart]),L.lookahead--,L.strstart++;if(Je&&(Zn(L,!1),0===L.strm.avail_out))return 1}return L.insert=L.strstart<2?L.strstart:2,Ce===an?(Zn(L,!0),0===L.strm.avail_out?3:4):L.sym_next&&(Zn(L,!1),0===L.strm.avail_out)?1:2},Hn=(L,Ce)=>{let Z,Je,gt;for(;;){if(L.lookahead=3&&(L.ins_h=$i(L,L.ins_h,L.window[L.strstart+3-1]),Z=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart),L.prev_length=L.match_length,L.prev_match=L.match_start,L.match_length=2,0!==Z&&L.prev_length4096)&&(L.match_length=2)),L.prev_length>=3&&L.match_length<=L.prev_length){gt=L.strstart+L.lookahead-3,Je=de(L,L.strstart-1-L.prev_match,L.prev_length-3),L.lookahead-=L.prev_length-1,L.prev_length-=2;do{++L.strstart<=gt&&(L.ins_h=$i(L,L.ins_h,L.window[L.strstart+3-1]),Z=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart)}while(0!=--L.prev_length);if(L.match_available=0,L.match_length=2,L.strstart++,Je&&(Zn(L,!1),0===L.strm.avail_out))return 1}else if(L.match_available){if(Je=de(L,0,L.window[L.strstart-1]),Je&&Zn(L,!1),L.strstart++,L.lookahead--,0===L.strm.avail_out)return 1}else L.match_available=1,L.strstart++,L.lookahead--}return L.match_available&&(Je=de(L,0,L.window[L.strstart-1]),L.match_available=0),L.insert=L.strstart<2?L.strstart:2,Ce===an?(Zn(L,!0),0===L.strm.avail_out?3:4):L.sym_next&&(Zn(L,!1),0===L.strm.avail_out)?1:2};function Gi(L,Ce,Z,Je,gt){this.good_length=L,this.max_lazy=Ce,this.nice_length=Z,this.max_chain=Je,this.func=gt}const lr=[new Gi(0,0,0,0,Dn),new Gi(4,4,8,4,Rn),new Gi(4,5,16,8,Rn),new Gi(4,6,32,32,Rn),new Gi(4,4,16,16,Hn),new Gi(8,16,32,32,Hn),new Gi(8,16,128,128,Hn),new Gi(8,32,128,256,Hn),new Gi(32,128,258,1024,Hn),new Gi(32,258,258,4096,Hn)];function Tr(){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=jn,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),Ri(this.dyn_ltree),Ri(this.dyn_dtree),Ri(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),Ri(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Ri(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const wr=L=>{if(!L)return 1;const Ce=L.state;return!Ce||Ce.strm!==L||42!==Ce.status&&57!==Ce.status&&69!==Ce.status&&73!==Ce.status&&91!==Ce.status&&103!==Ce.status&&113!==Ce.status&&666!==Ce.status?1:0},_s=L=>{if(wr(L))return hi(L,Fe);L.total_in=L.total_out=0,L.data_type=Ei;const Ce=L.state;return Ce.pending=0,Ce.pending_out=0,Ce.wrap<0&&(Ce.wrap=-Ce.wrap),Ce.status=2===Ce.wrap?57:Ce.wrap?42:113,L.adler=2===Ce.wrap?0:1,Ce.last_flush=-2,me(Ce),Lt},Sr=L=>{const Ce=_s(L);return Ce===Lt&&(L=>{L.window_size=2*L.w_size,Ri(L.head),L.max_lazy_match=lr[L.level].max_lazy,L.good_match=lr[L.level].good_length,L.nice_match=lr[L.level].nice_length,L.max_chain_length=lr[L.level].max_chain,L.strstart=0,L.block_start=0,L.lookahead=0,L.insert=0,L.match_length=L.prev_length=2,L.match_available=0,L.ins_h=0})(L.state),Ce},Ur=(L,Ce,Z,Je,gt,ht)=>{if(!L)return Fe;let Kt=1;if(Ce===dt&&(Ce=6),Je<0?(Kt=0,Je=-Je):Je>15&&(Kt=2,Je-=16),gt<1||gt>9||Z!==jn||Je<8||Je>15||Ce<0||Ce>9||ht<0||ht>Ln||8===Je&&1!==Kt)return hi(L,Fe);8===Je&&(Je=9);const Ut=new Tr;return L.state=Ut,Ut.strm=L,Ut.status=42,Ut.wrap=Kt,Ut.gzhead=null,Ut.w_bits=Je,Ut.w_size=1<Ur(L,Ce,jn,15,8,Oi),deflateInit2:Ur,deflateReset:Sr,deflateResetKeep:_s,deflateSetHeader:(L,Ce)=>wr(L)||2!==L.state.wrap?Fe:(L.state.gzhead=Ce,Lt),deflate:(L,Ce)=>{if(wr(L)||Ce>_t||Ce<0)return L?hi(L,Fe):Fe;const Z=L.state;if(!L.output||0!==L.avail_in&&!L.input||666===Z.status&&Ce!==an)return hi(L,0===L.avail_out?He:Fe);const Je=Z.last_flush;if(Z.last_flush=Ce,0!==Z.pending){if(qn(L),0===L.avail_out)return Z.last_flush=-1,Lt}else if(0===L.avail_in&&xi(Ce)<=xi(Je)&&Ce!==an)return hi(L,He);if(666===Z.status&&0!==L.avail_in)return hi(L,He);if(42===Z.status&&0===Z.wrap&&(Z.status=113),42===Z.status){let gt=jn+(Z.w_bits-8<<4)<<8,ht=-1;if(ht=Z.strategy>=qt||Z.level<2?0:Z.level<6?1:6===Z.level?2:3,gt|=ht<<6,0!==Z.strstart&&(gt|=32),gt+=31-gt%31,Wi(Z,gt),0!==Z.strstart&&(Wi(Z,L.adler>>>16),Wi(Z,65535&L.adler)),L.adler=1,Z.status=113,qn(L),0!==Z.pending)return Z.last_flush=-1,Lt}if(57===Z.status)if(L.adler=0,ii(Z,31),ii(Z,139),ii(Z,8),Z.gzhead)ii(Z,(Z.gzhead.text?1:0)+(Z.gzhead.hcrc?2:0)+(Z.gzhead.extra?4:0)+(Z.gzhead.name?8:0)+(Z.gzhead.comment?16:0)),ii(Z,255&Z.gzhead.time),ii(Z,Z.gzhead.time>>8&255),ii(Z,Z.gzhead.time>>16&255),ii(Z,Z.gzhead.time>>24&255),ii(Z,9===Z.level?2:Z.strategy>=qt||Z.level<2?4:0),ii(Z,255&Z.gzhead.os),Z.gzhead.extra&&Z.gzhead.extra.length&&(ii(Z,255&Z.gzhead.extra.length),ii(Z,Z.gzhead.extra.length>>8&255)),Z.gzhead.hcrc&&(L.adler=nt(L.adler,Z.pending_buf,Z.pending,0)),Z.gzindex=0,Z.status=69;else if(ii(Z,0),ii(Z,0),ii(Z,0),ii(Z,0),ii(Z,0),ii(Z,9===Z.level?2:Z.strategy>=qt||Z.level<2?4:0),ii(Z,3),Z.status=113,qn(L),0!==Z.pending)return Z.last_flush=-1,Lt;if(69===Z.status){if(Z.gzhead.extra){let gt=Z.pending,ht=(65535&Z.gzhead.extra.length)-Z.gzindex;for(;Z.pending+ht>Z.pending_buf_size;){let Ut=Z.pending_buf_size-Z.pending;if(Z.pending_buf.set(Z.gzhead.extra.subarray(Z.gzindex,Z.gzindex+Ut),Z.pending),Z.pending=Z.pending_buf_size,Z.gzhead.hcrc&&Z.pending>gt&&(L.adler=nt(L.adler,Z.pending_buf,Z.pending-gt,gt)),Z.gzindex+=Ut,qn(L),0!==Z.pending)return Z.last_flush=-1,Lt;gt=0,ht-=Ut}let Kt=new Uint8Array(Z.gzhead.extra);Z.pending_buf.set(Kt.subarray(Z.gzindex,Z.gzindex+ht),Z.pending),Z.pending+=ht,Z.gzhead.hcrc&&Z.pending>gt&&(L.adler=nt(L.adler,Z.pending_buf,Z.pending-gt,gt)),Z.gzindex=0}Z.status=73}if(73===Z.status){if(Z.gzhead.name){let ht,gt=Z.pending;do{if(Z.pending===Z.pending_buf_size){if(Z.gzhead.hcrc&&Z.pending>gt&&(L.adler=nt(L.adler,Z.pending_buf,Z.pending-gt,gt)),qn(L),0!==Z.pending)return Z.last_flush=-1,Lt;gt=0}ht=Z.gzindexgt&&(L.adler=nt(L.adler,Z.pending_buf,Z.pending-gt,gt)),Z.gzindex=0}Z.status=91}if(91===Z.status){if(Z.gzhead.comment){let ht,gt=Z.pending;do{if(Z.pending===Z.pending_buf_size){if(Z.gzhead.hcrc&&Z.pending>gt&&(L.adler=nt(L.adler,Z.pending_buf,Z.pending-gt,gt)),qn(L),0!==Z.pending)return Z.last_flush=-1,Lt;gt=0}ht=Z.gzindexgt&&(L.adler=nt(L.adler,Z.pending_buf,Z.pending-gt,gt))}Z.status=103}if(103===Z.status){if(Z.gzhead.hcrc){if(Z.pending+2>Z.pending_buf_size&&(qn(L),0!==Z.pending))return Z.last_flush=-1,Lt;ii(Z,255&L.adler),ii(Z,L.adler>>8&255),L.adler=0}if(Z.status=113,qn(L),0!==Z.pending)return Z.last_flush=-1,Lt}if(0!==L.avail_in||0!==Z.lookahead||Ce!==it&&666!==Z.status){let gt=0===Z.level?Dn(Z,Ce):Z.strategy===qt?((L,Ce)=>{let Z;for(;;){if(0===L.lookahead&&(vn(L),0===L.lookahead)){if(Ce===it)return 1;break}if(L.match_length=0,Z=de(L,0,L.window[L.strstart]),L.lookahead--,L.strstart++,Z&&(Zn(L,!1),0===L.strm.avail_out))return 1}return L.insert=0,Ce===an?(Zn(L,!0),0===L.strm.avail_out?3:4):L.sym_next&&(Zn(L,!1),0===L.strm.avail_out)?1:2})(Z,Ce):Z.strategy===Cn?((L,Ce)=>{let Z,Je,gt,ht;const Kt=L.window;for(;;){if(L.lookahead<=258){if(vn(L),L.lookahead<=258&&Ce===it)return 1;if(0===L.lookahead)break}if(L.match_length=0,L.lookahead>=3&&L.strstart>0&&(gt=L.strstart-1,Je=Kt[gt],Je===Kt[++gt]&&Je===Kt[++gt]&&Je===Kt[++gt])){ht=L.strstart+258;do{}while(Je===Kt[++gt]&&Je===Kt[++gt]&&Je===Kt[++gt]&&Je===Kt[++gt]&&Je===Kt[++gt]&&Je===Kt[++gt]&&Je===Kt[++gt]&&Je===Kt[++gt]&>L.lookahead&&(L.match_length=L.lookahead)}if(L.match_length>=3?(Z=de(L,1,L.match_length-3),L.lookahead-=L.match_length,L.strstart+=L.match_length,L.match_length=0):(Z=de(L,0,L.window[L.strstart]),L.lookahead--,L.strstart++),Z&&(Zn(L,!1),0===L.strm.avail_out))return 1}return L.insert=0,Ce===an?(Zn(L,!0),0===L.strm.avail_out?3:4):L.sym_next&&(Zn(L,!1),0===L.strm.avail_out)?1:2})(Z,Ce):lr[Z.level].func(Z,Ce);if((3===gt||4===gt)&&(Z.status=666),1===gt||3===gt)return 0===L.avail_out&&(Z.last_flush=-1),Lt;if(2===gt&&(Ce===It?Se(Z):Ce!==_t&&(Ke(Z,0,0,!1),Ce===Gt&&(Ri(Z.head),0===Z.lookahead&&(Z.strstart=0,Z.block_start=0,Z.insert=0))),qn(L),0===L.avail_out))return Z.last_flush=-1,Lt}return Ce!==an?Lt:Z.wrap<=0?qe:(2===Z.wrap?(ii(Z,255&L.adler),ii(Z,L.adler>>8&255),ii(Z,L.adler>>16&255),ii(Z,L.adler>>24&255),ii(Z,255&L.total_in),ii(Z,L.total_in>>8&255),ii(Z,L.total_in>>16&255),ii(Z,L.total_in>>24&255)):(Wi(Z,L.adler>>>16),Wi(Z,65535&L.adler)),qn(L),Z.wrap>0&&(Z.wrap=-Z.wrap),0!==Z.pending?Lt:qe)},deflateEnd:L=>{if(wr(L))return Fe;const Ce=L.state.status;return L.state=null,113===Ce?hi(L,tt):Lt},deflateSetDictionary:(L,Ce)=>{let Z=Ce.length;if(wr(L))return Fe;const Je=L.state,gt=Je.wrap;if(2===gt||1===gt&&42!==Je.status||Je.lookahead)return Fe;if(1===gt&&(L.adler=ve(L.adler,Ce,Z,0)),Je.wrap=0,Z>=Je.w_size){0===gt&&(Ri(Je.head),Je.strstart=0,Je.block_start=0,Je.insert=0);let Nn=new Uint8Array(Je.w_size);Nn.set(Ce.subarray(Z-Je.w_size,Z),0),Ce=Nn,Z=Je.w_size}const ht=L.avail_in,Kt=L.next_in,Ut=L.input;for(L.avail_in=Z,L.next_in=0,L.input=Ce,vn(Je);Je.lookahead>=3;){let Nn=Je.strstart,Pt=Je.lookahead-2;do{Je.ins_h=$i(Je,Je.ins_h,Je.window[Nn+3-1]),Je.prev[Nn&Je.w_mask]=Je.head[Je.ins_h],Je.head[Je.ins_h]=Nn,Nn++}while(--Pt);Je.strstart=Nn,Je.lookahead=2,vn(Je)}return Je.strstart+=Je.lookahead,Je.block_start=Je.strstart,Je.insert=Je.lookahead,Je.lookahead=0,Je.match_length=Je.prev_length=2,Je.match_available=0,L.next_in=Kt,L.input=Ut,L.avail_in=ht,Je.wrap=gt,Lt},deflateInfo:"pako deflate (from Nodeca project)"};const Wt=(L,Ce)=>Object.prototype.hasOwnProperty.call(L,Ce);var bn={assign:function(L){const Ce=Array.prototype.slice.call(arguments,1);for(;Ce.length;){const Z=Ce.shift();if(Z){if("object"!=typeof Z)throw new TypeError(Z+"must be non-object");for(const Je in Z)Wt(Z,Je)&&(L[Je]=Z[Je])}}return L},flattenChunks:L=>{let Ce=0;for(let Je=0,gt=L.length;Je=252?6:L>=248?5:L>=240?4:L>=224?3:L>=192?2:1;$n[254]=$n[254]=1;var ri={string2buf:L=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(L);let Ce,Z,Je,gt,ht,Kt=L.length,Ut=0;for(gt=0;gt>>6,Ce[ht++]=128|63&Z):Z<65536?(Ce[ht++]=224|Z>>>12,Ce[ht++]=128|Z>>>6&63,Ce[ht++]=128|63&Z):(Ce[ht++]=240|Z>>>18,Ce[ht++]=128|Z>>>12&63,Ce[ht++]=128|Z>>>6&63,Ce[ht++]=128|63&Z);return Ce},buf2string:(L,Ce)=>{const Z=Ce||L.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(L.subarray(0,Ce));let Je,gt;const ht=new Array(2*Z);for(gt=0,Je=0;Je4)ht[gt++]=65533,Je+=Ut-1;else{for(Kt&=2===Ut?31:3===Ut?15:7;Ut>1&&Je1?ht[gt++]=65533:Kt<65536?ht[gt++]=Kt:(Kt-=65536,ht[gt++]=55296|Kt>>10&1023,ht[gt++]=56320|1023&Kt)}}return((L,Ce)=>{if(Ce<65534&&L.subarray&&Tn)return String.fromCharCode.apply(null,L.length===Ce?L:L.subarray(0,Ce));let Z="";for(let Je=0;Je{(Ce=Ce||L.length)>L.length&&(Ce=L.length);let Z=Ce-1;for(;Z>=0&&128==(192&L[Z]);)Z--;return Z<0||0===Z?Ce:Z+$n[L[Z]]>Ce?Z:Ce}},ur=function li(){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 Bi=Object.prototype.toString,{Z_NO_FLUSH:Ar,Z_SYNC_FLUSH:Wr,Z_FULL_FLUSH:to,Z_FINISH:Br,Z_OK:qi,Z_STREAM_END:di,Z_DEFAULT_COMPRESSION:ns,Z_DEFAULT_STRATEGY:Gr,Z_DEFLATED:$r}=Re;function Kr(L){this.options=bn.assign({level:ns,method:$r,chunkSize:16384,windowBits:15,memLevel:8,strategy:Gr},L||{});let Ce=this.options;Ce.raw&&Ce.windowBits>0?Ce.windowBits=-Ce.windowBits:Ce.gzip&&Ce.windowBits>0&&Ce.windowBits<16&&(Ce.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ur,this.strm.avail_out=0;let Z=$t.deflateInit2(this.strm,Ce.level,Ce.method,Ce.windowBits,Ce.memLevel,Ce.strategy);if(Z!==qi)throw new Error(ft[Z]);if(Ce.header&&$t.deflateSetHeader(this.strm,Ce.header),Ce.dictionary){let Je;if(Je="string"==typeof Ce.dictionary?ri.string2buf(Ce.dictionary):"[object ArrayBuffer]"===Bi.call(Ce.dictionary)?new Uint8Array(Ce.dictionary):Ce.dictionary,Z=$t.deflateSetDictionary(this.strm,Je),Z!==qi)throw new Error(ft[Z]);this._dict_set=!0}}function Yr(L,Ce){const Z=new Kr(Ce);if(Z.push(L,!0),Z.err)throw Z.msg||ft[Z.err];return Z.result}Kr.prototype.push=function(L,Ce){const Z=this.strm,Je=this.options.chunkSize;let gt,ht;if(this.ended)return!1;for(ht=Ce===~~Ce?Ce:!0===Ce?Br:Ar,Z.input="string"==typeof L?ri.string2buf(L):"[object ArrayBuffer]"===Bi.call(L)?new Uint8Array(L):L,Z.next_in=0,Z.avail_in=Z.input.length;;)if(0===Z.avail_out&&(Z.output=new Uint8Array(Je),Z.next_out=0,Z.avail_out=Je),(ht===Wr||ht===to)&&Z.avail_out<=6)this.onData(Z.output.subarray(0,Z.next_out)),Z.avail_out=0;else{if(gt=$t.deflate(Z,ht),gt===di)return Z.next_out>0&&this.onData(Z.output.subarray(0,Z.next_out)),gt=$t.deflateEnd(this.strm),this.onEnd(gt),this.ended=!0,gt===qi;if(0!==Z.avail_out){if(ht>0&&Z.next_out>0)this.onData(Z.output.subarray(0,Z.next_out)),Z.avail_out=0;else if(0===Z.avail_in)break}else this.onData(Z.output)}return!0},Kr.prototype.onData=function(L){this.chunks.push(L)},Kr.prototype.onEnd=function(L){L===qi&&(this.result=bn.flattenChunks(this.chunks)),this.chunks=[],this.err=L,this.msg=this.strm.msg};var St={Deflate:Kr,deflate:Yr,deflateRaw:function Zr(L,Ce){return(Ce=Ce||{}).raw=!0,Yr(L,Ce)},gzip:function Qr(L,Ce){return(Ce=Ce||{}).gzip=!0,Yr(L,Ce)},constants:Re};const xn=16209;var Er=function(Ce,Z){let Je,gt,ht,Kt,Ut,Nn,Pt,Zt,Pi,An,pn,zn,sr,wi,ui,Fi,mi,Sn,Ii,Cr,Pn,zi,vi,si;const gi=Ce.state;Je=Ce.next_in,vi=Ce.input,gt=Je+(Ce.avail_in-5),ht=Ce.next_out,si=Ce.output,Kt=ht-(Z-Ce.avail_out),Ut=ht+(Ce.avail_out-257),Nn=gi.dmax,Pt=gi.wsize,Zt=gi.whave,Pi=gi.wnext,An=gi.window,pn=gi.hold,zn=gi.bits,sr=gi.lencode,wi=gi.distcode,ui=(1<>>24,pn>>>=Sn,zn-=Sn,Sn=mi>>>16&255,0===Sn)si[ht++]=65535&mi;else{if(!(16&Sn)){if(64&Sn){if(32&Sn){gi.mode=16191;break e}Ce.msg="invalid literal/length code",gi.mode=xn;break e}mi=sr[(65535&mi)+(pn&(1<>>=Sn,zn-=Sn),zn<15&&(pn+=vi[Je++]<>>24,pn>>>=Sn,zn-=Sn,Sn=mi>>>16&255,16&Sn){if(Cr=65535&mi,Sn&=15,znNn){Ce.msg="invalid distance too far back",gi.mode=xn;break e}if(pn>>>=Sn,zn-=Sn,Sn=ht-Kt,Cr>Sn){if(Sn=Cr-Sn,Sn>Zt&&gi.sane){Ce.msg="invalid distance too far back",gi.mode=xn;break e}if(Pn=0,zi=An,0===Pi){if(Pn+=Pt-Sn,Sn2;)si[ht++]=zi[Pn++],si[ht++]=zi[Pn++],si[ht++]=zi[Pn++],Ii-=3;Ii&&(si[ht++]=zi[Pn++],Ii>1&&(si[ht++]=zi[Pn++]))}else{Pn=ht-Cr;do{si[ht++]=si[Pn++],si[ht++]=si[Pn++],si[ht++]=si[Pn++],Ii-=3}while(Ii>2);Ii&&(si[ht++]=si[Pn++],Ii>1&&(si[ht++]=si[Pn++]))}break}if(64&Sn){Ce.msg="invalid distance code",gi.mode=xn;break e}mi=wi[(65535&mi)+(pn&(1<>3,Je-=Ii,zn-=Ii<<3,pn&=(1<{const Nn=Ut.bits;let mi,Sn,Ii,Cr,Pn,vi,Pt=0,Zt=0,Pi=0,An=0,pn=0,zn=0,sr=0,wi=0,ui=0,Fi=0,zi=null;const si=new Uint16Array(16),gi=new Uint16Array(16);let Vi,Jo,_o,ko=null;for(Pt=0;Pt<=15;Pt++)si[Pt]=0;for(Zt=0;Zt=1&&0===si[An];An--);if(pn>An&&(pn=An),0===An)return gt[ht++]=20971520,gt[ht++]=20971520,Ut.bits=1,0;for(Pi=1;Pi0&&(0===L||1!==An))return-1;for(gi[1]=0,Pt=1;Pt<15;Pt++)gi[Pt+1]=gi[Pt]+si[Pt];for(Zt=0;Zt852||2===L&&ui>592)return 1;for(;;){Vi=Pt-sr,Kt[Zt]+1=vi?(Jo=ko[Kt[Zt]-vi],_o=zi[Kt[Zt]-vi]):(Jo=96,_o=0),mi=1<>sr)+Sn]=Vi<<24|Jo<<16|_o}while(0!==Sn);for(mi=1<>=1;if(0!==mi?(Fi&=mi-1,Fi+=mi):Fi=0,Zt++,0==--si[Pt]){if(Pt===An)break;Pt=Ce[Z+Kt[Zt]]}if(Pt>pn&&(Fi&Cr)!==Ii){for(0===sr&&(sr=pn),Pn+=Pi,zn=Pt-sr,wi=1<852||2===L&&ui>592)return 1;Ii=Fi&Cr,gt[Ii]=pn<<24|zn<<16|Pn-ht}}return 0!==Fi&&(gt[Pn+Fi]=Pt-sr<<24|64<<16),Ut.bits=pn,0};const{Z_FINISH:aa,Z_BLOCK:Us,Z_TREES:Bs,Z_OK:Xr,Z_STREAM_END:To,Z_NEED_DICT:oi,Z_STREAM_ERROR:pi,Z_DATA_ERROR:er,Z_MEM_ERROR:Or,Z_BUF_ERROR:dr,Z_DEFLATED:io}=Re,Ts=16180,Hs=16190,ds=16191,is=16199,Rr=16200,Ki=16209,Le=L=>(L>>>24&255)+(L>>>8&65280)+((65280&L)<<8)+((255&L)<<24);function oe(){this.strm=null,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 ge=L=>{if(!L)return 1;const Ce=L.state;return!Ce||Ce.strm!==L||Ce.mode16211?1:0},st=L=>{if(ge(L))return pi;const Ce=L.state;return L.total_in=L.total_out=Ce.total=0,L.msg="",Ce.wrap&&(L.adler=1&Ce.wrap),Ce.mode=Ts,Ce.last=0,Ce.havedict=0,Ce.flags=-1,Ce.dmax=32768,Ce.head=null,Ce.hold=0,Ce.bits=0,Ce.lencode=Ce.lendyn=new Int32Array(852),Ce.distcode=Ce.distdyn=new Int32Array(592),Ce.sane=1,Ce.back=-1,Xr},Ht=L=>{if(ge(L))return pi;const Ce=L.state;return Ce.wsize=0,Ce.whave=0,Ce.wnext=0,st(L)},Qt=(L,Ce)=>{let Z;if(ge(L))return pi;const Je=L.state;return Ce<0?(Z=0,Ce=-Ce):(Z=5+(Ce>>4),Ce<48&&(Ce&=15)),Ce&&(Ce<8||Ce>15)?pi:(null!==Je.window&&Je.wbits!==Ce&&(Je.window=null),Je.wrap=Z,Je.wbits=Ce,Ht(L))},wn=(L,Ce)=>{if(!L)return pi;const Z=new oe;L.state=Z,Z.strm=L,Z.window=null,Z.mode=Ts;const Je=Qt(L,Ce);return Je!==Xr&&(L.state=null),Je};let Di,Qn,Si=!0;const Yi=L=>{if(Si){Di=new Int32Array(512),Qn=new Int32Array(32);let Ce=0;for(;Ce<144;)L.lens[Ce++]=8;for(;Ce<256;)L.lens[Ce++]=9;for(;Ce<280;)L.lens[Ce++]=7;for(;Ce<288;)L.lens[Ce++]=8;for(Ps(1,L.lens,0,288,Di,0,L.work,{bits:9}),Ce=0;Ce<32;)L.lens[Ce++]=5;Ps(2,L.lens,0,32,Qn,0,L.work,{bits:5}),Si=!1}L.lencode=Di,L.lenbits=9,L.distcode=Qn,L.distbits=5},Ci=(L,Ce,Z,Je)=>{let gt;const ht=L.state;return null===ht.window&&(ht.wsize=1<=ht.wsize?(ht.window.set(Ce.subarray(Z-ht.wsize,Z),0),ht.wnext=0,ht.whave=ht.wsize):(gt=ht.wsize-ht.wnext,gt>Je&&(gt=Je),ht.window.set(Ce.subarray(Z-Je,Z-Je+gt),ht.wnext),(Je-=gt)?(ht.window.set(Ce.subarray(Z-Je,Z),0),ht.wnext=Je,ht.whave=ht.wsize):(ht.wnext+=gt,ht.wnext===ht.wsize&&(ht.wnext=0),ht.whavewn(L,15),inflateInit2:wn,inflate:(L,Ce)=>{let Z,Je,gt,ht,Kt,Ut,Nn,Pt,Zt,Pi,An,pn,zn,sr,ui,Fi,mi,Sn,Ii,Cr,Pn,zi,wi=0;const vi=new Uint8Array(4);let si,gi;const ko=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ge(L)||!L.output||!L.input&&0!==L.avail_in)return pi;Z=L.state,Z.mode===ds&&(Z.mode=16192),Kt=L.next_out,gt=L.output,Nn=L.avail_out,ht=L.next_in,Je=L.input,Ut=L.avail_in,Pt=Z.hold,Zt=Z.bits,Pi=Ut,An=Nn,zi=Xr;e:for(;;)switch(Z.mode){case Ts:if(0===Z.wrap){Z.mode=16192;break}for(;Zt<16;){if(0===Ut)break e;Ut--,Pt+=Je[ht++]<>>8&255,Z.check=nt(Z.check,vi,2,0),Pt=0,Zt=0,Z.mode=16181;break}if(Z.head&&(Z.head.done=!1),!(1&Z.wrap)||(((255&Pt)<<8)+(Pt>>8))%31){L.msg="incorrect header check",Z.mode=Ki;break}if((15&Pt)!==io){L.msg="unknown compression method",Z.mode=Ki;break}if(Pt>>>=4,Zt-=4,Pn=8+(15&Pt),0===Z.wbits&&(Z.wbits=Pn),Pn>15||Pn>Z.wbits){L.msg="invalid window size",Z.mode=Ki;break}Z.dmax=1<>8&1),512&Z.flags&&4&Z.wrap&&(vi[0]=255&Pt,vi[1]=Pt>>>8&255,Z.check=nt(Z.check,vi,2,0)),Pt=0,Zt=0,Z.mode=16182;case 16182:for(;Zt<32;){if(0===Ut)break e;Ut--,Pt+=Je[ht++]<>>8&255,vi[2]=Pt>>>16&255,vi[3]=Pt>>>24&255,Z.check=nt(Z.check,vi,4,0)),Pt=0,Zt=0,Z.mode=16183;case 16183:for(;Zt<16;){if(0===Ut)break e;Ut--,Pt+=Je[ht++]<>8),512&Z.flags&&4&Z.wrap&&(vi[0]=255&Pt,vi[1]=Pt>>>8&255,Z.check=nt(Z.check,vi,2,0)),Pt=0,Zt=0,Z.mode=16184;case 16184:if(1024&Z.flags){for(;Zt<16;){if(0===Ut)break e;Ut--,Pt+=Je[ht++]<>>8&255,Z.check=nt(Z.check,vi,2,0)),Pt=0,Zt=0}else Z.head&&(Z.head.extra=null);Z.mode=16185;case 16185:if(1024&Z.flags&&(pn=Z.length,pn>Ut&&(pn=Ut),pn&&(Z.head&&(Pn=Z.head.extra_len-Z.length,Z.head.extra||(Z.head.extra=new Uint8Array(Z.head.extra_len)),Z.head.extra.set(Je.subarray(ht,ht+pn),Pn)),512&Z.flags&&4&Z.wrap&&(Z.check=nt(Z.check,Je,pn,ht)),Ut-=pn,ht+=pn,Z.length-=pn),Z.length))break e;Z.length=0,Z.mode=16186;case 16186:if(2048&Z.flags){if(0===Ut)break e;pn=0;do{Pn=Je[ht+pn++],Z.head&&Pn&&Z.length<65536&&(Z.head.name+=String.fromCharCode(Pn))}while(Pn&&pn>9&1,Z.head.done=!0),L.adler=Z.check=0,Z.mode=ds;break;case 16189:for(;Zt<32;){if(0===Ut)break e;Ut--,Pt+=Je[ht++]<>>=7&Zt,Zt-=7&Zt,Z.mode=16206;break}for(;Zt<3;){if(0===Ut)break e;Ut--,Pt+=Je[ht++]<>>=1,Zt-=1,3&Pt){case 0:Z.mode=16193;break;case 1:if(Yi(Z),Z.mode=is,Ce===Bs){Pt>>>=2,Zt-=2;break e}break;case 2:Z.mode=16196;break;case 3:L.msg="invalid block type",Z.mode=Ki}Pt>>>=2,Zt-=2;break;case 16193:for(Pt>>>=7&Zt,Zt-=7&Zt;Zt<32;){if(0===Ut)break e;Ut--,Pt+=Je[ht++]<>>16^65535)){L.msg="invalid stored block lengths",Z.mode=Ki;break}if(Z.length=65535&Pt,Pt=0,Zt=0,Z.mode=16194,Ce===Bs)break e;case 16194:Z.mode=16195;case 16195:if(pn=Z.length,pn){if(pn>Ut&&(pn=Ut),pn>Nn&&(pn=Nn),0===pn)break e;gt.set(Je.subarray(ht,ht+pn),Kt),Ut-=pn,ht+=pn,Nn-=pn,Kt+=pn,Z.length-=pn;break}Z.mode=ds;break;case 16196:for(;Zt<14;){if(0===Ut)break e;Ut--,Pt+=Je[ht++]<>>=5,Zt-=5,Z.ndist=1+(31&Pt),Pt>>>=5,Zt-=5,Z.ncode=4+(15&Pt),Pt>>>=4,Zt-=4,Z.nlen>286||Z.ndist>30){L.msg="too many length or distance symbols",Z.mode=Ki;break}Z.have=0,Z.mode=16197;case 16197:for(;Z.have>>=3,Zt-=3}for(;Z.have<19;)Z.lens[ko[Z.have++]]=0;if(Z.lencode=Z.lendyn,Z.lenbits=7,si={bits:Z.lenbits},zi=Ps(0,Z.lens,0,19,Z.lencode,0,Z.work,si),Z.lenbits=si.bits,zi){L.msg="invalid code lengths set",Z.mode=Ki;break}Z.have=0,Z.mode=16198;case 16198:for(;Z.have>>24,Fi=wi>>>16&255,mi=65535&wi,!(ui<=Zt);){if(0===Ut)break e;Ut--,Pt+=Je[ht++]<>>=ui,Zt-=ui,Z.lens[Z.have++]=mi;else{if(16===mi){for(gi=ui+2;Zt>>=ui,Zt-=ui,0===Z.have){L.msg="invalid bit length repeat",Z.mode=Ki;break}Pn=Z.lens[Z.have-1],pn=3+(3&Pt),Pt>>>=2,Zt-=2}else if(17===mi){for(gi=ui+3;Zt>>=ui,Zt-=ui,Pn=0,pn=3+(7&Pt),Pt>>>=3,Zt-=3}else{for(gi=ui+7;Zt>>=ui,Zt-=ui,Pn=0,pn=11+(127&Pt),Pt>>>=7,Zt-=7}if(Z.have+pn>Z.nlen+Z.ndist){L.msg="invalid bit length repeat",Z.mode=Ki;break}for(;pn--;)Z.lens[Z.have++]=Pn}}if(Z.mode===Ki)break;if(0===Z.lens[256]){L.msg="invalid code -- missing end-of-block",Z.mode=Ki;break}if(Z.lenbits=9,si={bits:Z.lenbits},zi=Ps(1,Z.lens,0,Z.nlen,Z.lencode,0,Z.work,si),Z.lenbits=si.bits,zi){L.msg="invalid literal/lengths set",Z.mode=Ki;break}if(Z.distbits=6,Z.distcode=Z.distdyn,si={bits:Z.distbits},zi=Ps(2,Z.lens,Z.nlen,Z.ndist,Z.distcode,0,Z.work,si),Z.distbits=si.bits,zi){L.msg="invalid distances set",Z.mode=Ki;break}if(Z.mode=is,Ce===Bs)break e;case is:Z.mode=Rr;case Rr:if(Ut>=6&&Nn>=258){L.next_out=Kt,L.avail_out=Nn,L.next_in=ht,L.avail_in=Ut,Z.hold=Pt,Z.bits=Zt,Er(L,An),Kt=L.next_out,gt=L.output,Nn=L.avail_out,ht=L.next_in,Je=L.input,Ut=L.avail_in,Pt=Z.hold,Zt=Z.bits,Z.mode===ds&&(Z.back=-1);break}for(Z.back=0;wi=Z.lencode[Pt&(1<>>24,Fi=wi>>>16&255,mi=65535&wi,!(ui<=Zt);){if(0===Ut)break e;Ut--,Pt+=Je[ht++]<>Sn)],ui=wi>>>24,Fi=wi>>>16&255,mi=65535&wi,!(Sn+ui<=Zt);){if(0===Ut)break e;Ut--,Pt+=Je[ht++]<>>=Sn,Zt-=Sn,Z.back+=Sn}if(Pt>>>=ui,Zt-=ui,Z.back+=ui,Z.length=mi,0===Fi){Z.mode=16205;break}if(32&Fi){Z.back=-1,Z.mode=ds;break}if(64&Fi){L.msg="invalid literal/length code",Z.mode=Ki;break}Z.extra=15&Fi,Z.mode=16201;case 16201:if(Z.extra){for(gi=Z.extra;Zt>>=Z.extra,Zt-=Z.extra,Z.back+=Z.extra}Z.was=Z.length,Z.mode=16202;case 16202:for(;wi=Z.distcode[Pt&(1<>>24,Fi=wi>>>16&255,mi=65535&wi,!(ui<=Zt);){if(0===Ut)break e;Ut--,Pt+=Je[ht++]<>Sn)],ui=wi>>>24,Fi=wi>>>16&255,mi=65535&wi,!(Sn+ui<=Zt);){if(0===Ut)break e;Ut--,Pt+=Je[ht++]<>>=Sn,Zt-=Sn,Z.back+=Sn}if(Pt>>>=ui,Zt-=ui,Z.back+=ui,64&Fi){L.msg="invalid distance code",Z.mode=Ki;break}Z.offset=mi,Z.extra=15&Fi,Z.mode=16203;case 16203:if(Z.extra){for(gi=Z.extra;Zt>>=Z.extra,Zt-=Z.extra,Z.back+=Z.extra}if(Z.offset>Z.dmax){L.msg="invalid distance too far back",Z.mode=Ki;break}Z.mode=16204;case 16204:if(0===Nn)break e;if(pn=An-Nn,Z.offset>pn){if(pn=Z.offset-pn,pn>Z.whave&&Z.sane){L.msg="invalid distance too far back",Z.mode=Ki;break}pn>Z.wnext?(pn-=Z.wnext,zn=Z.wsize-pn):zn=Z.wnext-pn,pn>Z.length&&(pn=Z.length),sr=Z.window}else sr=gt,zn=Kt-Z.offset,pn=Z.length;pn>Nn&&(pn=Nn),Nn-=pn,Z.length-=pn;do{gt[Kt++]=sr[zn++]}while(--pn);0===Z.length&&(Z.mode=Rr);break;case 16205:if(0===Nn)break e;gt[Kt++]=Z.length,Nn--,Z.mode=Rr;break;case 16206:if(Z.wrap){for(;Zt<32;){if(0===Ut)break e;Ut--,Pt|=Je[ht++]<{if(ge(L))return pi;let Ce=L.state;return Ce.window&&(Ce.window=null),L.state=null,Xr},inflateGetHeader:(L,Ce)=>{if(ge(L))return pi;const Z=L.state;return 2&Z.wrap?(Z.head=Ce,Ce.done=!1,Xr):pi},inflateSetDictionary:(L,Ce)=>{const Z=Ce.length;let Je,gt,ht;return ge(L)||(Je=L.state,0!==Je.wrap&&Je.mode!==Hs)?pi:Je.mode===Hs&&(gt=1,gt=ve(gt,Ce,Z,0),gt!==Je.check)?er:(ht=Ci(L,Ce,Z,Z),ht?(Je.mode=16210,Or):(Je.havedict=1,Xr))},inflateInfo:"pako inflate (from Nodeca project)"},Gs=function Yo(){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 Qi=Object.prototype.toString,{Z_NO_FLUSH:Ao,Z_FINISH:Ks,Z_OK:Pr,Z_STREAM_END:Ys,Z_NEED_DICT:Zo,Z_STREAM_ERROR:Os,Z_DATA_ERROR:fo,Z_MEM_ERROR:Rs}=Re;function Kn(L){this.options=bn.assign({chunkSize:65536,windowBits:15,to:""},L||{});const Ce=this.options;Ce.raw&&Ce.windowBits>=0&&Ce.windowBits<16&&(Ce.windowBits=-Ce.windowBits,0===Ce.windowBits&&(Ce.windowBits=-15)),Ce.windowBits>=0&&Ce.windowBits<16&&!(L&&L.windowBits)&&(Ce.windowBits+=32),Ce.windowBits>15&&Ce.windowBits<48&&(15&Ce.windowBits||(Ce.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ur,this.strm.avail_out=0;let Z=Nr.inflateInit2(this.strm,Ce.windowBits);if(Z!==Pr)throw new Error(ft[Z]);if(this.header=new Gs,Nr.inflateGetHeader(this.strm,this.header),Ce.dictionary&&("string"==typeof Ce.dictionary?Ce.dictionary=ri.string2buf(Ce.dictionary):"[object ArrayBuffer]"===Qi.call(Ce.dictionary)&&(Ce.dictionary=new Uint8Array(Ce.dictionary)),Ce.raw&&(Z=Nr.inflateSetDictionary(this.strm,Ce.dictionary),Z!==Pr)))throw new Error(ft[Z])}function mo(L,Ce){const Z=new Kn(Ce);if(Z.push(L),Z.err)throw Z.msg||ft[Z.err];return Z.result}Kn.prototype.push=function(L,Ce){const Z=this.strm,Je=this.options.chunkSize,gt=this.options.dictionary;let ht,Kt,Ut;if(this.ended)return!1;for(Kt=Ce===~~Ce?Ce:!0===Ce?Ks:Ao,Z.input="[object ArrayBuffer]"===Qi.call(L)?new Uint8Array(L):L,Z.next_in=0,Z.avail_in=Z.input.length;;){for(0===Z.avail_out&&(Z.output=new Uint8Array(Je),Z.next_out=0,Z.avail_out=Je),ht=Nr.inflate(Z,Kt),ht===Zo&>&&(ht=Nr.inflateSetDictionary(Z,gt),ht===Pr?ht=Nr.inflate(Z,Kt):ht===fo&&(ht=Zo));Z.avail_in>0&&ht===Ys&&Z.state.wrap>0&&0!==L[Z.next_in];)Nr.inflateReset(Z),ht=Nr.inflate(Z,Kt);switch(ht){case Os:case fo:case Zo:case Rs:return this.onEnd(ht),this.ended=!0,!1}if(Ut=Z.avail_out,Z.next_out&&(0===Z.avail_out||ht===Ys))if("string"===this.options.to){let Nn=ri.utf8border(Z.output,Z.next_out),Pt=Z.next_out-Nn,Zt=ri.buf2string(Z.output,Nn);Z.next_out=Pt,Z.avail_out=Je-Pt,Pt&&Z.output.set(Z.output.subarray(Nn,Nn+Pt),0),this.onData(Zt)}else this.onData(Z.output.length===Z.next_out?Z.output:Z.output.subarray(0,Z.next_out));if(ht!==Pr||0!==Ut){if(ht===Ys)return ht=Nr.inflateEnd(this.strm),this.onEnd(ht),this.ended=!0,!0;if(0===Z.avail_in)break}}return!0},Kn.prototype.onData=function(L){this.chunks.push(L)},Kn.prototype.onEnd=function(L){L===Pr&&(this.result="string"===this.options.to?this.chunks.join(""):bn.flattenChunks(this.chunks)),this.chunks=[],this.err=L,this.msg=this.strm.msg};var yr={Inflate:Kn,inflate:mo,inflateRaw:function po(L,Ce){return(Ce=Ce||{}).raw=!0,mo(L,Ce)},ungzip:mo,constants:Re};const{Deflate:hr,deflate:da,deflateRaw:Zs,gzip:Xo}=St,{Inflate:ss,inflate:ha,inflateRaw:Cl,ungzip:wl}=yr;var z=hr,re=da,Q=Zs,se=Xo,xe=ss,ze=ha,yt=Cl,Yt=wl,zt=Re,Mn={Deflate:hr,deflate:da,deflateRaw:Zs,gzip:Xo,Inflate:ss,inflate:ha,inflateRaw:Cl,ungzip:wl,constants:Re}},467:(Ie,ne,g)=>{"use strict";function t(C,E,c,b,s,f,d){try{var a=C[f](d),l=a.value}catch(r){return void c(r)}a.done?E(l):Promise.resolve(l).then(b,s)}function _(C){return function(){var E=this,c=arguments;return new Promise(function(b,s){var f=C.apply(E,c);function d(l){t(f,b,s,d,a,"next",l)}function a(l){t(f,b,s,d,a,"throw",l)}d(void 0)})}}g.d(ne,{A:()=>_})},3380:Ie=>{"use strict";Ie.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",1e-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 6.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, and 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.00000000000001,[-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.00009999999999999999,[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.000016387064000000006,[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.0023597372160000006,[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.0037854117840000014,[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.15898729492800007,[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.0009463529460000004,[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.0004731764730000002,[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.00011829411825000005,[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.00002957352956250001,[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.0000036966911953125014,[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.161151992187503e-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.035239070166880014,[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.004404883770860002,[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.008809767541720004,[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.0011012209427150004,[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.0005506104713575002,[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.000014786764781250006,[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.000004928921593750002,[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.0002365882365000001,[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.019999999999999997,[-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.000019999999999999998,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 firewood","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",1.0000000000000001e-28,[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",98066500,[-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)","1/(12.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]","1/[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]","1/[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]","1/[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]","1/[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","1/(10*10)","",1e-10,[0,0,0,0,0,0,0],"/1010",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","1/(10*12)","",1e-12,[0,0,0,0,0,0,0],"/1012",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","1/(10*3)","",0.001,[0,0,0,0,0,0,0],"/103",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","1/(10*6)","",0.000001,[0,0,0,0,0,0,0],"/106",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","1/(10*9)","",1e-9,[0,0,0,0,0,0,0],"/109",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","1/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}","1/100","",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}","1/100","",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}","1/100","",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}","1/100","",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","1/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]","1/CM[H2O]","",0.000010197162129779282,[1,2,-1,0,0,0,0],"/cm\xa0HO2",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","1/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","1/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","1/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","1/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","1/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","1/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","1/M2","",1,[-2,0,0,0,0,0,0],"/m2",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","1/M3","",1,[-3,0,0,0,0,0,0],"/m3",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","1/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","1/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","1/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","1/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","1/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","1/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","1/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","1/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","1/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]/(2.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]/(24.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}","{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}","{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}","{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}","{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)/(24.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)","(10.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","(10.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)","((10.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","24.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],[false,"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],[false,"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],[false,"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],[false,"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.0000000000000002,[-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.000001,[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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"gram per 100 gram","g/(100.g)","G/(100.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],[false,"gram per 12 hour","g/(12.h)","G/(12.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],[false,"gram per 24 hour","g/(24.h)","G/(24.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],[false,"gram per 3 days","g/(3.d)","G/(3.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],[false,"gram per 4 hour","g/(4.h)","G/(4.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],[false,"gram per 48 hour","g/(48.h)","G/(48.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],[false,"gram per 5 hour","g/(5.h)","G/(5.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],[false,"gram per 6 hour","g/(6.h)","G/(6.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],[false,"gram per 72 hour","g/(72.h)","G/(72.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"gram per kilogram per 8 hour ","g/kg/(8.h)","(G/KG)/(8.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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/(24.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)/(24.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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/(24.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/(8.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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/(2.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/(24.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/(8.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],[false,"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],[false,"milligram per 10 hour","mg/(10.h)","MG/(10.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],[false,"milligram per 12 hour","mg/(12.h)","MG/(12.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],[false,"milligram per 2 hour","mg/(2.h)","MG/(2.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],[false,"milligram per 24 hour","mg/(24.h)","MG/(24.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],[false,"milligram per 6 hour","mg/(6.h)","MG/(6.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],[false,"milligram per 72 hour","mg/(72.h)","MG/(72.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],[false,"milligram per 8 hour","mg/(8.h)","MG/(8.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"milligram per kilogram per 8 hour","mg/kg/(8.h)","(MG/KG)/(8.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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/(10.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/(12.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/(2.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/(24.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/(4.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/(5.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/(6.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/(72.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/(8.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/(8.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)/(8.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],[false,"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],[false,"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],[false,"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],[false,"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/(12.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/(2.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/(24.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/(5.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/(6.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/(8.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)/(8.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],[false,"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],[false,"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],[false,"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],[false,"nanogram per 24 hour","ng/(24.h)","NG/(24.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],[false,"nanogram per 8 hour","ng/(8.h)","NG/(8.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"nanogram per kilogram per 8 hour","ng/kg/(8.h)","(NG/KG)/(8.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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/(24.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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/(24.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],[false,"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/(12.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/(2.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/(24.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/10","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],[false,"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],[false,"microgram per 100 gram","ug/(100.g)","UG/(100.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],[false,"microgram per 24 hour","ug/(24.h)","UG/(24.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],[false,"microgram per 8 hour","ug/(8.h)","UG/(8.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"microgram per kilogram per 8 hour","ug/kg/(8.h)","(UG/KG)/(8.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"microgram per liter per 24 hour","ug/L/(24.h)","(UG/L)/(24.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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/(2.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],[false,"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],[false,"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/(2.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/(24.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/(8.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],[false,"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]]}}')},9852:Ie=>{"use strict";Ie.exports=JSON.parse('{"name":"fhirpath","version":"3.11.0","description":"A FHIRPath engine","main":"src/fhirpath.js","dependencies":{"@lhncbc/ucum-lhc":"^5.0.0","antlr4":"~4.9.3","commander":"^2.18.0","date-fns":"^1.30.1","js-yaml":"^3.13.1"},"devDependencies":{"@babel/core":"^7.21.4","@babel/eslint-parser":"^7.17.0","@babel/preset-env":"^7.16.11","babel-loader":"^8.2.3","benny":"^3.7.1","bestzip":"^2.2.0","copy-webpack-plugin":"^6.0.3","cypress":"^10.3.0","eslint":"^8.10.0","fhir":"^4.10.3","grunt":"^1.5.2","grunt-cli":"^1.4.3","grunt-text-replace":"^0.4.0","jasmine-spec-reporter":"^4.2.1","jest":"^27.3.1","jit-grunt":"^0.10.0","lodash":"^4.17.21","open":"^8.4.0","rimraf":"^3.0.0","tmp":"0.0.33","webpack":"^5.11.1","webpack-bundle-analyzer":"^4.4.2","webpack-cli":"^4.9.1","xml2js":"^0.5.0","yargs":"^15.1.0"},"engines":{"node":">=8.9.0"},"scripts":{"generateParser":"cd src/parser; rimraf ./generated/*; java -Xmx500M -cp \\"../../antlr-4.9.3-complete.jar:$CLASSPATH\\" org.antlr.v4.Tool -o generated -Dlanguage=JavaScript FHIRPath.g4; grunt updateParserRequirements","build":"cd browser-build && webpack && rimraf fhirpath.zip && bestzip fhirpath.zip LICENSE.md fhirpath.min.js fhirpath.r5.min.js fhirpath.r4.min.js fhirpath.stu3.min.js fhirpath.dstu2.min.js && rimraf LICENSE.md","test:unit":"node --use_strict node_modules/.bin/jest && TZ=America/New_York node --use_strict node_modules/.bin/jest && TZ=Europe/Paris node --use_strict node_modules/.bin/jest","test:unit:debug":"echo \'open chrome chrome://inspect/\' && node --inspect node_modules/.bin/jest --runInBand","build:demo":"npm run build && cd demo && npm run build","test:e2e":"npm run build:demo && cypress run","test":"npm run lint && npm run test:unit && npm run test:e2e && echo \\"For tests specific to IE 11, open browser-build/test/index.html in IE 11, and confirm that the tests on that page pass.\\"","lint":"eslint src/parser/index.js src/*.js converter/","compare-performance":"node ./test/benchmark.js"},"bin":{"fhirpath":"bin/fhirpath"},"repository":"github:HL7/fhirpath.js","license":"SEE LICENSE in LICENSE.md"}')},8330:Ie=>{"use strict";Ie.exports=JSON.parse('{"name":"matchbox","version":"3.8.2","license":"MIT","scripts":{"ng":"ng","start":"ng serve","build":"ng build --configuration production","build-matchbox":"ng build --configuration production --output-path ../matchbox-server/src/main/resources/static","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-devkit/build-angular":"^17.3.0","@angular/animations":"^17.3.0","@angular/cdk":"^17.3.0","@angular/common":"^17.3.0","@angular/core":"^17.3.0","@angular/forms":"^17.3.0","@angular/material":"^17.3.0","@angular/platform-browser":"^17.3.0","@angular/platform-browser-dynamic":"^17.3.0","@angular/router":"^17.3.0","@ngx-translate/core":"^15.0.0","@ngx-translate/http-loader":"^8.0.0","ace-builds":"^1.32.7","angular-oauth2-oidc":"^17.0.1","browserify-zlib":"^0.2.0","debug":"^4.3.1","fhir-kit-client":"1.9.2","fhirpath":"^3.10.4","highlightjs-line-numbers.js":"^2.8.0","js-untar":"^2.0.0","ngx-highlightjs":"^10.0.0","ngx-mat-select-search":"^7.0.5","pako":"^2.1.0","rxjs":"^7.8.1","tslib":"^2.6.1","zone.js":"^0.14.4"},"devDependencies":{"@angular-eslint/builder":"^17.3.0","@angular-eslint/eslint-plugin":"^17.3.0","@angular-eslint/eslint-plugin-template":"^17.3.0","@angular-eslint/schematics":"^17.3.0","@angular-eslint/template-parser":"^17.3.0","@angular/cli":"^17.3.0","@angular/compiler":"^17.3.0","@angular/compiler-cli":"^17.3.0","@angular/language-service":"^17.3.0","@types/debug":"^4.1.12","@types/jasmine":"^5.1.4","@types/node":"^20.11.30","@types/pako":"^2.0.3","@typescript-eslint/eslint-plugin":"^7.3.1","@typescript-eslint/parser":"^7.3.1","eslint":"^8.57.0","husky":"^9.0.11","jasmine":"^5.1.0","jasmine-core":"^5.1.2","jasmine-spec-reporter":"^7.0.0","json-patch":"^0.7.0","karma":"^6.4.3","karma-chrome-launcher":"^3.2.0","karma-cli":"~2.0.0","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"^5.1.0","karma-jasmine-html-reporter":"^2.1.0","prettier":"^3.2.5","pretty-quick":"^4.0.0","ts-node":"^10.9.2","tslint":"~6.1.0","typescript":"^5.4.2"},"browser":{"fs":false,"os":false,"path":false,"zlib":false},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}}}')}},Ie=>{Ie(Ie.s=4429)}]); \ No newline at end of file diff --git a/matchbox-server/src/main/resources/static/main.2c9de0c043158889.js b/matchbox-server/src/main/resources/static/main.2c9de0c043158889.js new file mode 100644 index 00000000000..a3bab70cdbd --- /dev/null +++ b/matchbox-server/src/main/resources/static/main.2c9de0c043158889.js @@ -0,0 +1 @@ +(self.webpackChunkmatchbox_formfiller=self.webpackChunkmatchbox_formfiller||[]).push([[792],{2614:(Te,ne)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.Ucum=void 0,ne.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"}}},434:(Te,ne,g)=>{"use strict";ne.f=void 0;var _=g(2614),C=g(6971);class E{constructor(b){if(0===_.Ucum.dimLen_)throw new Error("Dimension.setDimensionLen must be called before Dimension constructor");if(null==b)this.assignZero();else if(b instanceof Array){if(b.length!==_.Ucum.dimLen_)throw new Error(`Parameter error, incorrect length of vector passed to Dimension constructor, vector = ${JSON.stringify(b)}`);this.dimVec_=[];for(let s=0;s<_.Ucum.dimLen_;s++)this.dimVec_.push(b[s])}else if(C(b)){if(b<0||b>=_.Ucum.dimLen_)throw new Error("Parameter error, invalid element number specified for Dimension constructor");this.assignZero(),this.dimVec_[b]=1}}setElementAt(b,s){if(!C(b)||b<0||b>=_.Ucum.dimLen_)throw new Error(`Dimension.setElementAt called with an invalid index position (${b})`);this.dimVec_||this.assignZero(),null==s&&(s=1),this.dimVec_[b]=s}getElementAt(b){if(!C(b)||b<0||b>=_.Ucum.dimLen_)throw new Error(`Dimension.getElementAt called with an invalid index position (${b})`);let s=null;return this.dimVec_&&(s=this.dimVec_[b]),s}getProperty(b){return this["_"===b.charAt(b.length-1)?b:b+"_"]}toString(){let b=null;return this.dimVec_&&(b="["+this.dimVec_.join(", ")+"]"),b}add(b){if(!b instanceof E)throw new Error(`Dimension.add called with an invalid parameter - ${typeof b} instead of a Dimension object`);if(this.dimVec_&&b.dimVec_)for(let s=0;s<_.Ucum.dimLen_;s++)this.dimVec_[s]+=b.dimVec_[s];return this}sub(b){if(!b instanceof E)throw new Error(`Dimension.sub called with an invalid parameter - ${typeof b} instead of a Dimension object`);if(this.dimVec_&&b.dimVec_)for(let s=0;s<_.Ucum.dimLen_;s++)this.dimVec_[s]-=b.dimVec_[s];return this}minus(){if(this.dimVec_)for(let b=0;b<_.Ucum.dimLen_;b++)this.dimVec_[b]=-this.dimVec_[b];return this}mul(b){if(!C(b))throw new Error(`Dimension.sub called with an invalid parameter - ${typeof dim2} instead of a number`);if(this.dimVec_)for(let s=0;s<_.Ucum.dimLen_;s++)this.dimVec_[s]*=b;return this}equals(b){if(!b instanceof E)throw new Error(`Dimension.equals called with an invalid parameter - ${typeof b} instead of a Dimension object`);let s=!0,f=b.dimVec_;if(this.dimVec_&&f)for(let d=0;s&&d<_.Ucum.dimLen_;d++)s=this.dimVec_[d]===f[d];else s=null===this.dimVec_&&null===f;return s}assignDim(b){if(!b instanceof E)throw new Error(`Dimension.assignDim called with an invalid parameter - ${typeof b} instead of a Dimension object`);if(null===b.dimVec_)this.dimVec_=null;else{null===this.dimVec_&&(this.dimVec_=[]);for(let s=0;s<_.Ucum.dimLen_;s++)this.dimVec_[s]=b.dimVec_[s]}return this}assignZero(){null==this.dimVec_&&(this.dimVec_=[]);for(let b=0;b<_.Ucum.dimLen_;b++)this.dimVec_.push(0);return this}isZero(){let b=null!==this.dimVec_;if(this.dimVec_)for(let s=0;b&&s<_.Ucum.dimLen_;s++)b=0===this.dimVec_[s];return b}isNull(){return null===this.dimVec_}clone(){let b=new E;return b.assignDim(this),b}}ne.f=E},6996:(Te,ne)=>{"use strict";ne.YH=function f(d){const l=d&&d.config;if(l){if(l.length&&d.data){const c=E(l);return d.data.map(b.bind(null,c))}return d.data}return d};function E(d){return d.map(l=>Array.isArray(l)?l:[l])}function b(d,l){let c={};return d.forEach((o,r)=>{let h=c;for(let p=0;p{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.Prefix=void 0,g(2614),ne.Prefix=class _{constructor(E){if(null==E.code_||null==E.name_||null==E.value_||void 0===E.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_=E.code_,this.ciCode_=E.ciCode_,this.name_=E.name_,this.printSymbol_=E.printSymbol_,this.value_="string"==typeof E.value_?parseFloat(E.value_):E.value_,this.exp_=E.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(E){return this.code_===E.code_&&this.ciCode_===E.ciCode_&&this.name_===E.name_&&this.printSymbol_===E.printSymbol_&&this.value_===E.value_&&this.exp_===E.exp_}}},5557:(Te,ne)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.PrefixTables=ne.PrefixTablesFactory=void 0;class g{constructor(){this.byCode_={},this.byValue_={}}prefixCount(){return Object.keys(this.byCode_).length}allPrefixesByValue(){let E="",u=Object.keys(this.byValue_),b=u.length;for(let s=0;s{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.default=void 0;var t=new class g{constructor(){this.funcs={},this.funcs.cel={cnvTo:function(C){return C-273.15},cnvFrom:function(C){return C+273.15}},this.funcs.degf={cnvTo:function(C){return C-459.67},cnvFrom:function(C){return C+459.67}},this.funcs.degre={cnvTo:function(C){return C-273.15},cnvFrom:function(C){return C+273.15}},this.funcs.ph={cnvTo:function(C){return-Math.log(C)/Math.LN10},cnvFrom:function(C){return Math.pow(10,-C)}},this.funcs.ln={cnvTo:function(C){return Math.log(C)},cnvFrom:function(C){return Math.exp(C)}},this.funcs["2ln"]={cnvTo:function(C){return 2*Math.log(C)},cnvFrom:function(C){return Math.exp(C/2)}},this.funcs.lg={cnvTo:function(C){return Math.log(C)/Math.LN10},cnvFrom:function(C){return Math.pow(10,C)}},this.funcs["10lg"]={cnvTo:function(C){return 10*Math.log(C)/Math.LN10},cnvFrom:function(C){return Math.pow(10,C/10)}},this.funcs["20lg"]={cnvTo:function(C){return 20*Math.log(C)/Math.LN10},cnvFrom:function(C){return Math.pow(10,C/20)}},this.funcs["2lg"]={cnvTo:function(C){return 2*Math.log(C)/Math.LN10},cnvFrom:function(C){return Math.pow(10,C/2)}},this.funcs.lgtimes2=this.funcs["2lg"],this.funcs.ld={cnvTo:function(C){return Math.log(C)/Math.LN2},cnvFrom:function(C){return Math.pow(2,C)}},this.funcs["100tan"]={cnvTo:function(C){return 100*Math.tan(C)},cnvFrom:function(C){return Math.atan(C/100)}},this.funcs.tanTimes100=this.funcs["100tan"],this.funcs.sqrt={cnvTo:function(C){return Math.sqrt(C)},cnvFrom:function(C){return C*C}},this.funcs.inv={cnvTo:function(C){return 1/C},cnvFrom:function(C){return 1/C}},this.funcs.hpX={cnvTo:function(C){return-this.funcs.lg(C)},cnvFrom:function(C){return Math.pow(10,-C)}},this.funcs.hpC={cnvTo:function(C){return-this.func.ln(C)/this.funcs.ln(100)},cnvFrom:function(C){return Math.pow(100,-C)}},this.funcs.hpM={cnvTo:function(C){return-this.funcs.ln(C)/this.funcs.ln(1e3)},cnvFrom:function(C){return Math.pow(1e3,-C)}},this.funcs.hpQ={cnvTo:function(C){return-this.funcs.ln(C)/this.funcs.ln(5e4)},cnvFrom:function(C){return Math.pow(5e4,-C)}}}forName(C){C=C.toLowerCase();let E=this.funcs[C];if(null===E)throw new Error(`Requested function ${C} is not defined`);return E}isDefined(C){return C=C.toLowerCase(),null!==this.funcs[C]}};ne.default=t},9362:(Te,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.isNumericString=function _(u){let b=""+u;return!isNaN(b)&&!isNaN(parseFloat(b))},ne.isIntegerUnit=function C(u){return/^\d+$/.test(u)},ne.getSynonyms=function E(u){let b={},f={};if(f=t.getInstance().getUnitBySynonym(u),f.units){b.status="succeeded";let d=f.units.length;b.units=[];for(let l=0;l{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.ucumJsonDefs=ne.UcumJsonDefs=void 0;var t=g(5712),_=g(5557),C=g(4718),E=g(2043),u=g(6996).YH;class b{loadJsonDefs(){const d=g(3380);if(d.prefixes=u(d.prefixes),d.units=u(d.units),0===E.UnitTables.getInstance().unitsCount()){let l=_.PrefixTables.getInstance(),c=d.prefixes,o=c.length;for(let v=0;v{"use strict";ne.l=void 0;var _=g(6556),C=function u(l){if(l&&l.__esModule)return l;if(null===l||"object"!=typeof l&&"function"!=typeof l)return{default:l};var c=E();if(c&&c.has(l))return c.get(l);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in l)if(Object.prototype.hasOwnProperty.call(l,h)){var p=r?Object.getOwnPropertyDescriptor(l,h):null;p&&(p.get||p.set)?Object.defineProperty(o,h,p):o[h]=l[h]}return o.default=l,c&&c.set(l,o),o}(g(9362));function E(){if("function"!=typeof WeakMap)return null;var l=new WeakMap;return E=function(){return l},l}var b=g(2614).Ucum,s=g(2043).UnitTables,f=g(4247).o;class d{constructor(){0===s.getInstance().unitsCount()&&_.ucumJsonDefs.loadJsonDefs(),this.uStrParser_=f.getInstance()}useHTMLInMessages(c){void 0===c&&(c=!0),this.uStrParser_.useHTMLInMessages(c)}useBraceMsgForEachString(c){void 0===c&&(c=!0),this.uStrParser_.useBraceMsgForEachString(c)}validateUnitString(c,o,r){void 0===o&&(o=!1),void 0===r&&(r="validate");let h=this.getSpecifiedUnit(c,r,o),p=h.unit,v=p?{ucumCode:h.origString,unit:{code:p.csCode_,name:p.name_,guidance:p.guidance_}}:{ucumCode:null};return v.status=h.status,h.suggestions&&(v.suggestions=h.suggestions),v.msg=h.retMsg,v}convertUnitTo(c,o,r,h,p){void 0===h&&(h=!1),void 0===p&&(p=null);let v={status:"failed",toVal:null,msg:[]};if(c&&(c=c.trim()),(!c||""==c)&&(v.status="error",v.msg.push('No "from" unit expression specified.')),this._checkFromVal(o,v),r&&(r=r.trim()),(!r||""==r)&&(v.status="error",v.msg.push('No "to" unit expression specified.')),"error"!==v.status)try{let y=null,M=this.getSpecifiedUnit(c,"convert",h);y=M.unit,M.retMsg&&(v.msg=v.msg.concat(M.retMsg)),M.suggestions&&(v.suggestions={},v.suggestions.from=M.suggestions),y||v.msg.push(`Unable to find a unit for ${c}, so no conversion could be performed.`);let w=null;if(M=this.getSpecifiedUnit(r,"convert",h),w=M.unit,M.retMsg&&(v.msg=v.msg.concat(M.retMsg)),M.suggestions&&(v.suggestions||(v.suggestions={}),v.suggestions.to=M.suggestions),w||v.msg.push(`Unable to find a unit for ${r}, so no conversion could be performed.`),y&&w)try{if(p){if(0!==y.moleExp_&&0!==w.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===y.moleExp_&&0===w.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(!y.isMoleMassCommensurable(w))throw new Error(`Sorry. ${c} cannot be converted to ${r}.`);v.toVal=0!==y.moleExp_?y.convertMolToMass(o,w,p):y.convertMassToMol(o,w,p)}else v.toVal=w.convertFrom(o,y);v.status="succeeded",v.fromUnit=y,v.toUnit=w}catch(k){v.status="failed",v.msg.push(k.message)}}catch(y){v.status=y.message==b.needMoleWeightMsg_?"failed":"error",v.msg.push(y.message)}return v}convertToBaseUnits(c,o){let r={};if(this._checkFromVal(o,r),!r.status){let h=this.getSpecifiedUnit(c,"validate");r={status:"valid"==h.status?"succeeded":h.status};let p=h.unit;if(r.msg=h.retMsg||[],p){if(p.isArbitrary_)r.msg.push("Arbitrary units cannot be converted to base units or other units."),r.status="failed";else if("succeeded"==r.status){let v={},y=p.dim_?.dimVec_,M="1";if(y){let I=s.getInstance().dimVecIndexToBaseUnit_;for(let D=0,O=y.length;D0&&(o=h.retMsg),p){let v=null,y=p.getProperty("dim_");if(y){try{v=y.getProperty("dimVec_")}catch(M){o.push(M.message),"Dimension does not have requested property(dimVec_)"===M.message&&(v=null)}v&&(r=s.getInstance().getUnitsByDimension(v))}else o.push("No commensurable units were found for "+c)}else o.push(`Could not find unit ${c}.`);return[r,o]}}ne.l=d,d.getInstance=function(){return new d}},9070:(Te,ne,g)=>{"use strict";ne.lG=void 0,g(2614);var C=g(5476).l;ne.lG=C,g(2043)},4718:(Te,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.Unit=void 0;var t=function u(c){return c&&c.__esModule?c:{default:c}}(g(8573)),_=function E(c){if(c&&c.__esModule)return c;if(null===c||"object"!=typeof c&&"function"!=typeof c)return{default:c};var o=C();if(o&&o.has(c))return o.get(c);var r={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in c)if(Object.prototype.hasOwnProperty.call(c,p)){var v=h?Object.getOwnPropertyDescriptor(c,p):null;v&&(v.get||v.set)?Object.defineProperty(r,p,v):r[p]=c[p]}return r.default=c,o&&o.set(c,r),r}(g(9362));function C(){if("function"!=typeof WeakMap)return null;var c=new WeakMap;return C=function(){return c},c}var f,b=g(2614).Ucum,s=g(434).f,d=g(6971);class l{constructor(o={}){this.isBase_=o.isBase_||!1,this.name_=o.name_||"",this.csCode_=o.csCode_||"",this.ciCode_=o.ciCode_||"",this.property_=o.property_||"",this.magnitude_=o.magnitude_||1,this.dim_=null==o.dim_?new s:void 0!==o.dim_.dimVec_?new s(o.dim_.dimVec_):o.dim_ instanceof s?o.dim_:o.dim_ instanceof Array||d(o.dim_)?new s(o.dim_):new s,this.printSymbol_=o.printSymbol_||null,this.class_=o.class_||null,this.isMetric_=o.isMetric_||!1,this.variable_=o.variable_||null,this.cnv_=o.cnv_||null,this.cnvPfx_=o.cnvPfx_||1,this.isSpecial_=o.isSpecial_||!1,this.isArbitrary_=o.isArbitrary_||!1,this.moleExp_=o.moleExp_||0,this.synonyms_=o.synonyms_||null,this.source_=o.source_||null,this.loincProperty_=o.loincProperty_||null,this.category_=o.category_||null,this.guidance_=o.guidance_||null,this.csUnitString_=o.csUnitString_||null,this.ciUnitString_=o.ciUnitString_||null,this.baseFactorStr_=o.baseFactorStr_||null,this.baseFactor_=o.baseFactor_||null,this.defError_=o.defError_||!1}assignUnity(){return this.name_="",this.magnitude_=1,this.dim_||(this.dim_=new s),this.dim_.assignZero(),this.cnv_=null,this.cnvPfx_=1,this}assignVals(o){for(let r in o){let h="_"===!r.charAt(r.length-1)?r+"_":r;if(!this.hasOwnProperty(h))throw new Error(`Parameter error; ${r} is not a property of a Unit`);this[h]=o[r]}}clone(){let o=new l;return Object.getOwnPropertyNames(this).forEach(r=>{"dim_"===r?o.dim_=this.dim_?this.dim_.clone():null:o[r]=this[r]}),o}assign(o){Object.getOwnPropertyNames(o).forEach(r=>{"dim_"===r?this.dim_=o.dim_?o.dim_.clone():null:this[r]=o[r]})}equals(o){return this.magnitude_===o.magnitude_&&this.cnv_===o.cnv_&&this.cnvPfx_===o.cnvPfx_&&(null===this.dim_&&null===o.dim_||this.dim_.equals(o.dim_))}fullEquals(o){let r=Object.keys(this).sort(),h=Object.keys(o).sort(),p=r.length,v=p===h.length;for(let y=0;y0){let r=o.replace("/","!").replace(".","/").replace("=0;k--){let I=parseInt(y[k]);if(!d(I)){if(("-"===y[k]||"+"===y[k])&&k--,k{"use strict";ne.o=void 0;var _=function E(c){if(c&&c.__esModule)return c;if(null===c||"object"!=typeof c&&"function"!=typeof c)return{default:c};var o=C();if(o&&o.has(c))return o.get(c);var r={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in c)if(Object.prototype.hasOwnProperty.call(c,p)){var v=h?Object.getOwnPropertyDescriptor(c,p):null;v&&(v.get||v.set)?Object.defineProperty(r,p,v):r[p]=c[p]}return r.default=c,o&&o.set(c,r),r}(g(9362));function C(){if("function"!=typeof WeakMap)return null;var c=new WeakMap;return C=function(){return c},c}function u(c,o,r){return o in c?Object.defineProperty(c,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):c[o]=r,c}var b=g(2614).Ucum,s=g(4718).Unit,f=g(2043).UnitTables,d=g(5557).PrefixTables;class l{constructor(){this.utabs_=f.getInstance(),this.pfxTabs_=d.getInstance(),this.openEmph_=b.openEmph_,this.closeEmph_=b.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(o){void 0===o||o?(this.openEmph_=b.openEmphHTML_,this.closeEmph_=b.closeEmphHTML_):(this.openEmph_=b.openEmph_,this.closeEmph_=b.closeEmph_)}useBraceMsgForEachString(o){this.bracesMsg_=void 0===o||o?b.bracesMsg_:""}parseString(o,r,h){if(""===(o=o.trim())||null===o)throw new Error("Please specify a unit expression to be validated.");"validate"===r?(this.vcMsgStart_=b.valMsgStart_,this.vcMsgEnd_=b.valMsgEnd_):(this.vcMsgStart_=b.cnvMsgStart_,this.vcMsgEnd_=b.cnvMsgEnd_),this.suggestions_=void 0===h||!1===h?null:[],this.retMsg_=[],this.parensUnits_=[],this.annotations_=[];let p=o,v=[];if(o=this._getAnnotations(o),this.retMsg_.length>0)v[0]=null,v[1]=null;else{let M=null;for(M in b.specUnits_)for(;-1!==o.indexOf(M);)o=o.replace(M,b.specUnits_[M]);if(o.indexOf(" ")>-1)throw new Error("Blank spaces are not allowed in unit expressions.");v=this._parseTheString(o,p);let w=v[0];(_.isIntegerUnit(w)||"number"==typeof w)&&(w=new s({csCode_:p,ciCode_:p,magnitude_:w,name_:p}),v[0]=w)}return v[2]=this.retMsg_,this.suggestions_&&this.suggestions_.length>0&&(v[3]=this.suggestions_),v}_parseTheString(o,r){let h=null,p=this.retMsg_.length>0,v=this._processParens(o,r);p=v[2];let y=[];if(!p){let M=this._makeUnitsArray(o=v[0],r=v[1]);if(p=M[2],!p){y=M[0],r=M[1];let w=y.length;for(let k=0;k=0){let D=this._getParensUnit(I,r);p||(p=D[1]),p||(y[k].un=D[0])}else{let D=this._makeUnit(I,r);null===D[0]?p=!0:(y[k].un=D[0],r=D[1])}}}}return p||(null===y[0]||" "===y[0]||null==y[0].un)&&0===this.retMsg_.length&&(this.retMsg_.push(`Unit string (${r}) did not contain anything that could be used to create a unit, or else something that is not handled yet by this package. Sorry`),p=!0),p||(h=this._performUnitArithmetic(y,r)),[h,r]}_getAnnotations(o){let r=o.indexOf("{");for(;r>=0;){let h=o.indexOf("}");if(h<0)this.retMsg_.push("Missing closing brace for annotation starting at "+this.openEmph_+o.substr(r)+this.closeEmph_),r=-1;else{let p=o.substring(r,h+1);if(l.VALID_ANNOTATION_REGEX.test(p)){let v=this.annotations_.length.toString();o=o.replace(p,this.braceFlag_+v+this.braceFlag_),this.annotations_.push(p),r=o.indexOf("{")}else this.retMsg_.push(l.INVALID_ANNOTATION_CHAR_MSG+this.openEmph_+p+this.closeEmph_),r=-1}}if(0==this.retMsg_.length){let h=o.indexOf("}");h>=0&&this.retMsg_.push("Missing opening brace for closing brace found at "+this.openEmph_+o.substring(0,h+1)+this.closeEmph_)}return o}_processParens(o,r){let h=[],p=0,v=!1,y=this.parensUnits_.length,M=0;for(;""!==o&&!v;){let w=0,k=0,I=o.indexOf("(");if(I<0){let D=o.indexOf(")");if(D>=0){let O=`Missing open parenthesis for close parenthesis at ${o.substring(0,D+M)}${this.openEmph_}${o.substr(D,1)}${this.closeEmph_}`;D0&&(h[p++]=o.substr(0,I));let O=0,T=I+1;for(;T0&&(k=o.substr(0,w-1));let I=o.lastIndexOf(this.parensFlag_),D=null;I+this.pFlagLen_=0){let T=this._getAnnoText(k,r);if(T[1]||T[2])throw new Error(`Text found before the parentheses (${k}) included an annotation along with other text for parenthetical unit ${v.csCode_}`);this.retMsg_.push(`The annotation ${T[0]} before the unit code is invalid.\n`+this.vcMsgStart_+(o+=T[0])+this.vcMsgEnd_)}else this.suggestions_?h="succeeded"!==this._getSuggestions(k):(this.retMsg_.push(`${k} preceding the unit code ${o} is invalid. Unable to make a substitution.`),h=!0);if(D)if(D.indexOf(this.braceFlag_)>=0){let T=this._getAnnoText(D,r);if(T[1]||T[2])throw new Error(`Text found after the parentheses (${D}) included an annotation along with other text for parenthetical unit ${v.csCode_}`);o+=T[0]}else if(_.isNumericString(D)){v=null;let T=`An exponent (${D}) following a parenthesis is invalid as of revision 1.9 of the UCUM Specification.`;o.match(/\d$/)||(T+="\n "+this.vcMsgStart_+(o+=D)+this.vcMsgEnd_),this.retMsg_.push(T),h=!0}else this.suggestions_?h="succeeded"!==this._getSuggestions(k):(this.retMsg_.push(`Text ${D} following the unit code ${o} is invalid. Unable to make a substitution.`),h=!0);return h||(v?_.isIntegerUnit(v)?v=new s({csCode_:v,magnitude_:v,name_:v}):v.csCode_=o:v=new s({csCode_:o,magnitude_:1,name_:o})),[v,h]}_getAnnoText(o,r){let h=o.indexOf(this.braceFlag_),p=h>0?o.substring(0,h):null;0!==h&&(o=o.substr(h));let v=o.indexOf(this.braceFlag_,1),y=v+this.bFlagLen_=this.annotations_.length)throw new Error(`Processing Error - invalid annotation index ${M} found in ${o} that was created from ${r}`);return[o=this.annotations_[w],p,y]}_getSuggestions(o){let r=_.getSynonyms(o);if("succeeded"===r.status){let h={};h.msg=`${o} is not a valid UCUM code. We found possible units that might be what was meant:`,h.invalidUnit=o;let p=r.units.length;h.units=[];for(let v=0;v=0){let p=this._getUnitWithAnnotation(o,r);h=p[0],h&&(r=p[1])}else{if(o.indexOf("^")>-1){let p=o.replace("^","*");h=this.utabs_.getUnitByCode(p),h&&(h=h.clone(),h.csCode_=h.csCode_.replace("*","^"),h.ciCode_=h.ciCode_.replace("*","^"))}if(!h){let p="["+o+"]";h=this.utabs_.getUnitByCode(p),h&&(h=h.clone(),r=r.replace(o,p),this.retMsg_.push(`${o} is not a valid unit expression, but ${p} is.\n`+this.vcMsgStart_+`${p} (${h.name_})${this.vcMsgEnd_}`))}if(!h){let p=this.utabs_.getUnitByName(o);if(p&&p.length>0){h=p[0].clone();let v="The UCUM code for "+o+" is "+h.csCode_+".\n"+this.vcMsgStart_+h.csCode_+this.vcMsgEnd_,y=!1;for(let k=0;k"+A+"",csCode_:N+A,ciCode_:S+A,printSymbol_:R+""+A+""})}}else h=null,this.suggestions_?this._getSuggestions(p):this.retMsg_.push(`${p} is not a valid UCUM code.`)}}return[h,r]}_getUnitWithAnnotation(o,r){let h=null,p=this._getAnnoText(o,r),v=p[0],y=p[1],M=p[2];this.bracesMsg_&&-1===this.retMsg_.indexOf(this.bracesMsg_)&&this.retMsg_.push(this.bracesMsg_);let w=this.retMsg_.length;if(y||M)if(y&&!M)if(_.isIntegerUnit(y))h=y;else{let k=this._makeUnit(y,r);k[0]?(h=k[0],h.csCode_+=v,r=k[1]):this.retMsg_.push(`Unable to find a unit for ${y} that precedes the annotation ${v}.`)}else if(!y&&M)if(_.isIntegerUnit(M))h=M+v,this.retMsg_.push(`The annotation ${v} before the ``${M} is invalid.\n`+this.vcMsgStart_+h+this.vcMsgEnd_);else{let k=this._makeUnit(M,r);k[0]?(h=k[0],h.csCode_+=v,r=h.csCode_,this.retMsg_.push(`The annotation ${v} before the unit code is invalid.\n`+this.vcMsgStart_+h.csCode_+this.vcMsgEnd_)):this.retMsg_.push(`Unable to find a unit for ${y} that follows the annotation ${v}.`)}else this.retMsg_.push(`Unable to find a unit for ${y}${v}${M}.\nWe are not sure how to interpret text both before and after the annotation. Sorry`);else{let k="["+v.substring(1,v.length-1)+"]",I=this._makeUnit(k,r);I[0]?(h=o,this.retMsg_.push(`${v} is a valid unit expression, but did you mean ${k} (${I[0].name_})?`)):this.retMsg_.length>w&&this.retMsg_.pop(),h=new s({csCode_:v,ciCode_:v,magnitude_:1,name_:v})}return[h,r]}_performUnitArithmetic(o,r){let h=o[0].un;_.isIntegerUnit(h)&&(h=new s({csCode_:h,ciCode_:h,magnitude_:Number(h),name_:h}));let p=o.length,v=!1;for(let y=1;y{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.UnitTables=void 0;var t=g(2614).Ucum,C=new class _{constructor(){this.unitNames_={},this.unitCodes_={},this.codeOrder_=[],this.unitStrings_={},this.unitDimensions_={},this.unitSynonyms_={},this.massDimIndex_=0,this.dimVecIndexToBaseUnit_={}}unitsCount(){return Object.keys(this.unitCodes_).length}addUnit(b){b.name_&&this.addUnitName(b),this.addUnitCode(b),this.addUnitString(b);try{b.dim_.getProperty("dimVec_")&&this.addUnitDimension(b)}catch{}if(b.isBase_){const f=b.dim_.dimVec_;let d;for(let l=0,c=f.length;null==d&&l=1&&(f=b.substr(s+t.codeSep_.length),b=b.substr(0,s));let d=this.unitNames_[b];if(d){let l=d.length;if(f&&l>1){let c=0;for(;d[c].csCode_!==f&&c0&&(f+=s),"dim_"===b[v])f+=null!=p.dim_&&p.dim_.dimVec_ instanceof Array?"["+p.dim_.dimVec_.join(",")+"]":"";else{let y=p[b[v]];f+="string"==typeof y?y.replace(/[\n\r]/g," "):y}f+="\r\n"}}return f}printUnits(b,s){void 0===b&&(b=!1),void 0===s&&(s="|");let f="",d=this.codeOrder_.length,l="csCode"+s;b&&(l+="ciCode"+s),l+="name"+s,b&&(l+="isBase"+s),l+="magnitude"+s+"dimension"+s+"from unit(s)"+s+"value"+s+"function"+s,b&&(l+="property"+s+"printSymbol"+s+"synonyms"+s+"source"+s+"class"+s+"isMetric"+s+"variable"+s+"isSpecial"+s+"isAbitrary"+s),l+="comment",f=l+"\n";for(let c=0;c{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.AppComponent=void 0;const t=g(5215),E=(g(8414),g(3955),t.__importDefault(g(8330))),u=t.__importStar(g(4438)),b=t.__importStar(g(3955)),s=t.__importStar(g(8414)),f=t.__importStar(g(9213)),d=t.__importStar(g(7901));ne.AppComponent=(()=>{class c{constructor(r,h){this.version=E.default.version,r.setDefaultLang("de"),r.use(r.getBrowserLang());let p=location.origin;if("http://localhost:4200"===p)console.log("note: using local dev mag system for"+location.origin),h.changeFhirMicroService("http://localhost:8080/matchboxv3/fhir");else{let v=p+location.pathname+"fhir";h.changeFhirMicroService(v),console.log("fhir endpoint "+v)}}static#e=this.\u0275fac=function(h){return new(h||c)(u.\u0275\u0275directiveInject(b.TranslateService),u.\u0275\u0275directiveInject(s.FhirConfigService))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:c,selectors:[["app-root"]],decls:43,vars:1,consts:[["routerLink","/",1,"logo-container"],["alt","Matchbox logo","height","40","src","assets/matchbox_logo_color.png","width","95"],[1,"version"],["routerLink","/"],["routerLink","/CapabilityStatement"],["routerLink","/igs"],["routerLink","/mappinglanguage"],["routerLink","/transform"],["routerLink","/validate"],["routerLink","/settings"],[1,"mat-typography"]],template:function(h,p){1&h&&(u.\u0275\u0275elementStart(0,"header")(1,"div",0),u.\u0275\u0275element(2,"img",1),u.\u0275\u0275elementStart(3,"span",2),u.\u0275\u0275text(4),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(5,"nav")(6,"div",3)(7,"mat-icon"),u.\u0275\u0275text(8,"home"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(9,"span"),u.\u0275\u0275text(10,"Home"),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(11,"div",4)(12,"mat-icon"),u.\u0275\u0275text(13,"info"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(14,"span"),u.\u0275\u0275text(15,"CapabilityStatement"),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(16,"div",5)(17,"mat-icon"),u.\u0275\u0275text(18,"info"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(19,"span"),u.\u0275\u0275text(20,"IGs"),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(21,"div",6)(22,"mat-icon"),u.\u0275\u0275text(23,"search"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(24,"span"),u.\u0275\u0275text(25,"FHIR Mapping"),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(26,"div",7)(27,"mat-icon"),u.\u0275\u0275text(28,"transform"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(29,"span"),u.\u0275\u0275text(30,"Transform"),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(31,"div",8)(32,"mat-icon"),u.\u0275\u0275text(33,"rule"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(34,"span"),u.\u0275\u0275text(35,"Validate"),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(36,"div",9)(37,"mat-icon"),u.\u0275\u0275text(38,"settings"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(39,"span"),u.\u0275\u0275text(40,"Settings"),u.\u0275\u0275elementEnd()()()(),u.\u0275\u0275elementStart(41,"main",10),u.\u0275\u0275element(42,"router-outlet"),u.\u0275\u0275elementEnd()),2&h&&(u.\u0275\u0275advance(4),u.\u0275\u0275textInterpolate1("v",p.version,""))},dependencies:[f.MatIcon,d.RouterOutlet,d.RouterLink],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)}header[_ngcontent-%COMP%]{background:#97d6ba;display:flex;flex-wrap:wrap;flex:0 1 auto;padding:10px 2em;justify-content:space-between}header[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%]{display:inline-block}header[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%] .version[_ngcontent-%COMP%]{color:#2e7d73;font-size:.9em;display:inline-block;margin:4px 0 0 10px;vertical-align:top}header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{display:flex;margin-top:10px}header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:inline-block;margin:0 1rem;cursor:pointer;color:#3d5c73}header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] div[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;vertical-align:middle;color:#d2eade}main[_ngcontent-%COMP%]{width:100%;margin:0 auto}@media (max-width: 1140px){header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:0 7px}header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] div[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px;font-size:18px;width:18px;height:18px}}"]})}return c})()},635:(Te,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.AppModule=ne.createTranslateLoader=void 0;const t=g(5215),_=g(1626),C=g(7901),E=g(3955),u=g(5635),b=g(92),s=g(4010),f=g(7824),d=g(1536),l=g(728),c=g(3887),o=g(5928),r=g(2774),h=g(2808),p=g(5442),v=g(1244),y=g(4110),M=t.__importStar(g(4438)),D=(t.__importStar(g(7901)),t.__importStar(g(3955)),t.__importStar(g(1244)),[{path:"",component:f.HomeComponent},{path:"mappinglanguage",component:d.MappingLanguageComponent},{path:"CapabilityStatement",component:s.CapabilityStatementComponent},{path:"igs",component:o.IgsComponent},{path:"settings",component:l.SettingsComponent},{path:"transform",component:h.TransformComponent},{path:"validate",component:p.ValidateComponent}]);function O(U){return new u.TranslateHttpLoader(U,"./assets/i18n/",".json")}ne.createTranslateLoader=O,ne.AppModule=(()=>{class U{static#e=this.\u0275fac=function(N){return new(N||U)};static#t=this.\u0275mod=M.\u0275\u0275defineNgModule({type:U,bootstrap:[b.AppComponent]});static#n=this.\u0275inj=M.\u0275\u0275defineInjector({providers:[{provide:r.HIGHLIGHT_OPTIONS,useValue:{coreLibraryLoader:()=>Promise.resolve().then(()=>t.__importStar(g(6653))),lineNumbersLoader:()=>Promise.resolve().then(()=>t.__importStar(g(2806))),languages:{json:()=>Promise.resolve().then(()=>t.__importStar(g(8028))),xml:()=>Promise.resolve().then(()=>t.__importStar(g(8133)))}}}],imports:[c.SharedModule,_.HttpClientModule,r.HighlightModule,C.RouterModule.forRoot(D,{useHash:!0}),E.TranslateModule.forRoot({loader:{provide:E.TranslateLoader,useFactory:O,deps:[_.HttpClient]}}),v.OAuthModule.forRoot(),y.NgxMatSelectSearchModule]})}return U})()},4010:(Te,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.CapabilityStatementComponent=void 0;const t=g(5215),C=(g(8414),t.__importDefault(g(6507)));g(740),g(9748);const E=g(6974),u=t.__importStar(g(4438)),b=t.__importStar(g(8414)),s=t.__importStar(g(177)),f=t.__importStar(g(9183)),d=t.__importStar(g(968));function l(h,p){1&h&&u.\u0275\u0275element(0,"mat-spinner")}function c(h,p){if(1&h&&u.\u0275\u0275element(0,"app-operation-result",4),2&h){const v=u.\u0275\u0275nextContext();u.\u0275\u0275property("operationResult",v.operationResult)}}ne.CapabilityStatementComponent=(()=>{class h{constructor(v){this.data=v,this.capabilityStatement=null,this.operationResult=null,this.loading=!0,this.client=v.getFhirClient()}ngAfterViewInit(){this.client.capabilityStatement().then(v=>{this.loading=!1,this.operationResult=null,this.editor=C.default.edit("code"),this.editor.setReadOnly(!0),this.editor.setValue(JSON.stringify(v,null,4),-1),this.editor.getSession().setMode("ace/mode/json"),this.editor.setTheme("ace/theme/textmate"),this.editor.setOptions({maxLines:1e4,tabSize:4,wrap:!0,useWorker:!1}),this.editor.resize(!0)}).catch(v=>{console.error(v),this.loading=!1,this.capabilityStatement=null,this.editor&&(this.editor.destroy(),this.editor.container.remove()),this.editor=null,this.operationResult=v.response?.data?E.OperationResult.fromOperationOutcome(v.response.data):E.OperationResult.fromMatchboxError(v.message)})}static#e=this.\u0275fac=function(y){return new(y||h)(u.\u0275\u0275directiveInject(b.FhirConfigService))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:h,selectors:[["app-capability-statement"]],decls:10,vars:3,consts:[["id","capability-statement",1,"white-block"],[4,"ngIf"],["id","code"],[3,"operationResult",4,"ngIf"],[3,"operationResult"]],template:function(y,M){1&y&&(u.\u0275\u0275elementStart(0,"div",0)(1,"h2"),u.\u0275\u0275text(2,"CapabilityStatement"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(3,"p"),u.\u0275\u0275text(4," CapabilityStatement of the server: "),u.\u0275\u0275elementStart(5,"code"),u.\u0275\u0275text(6),u.\u0275\u0275elementEnd()(),u.\u0275\u0275template(7,l,1,0,"mat-spinner",1),u.\u0275\u0275element(8,"div",2),u.\u0275\u0275template(9,c,1,1,"app-operation-result",3),u.\u0275\u0275elementEnd()),2&y&&(u.\u0275\u0275advance(6),u.\u0275\u0275textInterpolate(M.client.baseUrl),u.\u0275\u0275advance(),u.\u0275\u0275property("ngIf",M.loading),u.\u0275\u0275advance(2),u.\u0275\u0275property("ngIf",M.operationResult))},dependencies:[s.NgIf,f.MatProgressSpinner,d.OperationResultComponent]})}return h})()},8414:(Te,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.FhirConfigService=void 0;const t=g(5215),_=t.__importDefault(g(3833)),C=t.__importStar(g(4438));ne.FhirConfigService=(()=>{class u{constructor(){}changeFhirMicroService(s){localStorage.setItem("fhirMicroServer",s)}getFhirMicroService(){return localStorage.getItem("fhirMicroServer")}getFhirClient(){return new _.default({baseUrl:this.getFhirMicroService()})}static#e=this.\u0275fac=function(f){return new(f||u)};static#t=this.\u0275prov=C.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})()},7171:(Te,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.FhirPathService=void 0;const t=g(5215),_=g(7273),C=t.__importStar(g(4438));ne.FhirPathService=(()=>{class u{evaluate(s,f){return(0,_.evaluate)(s,f,null)}evaluateToString(s,f){const d=this.evaluate(s,f);return d&&d instanceof Array&&1===d.length?d[0]:null}getOauthUriToken(s){return this.evaluateToString(s,"rest.security.extension.where(url='http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris').extension.where(url='token').valueUri")}getOauthUriAuthorize(s){return this.evaluateToString(s,"rest.security.extension.where(url='http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris').extension.where(url='authorize').valueUri")}static#e=this.\u0275fac=function(f){return new(f||u)};static#t=this.\u0275prov=C.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})()},7824:(Te,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.HomeComponent=void 0;const t=g(5215),_=t.__importDefault(g(8330)),C=t.__importStar(g(4438)),E=t.__importStar(g(5596)),u=t.__importStar(g(9213)),b=t.__importStar(g(9115)),s=t.__importStar(g(7901));ne.HomeComponent=(()=>{class d{constructor(){this.version=_.default.version}static#e=this.\u0275fac=function(o){return new(o||d)};static#t=this.\u0275cmp=C.\u0275\u0275defineComponent({type:d,selectors:[["app-home"]],decls:31,vars:1,consts:[[1,"primary"],["mat-menu-item","","routerLink","/validate"],["mat-menu-item","","routerLink","/igs"],["mat-menu-item","","routerLink","/settings"],["href","https://fhirpath-lab.com/FhirPath","target","_blank"],["href","https://fhirpath-lab.com/FhirMapper2","target","_blank"],["href","https://www.ahdis.ch","rel","external nofollow noopener","target","_blank"]],template:function(o,r){1&o&&(C.\u0275\u0275elementStart(0,"mat-card",0)(1,"mat-card-content")(2,"button",1)(3,"mat-icon"),C.\u0275\u0275text(4,"rule"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(5,"span"),C.\u0275\u0275text(6,"Validate resource"),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(7,"button",2)(8,"mat-icon"),C.\u0275\u0275text(9,"info"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(10,"span"),C.\u0275\u0275text(11,"Installed IGs"),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(12,"button",3)(13,"mat-icon"),C.\u0275\u0275text(14,"settings"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(15,"span"),C.\u0275\u0275text(16,"Settings"),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(17,"p"),C.\u0275\u0275text(18,"Other tools:"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(19,"ul")(20,"li")(21,"a",4),C.\u0275\u0275text(22,"FHIRPath tester"),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(23,"li")(24,"a",5),C.\u0275\u0275text(25,"FHIR Mapper"),C.\u0275\u0275elementEnd()()()(),C.\u0275\u0275elementStart(26,"mat-card-footer")(27,"p"),C.\u0275\u0275text(28),C.\u0275\u0275elementStart(29,"a",6),C.\u0275\u0275text(30," contact"),C.\u0275\u0275elementEnd()()()()),2&o&&(C.\u0275\u0275advance(28),C.\u0275\u0275textInterpolate1(" matchbox version: ",r.version," | "))},dependencies:[E.MatCard,E.MatCardContent,E.MatCardFooter,u.MatIcon,b.MatMenuItem,s.RouterLink],styles:["mat-card.primary[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:20px}mat-card.primary[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;vertical-align:middle;color:#68c39a}mat-card.primary[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:30px 0 15px}mat-card.primary[_ngcontent-%COMP%] mat-card-footer[_ngcontent-%COMP%]{padding:0 1.5rem 1.5rem}"]})}return d})()},5928:(Te,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.IgsComponent=void 0;const t=g(5215),C=(g(8414),g(9417)),u=(g(7171),g(6974)),b=t.__importStar(g(4438)),s=t.__importStar(g(8414)),f=t.__importStar(g(7171)),d=t.__importStar(g(177)),l=t.__importStar(g(9417)),c=t.__importStar(g(2102)),o=t.__importStar(g(9631)),r=t.__importStar(g(9183)),h=t.__importStar(g(968));function p(D,O){if(1&D){const T=b.\u0275\u0275getCurrentView();b.\u0275\u0275elementStart(0,"tr",9),b.\u0275\u0275listener("click",function(){const S=b.\u0275\u0275restoreView(T).$implicit,R=b.\u0275\u0275nextContext();return b.\u0275\u0275resetView(R.selectRow(S))}),b.\u0275\u0275elementStart(1,"td"),b.\u0275\u0275text(2),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(3,"td",10),b.\u0275\u0275text(4),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(5,"td",10),b.\u0275\u0275text(6),b.\u0275\u0275elementEnd()()}if(2&D){const T=O.$implicit;b.\u0275\u0275advance(2),b.\u0275\u0275textInterpolate(T.packageId),b.\u0275\u0275advance(2),b.\u0275\u0275textInterpolate(T.version),b.\u0275\u0275advance(2),b.\u0275\u0275textInterpolate(T.title)}}function v(D,O){if(1&D){const T=b.\u0275\u0275getCurrentView();b.\u0275\u0275elementContainerStart(0),b.\u0275\u0275text(1,"\xa0 "),b.\u0275\u0275elementStart(2,"button",6),b.\u0275\u0275listener("click",function(){b.\u0275\u0275restoreView(T);const S=b.\u0275\u0275nextContext();return b.\u0275\u0275resetView(S.onUpdate())}),b.\u0275\u0275text(3,"Update"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementContainerEnd()}}function y(D,O){if(1&D){const T=b.\u0275\u0275getCurrentView();b.\u0275\u0275elementContainerStart(0),b.\u0275\u0275text(1,"\xa0 "),b.\u0275\u0275elementStart(2,"button",6),b.\u0275\u0275listener("click",function(){b.\u0275\u0275restoreView(T);const S=b.\u0275\u0275nextContext();return b.\u0275\u0275resetView(S.onDelete())}),b.\u0275\u0275text(3,"Delete"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementContainerEnd()}}function M(D,O){1&D&&(b.\u0275\u0275elementContainerStart(0),b.\u0275\u0275element(1,"mat-progress-spinner",11),b.\u0275\u0275elementContainerEnd())}function w(D,O){if(1&D&&b.\u0275\u0275element(0,"app-operation-result",14),2&D){const T=b.\u0275\u0275nextContext(2);b.\u0275\u0275property("operationResult",T.operationResult)}}function k(D,O){if(1&D&&(b.\u0275\u0275elementStart(0,"div",12)(1,"h2"),b.\u0275\u0275text(2,"Result of the last operation"),b.\u0275\u0275elementEnd(),b.\u0275\u0275template(3,w,1,1,"app-operation-result",13),b.\u0275\u0275elementEnd()),2&D){const T=b.\u0275\u0275nextContext();b.\u0275\u0275advance(3),b.\u0275\u0275property("ngIf",T.operationResult)}}ne.IgsComponent=(()=>{class D{constructor(T,U){this.data=T,this.fhirPathService=U,this.update=!1,this.operationResult=null,this.query={_sort:"title",_count:1e4},this.client=T.getFhirClient(),this.addPackageId=new C.UntypedFormControl("",[C.Validators.required,C.Validators.minLength(1)]),this.addVersion=new C.UntypedFormControl("current",[C.Validators.required,C.Validators.minLength(1)]),this.addUrl=new C.UntypedFormControl("url"),this.search()}search(){this.client.search({resourceType:"ImplementationGuide",searchParams:this.query}).then(T=>{this.igs=T.entry.map(S=>S.resource),this.selection=void 0,this.addPackageId.setValue(""),this.addVersion.setValue(""),this.addUrl.setValue("")}).catch(T=>{this.errorMessage="Error accessing FHIR server",this.operationResult=T.response?.data?u.OperationResult.fromOperationOutcome(T.response.data):u.OperationResult.fromMatchboxError(T.message)}),this.update=!1}getPackageUrl(T){return this.fhirPathService.evaluateToString(T,"extension.where(url='http://ahdis.ch/fhir/extension/packageUrl').valueUri")}selectRow(T){this.selection=T,this.addPackageId.setValue(this.selection.packageId),this.addUrl.setValue(this.getPackageUrl(T));let U=this.selection.version;U&&U.endsWith(" (last)")&&(U=U.substring(0,U.length-7)),this.addVersion.setValue(U)}onSubmit(){if(this.errorMessage=null,this.addPackageId.invalid||this.addVersion.invalid)return void(this.errorMessage="Please provide package name");let T=this.addPackageId.value.trim();T.indexOf("#")>0&&(T.substring(0,T.indexOf("#")-1),this.addVersion.setValue(T.substring(0,T.indexOf("#")+1))),this.addPackageId.setValue(T);const U=this.addVersion.value.trim();this.addVersion.setValue(U),this.update=!0,this.client.create({resourceType:"ImplementationGuide",body:{resourceType:"ImplementationGuide",name:T,version:U,packageId:T,url:this.addUrl.value},options:{headers:{Prefer:"return=OperationOutcome"}}}).then(S=>{this.errorMessage="Created Implementation Guide "+this.addPackageId.value,this.operationResult=u.OperationResult.fromOperationOutcome(S),this.search()}).catch(S=>{this.errorMessage="Error creating Implementation Guide "+this.addPackageId.value,this.operationResult=S.response?.data?u.OperationResult.fromOperationOutcome(S.response.data):u.OperationResult.fromMatchboxError(S.message),this.update=!1})}onUpdate(){this.errorMessage=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(T=>{this.errorMessage="Updated Implementation Guide "+this.selection.packageId,this.operationResult=u.OperationResult.fromOperationOutcome(T),this.search()}).catch(T=>{this.errorMessage="Error updating Implementation Guide "+this.selection.packageId,this.operationResult=T.response?.data?u.OperationResult.fromOperationOutcome(T.response.data):u.OperationResult.fromMatchboxError(T.message),this.update=!1})}onDelete(){this.errorMessage=null,this.update=!0,this.client.delete({resourceType:this.selection.resourceType,id:this.selection.id,options:{headers:{Prefer:"return=OperationOutcome","X-Cascade":"delete"}}}).then(T=>{this.errorMessage="Deleted Implementation Guide Resource "+this.selection.packageId,this.operationResult=u.OperationResult.fromOperationOutcome(T),this.search()}).catch(T=>{this.errorMessage="Error deleting Implementation Guide "+this.selection.packageId,this.operationResult=T.response?.data?u.OperationResult.fromOperationOutcome(T.response.data):u.OperationResult.fromMatchboxError(T.message),this.update=!1})}static#e=this.\u0275fac=function(U){return new(U||D)(b.\u0275\u0275directiveInject(s.FhirConfigService),b.\u0275\u0275directiveInject(f.FhirPathService))};static#t=this.\u0275cmp=b.\u0275\u0275defineComponent({type:D,selectors:[["app-igs"]],decls:40,vars:8,consts:[[1,"white-block","card-igs"],[3,"click",4,"ngFor","ngForOf"],[1,"white-block","Search","card-igs"],["matInput","",3,"formControl"],[2,"width","50vw"],["href","https://packages.fhir.org"],["type","submit",3,"click"],[4,"ngIf"],["class","white-block logs",4,"ngIf"],[3,"click"],[1,"secondary"],["mode","indeterminate"],[1,"white-block","logs"],[3,"operationResult",4,"ngIf"],[3,"operationResult"]],template:function(U,S){1&U&&(b.\u0275\u0275elementStart(0,"div",0)(1,"h2"),b.\u0275\u0275text(2,"ImplementationGuides installed on the server"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(3,"table")(4,"thead")(5,"tr")(6,"th"),b.\u0275\u0275text(7,"Package"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(8,"th"),b.\u0275\u0275text(9,"Version"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(10,"th"),b.\u0275\u0275text(11,"Title"),b.\u0275\u0275elementEnd()()(),b.\u0275\u0275elementStart(12,"tbody"),b.\u0275\u0275template(13,p,7,3,"tr",1),b.\u0275\u0275elementEnd()()(),b.\u0275\u0275elementStart(14,"div",2)(15,"h3"),b.\u0275\u0275text(16,"Install an ImplementationGuide"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(17,"mat-form-field")(18,"mat-label"),b.\u0275\u0275text(19,"PackageId"),b.\u0275\u0275elementEnd(),b.\u0275\u0275element(20,"input",3),b.\u0275\u0275elementEnd(),b.\u0275\u0275text(21," \xa0 "),b.\u0275\u0275elementStart(22,"mat-form-field")(23,"mat-label"),b.\u0275\u0275text(24,"Version"),b.\u0275\u0275elementEnd(),b.\u0275\u0275element(25,"input",3),b.\u0275\u0275elementEnd(),b.\u0275\u0275text(26," \xa0 "),b.\u0275\u0275elementStart(27,"mat-form-field",4)(28,"mat-label"),b.\u0275\u0275text(29,"Package url (optional, use only if not available through "),b.\u0275\u0275elementStart(30,"a",5),b.\u0275\u0275text(31,"packages.fhir.org"),b.\u0275\u0275elementEnd(),b.\u0275\u0275text(32,") "),b.\u0275\u0275elementEnd(),b.\u0275\u0275element(33,"input",3),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(34,"button",6),b.\u0275\u0275listener("click",function(){return S.onSubmit()}),b.\u0275\u0275text(35,"Upload"),b.\u0275\u0275elementEnd(),b.\u0275\u0275template(36,v,4,0,"ng-container",7)(37,y,4,0,"ng-container",7),b.\u0275\u0275elementEnd(),b.\u0275\u0275template(38,M,2,0,"ng-container",7)(39,k,4,1,"div",8)),2&U&&(b.\u0275\u0275advance(13),b.\u0275\u0275property("ngForOf",S.igs),b.\u0275\u0275advance(7),b.\u0275\u0275property("formControl",S.addPackageId),b.\u0275\u0275advance(5),b.\u0275\u0275property("formControl",S.addVersion),b.\u0275\u0275advance(8),b.\u0275\u0275property("formControl",S.addUrl),b.\u0275\u0275advance(3),b.\u0275\u0275property("ngIf",S.selection),b.\u0275\u0275advance(),b.\u0275\u0275property("ngIf",S.selection),b.\u0275\u0275advance(),b.\u0275\u0275property("ngIf",S.update),b.\u0275\u0275advance(),b.\u0275\u0275property("ngIf",S.errorMessage))},dependencies:[d.NgForOf,d.NgIf,l.DefaultValueAccessor,l.NgControlStatus,l.FormControlDirective,c.MatFormField,c.MatLabel,o.MatInput,r.MatProgressSpinner,h.OperationResultComponent],styles:[".secondary[_ngcontent-%COMP%]{color:#6b7280}table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:1px solid rgb(209,213,219);padding-bottom:1rem}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:1px solid rgb(229,231,235);padding-top:1rem;padding-bottom:1rem}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:hover{background:#eee}.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}"]})}return D})()},1536:(Te,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.MappingLanguageComponent=void 0;const t=g(5215),E=(g(4438),g(8414),g(9417)),u=g(2326),b=t.__importDefault(g(282)),s=t.__importStar(g(4438)),f=t.__importStar(g(8414)),d=t.__importStar(g(177)),l=t.__importStar(g(9417)),c=t.__importStar(g(5596)),o=t.__importStar(g(2102)),r=t.__importStar(g(9631));function h(k,I){if(1&k&&(s.\u0275\u0275elementStart(0,"li"),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&k){const D=I.$implicit;s.\u0275\u0275advance(),s.\u0275\u0275textInterpolate1(" ",D.diagnostics," ")}}function p(k,I){if(1&k&&(s.\u0275\u0275elementStart(0,"mat-error")(1,"ul"),s.\u0275\u0275template(2,h,2,1,"li",7),s.\u0275\u0275elementEnd()()),2&k){const D=s.\u0275\u0275nextContext();s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",D.operationOutcome.issue)}}function v(k,I){if(1&k&&(s.\u0275\u0275elementStart(0,"mat-hint"),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&k){const D=s.\u0275\u0275nextContext();s.\u0275\u0275advance(),s.\u0275\u0275textInterpolate1("Successfully created on server: ",D.structureMap.url," ")}}function y(k,I){if(1&k&&(s.\u0275\u0275elementStart(0,"li"),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&k){const D=I.$implicit;s.\u0275\u0275advance(),s.\u0275\u0275textInterpolate1(" ",D.diagnostics," ")}}function M(k,I){if(1&k&&(s.\u0275\u0275elementStart(0,"mat-error")(1,"ul"),s.\u0275\u0275template(2,y,2,1,"li",7),s.\u0275\u0275elementEnd()()),2&k){const D=s.\u0275\u0275nextContext();s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",D.operationOutcomeTransformed.issue)}}class w{static#e=this.log=(0,b.default)("app:");constructor(I,D){this.cd=I,this.data=D,this.client=D.getFhirClient(),this.source=new E.UntypedFormControl,this.map=new E.UntypedFormControl,this.structureMap=null,this.map.valueChanges.pipe((0,u.debounceTime)(1e3),(0,u.distinctUntilChanged)()).subscribe(O=>{w.log("create StructureMap"),this.client.create({resourceType:"StructureMap",body:O,headers:{accept:"application/fhir+json","content-type":"text/fhir-mapping"}}).then(T=>{this.operationOutcome=null,this.structureMap=T,this.transform()}).catch(T=>{this.structureMap=null,this.operationOutcome=T.response.data})}),this.source.valueChanges.pipe((0,u.debounceTime)(1e3),(0,u.distinctUntilChanged)()).subscribe(O=>this.transform())}transform(){w.log("transform Source");let I=JSON.parse(this.source.value);null!=this.structureMap&&this.client.operation({name:"transform?source="+encodeURIComponent(this.structureMap.url),resourceType:"StructureMap",input:I}).then(D=>{this.operationOutcomeTransformed=null,this.transformed=D}).catch(D=>{this.transformed=null,this.operationOutcomeTransformed=D.response.data})}ngOnInit(){}fileSource(I){const D=new FileReader;if(I.target.files&&I.target.files.length){const[O]=I.target.files;D.readAsText(O),D.onload=()=>{this.source.setValue(D.result),this.cd.markForCheck()}}}fileChange(I){const D=new FileReader;if(I.target.files&&I.target.files.length){const[O]=I.target.files;D.readAsText(O),D.onload=()=>{this.map.setValue(D.result),this.cd.markForCheck()}}}static#t=this.\u0275fac=function(D){return new(D||w)(s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(f.FhirConfigService))};static#n=this.\u0275cmp=s.\u0275\u0275defineComponent({type:w,selectors:[["app-mapping-language"]],decls:31,vars:8,consts:[[1,"card-maps"],[1,"fixtextarea"],["accept",".json","placeholder","Upload source","type","file",3,"change"],["cols","400","matNativeControl","","rows","15",3,"formControl"],["accept",".map","placeholder","Upload map","type","file",3,"change"],["cols","400","matNativeControl","","rows","20",3,"formControl"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(D,O){1&D&&(s.\u0275\u0275elementStart(0,"mat-card",0)(1,"mat-card-content")(2,"mat-card-header")(3,"mat-card-title"),s.\u0275\u0275text(4,"Source"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(5,"mat-form-field",1)(6,"mat-card-actions")(7,"input",2),s.\u0275\u0275listener("change",function(U){return O.fileSource(U)}),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(8,"textarea",3),s.\u0275\u0275text(9," "),s.\u0275\u0275elementEnd()()()(),s.\u0275\u0275elementStart(10,"mat-card",0)(11,"mat-card-content")(12,"mat-card-header")(13,"mat-card-title"),s.\u0275\u0275text(14,"FHIR Mapping Language map"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(15,"mat-form-field",1)(16,"mat-card-actions")(17,"input",4),s.\u0275\u0275listener("change",function(U){return O.fileChange(U)}),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(18,"textarea",5),s.\u0275\u0275text(19," "),s.\u0275\u0275elementEnd()(),s.\u0275\u0275template(20,p,3,1,"mat-error",6)(21,v,2,1,"mat-hint",6),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(22,"mat-card",0)(23,"mat-card-content")(24,"mat-card-header")(25,"mat-card-title"),s.\u0275\u0275text(26,"Transformed"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275template(27,M,3,1,"mat-error",6),s.\u0275\u0275elementStart(28,"pre"),s.\u0275\u0275text(29),s.\u0275\u0275pipe(30,"json"),s.\u0275\u0275elementEnd()()()),2&D&&(s.\u0275\u0275advance(8),s.\u0275\u0275property("formControl",O.source),s.\u0275\u0275advance(10),s.\u0275\u0275property("formControl",O.map),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngIf",O.operationOutcome),s.\u0275\u0275advance(),s.\u0275\u0275property("ngIf",O.structureMap),s.\u0275\u0275advance(6),s.\u0275\u0275property("ngIf",O.operationOutcomeTransformed),s.\u0275\u0275advance(2),s.\u0275\u0275textInterpolate(s.\u0275\u0275pipeBind1(30,6,O.transformed)))},dependencies:[d.NgForOf,d.NgIf,l.DefaultValueAccessor,l.NgControlStatus,l.FormControlDirective,c.MatCard,c.MatCardActions,c.MatCardContent,c.MatCardHeader,c.MatCardTitle,o.MatFormField,o.MatHint,o.MatError,r.MatInput,d.JsonPipe],styles:[".fixtextarea[_ngcontent-%COMP%]{display:inline}.card-maps[_ngcontent-%COMP%]{margin-bottom:10px}"]})}ne.MappingLanguageComponent=w},968:(Te,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.OperationResultComponent=void 0;const t=g(5215),_=g(4438),u=(g(345),g(6974),t.__importStar(g(4438))),b=t.__importStar(g(345)),s=t.__importStar(g(177)),f=p=>({clickable:p});function d(p,v){if(1&p&&(u.\u0275\u0275elementStart(0,"li",8),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&p){const y=v.$implicit;u.\u0275\u0275advance(),u.\u0275\u0275textInterpolate1(" ",y," ")}}function l(p,v){if(1&p&&(u.\u0275\u0275elementStart(0,"ol"),u.\u0275\u0275template(1,d,2,1,"li",7),u.\u0275\u0275elementEnd()),2&p){const y=u.\u0275\u0275nextContext().$implicit;u.\u0275\u0275advance(),u.\u0275\u0275property("ngForOf",y.sliceInfo)}}function c(p,v){if(1&p){const y=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"li",3),u.\u0275\u0275listener("click",function(){const w=u.\u0275\u0275restoreView(y).$implicit,k=u.\u0275\u0275nextContext(2);return u.\u0275\u0275resetView(k.select.emit(w))}),u.\u0275\u0275elementStart(1,"span",4),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd(),u.\u0275\u0275element(3,"span",5)(4,"br"),u.\u0275\u0275elementStart(5,"p"),u.\u0275\u0275text(6),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(7,l,2,1,"ol",6),u.\u0275\u0275elementEnd()}if(2&p){const y=v.$implicit,M=u.\u0275\u0275nextContext(2);u.\u0275\u0275classMapInterpolate1("issue ",y.severity,""),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(y.severity),u.\u0275\u0275advance(),u.\u0275\u0275property("innerHtml",M.getTemplateHeaderLine(y),u.\u0275\u0275sanitizeHtml),u.\u0275\u0275advance(3),u.\u0275\u0275textInterpolate(y.text),u.\u0275\u0275advance(),u.\u0275\u0275property("ngIf",y.sliceInfo.length)}}function o(p,v){if(1&p&&(u.\u0275\u0275elementStart(0,"ul",1),u.\u0275\u0275template(1,c,8,7,"li",2),u.\u0275\u0275elementEnd()),2&p){const y=u.\u0275\u0275nextContext();u.\u0275\u0275property("ngClass",u.\u0275\u0275pureFunction1(2,f,y.reactsToClick)),u.\u0275\u0275advance(),u.\u0275\u0275property("ngForOf",y.result.issues)}}const r=["fatal","error","warning","information"];ne.OperationResultComponent=(()=>{class p{set operationResult(y){this.result=y,this.result&&this.result.issues.length&&this.result.issues.sort(p.sortIssues)}constructor(y){this.sanitized=y,this.select=new _.EventEmitter,this.reactsToClick=!1}ngOnInit(){this.reactsToClick=this.select.observed}static sortIssues(y,M){const w=r.indexOf(y.severity)-r.indexOf(M.severity);return 0!==w?w:(y.line??0)-(M.line??0)}getTemplateHeaderLine(y){let M="";y.code&&(M+=` [${y.code}]`),M+=": ";const w=[];return y.line&&w.push(`line ${y.line}`),y.col&&w.push(`column ${y.col}`),y.expression&&w.push(`in ${y.expression}`),w.length&&(M+=w.join(", ")+":"),this.sanitized.bypassSecurityTrustHtml(M)}static#e=this.\u0275fac=function(M){return new(M||p)(u.\u0275\u0275directiveInject(b.DomSanitizer))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:p,selectors:[["app-operation-result"]],inputs:{operationResult:"operationResult"},outputs:{select:"select"},decls:1,vars:1,consts:[[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"class","click",4,"ngFor","ngForOf"],[3,"click"],[1,"severity"],[3,"innerHtml"],[4,"ngIf"],["class","slice",4,"ngFor","ngForOf"],[1,"slice"]],template:function(M,w){1&M&&u.\u0275\u0275template(0,o,2,4,"ul",0),2&M&&u.\u0275\u0275property("ngIf",w.result)},dependencies:[s.NgClass,s.NgForOf,s.NgIf],styles:[".card-maps[_ngcontent-%COMP%]{margin-bottom:10px}.app-ace-editor[_ngcontent-%COMP%]{border:2px solid #f8f9fa;box-shadow:0 .5rem 1rem #00000026}ul[_ngcontent-%COMP%]{list-style:none;padding:0}.clickable[_ngcontent-%COMP%] .issue[_ngcontent-%COMP%]{cursor:pointer}.issue[_ngcontent-%COMP%]{border:1px solid #e1e1e1;background:#fbfbfb;border-radius:5px;padding:5px 8px;--color: #000;border-left:4px solid var(--color);margin-bottom:4px}.issue[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:2px 0 0}.issue[_ngcontent-%COMP%] .severity[_ngcontent-%COMP%]{color:var(--color);font-weight:600}.issue.fatal[_ngcontent-%COMP%], .issue.error[_ngcontent-%COMP%]{--color: #d9534f}.issue.warning[_ngcontent-%COMP%]{--color: #f0ad4e}.issue.information[_ngcontent-%COMP%]{--color: #4ca8de}[_nghost-%COMP%] .issue .code{font-size:.9em;color:#636363}[_nghost-%COMP%] .issue>span>code{background:#e1e1e1;border-radius:4px;padding:2px 4px;font-family:courier,monospace} .ace-highlight-fatal{position:absolute;background:#c30;opacity:.4} .ace-highlight-error{position:absolute;background:#f96;opacity:.4} .ace-highlight-warning{position:absolute;background:#fc0;opacity:.4} .ace-highlight-information{position:absolute;background:#9c3;opacity:.4}"]})}return p})()},728:(Te,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.SettingsComponent=void 0;const t=g(5215),_=t.__importDefault(g(8330)),C=t.__importStar(g(4438));ne.SettingsComponent=(()=>{class u{constructor(){this.version=_.default.version}static#e=this.\u0275fac=function(f){return new(f||u)};static#t=this.\u0275cmp=C.\u0275\u0275defineComponent({type:u,selectors:[["app-settings"]],decls:12,vars:1,consts:[["id","settings",1,"white-block"],["href","https://github.com/ahdis/matchbox","rel","external nofollow noopener","target","_blank"]],template:function(f,d){1&f&&(C.\u0275\u0275elementStart(0,"div",0)(1,"h2"),C.\u0275\u0275text(2,"Matchbox settings"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(3,"h5"),C.\u0275\u0275text(4),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(5,"p")(6,"em"),C.\u0275\u0275text(7,"There are no configurable settings here right now"),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(8,"p"),C.\u0275\u0275text(9," Source code: "),C.\u0275\u0275elementStart(10,"a",1),C.\u0275\u0275text(11,"github.com/ahdis/matchbox"),C.\u0275\u0275elementEnd()()()),2&f&&(C.\u0275\u0275advance(4),C.\u0275\u0275textInterpolate1("Version ",d.version,""))}})}return u})()},3887:(Te,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.SharedModule=void 0;const t=g(5215),_=g(177),C=g(9417),E=g(345),u=g(850),b=g(8834),s=g(5596),f=g(2765),d=g(6600),l=g(5084),c=g(1997),o=g(2102),r=g(9213),h=g(9631),p=g(9115),v=g(6695),y=g(5951),M=g(2798),w=g(450),k=g(3881),I=g(9159),D=g(6850),O=g(5911),T=g(3955),U=g(9183),S=t.__importStar(g(4438)),R=[_.CommonModule,E.BrowserModule,C.FormsModule,C.ReactiveFormsModule,T.TranslateModule,u.MatAutocompleteModule,b.MatButtonModule,s.MatCardModule,f.MatCheckboxModule,c.MatDividerModule,o.MatFormFieldModule,r.MatIconModule,h.MatInputModule,p.MatMenuModule,v.MatPaginatorModule,M.MatSelectModule,k.MatSliderModule,w.MatSlideToggleModule,I.MatTableModule,O.MatToolbarModule,D.MatTabsModule,l.MatDatepickerModule,d.MatNativeDateModule,y.MatRadioModule,U.MatProgressSpinnerModule];ne.SharedModule=(()=>{class F{static#e=this.\u0275fac=function(ie){return new(ie||F)};static#t=this.\u0275mod=S.\u0275\u0275defineNgModule({type:F});static#n=this.\u0275inj=S.\u0275\u0275defineInjector({imports:[R,_.CommonModule,E.BrowserModule,C.FormsModule,C.ReactiveFormsModule,T.TranslateModule,u.MatAutocompleteModule,b.MatButtonModule,s.MatCardModule,f.MatCheckboxModule,c.MatDividerModule,o.MatFormFieldModule,r.MatIconModule,h.MatInputModule,p.MatMenuModule,v.MatPaginatorModule,M.MatSelectModule,k.MatSliderModule,w.MatSlideToggleModule,I.MatTableModule,O.MatToolbarModule,D.MatTabsModule,l.MatDatepickerModule,d.MatNativeDateModule,y.MatRadioModule,U.MatProgressSpinnerModule]})}return F})()},2808:(Te,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.TransformComponent=void 0;const t=g(5215),E=(g(4438),g(8414),g(9417)),u=g(2326),b=t.__importStar(g(4438)),s=t.__importStar(g(8414)),f=t.__importStar(g(177)),d=t.__importStar(g(9417)),l=t.__importStar(g(6600)),c=t.__importStar(g(5596)),o=t.__importStar(g(2102)),r=t.__importStar(g(2798)),h=t.__importStar(g(2774)),p=t.__importStar(g(1808));function v(k,I){if(1&k&&(b.\u0275\u0275elementStart(0,"mat-option",7),b.\u0275\u0275text(1),b.\u0275\u0275elementEnd()),2&k){const D=I.$implicit;b.\u0275\u0275propertyInterpolate("value",D.url),b.\u0275\u0275advance(),b.\u0275\u0275textInterpolate1("",D.name," ")}}function y(k,I){if(1&k&&(b.\u0275\u0275elementStart(0,"li"),b.\u0275\u0275text(1),b.\u0275\u0275elementEnd()),2&k){const D=I.$implicit;b.\u0275\u0275advance(),b.\u0275\u0275textInterpolate1(" ",D.diagnostics," ")}}function M(k,I){if(1&k&&(b.\u0275\u0275elementStart(0,"mat-error")(1,"ul"),b.\u0275\u0275template(2,y,2,1,"li",8),b.\u0275\u0275elementEnd()()),2&k){const D=b.\u0275\u0275nextContext();b.\u0275\u0275advance(2),b.\u0275\u0275property("ngForOf",D.operationOutcomeTransformed.issue)}}ne.TransformComponent=(()=>{class k{constructor(D,O){this.data=D,this.cd=O,this.query={_summary:"true",_sort:"name"},this.panelOpenState=!1,this.client=D.getFhirClient(),this.client.search({resourceType:"StructureMap",searchParams:this.query}).then(T=>(this.setMaps(T),T)),this.selectedMap=new E.UntypedFormControl,this.selectedMap.valueChanges.pipe((0,u.debounceTime)(400),(0,u.distinctUntilChanged)()).subscribe(T=>{this.selectedUrl=T,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(D=>{this.operationOutcomeTransformed=null,this.transformed=D}).catch(D=>{this.transformed=null,this.operationOutcomeTransformed=D.response.data})}getSource(){return this.source}getMapped(){return JSON.stringify(this.transformed,null,2)}setMaps(D){this.structureMaps=D.entry.map(O=>O.resource)}ngOnInit(){}addFile(D){this.transformed=null,("application/json"===D.contentType||D.name.endsWith(".json"))&&(this.mimeType="application/fhir+json"),("application/xml"===D.contentType||D.name.endsWith(".xml"))&&(this.mimeType="application/fhir+xml");const O=new FileReader;O.readAsText(D.blob),O.onload=()=>{this.source=O.result}}static#e=this.\u0275fac=function(O){return new(O||k)(b.\u0275\u0275directiveInject(s.FhirConfigService),b.\u0275\u0275directiveInject(b.ChangeDetectorRef))};static#t=this.\u0275cmp=b.\u0275\u0275defineComponent({type:k,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(O,T){1&O&&(b.\u0275\u0275elementStart(0,"mat-card",0)(1,"mat-card-content")(2,"mat-card-header")(3,"mat-card-title"),b.\u0275\u0275text(4),b.\u0275\u0275elementEnd()(),b.\u0275\u0275elementStart(5,"div"),b.\u0275\u0275text(6,"Resource"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(7,"app-upload",1),b.\u0275\u0275listener("addFiles",function(S){return T.addFile(S)}),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(8,"pre"),b.\u0275\u0275element(9,"code",2),b.\u0275\u0275elementEnd()()(),b.\u0275\u0275elementStart(10,"mat-card",0)(11,"mat-form-field",3)(12,"mat-label"),b.\u0275\u0275text(13,"Map for transforming"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(14,"mat-select",4),b.\u0275\u0275template(15,v,2,2,"mat-option",5),b.\u0275\u0275elementEnd()()(),b.\u0275\u0275elementStart(16,"mat-card",0)(17,"mat-card-content")(18,"mat-card-header")(19,"mat-card-title"),b.\u0275\u0275text(20,"Transformed"),b.\u0275\u0275elementEnd()(),b.\u0275\u0275template(21,M,3,1,"mat-error",6),b.\u0275\u0275elementStart(22,"pre"),b.\u0275\u0275element(23,"code",2),b.\u0275\u0275elementEnd()()()),2&O&&(b.\u0275\u0275advance(4),b.\u0275\u0275textInterpolate(T.client.baseUrl),b.\u0275\u0275advance(5),b.\u0275\u0275property("highlight",T.getSource())("lineNumbers",!0),b.\u0275\u0275advance(5),b.\u0275\u0275property("formControl",T.selectedMap),b.\u0275\u0275advance(),b.\u0275\u0275property("ngForOf",T.structureMaps),b.\u0275\u0275advance(6),b.\u0275\u0275property("ngIf",T.operationOutcomeTransformed),b.\u0275\u0275advance(2),b.\u0275\u0275property("highlight",T.getMapped())("lineNumbers",!0))},dependencies:[f.NgForOf,f.NgIf,d.NgControlStatus,d.FormControlDirective,l.MatOption,c.MatCard,c.MatCardContent,c.MatCardHeader,c.MatCardTitle,o.MatFormField,o.MatLabel,o.MatError,r.MatSelect,h.Highlight,p.UploadComponent],styles:[".card-maps[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return k})()},1808:(Te,ne,g)=>{"use strict";var t=g(9293).default;Object.defineProperty(ne,"__esModule",{value:!0}),ne.UploadComponent=void 0;const _=g(5215),C=g(4438),E=_.__importStar(g(4438)),u=_.__importStar(g(8834)),b=_.__importStar(g(9213));ne.UploadComponent=(()=>{class f{constructor(){this.addFiles=new C.EventEmitter,this.dragCounter=0}checkStatus(l){if(!l.ok)throw new Error(`HTTP ${l.status} - ${l.statusText}`);return l}onDrop(l){l.preventDefault(),this.dragCounter=0;const c=l.target.files||l.dataTransfer.items;if(c)for(let r=0;r0))},dependencies:[u.MatButton,b.MatIcon],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})}return f})()},6974:(Te,ne)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.Issue=ne.OperationResult=void 0;class g{constructor(C,E){this.operationOutcome=E,this.issues=C??[]}static fromOperationOutcome(C){const E=C.issue?.map(u=>t.fromOoIssue(u));return new g(E,C)}static fromMatchboxError(C){const E=new g;return E.issues.push(new t("fatal","matchbox",C,void 0,void 0,void 0,void 0)),E}}ne.OperationResult=g;class t{constructor(C,E,u,b,s,f,d){this.sliceInfo=[],this.severity=C,this.code=E,this.text=u,this.expression=b,this.line=s,this.col=f,this.sliceInfo=d??[]}static fromOoIssue(C){let E;C.expression&&C.expression.length?E=C.expression[0]:C.location&&C.location.length&&(E=C.location[0]);const u=C.diagnostics?.indexOf("Slice info: 1.)");let b,s=null;return u>=0?(b=C.diagnostics.substring(0,u).trimEnd(),s=C.diagnostics.substring(u+15).trimStart().split(/\d+[.][)]/)):b=C.diagnostics,new t(C.severity,C.code,b,E,t.getLineNo(C),t.getColNo(C),s)}static getLineNo(C){const E=t.getExtensionIntValue(C,"http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-line");return E&&E>0?E:void 0}static getColNo(C){const E=t.getExtensionIntValue(C,"http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-col");return E&&E>0?E:void 0}static getExtensionIntValue(C,E){if(C.extension)for(const u of C.extension)if(u.url===E)return u.valueInteger}}ne.Issue=t},6388:(Te,ne)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.StructureDefinition=void 0,ne.StructureDefinition=class g{}},5442:(Te,ne,g)=>{"use strict";var t=g(9293).default;Object.defineProperty(ne,"__esModule",{value:!0}),ne.ValidateComponent=void 0;const _=g(5215),u=(g(4438),g(8414),_.__importDefault(g(994))),b=_.__importDefault(g(882)),s=_.__importDefault(g(6507)),f=g(8087),d=g(2248),l=g(6974),c=g(9417),o=g(6388),r=_.__importStar(g(4438)),h=_.__importStar(g(8414)),p=_.__importStar(g(177)),v=_.__importStar(g(9417)),y=_.__importStar(g(6600)),M=_.__importStar(g(8834)),w=_.__importStar(g(5596)),k=_.__importStar(g(2102)),I=_.__importStar(g(9213)),D=_.__importStar(g(9631)),O=_.__importStar(g(9115)),T=_.__importStar(g(2798)),U=_.__importStar(g(9183)),S=_.__importStar(g(4110)),R=_.__importStar(g(968)),N=_.__importStar(g(1808)),A=Ie=>({selected:Ie});function F(Ie,rt){if(1&Ie&&(r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275elementStart(1,"span"),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(3," (from "),r.\u0275\u0275elementStart(4,"em"),r.\u0275\u0275text(5),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(6,") "),r.\u0275\u0275elementContainerEnd()),2&Ie){const Ee=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate(Ee.currentResource.resourceType),r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate(Ee.currentResource.filename)}}function Y(Ie,rt){1&Ie&&(r.\u0275\u0275elementStart(0,"em"),r.\u0275\u0275text(1,"none"),r.\u0275\u0275elementEnd())}function ee(Ie,rt){if(1&Ie&&(r.\u0275\u0275elementStart(0,"mat-select-trigger")(1,"span",23)(2,"span",24),r.\u0275\u0275text(3),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(4,"span",25),r.\u0275\u0275text(5),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(6,"span",26)(7,"span",27),r.\u0275\u0275text(8),r.\u0275\u0275elementEnd()()()),2&Ie){const Ee=rt.ngIf;r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate2("",Ee.igId,"#",Ee.igVersion,""),r.\u0275\u0275advance(),r.\u0275\u0275property("title",Ee.title),r.\u0275\u0275advance(),r.\u0275\u0275textInterpolate(Ee.title),r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate(Ee.canonical)}}function ie(Ie,rt){if(1&Ie&&(r.\u0275\u0275elementStart(0,"mat-option",20)(1,"span",23)(2,"span",24),r.\u0275\u0275text(3),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(4,"span",25),r.\u0275\u0275text(5),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(6,"span",26)(7,"span",27),r.\u0275\u0275text(8),r.\u0275\u0275elementEnd()()()),2&Ie){const Ee=rt.$implicit;r.\u0275\u0275property("value",Ee.canonical),r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate2("",Ee.igId,"#",Ee.igVersion,""),r.\u0275\u0275advance(),r.\u0275\u0275property("title",Ee.title),r.\u0275\u0275advance(),r.\u0275\u0275textInterpolate(Ee.title),r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate(Ee.canonical)}}function $(Ie,rt){1&Ie&&(r.\u0275\u0275elementStart(0,"mat-error"),r.\u0275\u0275text(1,"Please choose a profile"),r.\u0275\u0275elementEnd())}function j(Ie,rt){if(1&Ie&&(r.\u0275\u0275elementStart(0,"mat-option",20),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Ie){const Ee=rt.$implicit;r.\u0275\u0275property("value",Ee),r.\u0275\u0275advance(),r.\u0275\u0275textInterpolate1(" ",Ee," ")}}function G(Ie,rt){if(1&Ie&&(r.\u0275\u0275elementStart(0,"p",28)(1,"mat-icon"),r.\u0275\u0275text(2,"report"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(3),r.\u0275\u0275elementEnd()),2&Ie){const Ee=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate1(" Error: ",Ee.errorMessage,"")}}function V(Ie,rt){if(1&Ie){const Ee=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275elementStart(1,"app-upload",13),r.\u0275\u0275listener("addFiles",function(Se){r.\u0275\u0275restoreView(Ee);const Q=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(Q.addFile(Se))}),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(2,"p",14),r.\u0275\u0275text(3," Current resource loaded: "),r.\u0275\u0275template(4,F,7,2,"ng-container",3)(5,Y,2,0,"em",3),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div",15)(7,"mat-form-field")(8,"mat-label"),r.\u0275\u0275text(9,"Validation profile (required)"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(10,"mat-select",16),r.\u0275\u0275twoWayListener("ngModelChange",function(Se){r.\u0275\u0275restoreView(Ee);const Q=r.\u0275\u0275nextContext();return r.\u0275\u0275twoWayBindingSet(Q.selectedProfile,Se)||(Q.selectedProfile=Se),r.\u0275\u0275resetView(Se)}),r.\u0275\u0275template(11,ee,9,5,"mat-select-trigger",3),r.\u0275\u0275elementStart(12,"mat-option")(13,"ngx-mat-select-search",17),r.\u0275\u0275twoWayListener("ngModelChange",function(Se){r.\u0275\u0275restoreView(Ee);const Q=r.\u0275\u0275nextContext();return r.\u0275\u0275twoWayBindingSet(Q.profileFilter,Se)||(Q.profileFilter=Se),r.\u0275\u0275resetView(Se)}),r.\u0275\u0275listener("ngModelChange",function(){r.\u0275\u0275restoreView(Ee);const Se=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(Se.updateProfileFilter())}),r.\u0275\u0275elementEnd()(),r.\u0275\u0275template(14,ie,9,6,"mat-option",18),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(15,$,2,0,"mat-error",3),r.\u0275\u0275elementStart(16,"mat-hint"),r.\u0275\u0275text(17,"A profile is required to validate against."),r.\u0275\u0275elementEnd()()(),r.\u0275\u0275elementStart(18,"div",15)(19,"mat-form-field")(20,"mat-label"),r.\u0275\u0275text(21,"Validation IG"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(22,"mat-select",19),r.\u0275\u0275twoWayListener("ngModelChange",function(Se){r.\u0275\u0275restoreView(Ee);const Q=r.\u0275\u0275nextContext();return r.\u0275\u0275twoWayBindingSet(Q.selectedIg,Se)||(Q.selectedIg=Se),r.\u0275\u0275resetView(Se)}),r.\u0275\u0275elementStart(23,"mat-option",20)(24,"em"),r.\u0275\u0275text(25,"Automatic selection"),r.\u0275\u0275elementEnd()(),r.\u0275\u0275template(26,j,2,2,"mat-option",18),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(27,"mat-hint"),r.\u0275\u0275text(28,"A specific IG version may be specified."),r.\u0275\u0275elementEnd()()(),r.\u0275\u0275elementStart(29,"button",21),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(Ee);const Se=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(Se.onValidate())}),r.\u0275\u0275text(30,"Validate"),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(31,G,4,1,"p",22),r.\u0275\u0275elementContainerEnd()}if(2&Ie){const Ee=r.\u0275\u0275nextContext();r.\u0275\u0275advance(4),r.\u0275\u0275property("ngIf",Ee.currentResource),r.\u0275\u0275advance(),r.\u0275\u0275property("ngIf",!Ee.currentResource),r.\u0275\u0275advance(5),r.\u0275\u0275twoWayProperty("ngModel",Ee.selectedProfile),r.\u0275\u0275advance(),r.\u0275\u0275property("ngIf",Ee.supportedProfiles.get(Ee.selectedProfile)),r.\u0275\u0275advance(2),r.\u0275\u0275twoWayProperty("ngModel",Ee.profileFilter),r.\u0275\u0275advance(),r.\u0275\u0275property("ngForOf",Ee.filteredProfiles),r.\u0275\u0275advance(),r.\u0275\u0275property("ngIf",Ee.profileControl.hasError("required")),r.\u0275\u0275advance(7),r.\u0275\u0275twoWayProperty("ngModel",Ee.selectedIg),r.\u0275\u0275advance(),r.\u0275\u0275property("value",Ee.AUTO_IG_SELECTION),r.\u0275\u0275advance(3),r.\u0275\u0275property("ngForOf",Ee.installedIgs),r.\u0275\u0275advance(5),r.\u0275\u0275property("ngIf",Ee.errorMessage)}}function W(Ie,rt){if(1&Ie&&(r.\u0275\u0275elementStart(0,"div",15)(1,"mat-form-field",30)(2,"mat-label"),r.\u0275\u0275text(3),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(4,"input",31),r.\u0275\u0275elementEnd()()),2&Ie){const Ee=rt.$implicit;r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate(Ee.param.name),r.\u0275\u0275advance(),r.\u0275\u0275property("formControl",Ee.formControl)}}function K(Ie,rt){if(1&Ie&&(r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275template(1,W,5,2,"div",29),r.\u0275\u0275elementContainerEnd()),2&Ie){const Ee=r.\u0275\u0275nextContext();r.\u0275\u0275advance(),r.\u0275\u0275property("ngForOf",Ee.validatorSettings)}}function ce(Ie,rt){1&Ie&&r.\u0275\u0275element(0,"mat-spinner",37)}function ue(Ie,rt){if(1&Ie&&(r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275elementStart(1,"mat-icon",38),r.\u0275\u0275text(2,"error"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(3),r.\u0275\u0275element(4,"br"),r.\u0275\u0275elementStart(5,"mat-icon",39),r.\u0275\u0275text(6,"warning"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(7),r.\u0275\u0275element(8,"br"),r.\u0275\u0275elementStart(9,"mat-icon",40),r.\u0275\u0275text(10,"info"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(11),r.\u0275\u0275elementContainerEnd()),2&Ie){const Ee=r.\u0275\u0275nextContext().$implicit;r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate(Ee.result?Ee.getErrors():"-"),r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate(Ee.result?Ee.getWarnings():"-"),r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate1("",Ee.result?Ee.getInfos():"-"," ")}}function ve(Ie,rt){if(1&Ie){const Ee=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"tr",32),r.\u0275\u0275listener("click",function(){const Se=r.\u0275\u0275restoreView(Ee).$implicit,Q=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(Q.show(Se))}),r.\u0275\u0275elementStart(1,"td",33),r.\u0275\u0275text(2),r.\u0275\u0275element(3,"br"),r.\u0275\u0275elementStart(4,"time"),r.\u0275\u0275text(5),r.\u0275\u0275pipe(6,"date"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(7,"at"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"td",33),r.\u0275\u0275text(9),r.\u0275\u0275element(10,"br"),r.\u0275\u0275text(11),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(12,"td",34),r.\u0275\u0275template(13,ce,1,0,"mat-spinner",11)(14,ue,12,3,"ng-container",3),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(15,"td",35)(16,"mat-icon",36),r.\u0275\u0275listener("click",function(){const Se=r.\u0275\u0275restoreView(Ee).$implicit,Q=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(Q.removeEntryFromHistory(Se))}),r.\u0275\u0275text(17,"delete"),r.\u0275\u0275elementEnd()()()}if(2&Ie){const Ee=rt.$implicit,be=r.\u0275\u0275nextContext();r.\u0275\u0275property("ngClass",r.\u0275\u0275pureFunction1(10,A,Ee===be.selectedEntry)),r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate1(" ",Ee.filename,""),r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate(r.\u0275\u0275pipeBind2(6,7,Ee.date,"HH:mm:ss")),r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate1(" ",Ee.selectedProfile,""),r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate1(" ",Ee.ig," "),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngIf",Ee.loading),r.\u0275\u0275advance(),r.\u0275\u0275property("ngIf",!Ee.loading)}}function Ye(Ie,rt){if(1&Ie&&(r.\u0275\u0275elementStart(0,"dl")(1,"dt"),r.\u0275\u0275text(2,"Filename"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(3,"dd"),r.\u0275\u0275text(4),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(5,"dt"),r.\u0275\u0275text(6,"Profile"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(7,"dd"),r.\u0275\u0275text(8),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(9,"dt"),r.\u0275\u0275text(10,"IG"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(11,"dd"),r.\u0275\u0275text(12),r.\u0275\u0275elementEnd()()),2&Ie){const Ee=r.\u0275\u0275nextContext();r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate(Ee.selectedEntry.filename),r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate(Ee.selectedEntry.selectedProfile),r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate(Ee.selectedEntry.ig)}}function pt(Ie,rt){if(1&Ie){const Ee=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"app-operation-result",41),r.\u0275\u0275listener("select",function(Se){r.\u0275\u0275restoreView(Ee);const Q=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(Q.highlightIssue(Se))}),r.\u0275\u0275elementEnd()}if(2&Ie){const Ee=r.\u0275\u0275nextContext();r.\u0275\u0275property("operationResult",Ee.selectedEntry.result)}}function ct(Ie,rt){1&Ie&&r.\u0275\u0275element(0,"mat-spinner",37)}ne.ValidateComponent=(()=>{class Ie{constructor(Ee,be){this.cd=be,this.AUTO_IG_SELECTION="AUTOMATIC",this.validationEntries=new Array,this.selectedEntry=null,this.capabilityStatement=null,this.installedIgs=new Set,this.supportedProfiles=new Map,this.validatorSettings=new Array,this.filteredProfiles=new Set,this.profileFilter="",this.selectedIg=this.AUTO_IG_SELECTION,this.profileControl=new c.FormControl(null,c.Validators.required),this.showSettings=!1,this.currentResource=null,this.errorMessage=null,this.client=Ee.getFhirClient(),this.client.capabilityStatement().then(Se=>{this.capabilityStatement=Se,this.client.read({resourceType:"OperationDefinition",id:"-s-validate"}).then(Q=>{Q.parameter?.forEach(pe=>{"profile"==pe.name&&(pe._targetProfile.forEach(Re=>{const bt=new o.StructureDefinition;bt.canonical=this.getExtensionStringValue(Re,"sd-canonical"),bt.title=this.getExtensionStringValue(Re,"sd-title"),bt.igId=this.getExtensionStringValue(Re,"ig-id"),bt.igVersion=this.getExtensionStringValue(Re,"ig-version"),bt.isCurrent=!1,this.getExtensionBoolValue(Re,"ig-current")?bt.isCurrent=!0:bt.canonical+=`|${bt.igVersion}`,this.supportedProfiles.set(bt.canonical,bt)}),this.updateProfileFilter())}),Q.parameter.filter(pe=>"in"==pe.use&&"resource"!=pe.name&&"profile"!=pe.name&&"ig"!=pe.name).forEach(pe=>{this.validatorSettings.push(new d.ValidationParameter(pe))})})}).catch(Se=>{this.errorMessage="Error accessing FHIR server"}),this.client.search({resourceType:"ImplementationGuide",searchParams:{_sort:"title",_count:1e3}}).then(Se=>{Se.entry.map(Q=>Q.resource).map(Q=>`${Q.packageId}#${Q.version}`).sort().forEach(Q=>this.installedIgs.add(Q))}).catch(Se=>{this.errorMessage="Error accessing FHIR server"})}ngAfterViewInit(){this.editor=s.default.edit("editor"),this.editor.setReadOnly(!0),this.editor.setTheme("ace/theme/textmate"),this.editor.setOptions({tabSize:4,wrap:!0,useWorker:!1,useSvgGutterIcons:!1})}addFile(Ee){if(Ee.name.endsWith(".tgz"))try{this.addPackage(Ee.blob)}catch(be){console.error(be)}else{let be=null;try{this.selectedProfile=null,this.selectedIg=this.AUTO_IG_SELECTION;const Se=new FileReader;Se.readAsText(Ee.blob),Se.onload=()=>{if(this.cd.markForCheck(),be=new f.ValidationEntry(Ee.blob.name,Se.result,Ee.contentType,null),this.currentResource=new Ne(Ee.name,Ee.contentType,Se.result,be.resourceType),be.selectedProfile)if(this.supportedProfiles.has(be.selectedProfile))this.selectedProfile=be.selectedProfile;else{const Q=`${be.selectedProfile}|`;for(let[pe,Re]of this.supportedProfiles)if(pe.startsWith(Q)){this.selectedProfile=pe;break}}this.validationEntries.unshift(be),this.show(be),this.validate(be)}}catch(Se){console.error(Se),be&&(be.result=l.OperationResult.fromMatchboxError("Error while processing the resource for validation: "+Se.message))}}}onValidateIg(){let Ee="";this.selectedIg!=this.AUTO_IG_SELECTION&&(Ee=this.selectedIg.endsWith(" (last)")?this.selectedIg.substring(0,this.selectedIg.length-7):this.selectedIg,Ee=Ee.replace("#","-"),this.fetchData(this.client.baseUrl+"/ImplementationGuide/"+Ee))}fetchData(Ee){var be=this;return t(function*(){const Q=yield(yield fetch(Ee,{cache:"no-store",headers:{Accept:"application/gzip"}})).blob();be.addPackage(Q)})()}addPackage(Ee){this.selectedProfile=null,this.selectedIg=this.AUTO_IG_SELECTION;const be=new FileReader;be.readAsArrayBuffer(Ee),be.onload=()=>{if(this.package=be.result,this.cd.markForCheck(),null!=this.package){const Se=u.default.inflate(new Uint8Array(this.package)),Q=new Array;let pe=null,Re=null;const bt=this;(0,b.default)(Se.buffer).then(function(it){Q.forEach(ye=>{bt.validationEntries.unshift(ye),bt.validate(ye)})},function(it){},function(it){if(it.name?.indexOf("package.json")>=0){let ye=new TextDecoder("utf-8"),He=JSON.parse(ye.decode(it.buffer));pe=He.fhirVersions[0],Re=He.name+"#"+He.version}if(it.name?.indexOf("example")>=0&&-1==it.name?.indexOf(".index.json")){let ye=it.name;ye.startsWith("package/example/")&&(ye=ye.substring(16)),ye.startsWith("example/")&&(ye=ye.substring(8));let He=new TextDecoder("utf-8"),De=JSON.parse(He.decode(it.buffer)),st=De.meta?.profile,xt=new f.ValidationEntry(ye,JSON.stringify(De,null,2),"application/fhir+json",st);Q.push(xt)}})}}}onClear(){this.selectedProfile=null,this.selectedIg=this.AUTO_IG_SELECTION,this.show(void 0),this.validationEntries.splice(0,this.validationEntries.length)}validate(Ee){if(null!=this.selectedProfile&&(Ee.profiles.includes(this.selectedProfile)||Ee.profiles.push(this.selectedProfile),Ee.selectedProfile=this.selectedProfile),this.selectedIg!=this.AUTO_IG_SELECTION&&(Ee.ig=this.selectedIg.endsWith(" (last)")?this.selectedIg.substring(0,this.selectedIg.length-7):this.selectedIg),!Ee.selectedProfile)return void console.error("No profile selected, won't run validation");const be=new URLSearchParams;be.set("profile",Ee.selectedProfile),Ee.ig&&be.set("ig",Ee.ig);for(const Se of this.validatorSettings)null!=Se.formControl.value&&Se.formControl.value.length>0&&be.set(Se.param.name,Se.formControl.value);Ee.loading=!0,this.client.operation({name:"validate?"+be.toString(),resourceType:void 0,input:Ee.resource,options:{headers:{accept:"application/fhir+json","content-type":Ee.mimetype}}}).then(Se=>{Ee.loading=!1,Ee.setOperationOutcome(Se),Ee===this.selectedEntry&&this.updateEditorIssues()}).catch(Se=>{Ee.loading=!1,Ee.result=l.OperationResult.fromMatchboxError("Error while sending the validation request: "+Se.message),console.error(Se)})}show(Ee){if(this.errorMessage=null,this.selectedEntry=Ee,!Ee)return this.editor.setValue("",-1),void this.updateEditorIssues();this.currentResource=new Ne(Ee.filename,Ee.mimetype,Ee.resource,Ee.resourceType),this.editor.setValue(Ee.resource,-1),"application/fhir+json"===Ee.mimetype?this.editor.getSession().setMode("ace/mode/json"):"application/fhir+xml"===Ee.mimetype&&this.editor.getSession().setMode("ace/mode/xml"),this.updateEditorIssues()}removeEntryFromHistory(Ee){Ee===this.selectedEntry&&this.show(null);const be=this.validationEntries.indexOf(Ee);this.validationEntries.splice(be,1)}onValidate(){let Ee=new f.ValidationEntry(this.currentResource.filename,this.currentResource.content,this.currentResource.contentType,[this.selectedProfile]);this.selectedIg!=this.AUTO_IG_SELECTION&&(Ee.ig=this.selectedIg),this.validationEntries.unshift(Ee),this.show(Ee),this.validate(Ee)}toggleSettings(){this.showSettings=!this.showSettings}updateEditorIssues(){if(this.editor.session.clearAnnotations(),!this.selectedEntry?.result)return;const Ee=this.selectedEntry.result.issues.filter(be=>be.line).map(be=>{let Se;switch(be.severity){case"fatal":case"error":Se="error";break;case"warning":Se="warning";break;case"information":Se="info"}return{row:be.line-1,column:be.col,text:be.text,type:Se}});this.editor.session.setAnnotations(Ee)}highlightIssue(Ee){Ee.line&&(this.editor.gotoLine(Ee.line,Ee.col,!0),this.editor.scrollToLine(Ee.line,!1,!0,()=>{}))}updateProfileFilter(){const Ee=this.profileFilter.toLowerCase();this.filteredProfiles=new Set([...this.supportedProfiles.values()].filter(be=>be.title.toLocaleLowerCase().includes(Ee)||be.canonical.toLocaleLowerCase().includes(Ee)).values())}getExtensionStringValue(Ee,be){return this.getExtension(Ee,be)?.valueString??""}getExtensionBoolValue(Ee,be){return this.getExtension(Ee,be)?.valueBoolean??!1}getExtension(Ee,be){for(let Se=0;Se div[_ngcontent-%COMP%]{width:46%}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{background:#d8f1e6}table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{cursor:pointer}table[_ngcontent-%COMP%] td.issues[_ngcontent-%COMP%]{font-size:12px;line-height:12px;color:#818181}table[_ngcontent-%COMP%] td.issues[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:12px;height:12px;margin-right:2px;vertical-align:bottom}table[_ngcontent-%COMP%] td.issues[_ngcontent-%COMP%] mat-icon.error[_ngcontent-%COMP%]{color:#d9534f}table[_ngcontent-%COMP%] td.issues[_ngcontent-%COMP%] mat-icon.warning[_ngcontent-%COMP%]{color:#f0ad4e}table[_ngcontent-%COMP%] td.issues[_ngcontent-%COMP%] mat-icon.info[_ngcontent-%COMP%]{color:#4ca8de}table[_ngcontent-%COMP%] td.actions[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:24px;color:#d9534f}.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%]{padding:8px 16px}.row-full-height[_ngcontent-%COMP%] .card-maps[_ngcontent-%COMP%]{height:96vh;max-height:96vh;overflow-y:auto}#editor[_ngcontent-%COMP%]{height:calc(100% - 50px)}.column50[_ngcontent-%COMP%]{width:40%}.profile-select-option-line1[_ngcontent-%COMP%]{display:inline-block;white-space:nowrap;width:100%}.profile-select-option-line1[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:block;width:auto;text-overflow:ellipsis;padding-right:6px;overflow:hidden}.profile-select-option-line1[_ngcontent-%COMP%] .ig[_ngcontent-%COMP%]{display:block;float:right;width:max-content;color:#7bc7a5}.profile-select-option-line2[_ngcontent-%COMP%]{clear:right;display:inline-block;white-space:nowrap;width:100%;font-size:.8rem;line-height:.8rem}.profile-select-option-line2[_ngcontent-%COMP%] .canonical[_ngcontent-%COMP%]{font-family:monospace,serif;color:#778d9d;letter-spacing:0px}mat-option[_ngcontent-%COMP%]:nth-child(odd){background-color:#f9f9f9}mat-option[_ngcontent-%COMP%]{padding:4px 8px;border-bottom:1px solid rgba(0,0,0,.05);line-height:normal} .mdc-list-item__primary-text{width:100%}"]})}return Ie})();class Ne{constructor(rt,Ee,be,Se){this.filename=rt,this.contentType=Ee,this.content=be,this.resourceType=Se}}},8087:(Te,ne,g)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.ValidationEntry=void 0;const t=g(6974);ne.ValidationEntry=class _{constructor(E,u,b,s){this.profiles=[],this.loading=!1,this.filename=E,this.resource=u,this.mimetype=b||(E.endsWith(".json")?"application/fhir+json":"application/fhir+xml"),s&&(this.profiles=s),this.date=new Date,"application/fhir+json"===this.mimetype?this.extractJsonInfo():this.extractXmlInfo(),this.profiles&&this.profiles.length?this.selectedProfile=this.profiles[0]:this.resourceType&&(this.selectedProfile="http://hl7.org/fhir/StructureDefinition/"+this.resourceType)}getErrors(){if(this.result)return this.result.issues.filter(E=>"error"===E.severity||"fatal"===E.severity).length}getWarnings(){if(this.result)return this.result.issues.filter(E=>"warning"===E.severity).length}getInfos(){if(this.result)return this.result.issues.filter(E=>"information"===E.severity).length}setOperationOutcome(E){this.result=t.OperationResult.fromOperationOutcome(E)}extractJsonInfo(){const E=JSON.parse(this.resource);E?.resourceType&&(this.resourceType=E.resourceType,this.resourceId=E.id),E.meta?.profile&&this.profiles.push(...E.meta.profile)}extractXmlInfo(){let E=this.resource.indexOf("",u);if(u0&&(s=s.substring(0,f)),f=s.indexOf(":"),f>0&&(s=s.substring(f+1)),this.resourceType=s;let d=this.resource.indexOf("profile",b);if(d>0){let l=this.resource.indexOf('value="',d)+7,c=this.resource.indexOf('"',l);l{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.ValidationParameter=void 0;const t=g(9417);ne.ValidationParameter=class _{constructor(E){this.param=E,this.formControl=new t.UntypedFormControl}isValueSet(){return null!=this.valueBoolean||null!=this.valueString}}},5312:(Te,ne)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.environment=void 0,ne.environment={production:!0}},4429:(Te,ne,g)=>{"use strict";const C=g(5215).__importStar(g(345)),E=g(4438),u=g(635);g(5312).environment.production&&(0,E.enableProdMode)(),C.platformBrowser().bootstrapModule(u.AppModule).catch(s=>console.log(s))},6507:(Te,ne,g)=>{Te=g.nmd(Te),function(){var _=function(){return this}();!_&&typeof window<"u"&&(_=window);var C=function(d,l,c){"string"==typeof d?(2==arguments.length&&(c=l),C.modules[d]||(C.payloads[d]=c,C.modules[d]=null)):C.original?C.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};C.modules={},C.payloads={};var E=function(d,l,c){if("string"==typeof l){var o=s(d,l);if(null!=o)return c&&c(),o}else if("[object Array]"===Object.prototype.toString.call(l)){for(var r=[],h=0,p=l.length;hs.length)&&(b=s.length);var f=s.indexOf(u,b-=u.length);return-1!==f&&f===b}),String.prototype.repeat||E(String.prototype,"repeat",function(u){for(var b="",s=this;u>0;)1&u&&(b+=s),(u>>=1)&&(s+=s);return b}),String.prototype.includes||E(String.prototype,"includes",function(u,b){return-1!=this.indexOf(u,b)}),Object.assign||(Object.assign=function(u){if(null==u)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(u),s=1;s>>0,d=0|arguments[1],l=d<0?Math.max(s+d,0):Math.min(d,s),c=arguments[2],o=void 0===c?s:0|c,r=o<0?Math.max(s+o,0):Math.min(o,s);l0;)1&s&&(f+=b),(s>>=1)&&(b+=b);return f};var E=/^\s\s*/,u=/\s\s*$/;_.stringTrimLeft=function(b){return b.replace(E,"")},_.stringTrimRight=function(b){return b.replace(u,"")},_.copyObject=function(b){var s={};for(var f in b)s[f]=b[f];return s},_.copyArray=function(b){for(var s=[],f=0,d=b.length;f65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(t,_,C){"use strict";_.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},_.getOS=function(){return _.isMac?_.OS.MAC:_.isLinux?_.OS.LINUX:_.OS.WINDOWS};var E="object"==typeof navigator?navigator:{},u=(/mac|win|linux/i.exec(E.platform)||["other"])[0].toLowerCase(),b=E.userAgent||"",s=E.appName||"";_.isWin="win"==u,_.isMac="mac"==u,_.isLinux="linux"==u,_.isIE="Microsoft Internet Explorer"==s||s.indexOf("MSAppHost")>=0?parseFloat((b.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((b.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),_.isOldIE=_.isIE&&_.isIE<9,_.isGecko=_.isMozilla=b.match(/ Gecko\/\d+/),_.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),_.isWebKit=parseFloat(b.split("WebKit/")[1])||void 0,_.isChrome=parseFloat(b.split(" Chrome/")[1])||void 0,_.isSafari=parseFloat(b.split(" Safari/")[1])&&!_.isChrome||void 0,_.isEdge=parseFloat(b.split(" Edge/")[1])||void 0,_.isAIR=b.indexOf("AdobeAIR")>=0,_.isAndroid=b.indexOf("Android")>=0,_.isChromeOS=b.indexOf(" CrOS ")>=0,_.isIOS=/iPad|iPhone|iPod/.test(b)&&!window.MSStream,_.isIOS&&(_.isMac=!0),_.isMobile=_.isIOS||_.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(t,_,C){"use strict";var E=t("./useragent");_.buildDom=function c(o,r,h){if("string"==typeof o&&o){var p=document.createTextNode(o);return r&&r.appendChild(p),p}if(!Array.isArray(o))return o&&o.appendChild&&r&&r.appendChild(o),o;if("string"!=typeof o[0]||!o[0]){for(var v=[],y=0;y"u")){if(s)if(r)f();else if(!1===r)return s.push([c,o]);if(!b){var h=r;r&&r.getRootNode?(!(h=r.getRootNode())||h==r)&&(h=document):h=document;var p=h.ownerDocument||h;if(o&&_.hasCssString(o,h))return null;o&&(c+="\n/*# sourceURL=ace/css/"+o+" */");var v=_.createElement("style");v.appendChild(p.createTextNode(c)),o&&(v.id=o),h==p&&(h=_.getDocumentHead(p)),h.insertBefore(v,h.firstChild)}}}if(_.useStrictCSP=function(c){b=c,0==c?f():s||(s=[])},_.importCssString=d,_.importCssStylsheet=function(c,o){_.buildDom(["link",{rel:"stylesheet",href:c}],_.getDocumentHead(o))},_.scrollbarWidth=function(c){var o=_.createElement("ace_inner");o.style.width="100%",o.style.minWidth="0px",o.style.height="200px",o.style.display="block";var r=_.createElement("ace_outer"),h=r.style;h.position="absolute",h.left="-10000px",h.overflow="hidden",h.width="200px",h.minWidth="0px",h.height="150px",h.display="block",r.appendChild(o);var p=c&&c.documentElement||document&&document.documentElement;if(!p)return 0;p.appendChild(r);var v=o.offsetWidth;h.overflow="scroll";var y=o.offsetWidth;return v===y&&(y=r.clientWidth),p.removeChild(r),v-y},_.computedStyle=function(c,o){return window.getComputedStyle(c,"")||{}},_.setStyle=function(c,o,r){c[o]!==r&&(c[o]=r)},_.HAS_CSS_ANIMATION=!1,_.HAS_CSS_TRANSFORMS=!1,_.HI_DPI=!E.isWin||typeof window<"u"&&window.devicePixelRatio>=1.5,E.isChromeOS&&(_.HI_DPI=!1),typeof document<"u"){var l=document.createElement("div");_.HI_DPI&&void 0!==l.style.transform&&(_.HAS_CSS_TRANSFORMS=!0),!E.isEdge&&typeof l.style.animationName<"u"&&(_.HAS_CSS_ANIMATION=!0),l=null}_.translate=_.HAS_CSS_TRANSFORMS?function(c,o,r){c.style.transform="translate("+Math.round(o)+"px, "+Math.round(r)+"px)"}:function(c,o,r){c.style.top=Math.round(r)+"px",c.style.left=Math.round(o)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(t,_,C){"use strict";var E=t("./dom");_.get=function(u,b){var s=new XMLHttpRequest;s.open("GET",u,!0),s.onreadystatechange=function(){4===s.readyState&&b(s.responseText)},s.send(null)},_.loadScript=function(u,b){var s=E.getDocumentHead(),f=document.createElement("script");f.src=u,s.appendChild(f),f.onload=f.onreadystatechange=function(d,l){(l||!f.readyState||"loaded"==f.readyState||"complete"==f.readyState)&&(f=f.onload=f.onreadystatechange=null,l||b())}},_.qualifyURL=function(u){var b=document.createElement("a");return b.href=u,b.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(t,_,C){"use strict";_.inherits=function(E,u){E.super_=u,E.prototype=Object.create(u.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}})},_.mixin=function(E,u){for(var b in u)E[b]=u[b];return E},_.implement=function(E,u){_.mixin(E,u)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(t,_,C){"use strict";var E={},u=function(){this.propagationStopped=!0},b=function(){this.defaultPrevented=!0};E._emit=E._dispatchEvent=function(s,f){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var d=this._eventRegistry[s]||[],l=this._defaultHandlers[s];if(d.length||l){("object"!=typeof f||!f)&&(f={}),f.type||(f.type=s),f.stopPropagation||(f.stopPropagation=u),f.preventDefault||(f.preventDefault=b),d=d.slice();for(var c=0;c1&&(v=h[h.length-2]);var M=f[r+"Path"];return null==M?M=f.basePath:"/"==p&&(r=p=""),M&&"/"!=M.slice(-1)&&(M+="/"),M+r+p+v+this.get("suffix")},_.setModuleUrl=function(o,r){return f.$moduleUrls[o]=r},_.setLoader=function(o){l=o},_.dynamicModules=Object.create(null),_.$loading={},_.$loaded={},_.loadModule=function(o,r){var h;if(Array.isArray(o))var p=o[0],v=o[1];else"string"==typeof o&&(v=o);var y=function(M){if(M&&!_.$loading[v])return r&&r(M);if(_.$loading[v]||(_.$loading[v]=[]),_.$loading[v].push(r),!(_.$loading[v].length>1)){var w=function(){!function(o,r){"ace/theme/textmate"===o||"./theme/textmate"===o?r(0,t("./theme/textmate")):l?l(o,r):console.error("loader is not configured")}(v,function(k,I){I&&(_.$loaded[v]=I),_._emit("load.module",{name:v,module:I});var D=_.$loading[v];_.$loading[v]=null,D.forEach(function(O){O&&O(I)})})};if(!_.get("packaged"))return w();u.loadScript(_.moduleUrl(v,p),w),c()}};if(_.dynamicModules[v])_.dynamicModules[v]().then(function(M){y(M.default?M.default:M)});else{try{h=this.$require(v)}catch{}y(h||_.$loaded[v])}},_.$require=function(o){if("function"==typeof C.require)return C.require(o)},_.setModuleLoader=function(o,r){_.dynamicModules[o]=r};var c=function(){!f.basePath&&!f.workerPath&&!f.modePath&&!f.themePath&&!Object.keys(f.$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"),c=function(){})};_.version="1.32.9"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(t,_,C){"use strict";t("./lib/fixoldbrowsers");var E=t("./config");E.setLoader(function(f,d){t([f],function(l){d(null,l)})});var u=function(){return this||typeof window<"u"&&window}();function b(f){if(u&&u.document){E.set("packaged",f||t.packaged||C.packaged||u.define&&g.amdD.packaged);var d={},l="",c=document.currentScript||document._currentScript,o=c&&c.ownerDocument||document;c&&c.src&&(l=c.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var r=o.getElementsByTagName("script"),h=0;h ["+this.end.row+"/"+this.end.column+"]"},u.prototype.contains=function(b,s){return 0==this.compare(b,s)},u.prototype.compareRange=function(b){var s,f=b.end,d=b.start;return 1==(s=this.compare(f.row,f.column))?1==(s=this.compare(d.row,d.column))?2:0==s?1:0:-1==s?-2:-1==(s=this.compare(d.row,d.column))?-1:1==s?42:0},u.prototype.comparePoint=function(b){return this.compare(b.row,b.column)},u.prototype.containsRange=function(b){return 0==this.comparePoint(b.start)&&0==this.comparePoint(b.end)},u.prototype.intersects=function(b){var s=this.compareRange(b);return-1==s||0==s||1==s},u.prototype.isEnd=function(b,s){return this.end.row==b&&this.end.column==s},u.prototype.isStart=function(b,s){return this.start.row==b&&this.start.column==s},u.prototype.setStart=function(b,s){"object"==typeof b?(this.start.column=b.column,this.start.row=b.row):(this.start.row=b,this.start.column=s)},u.prototype.setEnd=function(b,s){"object"==typeof b?(this.end.column=b.column,this.end.row=b.row):(this.end.row=b,this.end.column=s)},u.prototype.inside=function(b,s){return 0==this.compare(b,s)&&!(this.isEnd(b,s)||this.isStart(b,s))},u.prototype.insideStart=function(b,s){return 0==this.compare(b,s)&&!this.isEnd(b,s)},u.prototype.insideEnd=function(b,s){return 0==this.compare(b,s)&&!this.isStart(b,s)},u.prototype.compare=function(b,s){return this.isMultiLine()||b!==this.start.row?bthis.end.row?1:this.start.row===b?s>=this.start.column?0:-1:this.end.row===b?s<=this.end.column?0:1:0:sthis.end.column?1:0},u.prototype.compareStart=function(b,s){return this.start.row==b&&this.start.column==s?-1:this.compare(b,s)},u.prototype.compareEnd=function(b,s){return this.end.row==b&&this.end.column==s?1:this.compare(b,s)},u.prototype.compareInside=function(b,s){return this.end.row==b&&this.end.column==s?1:this.start.row==b&&this.start.column==s?-1:this.compare(b,s)},u.prototype.clipRows=function(b,s){if(this.end.row>s)var f={row:s+1,column:0};else this.end.rows)var d={row:s+1,column:0};else this.start.row1?++O>4&&(O=1):O=1,u.isIE){var F=Math.abs(A.clientX-T)>5||Math.abs(A.clientY-U)>5;(!S||F)&&(O=1),S&&clearTimeout(S),S=setTimeout(function(){S=null},w[O-1]||600),1==O&&(T=A.clientX,U=A.clientY)}if(A._clicks=O,k[I]("mousedown",A),O>4)O=0;else if(O>1)return k[I](R[O],A)}Array.isArray(M)||(M=[M]),M.forEach(function(A){o(A,"mousedown",N,D)})},_.getModifierString=function(M){return E.KEY_MODS[h(M)]},_.addCommandKeyListener=function(M,w,k){var I=null;o(M,"keydown",function(D){b[D.keyCode]=(b[D.keyCode]||0)+1;var O=function p(M,w,k){var I=h(w);if(!u.isMac&&b){if(w.getModifierState&&(w.getModifierState("OS")||w.getModifierState("Win"))&&(I|=8),b.altGr){if(!(3&~I))return;b.altGr=0}if(18===k||17===k){var D=w.location;17===k&&1===D?1==b[k]&&(s=w.timeStamp):18===k&&3===I&&2===D&&w.timeStamp-s<50&&(b.altGr=!0)}}if(k in E.MODIFIER_KEYS&&(k=-1),I||13!==k||3!==w.location||(M(w,I,-k),!w.defaultPrevented)){if(u.isChromeOS&&8&I){if(M(w,I,k),w.defaultPrevented)return;I&=-9}return!!(I||k in E.FUNCTION_KEYS||k in E.PRINTABLE_KEYS)&&M(w,I,k)}}(w,D,D.keyCode);return I=D.defaultPrevented,O},k),o(M,"keypress",function(D){I&&(D.ctrlKey||D.altKey||D.shiftKey||D.metaKey)&&(_.stopEvent(D),I=null)},k),o(M,"keyup",function(D){b[D.keyCode]=null},k),b||(v(),o(window,"focus",v))},"object"==typeof window&&window.postMessage&&!u.isOldIE){var y=1;_.nextTick=function(M,w){w=w||window;var k="zero-timeout-message-"+y++,I=function(D){D.data==k&&(_.stopPropagation(D),r(w,"message",I),M())};o(w,"message",I),w.postMessage(k,"*")}}_.$idleBlocked=!1,_.onIdle=function(M,w){return setTimeout(function k(){_.$idleBlocked?setTimeout(k,100):M()},w)},_.$idleBlockId=null,_.blockIdle=function(M){_.$idleBlockId&&clearTimeout(_.$idleBlockId),_.$idleBlocked=!0,_.$idleBlockId=setTimeout(function(){_.$idleBlocked=!1},M||100)},_.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),_.nextFrame=_.nextFrame?_.nextFrame.bind(window):function(M){setTimeout(M,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(t,_,C){"use strict";var E;C.exports={lineMode:!1,pasteCancelled:function(){return!!(E&&E>Date.now()-50)||(E=!1)},cancel:function(){E=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(t,_,C){"use strict";var E=t("../lib/event"),u=t("../config").nls,b=t("../lib/useragent"),s=t("../lib/dom"),f=t("../lib/lang"),d=t("../clipboard"),l=b.isChrome<18,c=b.isIE,o=b.isChrome>63,r=400,h=t("../lib/keys"),p=h.KEY_MODS,v=b.isIOS,y=v?/\s/:/\n/,M=b.isMobile;_.TextInput=function(k,I){var D=s.createElement("textarea");D.className="ace_text-input",D.setAttribute("wrap","off"),D.setAttribute("autocorrect","off"),D.setAttribute("autocapitalize","off"),D.setAttribute("spellcheck","false"),D.style.opacity="0",k.insertBefore(D,k.firstChild);var O=!1,T=!1,U=!1,S=!1,R="";M||(D.style.fontSize="1px");var N=!1,A=!1,F="",Y=0,ee=0,ie=0,$=Number.MAX_SAFE_INTEGER,j=Number.MIN_SAFE_INTEGER,G=0;try{var V=document.activeElement===D}catch{}this.setNumberOfExtraLines=function(De){$=Number.MAX_SAFE_INTEGER,j=Number.MIN_SAFE_INTEGER,G=De<0?0:De},this.setAriaOptions=function(De){De.activeDescendant?(D.setAttribute("aria-haspopup","true"),D.setAttribute("aria-autocomplete",De.inline?"both":"list"),D.setAttribute("aria-activedescendant",De.activeDescendant)):(D.setAttribute("aria-haspopup","false"),D.setAttribute("aria-autocomplete","both"),D.removeAttribute("aria-activedescendant")),De.role&&D.setAttribute("role",De.role),De.setLabel&&(D.setAttribute("aria-roledescription",u("editor")),I.session)&&D.setAttribute("aria-label",u("Cursor at row $0",[I.session.selection.cursor.row+1]))},this.setAriaOptions({role:"textbox"}),E.addListener(D,"blur",function(De){A||(I.onBlur(De),V=!1)},I),E.addListener(D,"focus",function(De){if(!A){if(V=!0,b.isEdge)try{if(!document.hasFocus())return}catch{}I.onFocus(De),b.isEdge?setTimeout(K):K()}},I),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:I.renderer.enableKeyboardAccessibility}),R||o||"browser"==this.$focusScroll)return D.focus({preventScroll:!0});var De=D.style.top;D.style.position="fixed",D.style.top="0px";try{var st=0!=D.getBoundingClientRect().top}catch{return}var xt=[];if(st)for(var jt=D.parentElement;jt&&1==jt.nodeType;)xt.push(jt),jt.setAttribute("ace_nocontext","true"),jt=!jt.parentElement&&jt.getRootNode?jt.getRootNode().host:jt.parentElement;D.focus({preventScroll:!0}),st&&xt.forEach(function(Xt){Xt.removeAttribute("ace_nocontext")}),setTimeout(function(){D.style.position="","0px"==D.style.top&&(D.style.top=De)},0)},this.blur=function(){D.blur()},this.isFocused=function(){return V},I.on("beforeEndOperation",function(){var De=I.curOp,st=De&&De.command&&De.command.name;"insertstring"!=st&&(U&&st&&(De.docChanged||De.selectionChanged)&&(F=D.value="",Se()),K())});var W=function(De,st){for(var xt=st,jt=1;jt<=De-$&&jt<2*G+1;jt++)xt+=I.session.getLine(De-jt).length+1;return xt},K=v?function(De){if(V&&(!O||De)&&!S){De||(De="");var st="\n ab"+De+"cde fg\n";st!=D.value&&(D.value=F=st);var jt=4+(De.length||(I.selection.isEmpty()?0:1));(4!=Y||ee!=jt)&&D.setSelectionRange(4,jt),Y=4,ee=jt}}:function(){if(!U&&!S&&(V||Ye)){U=!0;var De=0,st=0,xt="";if(I.session){var jt=I.selection,Xt=jt.getRange(),un=jt.cursor.row;un===j+1?j=($=j+1)+2*G:un===$-1?$=(j=$-1)-2*G:(un<$-1||un>j+1)&&($=un>G?un-G:0,j=un>G?un+G:2*G);for(var dn=[],cn=$;cn<=j;cn++)dn.push(I.session.getLine(cn));if(xt=dn.join("\n"),De=W(Xt.start.row,Xt.start.column),st=W(Xt.end.row,Xt.end.column),Xt.start.row<$){var rn=I.session.getLine($-1);De=Xt.start.row<$-1?0:De,st+=rn.length+1,xt=rn+"\n"+xt}else if(Xt.end.row>j){var hn=I.session.getLine(j+1);st=Xt.end.row>j+1?hn.length:Xt.end.column,st+=xt.length+1,xt=xt+"\n"+hn}else M&&un>0&&(xt="\n"+xt,st+=1,De+=1);xt.length>r&&(De0&&F[hn]==De[hn];)hn++,Xt--;for(dn=dn.slice(hn),hn=1;un>0&&F.length-hn>Y-1&&F[F.length-hn]==De[De.length-hn];)hn++,un--;cn-=hn-1,rn-=hn-1;var Nt=dn.length-hn+1;if(Nt<0&&(Xt=-Nt,Nt=0),dn=dn.slice(0,Nt),!(st||dn||cn||Xt||un||rn))return"";S=!0;var Bt=!1;return b.isAndroid&&". "==dn&&(dn=" ",Bt=!0),dn&&!Xt&&!un&&!cn&&!rn||N?I.onTextInput(dn):I.onTextInput(dn,{extendLeft:Xt,extendRight:un,restoreStart:cn,restoreEnd:rn}),S=!1,F=De,Y=xt,ee=jt,ie=rn,Bt?"\n":dn},ct=function(De){if(U)return be();if(De&&De.inputType){if("historyUndo"==De.inputType)return I.execCommand("undo");if("historyRedo"==De.inputType)return I.execCommand("redo")}var st=D.value,xt=pt(st,!0);(st.length>500||y.test(xt)||M&&Y<1&&Y==ee)&&K()},Ct=function(De,st,xt){var jt=De.clipboardData||window.clipboardData;if(jt&&!l){var Xt=c||xt?"Text":"text/plain";try{return st?!1!==jt.setData(Xt,st):jt.getData(Xt)}catch(un){if(!xt)return Ct(un,st,!0)}}},We=function(De,st){var xt=I.getCopyText();if(!xt)return E.preventDefault(De);Ct(De,xt)?(v&&(K(xt),O=xt,setTimeout(function(){O=!1},10)),st?I.onCut():I.onCopy(),E.preventDefault(De)):(O=!0,D.value=xt,D.select(),setTimeout(function(){O=!1,K(),st?I.onCut():I.onCopy()}))},Ne=function(De){We(De,!0)},Ie=function(De){We(De,!1)},rt=function(De){var st=Ct(De);d.pasteCancelled()||("string"==typeof st?(st&&I.onPaste(st,De),b.isIE&&setTimeout(K),E.preventDefault(De)):(D.value="",T=!0))};E.addCommandKeyListener(D,function(De,st,xt){if(!U)return I.onCommandKey(De,st,xt)},I),E.addListener(D,"select",function(De){U||(O?O=!1:function(De){return 0===De.selectionStart&&De.selectionEnd>=F.length&&De.value===F&&F&&De.selectionEnd!==ee}(D)?(I.selectAll(),K()):M&&D.selectionStart!=Y&&K())},I),E.addListener(D,"input",ct,I),E.addListener(D,"cut",Ne,I),E.addListener(D,"copy",Ie,I),E.addListener(D,"paste",rt,I),(!("oncut"in D)||!("oncopy"in D)||!("onpaste"in D))&&E.addListener(k,"keydown",function(De){if((!b.isMac||De.metaKey)&&De.ctrlKey)switch(De.keyCode){case 67:Ie(De);break;case 86:rt(De);break;case 88:Ne(De)}},I);var be=function(){if(U&&I.onCompositionUpdate&&!I.$readOnly){if(N)return Q();U.useTextareaForIME?I.onCompositionUpdate(D.value):(pt(D.value),U.markerRange&&(U.context&&(U.markerRange.start.column=U.selectionStart=U.context.compositionStartOffset),U.markerRange.end.column=U.markerRange.start.column+ee-U.selectionStart+ie))}},Se=function(De){!I.onCompositionEnd||I.$readOnly||(U=!1,I.onCompositionEnd(),I.off("mousedown",Q),De&&ct())};function Q(){A=!0,D.blur(),D.focus(),A=!1}var bt,pe=f.delayedCall(be,50).schedule.bind(null,null);function it(){clearTimeout(bt),bt=setTimeout(function(){R&&(D.style.cssText=R,R=""),I.renderer.$isMousePressed=!1,I.renderer.$keepTextAreaAtCursor&&I.renderer.$moveTextAreaToCursor()},0)}E.addListener(D,"compositionstart",function(De){if(!U&&I.onCompositionStart&&!I.$readOnly&&(U={},!N)){De.data&&(U.useTextareaForIME=!1),setTimeout(be,0),I._signal("compositionStart"),I.on("mousedown",Q);var st=I.getSelectionRange();st.end.row=st.start.row,st.end.column=st.start.column,U.markerRange=st,U.selectionStart=Y,I.onCompositionStart(U),U.useTextareaForIME?(F=D.value="",Y=0,ee=0):(D.msGetInputContext&&(U.context=D.msGetInputContext()),D.getInputContext&&(U.context=D.getInputContext()))}},I),E.addListener(D,"compositionupdate",be,I),E.addListener(D,"keyup",function Re(De){27==De.keyCode&&D.value.lengthee&&"\n"==F[rn]?hn=h.end:cnee&&F.slice(0,rn).split("\n").length>2?hn=h.down:rn>ee&&" "==F[rn-1]?(hn=h.right,Nt=p.option):(rn>ee||rn==ee&&ee!=Y&&cn==rn)&&(hn=h.right),cn!==rn&&(Nt|=p.shift),hn){if(!st.onCommandKey({},Nt,hn)&&st.commands){hn=h.keyCodeToString(hn);var _e=st.commands.findKeyCommand(Nt,hn);_e&&st.execCommand(_e)}Y=cn,ee=rn,K("")}}};document.addEventListener("selectionchange",un),st.on("destroy",function(){document.removeEventListener("selectionchange",un)})}(0,I,D),this.destroy=function(){D.parentElement&&D.parentElement.removeChild(D)}},_.$setUserAgentForTests=function(k,I){M=k,v=I}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(t,_,C){"use strict";var E=t("../lib/useragent"),s=function(){function l(c){c.$clickSelection=null;var o=c.editor;o.setDefaultHandler("mousedown",this.onMouseDown.bind(c)),o.setDefaultHandler("dblclick",this.onDoubleClick.bind(c)),o.setDefaultHandler("tripleclick",this.onTripleClick.bind(c)),o.setDefaultHandler("quadclick",this.onQuadClick.bind(c)),o.setDefaultHandler("mousewheel",this.onMouseWheel.bind(c)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach(function(h){c[h]=this[h]},this),c.selectByLines=this.extendSelectionBy.bind(c,"getLineRange"),c.selectByWords=this.extendSelectionBy.bind(c,"getWordRange")}return l.prototype.onMouseDown=function(c){var o=c.inSelection(),r=c.getDocumentPosition();this.mousedownEvent=c;var h=this.editor,p=c.getButton();return 0!==p?((h.getSelectionRange().isEmpty()||1==p)&&h.selection.moveToPosition(r),void(2==p&&(h.textInput.onContextMenu(c.domEvent),E.isMozilla||c.preventDefault()))):(this.mousedownEvent.time=Date.now(),!o||h.isFocused()||(h.focus(),!this.$focusTimeout||this.$clickSelection||h.inMultiSelectMode)?(this.captureMouse(c),this.startSelect(r,c.domEvent._clicks>1),c.preventDefault()):(this.setState("focusWait"),void this.captureMouse(c)))},l.prototype.startSelect=function(c,o){c=c||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var r=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?r.selection.selectToPosition(c):o||r.selection.moveToPosition(c),o||this.select(),r.setStyle("ace_selecting"),this.setState("select"))},l.prototype.select=function(){var c,o=this.editor,r=o.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var h=this.$clickSelection.comparePoint(r);if(-1==h)c=this.$clickSelection.end;else if(1==h)c=this.$clickSelection.start;else{var p=d(this.$clickSelection,r);r=p.cursor,c=p.anchor}o.selection.setSelectionAnchor(c.row,c.column)}o.selection.selectToPosition(r),o.renderer.scrollCursorIntoView()},l.prototype.extendSelectionBy=function(c){var o,r=this.editor,h=r.renderer.screenToTextCoordinates(this.x,this.y),p=r.selection[c](h.row,h.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(p.start),y=this.$clickSelection.comparePoint(p.end);if(-1==v&&y<=0)o=this.$clickSelection.end,(p.end.row!=h.row||p.end.column!=h.column)&&(h=p.start);else if(1==y&&v>=0)o=this.$clickSelection.start,(p.start.row!=h.row||p.start.column!=h.column)&&(h=p.end);else if(-1==v&&1==y)h=p.end,o=p.start;else{var M=d(this.$clickSelection,h);h=M.cursor,o=M.anchor}r.selection.setSelectionAnchor(o.row,o.column)}r.selection.selectToPosition(h),r.renderer.scrollCursorIntoView()},l.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},l.prototype.focusWait=function(){var c=function f(l,c,o,r){return Math.sqrt(Math.pow(o-l,2)+Math.pow(r-c,2))}(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),o=Date.now();(c>0||o-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(c){var o=c.getDocumentPosition(),r=this.editor,p=r.session.getBracketRange(o);p?(p.isEmpty()&&(p.start.column--,p.end.column++),this.setState("select")):(p=r.selection.getWordRange(o.row,o.column),this.setState("selectByWords")),this.$clickSelection=p,this.select()},l.prototype.onTripleClick=function(c){var o=c.getDocumentPosition(),r=this.editor;this.setState("selectByLines");var h=r.getSelectionRange();h.isMultiLine()&&h.contains(o.row,o.column)?(this.$clickSelection=r.selection.getLineRange(h.start.row),this.$clickSelection.end=r.selection.getLineRange(h.end.row).end):this.$clickSelection=r.selection.getLineRange(o.row),this.select()},l.prototype.onQuadClick=function(c){var o=this.editor;o.selectAll(),this.$clickSelection=o.getSelectionRange(),this.setState("selectAll")},l.prototype.onMouseWheel=function(c){if(!c.getAccelKey()){c.getShiftKey()&&c.wheelY&&!c.wheelX&&(c.wheelX=c.wheelY,c.wheelY=0);var o=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var r=this.$lastScroll,h=c.domEvent.timeStamp,p=h-r.t,v=p?c.wheelX/p:r.vx,y=p?c.wheelY/p:r.vy;p<550&&(v=(v+r.vx)/2,y=(y+r.vy)/2);var M=Math.abs(v/y),w=!1;if(M>=1&&o.renderer.isScrollableBy(c.wheelX*c.speed,0)&&(w=!0),M<=1&&o.renderer.isScrollableBy(0,c.wheelY*c.speed)&&(w=!0),w?r.allowed=h:h-r.allowed<550&&(Math.abs(v)<=1.5*Math.abs(r.vx)&&Math.abs(y)<=1.5*Math.abs(r.vy)?(w=!0,r.allowed=h):r.allowed=0),r.t=h,r.vx=v,r.vy=y,w)return o.renderer.scrollBy(c.wheelX*c.speed,c.wheelY*c.speed),c.stop()}},l}();function d(l,c){if(l.start.row==l.end.row)var o=2*c.column-l.start.column-l.end.column;else if(l.start.row!=l.end.row-1||l.start.column||l.end.column)o=2*c.row-l.start.row-l.end.row;else o=c.column-4;return o<0?{cursor:l.start,anchor:l.end}:{cursor:l.end,anchor:l.start}}s.prototype.selectEnd=s.prototype.selectByLinesEnd,s.prototype.selectAllEnd=s.prototype.selectByLinesEnd,s.prototype.selectByWordsEnd=s.prototype.selectByLinesEnd,_.DefaultHandlers=s}),ace.define("ace/lib/scroll",["require","exports","module"],function(t,_,C){_.preventParentScroll=function(u){u.stopPropagation();var b=u.currentTarget;b.scrollHeight>b.clientHeight||u.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(t,_,C){"use strict";var E=this&&this.__extends||function(){var p=function(v,y){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,w){M.__proto__=w}||function(M,w){for(var k in w)Object.prototype.hasOwnProperty.call(w,k)&&(M[k]=w[k])})(v,y)};return function(v,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function M(){this.constructor=v}p(v,y),v.prototype=null===y?Object.create(y):(M.prototype=y.prototype,new M)}}(),u=this&&this.__values||function(p){var v="function"==typeof Symbol&&Symbol.iterator,y=v&&p[v],M=0;if(y)return y.call(p);if(p&&"number"==typeof p.length)return{next:function(){return p&&M>=p.length&&(p=void 0),{value:p&&p[M++],done:!p}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")},b=t("./lib/dom"),f=(t("./lib/event"),t("./range").Range),d=t("./lib/scroll").preventParentScroll,l="ace_tooltip",c=function(){function p(v){this.isOpen=!1,this.$element=null,this.$parentNode=v}return p.prototype.$init=function(){return this.$element=b.createElement("div"),this.$element.className=l,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},p.prototype.getElement=function(){return this.$element||this.$init()},p.prototype.setText=function(v){this.getElement().textContent=v},p.prototype.setHtml=function(v){this.getElement().innerHTML=v},p.prototype.setPosition=function(v,y){this.getElement().style.left=v+"px",this.getElement().style.top=y+"px"},p.prototype.setClassName=function(v){b.addCssClass(this.getElement(),v)},p.prototype.setTheme=function(v){this.$element.className=l+" "+(v.isDark?"ace_dark ":"")+(v.cssClass||"")},p.prototype.show=function(v,y,M){null!=v&&this.setText(v),null!=y&&null!=M&&this.setPosition(y,M),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},p.prototype.hide=function(v){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=l,this.isOpen=!1)},p.prototype.getHeight=function(){return this.getElement().offsetHeight},p.prototype.getWidth=function(){return this.getElement().offsetWidth},p.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},p}(),r=new(function(){function p(){this.popups=[]}return p.prototype.addPopup=function(v){this.popups.push(v),this.updatePopups()},p.prototype.removePopup=function(v){var y=this.popups.indexOf(v);-1!==y&&(this.popups.splice(y,1),this.updatePopups())},p.prototype.updatePopups=function(){var v,y,M,w;this.popups.sort(function(N,A){return A.priority-N.priority});var k=[];try{for(var I=u(this.popups),D=I.next();!D.done;D=I.next()){var O=D.value,T=!0;try{for(var U=(M=void 0,u(k)),S=U.next();!S.done;S=U.next())if(this.doPopupsOverlap(S.value,O)){T=!1;break}}catch(N){M={error:N}}finally{try{S&&!S.done&&(w=U.return)&&w.call(U)}finally{if(M)throw M.error}}T?k.push(O):O.hide()}}catch(N){v={error:N}}finally{try{D&&!D.done&&(y=I.return)&&y.call(I)}finally{if(v)throw v.error}}},p.prototype.doPopupsOverlap=function(v,y){var M=v.getElement().getBoundingClientRect(),w=y.getElement().getBoundingClientRect();return M.leftw.left&&M.topw.top},p}());_.popupManager=r,_.Tooltip=c;var h=function(p){function v(y){void 0===y&&(y=document.body);var M=p.call(this,y)||this;M.timeout=void 0,M.lastT=0,M.idleTime=350,M.lastEvent=void 0,M.onMouseOut=M.onMouseOut.bind(M),M.onMouseMove=M.onMouseMove.bind(M),M.waitForHover=M.waitForHover.bind(M),M.hide=M.hide.bind(M);var w=M.getElement();return w.style.whiteSpace="pre-wrap",w.style.pointerEvents="auto",w.addEventListener("mouseout",M.onMouseOut),w.tabIndex=-1,w.addEventListener("blur",function(){w.contains(document.activeElement)||this.hide()}.bind(M)),w.addEventListener("wheel",d),M}return E(v,p),v.prototype.addToEditor=function(y){y.on("mousemove",this.onMouseMove),y.on("mousedown",this.hide),y.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},v.prototype.removeFromEditor=function(y){y.off("mousemove",this.onMouseMove),y.off("mousedown",this.hide),y.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},v.prototype.onMouseMove=function(y,M){this.lastEvent=y,this.lastT=Date.now();var w=M.$mouseHandler.isMousePressed;if(this.isOpen){var k=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(k.row,k.column)||w||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||w||(this.lastEvent=y,this.timeout=setTimeout(this.waitForHover,this.idleTime))},v.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var y=Date.now()-this.lastT;this.idleTime-y>10?this.timeout=setTimeout(this.waitForHover,this.idleTime-y):(this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor))},v.prototype.isOutsideOfText=function(y){var M=y.editor,w=y.getDocumentPosition(),k=M.session.getLine(w.row);if(w.column==k.length){var I=M.renderer.pixelToScreenCoordinates(y.clientX,y.clientY),D=M.session.documentToScreenPosition(w.row,w.column);if(D.column!=I.column||D.row!=I.row)return!0}return!1},v.prototype.setDataProvider=function(y){this.$gatherData=y},v.prototype.showForRange=function(y,M,w,k){if(!(k&&k!=this.lastEvent||this.isOpen&&document.activeElement==this.getElement())){var D=y.renderer;this.isOpen||(r.addPopup(this),this.$registerCloseEvents(),this.setTheme(D.theme)),this.isOpen=!0,this.addMarker(M,y.session),this.range=f.fromPoints(M.start,M.end);var O=D.textToScreenCoordinates(M.start.row,M.start.column),T=D.scroller.getBoundingClientRect();O.pageX=o.length&&(o=void 0),{value:o&&o[p++],done:!o}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},b=t("../lib/dom"),s=t("../lib/event"),f=t("../tooltip").Tooltip,d=t("../config").nls;_.GutterHandler=function l(o){var v,y,r=o.editor,h=r.renderer.$gutterLayer,p=new c(r);function w(){v&&(v=clearTimeout(v)),p.isOpen&&(p.hideTooltip(),r.off("mousewheel",w))}function k(I){p.setPosition(I.x,I.y)}o.editor.setDefaultHandler("guttermousedown",function(I){if(r.isFocused()&&0==I.getButton()&&"foldWidgets"!=h.getRegion(I)){var O=I.getDocumentPosition().row,T=r.session.selection;if(I.getShiftKey())T.selectTo(O,0);else{if(2==I.domEvent.detail)return r.selectAll(),I.preventDefault();o.$clickSelection=r.selection.getLineRange(O)}return o.setState("selectByLines"),o.captureMouse(I),I.preventDefault()}}),o.editor.setDefaultHandler("guttermousemove",function(I){if(b.hasCssClass(I.domEvent.target||I.domEvent.srcElement,"ace_fold-widget"))return w();p.isOpen&&o.$tooltipFollowsMouse&&k(I),y=I,!v&&(v=setTimeout(function(){v=null,y&&!o.isMousePressed?function M(){var I=y.getDocumentPosition().row;if(I==r.session.getLength()){var O=r.renderer.pixelToScreenCoordinates(0,y.y).row,T=y.$pos;if(O>r.session.documentToScreenRow(T.row,T.column))return w()}if(p.showTooltip(I),p.isOpen)if(r.on("mousewheel",w),o.$tooltipFollowsMouse)k(y);else{var U=y.getGutterRow(),S=h.$lines.get(U);if(S){var N=S.element.querySelector(".ace_gutter_annotation").getBoundingClientRect(),A=p.getElement().style;A.left=N.right+"px",A.top=N.bottom+"px"}else k(y)}}():w()},50))}),s.addListener(r.renderer.$gutter,"mouseout",function(I){y=null,p.isOpen&&!v&&(v=setTimeout(function(){v=null,w()},50))},r),r.on("changeSession",w),r.on("input",w)};var c=function(o){function r(h){var p=o.call(this,h.container)||this;return p.editor=h,p}return E(r,o),r.prototype.setPosition=function(h,p){var v=window.innerWidth||document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight,M=this.getWidth(),w=this.getHeight();(h+=15)+M>v&&(h-=h+M-v),(p+=15)+w>y&&(p-=20+w),f.prototype.setPosition.call(this,h,p)},Object.defineProperty(r,"annotationLabels",{get:function(){return{error:{singular:d("error"),plural:d("errors")},warning:{singular:d("warning"),plural:d("warnings")},info:{singular:d("information message"),plural:d("information messages")}}},enumerable:!1,configurable:!0}),r.prototype.showTooltip=function(h){var y,p=this.editor.renderer.$gutterLayer,v=p.$annotations[h];y=v?{text:Array.from(v.text),type:Array.from(v.type)}:{text:[],type:[]};var M=p.session.getFoldLine(h);if(M&&p.$showFoldedAnnotations){for(var k,w={error:[],warning:[],info:[]},I=h+1;I<=M.end.row;I++)if(p.$annotations[I])for(var D=0;D ").concat(y.text[I]);U[y.type[I].replace("_fold","")].push(R)}var N=[].concat(U.error,U.warning,U.info).join("
");this.setHtml(N),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},r.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},r.annotationsToSummaryString=function(h){var p,v,y=[];try{for(var w=u(["error","warning","info"]),k=w.next();!k.done;k=w.next()){var I=k.value;if(h[I].length){var D=1===h[I].length?r.annotationLabels[I].singular:r.annotationLabels[I].plural;y.push("".concat(h[I].length," ").concat(D))}}}catch(O){p={error:O}}finally{try{k&&!k.done&&(v=w.return)&&v.call(w)}finally{if(p)throw p.error}}return y.join(", ")},r}(f);_.GutterTooltip=c}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(t,_,C){"use strict";var E=t("../lib/event"),u=t("../lib/useragent"),b=function(){function s(f,d){this.domEvent=f,this.editor=d,this.x=this.clientX=f.clientX,this.y=this.clientY=f.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return s.prototype.stopPropagation=function(){E.stopPropagation(this.domEvent),this.propagationStopped=!0},s.prototype.preventDefault=function(){E.preventDefault(this.domEvent),this.defaultPrevented=!0},s.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},s.prototype.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},s.prototype.getGutterRow=function(){var f=this.getDocumentPosition().row;return this.editor.session.documentToScreenRow(f,0)-this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0)},s.prototype.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var d=this.editor.getSelectionRange();if(d.isEmpty())this.$inSelection=!1;else{var l=this.getDocumentPosition();this.$inSelection=d.contains(l.row,l.column)}return this.$inSelection},s.prototype.getButton=function(){return E.getButton(this.domEvent)},s.prototype.getShiftKey=function(){return this.domEvent.shiftKey},s.prototype.getAccelKey=function(){return u.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},s}();_.MouseEvent=b}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(t,_,C){"use strict";var E=t("../lib/dom"),u=t("../lib/event"),b=t("../lib/useragent");function l(o){var r=o.editor,h=E.createElement("div");h.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",h.textContent="\xa0",["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(W){o[W]=this[W]},this),r.on("mousedown",this.onMouseDown.bind(o));var y,M,w,k,I,D,T,U,S,R,N,v=r.container,O=0;function Y(){var W=D;(function A(W,K){var ce=Date.now();R&&K&&W.row==K.row&&K&&W.column==K.column?c(N.x,N.y,M,w)>5?R=null:ce-R>=200&&(r.renderer.scrollCursorIntoView(),R=null):(r.moveCursorToPosition(W),R=ce,N={x:M,y:w})})(D=r.renderer.screenToTextCoordinates(M,w),W),function F(W,K){var ce=Date.now(),ue=r.renderer.layerConfig.lineHeight,ve=r.renderer.layerConfig.characterWidth,Ye=r.renderer.scroller.getBoundingClientRect(),pt={x:{left:M-Ye.left,right:Ye.right-M},y:{top:w-Ye.top,bottom:Ye.bottom-w}},ct=Math.min(pt.x.left,pt.x.right),Ct=Math.min(pt.y.top,pt.y.bottom),We={row:W.row,column:W.column};ct/ve<=2&&(We.column+=pt.x.left=200&&r.renderer.scrollCursorIntoView(We):S=ce:S=null}(D,W)}function ee(){I=r.selection.toOrientedRange(),y=r.session.addMarker(I,"ace_selection",r.getSelectionStyle()),r.clearSelection(),r.isFocused()&&r.renderer.$cursorLayer.setBlinking(!1),clearInterval(k),Y(),k=setInterval(Y,20),O=0,u.addListener(document,"mousemove",j)}function ie(){clearInterval(k),r.session.removeMarker(y),y=null,r.selection.fromOrientedRange(I),r.isFocused()&&!U&&r.$resetCursorStyle(),I=null,D=null,O=0,S=null,R=null,u.removeListener(document,"mousemove",j)}this.onDragStart=function(W){if(this.cancelDrag||!v.draggable){var K=this;return setTimeout(function(){K.startSelect(),K.captureMouse(W)},0),W.preventDefault()}I=r.getSelectionRange();var ce=W.dataTransfer;ce.effectAllowed=r.getReadOnly()?"copy":"copyMove",r.container.appendChild(h),ce.setDragImage&&ce.setDragImage(h,0,0),setTimeout(function(){r.container.removeChild(h)}),ce.clearData(),ce.setData("Text",r.session.getTextRange()),U=!0,this.setState("drag")},this.onDragEnd=function(W){v.draggable=!1,U=!1,this.setState(null),r.getReadOnly()||(!T&&"move"==W.dataTransfer.dropEffect&&r.session.remove(r.getSelectionRange()),r.$resetCursorStyle()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(W){if(!r.getReadOnly()&&G(W.dataTransfer))return M=W.clientX,w=W.clientY,y||ee(),O++,W.dataTransfer.dropEffect=T=V(W),u.preventDefault(W)},this.onDragOver=function(W){if(!r.getReadOnly()&&G(W.dataTransfer))return M=W.clientX,w=W.clientY,y||(ee(),O++),null!==$&&($=null),W.dataTransfer.dropEffect=T=V(W),u.preventDefault(W)},this.onDragLeave=function(W){if(--O<=0&&y)return ie(),T=null,u.preventDefault(W)},this.onDrop=function(W){if(D){var K=W.dataTransfer;if(U)switch(T){case"move":I=I.contains(D.row,D.column)?{start:D,end:D}:r.moveText(I,D);break;case"copy":I=r.moveText(I,D,!0)}else{var ce=K.getData("Text");I={start:D,end:r.session.insert(D,ce)},r.focus(),T=null}return ie(),u.preventDefault(W)}},u.addListener(v,"dragstart",this.onDragStart.bind(o),r),u.addListener(v,"dragend",this.onDragEnd.bind(o),r),u.addListener(v,"dragenter",this.onDragEnter.bind(o),r),u.addListener(v,"dragover",this.onDragOver.bind(o),r),u.addListener(v,"dragleave",this.onDragLeave.bind(o),r),u.addListener(v,"drop",this.onDrop.bind(o),r);var $=null;function j(){null==$&&($=setTimeout(function(){null!=$&&y&&ie()},20))}function G(W){var K=W.types;return!K||Array.prototype.some.call(K,function(ce){return"text/plain"==ce||"Text"==ce})}function V(W){var K=["copy","copymove","all","uninitialized"],ue=b.isMac?W.altKey:W.ctrlKey,ve="uninitialized";try{ve=W.dataTransfer.effectAllowed.toLowerCase()}catch{}var Ye="none";return ue&&K.indexOf(ve)>=0?Ye="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(ve)>=0?Ye="move":K.indexOf(ve)>=0&&(Ye="copy"),Ye}}function c(o,r,h,p){return Math.sqrt(Math.pow(h-o,2)+Math.pow(p-r,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(o){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var o=this.editor;o.container.draggable=!0,o.renderer.$cursorLayer.setBlinking(!1),o.setStyle("ace_dragging"),o.renderer.setCursorStyle(b.isWin?"default":"move"),this.setState("dragReady")},this.onMouseDrag=function(o){var r=this.editor.container;b.isIE&&"dragReady"==this.state&&c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&r.dragDrop(),"dragWait"===this.state&&c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(r.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))},this.onMouseDown=function(o){if(this.$dragEnabled){this.mousedownEvent=o;var r=this.editor,h=o.inSelection(),p=o.getButton();if(1===(o.domEvent.detail||1)&&0===p&&h){if(o.editor.inMultiSelectMode&&(o.getAccelKey()||o.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=o.domEvent.target||o.domEvent.srcElement;"unselectable"in y&&(y.unselectable="on"),r.getDragDelay()?(b.isWebKit&&(this.cancelDrag=!0,r.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(o,this.onMouseDrag.bind(this)),o.defaultPrevented=!0}}}}).call(l.prototype),_.DragdropHandler=l}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(t,_,C){"use strict";var E=t("./mouse_event").MouseEvent,u=t("../lib/event"),b=t("../lib/dom");_.addTouchListeners=function(s,f){var l,c,o,r,h,p,y,I,D,d="scroll",v=0,M=0,w=0,k=0;function T(){D||function O(){var A=window.navigator&&window.navigator.clipboard,F=!1,ee=function(ie){var $=ie.target.getAttribute("action");if("more"==$||!F)return F=!F,function(){var ie=f.getCopyText(),$=f.session.getUndoManager().hasUndo();D.replaceChild(b.buildDom(F?["span",!ie&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],ie&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],ie&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],A&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],$&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),D.firstChild)}();"paste"==$?A.readText().then(function(j){f.execCommand($,j)}):$&&(("cut"==$||"copy"==$)&&(A?A.writeText(f.getCopyText()):document.execCommand("copy")),f.execCommand($)),D.firstChild.style.display="none",F=!1,"openCommandPalette"!=$&&f.focus()};D=b.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(ie){d="menu",ie.stopPropagation(),ie.preventDefault(),f.textInput.focus()},ontouchend:function(ie){ie.stopPropagation(),ie.preventDefault(),ee(ie)},onclick:ee},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],f.container)}();var A=f.selection.cursor,F=f.renderer.textToScreenCoordinates(A.row,A.column),Y=f.renderer.textToScreenCoordinates(0,0).pageX,ee=f.renderer.scrollLeft,ie=f.container.getBoundingClientRect();D.style.top=F.pageY-ie.top-3+"px",F.pageX-ie.left1)return clearTimeout(h),h=null,o=-1,void(d="zoom");I=f.$mouseHandler.isMousePressed=!0;var Y=f.renderer.layerConfig.lineHeight,ee=f.renderer.layerConfig.lineHeight,ie=A.timeStamp;r=ie;var $=F[0],j=$.clientX,G=$.clientY;Math.abs(l-j)+Math.abs(c-G)>Y&&(o=-1),l=A.clientX=j,c=A.clientY=G,w=k=0;var V=new E(A,f);if(y=V.getDocumentPosition(),ie-o<500&&1==F.length&&!v)M++,A.preventDefault(),A.button=0,function R(){h=null,clearTimeout(h),f.selection.moveToPosition(y);var A=M>=2?f.selection.getLineRange(y.row):f.session.getBracketRange(y);A&&!A.isEmpty()?f.selection.setRange(A):f.selection.selectWord(),d="wait"}();else{M=0;var W=f.selection.cursor,K=f.selection.isEmpty()?W:f.selection.anchor,ce=f.renderer.$cursorLayer.getPixelPosition(W,!0),ue=f.renderer.$cursorLayer.getPixelPosition(K,!0),ve=f.renderer.scroller.getBoundingClientRect(),Ye=f.renderer.layerConfig.offset,pt=f.renderer.scrollLeft,ct=function(Ne,Ie){return(Ne/=ee)*Ne+(Ie=Ie/Y-.75)*Ie};if(A.clientXWe?"cursor":"anchor"),d=We<3.5?"anchor":Ct<3.5?"cursor":"scroll",h=setTimeout(S,450)}o=ie},f),u.addListener(s,"touchend",function(A){I=f.$mouseHandler.isMousePressed=!1,p&&clearInterval(p),"zoom"==d?(d="",v=0):h?(f.selection.moveToPosition(y),v=0,T()):"scroll"==d?(function N(){v+=60,p=setInterval(function(){v--<=0&&(clearInterval(p),p=null),Math.abs(w)<.01&&(w=0),Math.abs(k)<.01&&(k=0),v<20&&(w*=.9),v<20&&(k*=.9);var A=f.session.getScrollTop();f.renderer.scrollBy(10*w,10*k),A==f.session.getScrollTop()&&(v=0)},10)}(),U()):T(),clearTimeout(h),h=null},f),u.addListener(s,"touchmove",function(A){h&&(clearTimeout(h),h=null);var F=A.touches;if(!(F.length>1||"zoom"==d)){var Y=F[0],ee=l-Y.clientX,ie=c-Y.clientY;if("wait"==d){if(!(ee*ee+ie*ie>4))return A.preventDefault();d="cursor"}l=Y.clientX,c=Y.clientY,A.clientX=Y.clientX,A.clientY=Y.clientY;var $=A.timeStamp,j=$-r;if(r=$,"scroll"==d){var G=new E(A,f);G.speed=1,G.wheelX=ee,G.wheelY=ie,10*Math.abs(ee)=pt){for(Ie=Ne+1;Ie=pt;)Ie++;for(rt=Ne,Ee=Ie-1;rt=ct.length||2!=(Ie=Ct[We-1])&&3!=Ie||2!=(rt=ct[We+1])&&3!=rt?4:(f&&(rt=3),rt==Ie?rt:4);case 10:return 2==(Ie=We>0?Ct[We-1]:5)&&We+10&&2==Ct[We-1])return 2;if(f)return 4;for(be=We+1,Ee=ct.length;be=1425&&Se<=2303||64286==Se)&&(1==Ie||7==Ie))return 1}return We<1||5==(Ie=ct[We-1])?4:Ct[We-1];case 5:return f=!1,l=!0,b;case 6:return c=!0,4;case 13:case 14:case 16:case 17:case 15:f=!1;case G:return 4}}function ve(pt){var ct=pt.charCodeAt(0),Ct=ct>>8;return 0==Ct?ct>191?0:V[ct]:5==Ct?/[\u0591-\u05f4]/.test(pt)?1:0:6==Ct?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(pt)?12:/[\u0660-\u0669\u066b-\u066c]/.test(pt)?3:1642==ct?A:/[\u06f0-\u06f9]/.test(pt)?2:7:32==Ct&&ct<=8287?W[255&ct]:254==Ct&&ct>=65136?7:4}_.L=0,_.R=1,_.EN=2,_.ON_R=3,_.AN=4,_.R_H=5,_.B=6,_.RLE=7,_.DOT="\xb7",_.doBidiReorder=function(pt,ct,Ct){if(pt.length<2)return{};var We=pt.split(""),Ne=new Array(We.length),Ie=new Array(We.length),rt=[];b=Ct?1:0,function K(pt,ct,Ct,We){var Ne=b?p:h,Ie=null,rt=null,Ee=null,be=0,Se=null,pe=-1,Re=null,bt=null,it=[];if(!We)for(Re=0,We=[];Re0)if(16==Se){for(Re=pe;Re-1){for(Re=pe;Re=0&&8==We[ye];ye--)ct[ye]=b}}(We,rt,We.length,ct);for(var Ee=0;Ee7&&ct[Ee]<13||4===ct[Ee]||ct[Ee]===G)?rt[Ee]=_.ON_R:Ee>0&&"\u0644"===We[Ee-1]&&/\u0622|\u0623|\u0625|\u0627/.test(We[Ee])&&(rt[Ee-1]=rt[Ee]=_.R_H,Ee++);for(We[We.length-1]===_.DOT&&(rt[We.length-1]=_.B),"\u202b"===We[0]&&(rt[0]=_.RLE),Ee=0;Ee=0&&(d=this.session.$docRowCache[c])}return d},f.prototype.getSplitIndex=function(){var d=0,l=this.session.$screenRowCache;if(l.length)for(var c,o=this.session.$getRowCacheIndex(l,this.currentRow);this.currentRow-d>0&&(c=this.session.$getRowCacheIndex(l,this.currentRow-d-1))===o;)o=c,d++;else d=this.currentRow;return d},f.prototype.updateRowLine=function(d,l){void 0===d&&(d=this.getDocumentRow());var o=d===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(d),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var r=this.session.$wrapData[d];r&&(void 0===l&&(l=this.getSplitIndex()),l>0&&r.length?(this.wrapIndent=r.indent,this.wrapOffset=this.wrapIndent*this.charWidths[E.L],this.line=ll?this.session.getOverwrite()?d:d-1:l,o=E.getVisualFromLogicalIdx(c,this.bidiMap),r=this.bidiMap.bidiLevels,h=0;!this.session.getOverwrite()&&d<=l&&r[o]%2!=0&&o++;for(var p=0;pl&&r[o]%2==0&&(h+=this.charWidths[r[o]]),this.wrapIndent&&(h+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(h+=this.rtlLineOffset),h},f.prototype.getSelections=function(d,l){var r,c=this.bidiMap,o=c.bidiLevels,h=[],p=0,v=Math.min(d,l)-this.wrapIndent,y=Math.max(d,l)-this.wrapIndent,M=!1,w=!1,k=0;this.wrapIndent&&(p+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var I,D=0;D=v&&Io+p/2;){if(o+=p,r===h.length-1){p=0;break}p=this.charWidths[h[++r]]}return r>0&&h[r-1]%2!=0&&h[r]%2==0?(c0&&h[r-1]%2==0&&h[r]%2!=0?l=1+(c>o?this.bidiMap.logicalFromVisual[r]:this.bidiMap.logicalFromVisual[r-1]):this.isRtlDir&&r===h.length-1&&0===p&&h[r-1]%2==0||!this.isRtlDir&&0===r&&h[r]%2!=0?l=1+this.bidiMap.logicalFromVisual[r]:(r>0&&h[r-1]%2!=0&&0!==p&&r--,l=this.bidiMap.logicalFromVisual[r]),0===l&&this.isRtlDir&&l++,l+this.wrapIndent},f}();_.BidiHandler=s}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(t,_,C){"use strict";var E=t("./lib/oop"),u=t("./lib/lang"),b=t("./lib/event_emitter").EventEmitter,s=t("./range").Range,f=function(){function d(l){this.session=l,this.doc=l.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var c=this;this.cursor.on("change",function(o){c.$cursorChanged=!0,c.$silent||c._emit("changeCursor"),!c.$isEmpty&&!c.$silent&&c._emit("changeSelection"),!c.$keepDesiredColumnOnChange&&o.old.column!=o.value.column&&(c.$desiredColumn=null)}),this.anchor.on("change",function(){c.$anchorChanged=!0,!c.$isEmpty&&!c.$silent&&c._emit("changeSelection")})}return d.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},d.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},d.prototype.getCursor=function(){return this.lead.getPosition()},d.prototype.setAnchor=function(l,c){this.$isEmpty=!1,this.anchor.setPosition(l,c)},d.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},d.prototype.getSelectionLead=function(){return this.lead.getPosition()},d.prototype.isBackwards=function(){var l=this.anchor,c=this.lead;return l.row>c.row||l.row==c.row&&l.column>c.column},d.prototype.getRange=function(){var l=this.anchor,c=this.lead;return this.$isEmpty?s.fromPoints(c,c):this.isBackwards()?s.fromPoints(c,l):s.fromPoints(l,c)},d.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},d.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},d.prototype.setRange=function(l,c){var o=c?l.end:l.start,r=c?l.start:l.end;this.$setSelection(o.row,o.column,r.row,r.column)},d.prototype.$setSelection=function(l,c,o,r){if(!this.$silent){var h=this.$isEmpty,p=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(l,c),this.cursor.setPosition(o,r),this.$isEmpty=!s.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||h!=this.$isEmpty||p)&&this._emit("changeSelection")}},d.prototype.$moveSelection=function(l){var c=this.lead;this.$isEmpty&&this.setSelectionAnchor(c.row,c.column),l.call(this)},d.prototype.selectTo=function(l,c){this.$moveSelection(function(){this.moveCursorTo(l,c)})},d.prototype.selectToPosition=function(l){this.$moveSelection(function(){this.moveCursorToPosition(l)})},d.prototype.moveTo=function(l,c){this.clearSelection(),this.moveCursorTo(l,c)},d.prototype.moveToPosition=function(l){this.clearSelection(),this.moveCursorToPosition(l)},d.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},d.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},d.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},d.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},d.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},d.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},d.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},d.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},d.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},d.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},d.prototype.getWordRange=function(l,c){if(typeof c>"u"){var o=l||this.lead;l=o.row,c=o.column}return this.session.getWordRange(l,c)},d.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},d.prototype.selectAWord=function(){var l=this.getCursor(),c=this.session.getAWordRange(l.row,l.column);this.setSelectionRange(c)},d.prototype.getLineRange=function(l,c){var r,o="number"==typeof l?l:this.lead.row,h=this.session.getFoldLine(o);return h?(o=h.start.row,r=h.end.row):r=o,!0===c?new s(o,0,r,this.session.getLine(r).length):new s(o,0,r+1,0)},d.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},d.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},d.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},d.prototype.wouldMoveIntoSoftTab=function(l,c,o){var r=l.column,h=l.column+c;return o<0&&(r=l.column-c,h=l.column),this.session.isTabStop(l)&&this.doc.getLine(l.row).slice(r,h).split(" ").length-1==c},d.prototype.moveCursorLeft=function(){var c,l=this.lead.getPosition();if(c=this.session.getFoldAt(l.row,l.column,-1))this.moveCursorTo(c.start.row,c.start.column);else if(0===l.column)l.row>0&&this.moveCursorTo(l.row-1,this.doc.getLine(l.row-1).length);else{var o=this.session.getTabSize();this.wouldMoveIntoSoftTab(l,o,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-o):this.moveCursorBy(0,-1)}},d.prototype.moveCursorRight=function(){var c,l=this.lead.getPosition();if(c=this.session.getFoldAt(l.row,l.column,1))this.moveCursorTo(c.end.row,c.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(c.column=r)}}this.moveCursorTo(c.row,c.column)},d.prototype.moveCursorFileEnd=function(){var l=this.doc.getLength()-1,c=this.doc.getLine(l).length;this.moveCursorTo(l,c)},d.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},d.prototype.moveCursorLongWordRight=function(){var l=this.lead.row,c=this.lead.column,o=this.doc.getLine(l),r=o.substring(c);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var h=this.session.getFoldAt(l,c,1);if(!h)return this.session.nonTokenRe.exec(r)&&(c+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,r=o.substring(c)),c>=o.length?(this.moveCursorTo(l,o.length),this.moveCursorRight(),void(l0&&this.moveCursorWordLeft());this.session.tokenRe.exec(h)&&(c-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,c)}},d.prototype.$shortWordEndIndex=function(l){var o,c=0,r=/\s/,h=this.session.tokenRe;if(h.lastIndex=0,this.session.tokenRe.exec(l))c=this.session.tokenRe.lastIndex;else{for(;(o=l[c])&&r.test(o);)c++;if(c<1)for(h.lastIndex=0;(o=l[c])&&!h.test(o);)if(h.lastIndex=0,c++,r.test(o)){if(c>2){c--;break}for(;(o=l[c])&&r.test(o);)c++;if(c>2)break}}return h.lastIndex=0,c},d.prototype.moveCursorShortWordRight=function(){var l=this.lead.row,c=this.lead.column,o=this.doc.getLine(l),r=o.substring(c),h=this.session.getFoldAt(l,c,1);if(h)return this.moveCursorTo(h.end.row,h.end.column);if(c==o.length){var p=this.doc.getLength();do{l++,r=this.doc.getLine(l)}while(l0&&/^\s*$/.test(r));c=r.length,/\s+$/.test(r)||(r="")}var h=u.stringReverse(r),p=this.$shortWordEndIndex(h);return this.moveCursorTo(l,c-p)},d.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},d.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},d.prototype.moveCursorBy=function(l,c){var r,o=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===c&&(0!==l&&(this.session.$bidiHandler.isBidiRow(o.row,this.lead.row)?(r=this.session.$bidiHandler.getPosLeft(o.column),o.column=Math.round(r/this.session.$bidiHandler.charWidths[0])):r=o.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?o.column=this.$desiredColumn:this.$desiredColumn=o.column),0!=l&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var h=this.session.lineWidgets[this.lead.row];l<0?l-=h.rowsAbove||0:l>0&&(l+=h.rowCount-(h.rowsAbove||0))}var p=this.session.screenToDocumentPosition(o.row+l,o.column,r);this.moveCursorTo(p.row,p.column+c,0===c)},d.prototype.moveCursorToPosition=function(l){this.moveCursorTo(l.row,l.column)},d.prototype.moveCursorTo=function(l,c,o){var r=this.session.getFoldAt(l,c,1);r&&(l=r.start.row,c=r.start.column),this.$keepDesiredColumnOnChange=!0;var h=this.session.getLine(l);/[\uDC00-\uDFFF]/.test(h.charAt(c))&&h.charAt(c-1)&&(this.lead.row==l&&this.lead.column==c+1?c-=1:c+=1),this.lead.setPosition(l,c),this.$keepDesiredColumnOnChange=!1,o||(this.$desiredColumn=null)},d.prototype.moveCursorToScreen=function(l,c,o){var r=this.session.screenToDocumentPosition(l,c);this.moveCursorTo(r.row,r.column,o)},d.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},d.prototype.fromOrientedRange=function(l){this.setSelectionRange(l,l.cursor==l.start),this.$desiredColumn=l.desiredColumn||this.$desiredColumn},d.prototype.toOrientedRange=function(l){var c=this.getRange();return l?(l.start.column=c.start.column,l.start.row=c.start.row,l.end.column=c.end.column,l.end.row=c.end.row):l=c,l.cursor=this.isBackwards()?l.start:l.end,l.desiredColumn=this.$desiredColumn,l},d.prototype.getRangeOfMovements=function(l){var c=this.getCursor();try{l(this);var o=this.getCursor();return s.fromPoints(c,o)}catch{return s.fromPoints(c,c)}finally{this.moveCursorToPosition(c)}},d.prototype.toJSON=function(){if(this.rangeCount)var l=this.ranges.map(function(c){var o=c.clone();return o.isBackwards=c.cursor==c.start,o});else(l=this.getRange()).isBackwards=this.isBackwards();return l},d.prototype.fromJSON=function(l){if(null==l.start){if(this.rangeList&&l.length>1){this.toSingleRange(l[0]);for(var c=l.length;c--;){var o=s.fromPoints(l[c].start,l[c].end);l[c].isBackwards&&(o.cursor=o.start),this.addRange(o,!0)}return}l=l[0]}this.rangeList&&this.toSingleRange(l),this.setSelectionRange(l,l.isBackwards)},d.prototype.isEqual=function(l){if((l.length||this.rangeCount)&&l.length!=this.rangeCount)return!1;if(!l.length||!this.ranges)return this.getRange().isEqual(l);for(var c=this.ranges.length;c--;)if(!this.ranges[c].isEqual(l[c]))return!1;return!0},d}();f.prototype.setSelectionAnchor=f.prototype.setAnchor,f.prototype.getSelectionAnchor=f.prototype.getAnchor,f.prototype.setSelectionRange=f.prototype.setRange,E.implement(f.prototype,b),_.Selection=f}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(t,_,C){"use strict";var E=t("./lib/report_error").reportError,u=2e3,b=function(){function s(f){for(var d in this.states=f,this.regExps={},this.matchMappings={},this.states){for(var l=this.states[d],c=[],o=0,r=this.matchMappings[d]={defaultToken:"text"},h="g",p=[],v=0;v1?this.$applyToken:y.token),w>1&&(/\\\d/.test(y.regex)?M=y.regex.replace(/\\([0-9]+)/g,function(k,I){return"\\"+(parseInt(I,10)+o+1)}):(w=1,M=this.removeCapturingGroups(y.regex)),!y.splitRegex&&"string"!=typeof y.token&&p.push(y)),r[o]=v,o+=w,c.push(M),y.onMatch||(y.onMatch=null)}}c.length||(r[0]=0,c.push("$")),p.forEach(function(k){k.splitRegex=this.createSplitterRegexp(k.regex,h)},this),this.regExps[d]=new RegExp("("+c.join(")|(")+")|($)",h)}}return s.prototype.$setMaxTokenCount=function(f){u=0|f},s.prototype.$applyToken=function(f){var d=this.splitRegex.exec(f).slice(1),l=this.token.apply(this,d);if("string"==typeof l)return[{type:l,value:f}];for(var c=[],o=0,r=l.length;oy){var T=f.substring(y,O-D.length);w.type==k?w.value+=T:(w.type&&v.push(w),w={type:k,value:T})}for(var U=0;Uu){for(M>2*f.length&&this.reportError("infinite loop with in ace tokenizer",{startState:d,line:f});y1&&l[0]!==c&&l.unshift("#tmp",c),{tokens:v,state:l.length?l:c}},s}();b.prototype.reportError=E,_.Tokenizer=b}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(t,_,C){"use strict";var u,E=t("../lib/deep_copy").deepCopy;(function(){this.addRules=function(f,d){if(d)for(var l in f){for(var c=f[l],o=0;o=this.$rowTokens.length;){if(this.$row+=1,s||(s=this.$session.getLength()),this.$row>=s)return this.$row=s-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},b.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},b.prototype.getCurrentTokenRow=function(){return this.$row},b.prototype.getCurrentTokenColumn=function(){var s=this.$rowTokens,f=this.$tokenIndex,d=s[f].start;if(void 0!==d)return d;for(d=0;f>0;)d+=s[f-=1].value.length;return d},b.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},b.prototype.getCurrentTokenRange=function(){var s=this.$rowTokens[this.$tokenIndex],f=this.getCurrentTokenColumn();return new E(this.$row,f,this.$row,f+s.value.length)},b}();_.TokenIterator=u}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(t,_,C){"use strict";var l,p,E=t("../../lib/oop"),u=t("../behaviour").Behaviour,b=t("../../token_iterator").TokenIterator,s=t("../../lib/lang"),f=["text","paren.rparen","rparen","paren","punctuation.operator"],d=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],c={},o={'"':'"',"'":"'"},r=function(v){var y=-1;if(v.multiSelect&&(y=v.selection.index,c.rangeCount!=v.multiSelect.rangeCount&&(c={rangeCount:v.multiSelect.rangeCount})),c[y])return l=c[y];l=c[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},h=function(v,y,M,w){var k=v.end.row-v.start.row;return{text:M+y+w,selection:[0,v.start.column+1,k,v.end.column+(k?0:1)]}};(p=function(v){v=v||{},this.add("braces","insertion",function(y,M,w,k,I){var D=w.getCursorPosition(),O=k.doc.getLine(D.row);if("{"==I){r(w);var T=w.getSelectionRange(),U=k.doc.getTextRange(T);if(""!==U&&"{"!==U&&w.getWrapBehavioursEnabled())return h(T,U,"{","}");if(p.isSaneInsertion(w,k))return/[\]\}\)]/.test(O[D.column])||w.inMultiSelectMode||v.braces?(p.recordAutoInsert(w,k,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(w,k,"{"),{text:"{",selection:[1,1]})}else if("}"==I){if(r(w),"}"==O.substring(D.column,D.column+1)&&null!==k.$findOpeningBracket("}",{column:D.column+1,row:D.row})&&p.isAutoInsertedClosing(D,O,I))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==I||"\r\n"==I){r(w);var N="";if(p.isMaybeInsertedClosing(D,O)&&(N=s.stringRepeat("}",l.maybeInsertedBrackets),p.clearMaybeInsertedClosing()),"}"===O.substring(D.column,D.column+1)){var A=k.findMatchingBracket({row:D.row,column:D.column+1},"}");if(!A)return null;var F=this.$getIndent(k.getLine(A.row))}else{if(!N)return void p.clearMaybeInsertedClosing();F=this.$getIndent(O)}var Y=F+k.getTabString();return{text:"\n"+Y+"\n"+F+N,selection:[1,Y.length,1,Y.length]}}p.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function(y,M,w,k,I){var D=k.doc.getTextRange(I);if(!I.isMultiLine()&&"{"==D){if(r(w),"}"==k.doc.getLine(I.start.row).substring(I.end.column,I.end.column+1))return I.end.column++,I;l.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,M,w,k,I){if("("==I){r(w);var D=w.getSelectionRange(),O=k.doc.getTextRange(D);if(""!==O&&w.getWrapBehavioursEnabled())return h(D,O,"(",")");if(p.isSaneInsertion(w,k))return p.recordAutoInsert(w,k,")"),{text:"()",selection:[1,1]}}else if(")"==I){r(w);var T=w.getCursorPosition(),U=k.doc.getLine(T.row);if(")"==U.substring(T.column,T.column+1)&&null!==k.$findOpeningBracket(")",{column:T.column+1,row:T.row})&&p.isAutoInsertedClosing(T,U,I))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("parens","deletion",function(y,M,w,k,I){var D=k.doc.getTextRange(I);if(!I.isMultiLine()&&"("==D&&(r(w),")"==k.doc.getLine(I.start.row).substring(I.start.column+1,I.start.column+2)))return I.end.column++,I}),this.add("brackets","insertion",function(y,M,w,k,I){if("["==I){r(w);var D=w.getSelectionRange(),O=k.doc.getTextRange(D);if(""!==O&&w.getWrapBehavioursEnabled())return h(D,O,"[","]");if(p.isSaneInsertion(w,k))return p.recordAutoInsert(w,k,"]"),{text:"[]",selection:[1,1]}}else if("]"==I){r(w);var T=w.getCursorPosition(),U=k.doc.getLine(T.row);if("]"==U.substring(T.column,T.column+1)&&null!==k.$findOpeningBracket("]",{column:T.column+1,row:T.row})&&p.isAutoInsertedClosing(T,U,I))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("brackets","deletion",function(y,M,w,k,I){var D=k.doc.getTextRange(I);if(!I.isMultiLine()&&"["==D&&(r(w),"]"==k.doc.getLine(I.start.row).substring(I.start.column+1,I.start.column+2)))return I.end.column++,I}),this.add("string_dquotes","insertion",function(y,M,w,k,I){var D=k.$mode.$quotes||o;if(1==I.length&&D[I]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(I))return;r(w);var O=I,T=w.getSelectionRange(),U=k.doc.getTextRange(T);if(""!==U&&(1!=U.length||!D[U])&&w.getWrapBehavioursEnabled())return h(T,U,O,O);if(!U){var S=w.getCursorPosition(),R=k.doc.getLine(S.row),N=R.substring(S.column-1,S.column),A=R.substring(S.column,S.column+1),F=k.getTokenAt(S.row,S.column),Y=k.getTokenAt(S.row,S.column+1);if("\\"==N&&F&&/escape/.test(F.type))return null;var $,ee=F&&/string|escape/.test(F.type),ie=!Y||/string|escape/.test(Y.type);if(A==O)($=ee!==ie)&&/string\.end/.test(Y.type)&&($=!1);else{if(ee&&!ie||ee&&ie)return null;var j=k.$mode.tokenRe;j.lastIndex=0;var G=j.test(N);j.lastIndex=0;var V=j.test(A),W=k.$mode.$pairQuotesAfter;if(!(W&&W[O]&&W[O].test(N))&&G||V||A&&!/[\s;,.})\]\\]/.test(A))return null;var ce=R[S.column-2];if(N==O&&(ce==O||j.test(ce)))return null;$=!0}return{text:$?O+O:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,M,w,k,I){var D=k.$mode.$quotes||o,O=k.doc.getTextRange(I);if(!I.isMultiLine()&&D.hasOwnProperty(O)&&(r(w),k.doc.getLine(I.start.row).substring(I.start.column+1,I.start.column+2)==O))return I.end.column++,I}),!1!==v.closeDocComment&&this.add("doc comment end","insertion",function(y,M,w,k,I){if("doc-start"===y&&("\n"===I||"\r\n"===I)&&w.selection.isEmpty()){var D=w.getCursorPosition(),O=k.doc.getLine(D.row),T=k.doc.getLine(D.row+1),U=this.$getIndent(O);if(/\s*\*/.test(T))return/^\s*\*/.test(O)?{text:I+U+"* ",selection:[1,3+U.length,1,3+U.length]}:{text:I+U+" * ",selection:[1,3+U.length,1,3+U.length]};if(/\/\*\*/.test(O.substring(0,D.column)))return{text:I+U+" * "+I+" "+U+"*/",selection:[1,4+U.length,1,4+U.length]}}})}).isSaneInsertion=function(v,y){var M=v.getCursorPosition(),w=new b(y,M.row,M.column);if(!this.$matchTokenType(w.getCurrentToken()||"text",f)){if(/[)}\]]/.test(v.session.getLine(M.row)[M.column]))return!0;var k=new b(y,M.row,M.column+1);if(!this.$matchTokenType(k.getCurrentToken()||"text",f))return!1}return w.stepForward(),w.getCurrentTokenRow()!==M.row||this.$matchTokenType(w.getCurrentToken()||"text",d)},p.$matchTokenType=function(v,y){return y.indexOf(v.type||v)>-1},p.recordAutoInsert=function(v,y,M){var w=v.getCursorPosition(),k=y.doc.getLine(w.row);this.isAutoInsertedClosing(w,k,l.autoInsertedLineEnd[0])||(l.autoInsertedBrackets=0),l.autoInsertedRow=w.row,l.autoInsertedLineEnd=M+k.substr(w.column),l.autoInsertedBrackets++},p.recordMaybeInsert=function(v,y,M){var w=v.getCursorPosition(),k=y.doc.getLine(w.row);this.isMaybeInsertedClosing(w,k)||(l.maybeInsertedBrackets=0),l.maybeInsertedRow=w.row,l.maybeInsertedLineStart=k.substr(0,w.column)+M,l.maybeInsertedLineEnd=k.substr(w.column),l.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(v,y,M){return l.autoInsertedBrackets>0&&v.row===l.autoInsertedRow&&M===l.autoInsertedLineEnd[0]&&y.substr(v.column)===l.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(v,y){return l.maybeInsertedBrackets>0&&v.row===l.maybeInsertedRow&&y.substr(v.column)===l.maybeInsertedLineEnd&&y.substr(0,v.column)==l.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){l.autoInsertedLineEnd=l.autoInsertedLineEnd.substr(1),l.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){l&&(l.maybeInsertedBrackets=0,l.maybeInsertedRow=-1)},E.inherits(p,u),_.CstyleBehaviour=p}),ace.define("ace/unicode",["require","exports","module"],function(t,_,C){"use strict";for(var E=[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],u=0,b=[],s=0;s2?ce%I!=I-1:ce%I==0}}else{if(!this.blockComment)return!1;O=this.blockComment.start;var T=this.blockComment.end,S=(U=new RegExp("^(\\s*)(?:"+d.escapeRegExp(O)+")"),new RegExp("(?:"+d.escapeRegExp(T)+")\\s*$"));R=function($,j){A($,j)||(!M||/\S/.test($))&&(y.insertInLine({row:j,column:$.length},T),y.insertInLine({row:j,column:k},O))},N=function($,j){var G;(G=$.match(S))&&y.removeInLine(j,$.length-G[0].length,$.length),(G=$.match(U))&&y.removeInLine(j,G[1].length,G[0].length)},A=function($,j){if(U.test($))return!0;for(var G=h.getTokens(j),V=0;V$.length&&(ie=$.length)}),k==1/0&&(k=ie,M=!1,w=!1),D&&k%I!=0&&(k=Math.floor(k/I)*I),ee(w?N:R)},this.toggleBlockComment=function(r,h,p,v){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var D,O,w=(M=new l(h,v.row,v.column)).getCurrentToken(),I=h.selection.toOrientedRange();if(w&&/comment/.test(w.type)){for(var T,U;w&&/comment/.test(w.type);){if(-1!=(S=w.value.indexOf(y.start))){var R=M.getCurrentTokenRow(),N=M.getCurrentTokenColumn()+S;T=new c(R,N,R,N+y.start.length);break}w=M.stepBackward()}var M;for(w=(M=new l(h,v.row,v.column)).getCurrentToken();w&&/comment/.test(w.type);){var S;if(-1!=(S=w.value.indexOf(y.end))){R=M.getCurrentTokenRow(),N=M.getCurrentTokenColumn()+S,U=new c(R,N,R,N+y.end.length);break}w=M.stepForward()}U&&h.remove(U),T&&(h.remove(T),D=T.start.row,O=-y.start.length)}else O=y.start.length,D=p.start.row,h.insert(p.end,y.end),h.insert(p.start,y.start);I.start.row==D&&(I.start.column+=O),I.end.row==D&&(I.end.column+=O),h.selection.fromOrientedRange(I)}},this.getNextLineIndent=function(r,h,p){return this.$getIndent(h)},this.checkOutdent=function(r,h,p){return!1},this.autoOutdent=function(r,h,p){},this.$getIndent=function(r){return r.match(/^\s*/)[0]},this.createWorker=function(r){return null},this.createModeDelegates=function(r){for(var h in this.$embeds=[],this.$modes={},r)if(r[h]){var p=r[h],v=p.prototype.$id,y=E.$modes[v];y||(E.$modes[v]=y=new p),E.$modes[h]||(E.$modes[h]=y),this.$embeds.push(h),this.$modes[h]=y}var M=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],w=function(I){var D,O,T;T=(D=k)[O=M[I]],D[M[I]]=function(){return this.$delegator(O,arguments,T)}},k=this;for(h=0;hthis.row)){var c=function f(d,l,c){var o="insert"==d.action,r=(o?1:-1)*(d.end.row-d.start.row),h=(o?1:-1)*(d.end.column-d.start.column),p=d.start,v=o?p:d.end;return s(l,p,c)?{row:l.row,column:l.column}:s(v,l,!c)?{row:l.row+r,column:l.column+(l.row==v.row?h:0)}:{row:p.row,column:p.column}}(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(c.row,c.column,!0)}},d.prototype.setPosition=function(l,c,o){var r;if(r=o?{row:l,column:c}:this.$clipPositionToDocument(l,c),this.row!=r.row||this.column!=r.column){var h={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:h,value:r})}},d.prototype.detach=function(){this.document.off("change",this.$onChange)},d.prototype.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},d.prototype.$clipPositionToDocument=function(l,c){var o={};return l>=this.document.getLength()?(o.row=Math.max(0,this.document.getLength()-1),o.column=this.document.getLine(o.row).length):l<0?(o.row=0,o.column=0):(o.row=l,o.column=Math.min(this.document.getLine(o.row).length,Math.max(0,c))),c<0&&(o.column=0),o},d}();function s(d,l,c){return d.row=r&&(c=r-1,o=void 0);var h=this.getLine(c);return null==o&&(o=h.length),{row:c,column:o=Math.min(Math.max(o,0),h.length)}},l.prototype.clonePos=function(c){return{row:c.row,column:c.column}},l.prototype.pos=function(c,o){return{row:c,column:o}},l.prototype.$clipPosition=function(c){var o=this.getLength();return c.row>=o?(c.row=Math.max(0,o-1),c.column=this.getLine(o-1).length):(c.row=Math.max(0,c.row),c.column=Math.min(Math.max(c.column,0),this.getLine(c.row).length)),c},l.prototype.insertFullLines=function(c,o){var r=0;(c=Math.min(Math.max(c,0),this.getLength()))0,h=o=0&&this.applyDelta({start:this.pos(c,this.getLine(c).length),end:this.pos(c+1,0),action:"remove",lines:["",""]})},l.prototype.replace=function(c,o){return c instanceof s||(c=s.fromPoints(c.start,c.end)),0===o.length&&c.isEmpty()?c.start:o==this.getTextRange(c)?c.end:(this.remove(c),o?this.insert(c.start,o):c.start)},l.prototype.applyDeltas=function(c){for(var o=0;o=0;o--)this.revertDelta(c[o])},l.prototype.applyDelta=function(c,o){var r="insert"==c.action;(r?c.lines.length<=1&&!c.lines[0]:!s.comparePoints(c.start,c.end))||(r&&c.lines.length>2e4?this.$splitAndapplyLargeDelta(c,2e4):(u(this.$lines,c,o),this._signal("change",c)))},l.prototype.$safeApplyDelta=function(c){var o=this.$lines.length;("remove"==c.action&&c.start.row20){l.running=setTimeout(l.$worker,20);break}}l.currentLine=o,-1==r&&(r=o),p<=r&&l.fireUpdateEvent(p,r)}}}return s.prototype.setTokenizer=function(f){this.tokenizer=f,this.lines=[],this.states=[],this.start(0)},s.prototype.setDocument=function(f){this.doc=f,this.lines=[],this.states=[],this.stop()},s.prototype.fireUpdateEvent=function(f,d){this._signal("update",{data:{first:f,last:d}})},s.prototype.start=function(f){this.currentLine=Math.min(f||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)},s.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},s.prototype.$updateOnChange=function(f){var d=f.start.row,l=f.end.row-d;if(0===l)this.lines[d]=null;else if("remove"==f.action)this.lines.splice(d,l+1,null),this.states.splice(d,l+1,null);else{var c=Array(l+1);c.unshift(d,1),this.lines.splice.apply(this.lines,c),this.states.splice.apply(this.states,c)}this.currentLine=Math.min(d,this.currentLine,this.doc.getLength()),this.stop()},s.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},s.prototype.getTokens=function(f){return this.lines[f]||this.$tokenizeRow(f)},s.prototype.getState=function(f){return this.currentLine==f&&this.$tokenizeRow(f),this.states[f]||"start"},s.prototype.$tokenizeRow=function(f){var d=this.doc.getLine(f),c=this.tokenizer.getLineTokens(d,this.states[f-1],f);return this.states[f]+""!=c.state+""?(this.states[f]=c.state,this.lines[f+1]=null,this.currentLine>f+1&&(this.currentLine=f+1)):this.currentLine==f&&(this.currentLine=f+1),this.lines[f]=c.tokens},s.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},s}();E.implement(b.prototype,u),_.BackgroundTokenizer=b}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(t,_,C){"use strict";var E=t("./lib/lang"),u=t("./range").Range,b=function(){function s(f,d,l){void 0===l&&(l="text"),this.setRegexp(f),this.clazz=d,this.type=l}return s.prototype.setRegexp=function(f){this.regExp+""!=f+""&&(this.regExp=f,this.cache=[])},s.prototype.update=function(f,d,l,c){if(this.regExp)for(var r=c.lastRow,h={},p=c.firstRow;p<=r;p++){var v=this.cache[p];null==v&&((v=E.getMatchOffsets(l.getLine(p),this.regExp)).length>this.MAX_RANGES&&(v=v.slice(0,this.MAX_RANGES)),v=v.map(function(k){return new u(p,k.offset,p,k.offset+k.length)}),this.cache[p]=v.length?v:"");for(var y=v.length;y--;){var M=v[y].toScreenRange(l),w=M.toString();h[w]||(h[w]=!0,d.drawSingleLineMarker(f,M,this.clazz,c))}}},s}();b.prototype.MAX_RANGES=500,_.SearchHighlight=b}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(t,_,C){"use strict";var E=function(){function D(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return D.prototype.addSession=function(O){this.$session=O},D.prototype.add=function(O,T,U){if(!this.$fromUndo&&O!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),!1===T||!this.lastDeltas){this.lastDeltas=[];var S=this.$undoStack.length;S>this.$undoDepth-1&&this.$undoStack.splice(0,S-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),O.id=this.$rev=++this.$maxRev}("remove"==O.action||"insert"==O.action)&&(this.$lastDelta=O),this.lastDeltas.push(O)}},D.prototype.addSelection=function(O,T){this.selections.push({value:O,rev:T||this.$rev})},D.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},D.prototype.markIgnored=function(O,T){null==T&&(T=this.$rev+1);for(var U=this.$undoStack,S=U.length;S--;){var R=U[S][0];if(R.id<=O)break;R.id0},D.prototype.canRedo=function(){return this.$redoStack.length>0},D.prototype.bookmark=function(O){null==O&&(O=this.$rev),this.mark=O},D.prototype.isAtBookmark=function(){return this.$rev===this.mark},D.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},D.prototype.fromJSON=function(O){this.reset(),this.$undoStack=O.$undoStack,this.$redoStack=O.$redoStack},D.prototype.$prettyPrint=function(O){return O?o(O):o(this.$undoStack)+"\n---\n"+o(this.$redoStack)},D}();E.prototype.hasUndo=E.prototype.canUndo,E.prototype.hasRedo=E.prototype.canRedo,E.prototype.isClean=E.prototype.isAtBookmark,E.prototype.markClean=E.prototype.bookmark;var b=t("./range").Range,s=b.comparePoints;function l(D){return{row:D.row,column:D.column}}function o(D){if(D=D||this,Array.isArray(D))return D.map(o).join("\n");var O="";return D.action?(O="insert"==D.action?"+":"-",O+="["+D.lines+"]"):D.value&&(O=Array.isArray(D.value)?D.value.map(r).join("\n"):r(D.value)),D.start&&(O+=r(D)),(D.id||D.rev)&&(O+="\t("+(D.id||D.rev)+")"),O}function r(D){return D.start.row+":"+D.start.column+"=>"+D.end.row+":"+D.end.column}function h(D,O){var T="insert"==D.action,U="insert"==O.action;if(T&&U)if(s(O.start,D.end)>=0)y(O,D,-1);else{if(!(s(O.start,D.start)<=0))return null;y(D,O,1)}else if(T&&!U)if(s(O.start,D.end)>=0)y(O,D,-1);else{if(!(s(O.end,D.start)<=0))return null;y(D,O,-1)}else if(!T&&U)if(s(O.start,D.start)>=0)y(O,D,1);else{if(!(s(O.start,D.start)<=0))return null;y(D,O,1)}else if(!T&&!U)if(s(O.start,D.start)>=0)y(O,D,1);else{if(!(s(O.end,D.start)<=0))return null;y(D,O,-1)}return[O,D]}function p(D,O){for(var T=D.length;T--;)for(var U=0;U=0?y(D,O,-1):(s(D.start,O.start)<=0||y(D,b.fromPoints(O.start,D.start),-1),y(O,D,1));else if(!T&&U)s(O.start,D.end)>=0?y(O,D,-1):(s(O.start,D.start)<=0||y(O,b.fromPoints(D.start,O.start),-1),y(D,O,1));else if(!T&&!U)if(s(O.start,D.end)>=0)y(O,D,-1);else{var S,R;if(!(s(O.end,D.start)<=0))return s(D.start,O.start)<0&&(S=D,D=w(D,O.start)),s(D.end,O.end)>0&&(R=w(D,O.end)),M(O.end,D.start,D.end,-1),R&&!S&&(D.lines=R.lines,D.start=R.start,D.end=R.end,R=D),[O,S,R].filter(Boolean);y(D,O,-1)}return[O,D]}function y(D,O,T){M(D.start,O.start,O.end,T),M(D.end,O.start,O.end,T)}function M(D,O,T,U){D.row==(1==U?O:T).row&&(D.column+=U*(T.column-O.column)),D.row+=U*(T.row-O.row)}function w(D,O){var T=D.lines,U=D.end;D.end=l(O);var S=D.end.row-D.start.row,R=T.splice(S,T.length),N=S?O.column:O.column-D.start.column;return T.push(R[0].substring(0,N)),R[0]=R[0].substr(N),{start:l(O),end:U,lines:R,action:D.action}}function k(D,O){O=function c(D){return{start:l(D.start),end:l(D.end),action:D.action,lines:D.lines.slice()}}(O);for(var T=D.length;T--;){for(var U=D[T],S=0;Sthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(s),this.folds.sort(function(f,d){return-f.range.compareEnd(d.start.row,d.start.column)}),this.range.compareEnd(s.start.row,s.start.column)>0?(this.end.row=s.end.row,this.end.column=s.end.column):this.range.compareStart(s.end.row,s.end.column)<0&&(this.start.row=s.start.row,this.start.column=s.start.column)}else if(s.start.row==this.end.row)this.folds.push(s),this.end.row=s.end.row,this.end.column=s.end.column;else{if(s.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(s),this.start.row=s.start.row,this.start.column=s.start.column}s.foldLine=this},b.prototype.containsRow=function(s){return s>=this.start.row&&s<=this.end.row},b.prototype.walk=function(s,f,d){var o,r,l=0,c=this.folds,p=!0;null==f&&(f=this.end.row,d=this.end.column);for(var v=0;v0)){var p=u(f,r.start);return 0===h?d&&0!==p?-o-2:o:p>0||0===p&&!d?o:-o-1}}return-o-1},s.prototype.add=function(f){var d=!f.isEmpty(),l=this.pointIndex(f.start,d);l<0&&(l=-l-1);var c=this.pointIndex(f.end,d,l);return c<0?c=-c-1:c++,this.ranges.splice(l,c-l,f)},s.prototype.addList=function(f){for(var d=[],l=f.length;l--;)d.push.apply(d,this.add(f[l]));return d},s.prototype.substractPoint=function(f){var d=this.pointIndex(f);if(d>=0)return this.ranges.splice(d,1)},s.prototype.merge=function(){for(var c,f=[],d=this.ranges,l=(d=d.sort(function(h,p){return u(h.start,p.start)}))[0],o=1;o=0},s.prototype.containsPoint=function(f){return this.pointIndex(f)>=0},s.prototype.rangeAtPoint=function(f){var d=this.pointIndex(f);if(d>=0)return this.ranges[d]},s.prototype.clipRows=function(f,d){var l=this.ranges;if(l[0].start.row>d||l[l.length-1].start.row=c);h++);if("insert"==f.action){for(var y=o-c,M=-d.column+l.column;hc);h++)if(v.start.row==c&&v.start.column>=d.column&&(v.start.column==d.column&&this.$bias<=0||(v.start.column+=M,v.start.row+=y)),v.end.row==c&&v.end.column>=d.column){if(v.end.column==d.column&&this.$bias<0)continue;v.end.column==d.column&&M>0&&hv.start.column&&v.end.column==r[h+1].start.column&&(v.end.column-=M),v.end.column+=M,v.end.row+=y}}else for(y=c-o,M=d.column-l.column;ho);h++)v.end.rowd.column)&&(v.end.column=d.column,v.end.row=d.row):(v.end.column+=M,v.end.row+=y):v.end.row>o&&(v.end.row+=y),v.start.rowd.column)&&(v.start.column=d.column,v.start.row=d.row):(v.start.column+=M,v.start.row+=y):v.start.row>o&&(v.start.row+=y);if(0!=y&&h=l)return h;if(h.end.row>l)return null}return null},this.getNextFoldLine=function(l,c){var o=this.$foldData,r=0;for(c&&(r=o.indexOf(c)),-1==r&&(r=0);r=l)return h}return null},this.getFoldedRowCount=function(l,c){for(var o=this.$foldData,r=c-l+1,h=0;h=c){y=l?r-=c-y:r=0);break}v>=l&&(r-=y>=l?v-y:v-l+1)}return r},this.$addFoldLine=function(l){return this.$foldData.push(l),this.$foldData.sort(function(c,o){return c.start.row-o.start.row}),l},this.addFold=function(l,c){var h,o=this.$foldData,r=!1;l instanceof b?h=l:(h=new b(c,l)).collapseChildren=c.collapseChildren,this.$clipRangeToDocument(h.range);var p=h.start.row,v=h.start.column,y=h.end.row,M=h.end.column,w=this.getFoldAt(p,v,1),k=this.getFoldAt(y,M,-1);if(w&&k==w)return w.addSubFold(h);w&&!w.range.isStart(p,v)&&this.removeFold(w),k&&!k.range.isEnd(y,M)&&this.removeFold(k);var I=this.getFoldsInRange(h.range);I.length>0&&(this.removeFolds(I),h.collapseChildren||I.forEach(function(U){h.addSubFold(U)}));for(var D=0;D0&&this.foldAll(l.start.row+1,l.end.row,l.collapseChildren-1),l.subFolds=[]},this.expandFolds=function(l){l.forEach(function(c){this.expandFold(c)},this)},this.unfold=function(l,c){var o,r;if(null==l)o=new E(0,0,this.getLength(),0),null==c&&(c=!0);else if("number"==typeof l)o=new E(l,0,l,this.getLine(l).length);else if("row"in l)o=E.fromPoints(l,l);else{if(Array.isArray(l))return r=[],l.forEach(function(p){r=r.concat(this.unfold(p))},this),r;o=l}for(var h=r=this.getFoldsInRangeList(o);1==r.length&&E.comparePoints(r[0].start,o.start)<0&&E.comparePoints(r[0].end,o.end)>0;)this.expandFolds(r),r=this.getFoldsInRangeList(o);if(0!=c?this.removeFolds(r):this.expandFolds(r),h.length)return h},this.isRowFolded=function(l,c){return!!this.getFoldLine(l,c)},this.getRowFoldEnd=function(l,c){var o=this.getFoldLine(l,c);return o?o.end.row:l},this.getRowFoldStart=function(l,c){var o=this.getFoldLine(l,c);return o?o.start.row:l},this.getFoldDisplayLine=function(l,c,o,r,h){null==r&&(r=l.start.row),null==h&&(h=0),null==c&&(c=l.end.row),null==o&&(o=this.getLine(c).length);var p=this.doc,v="";return l.walk(function(y,M,w,k){if(!(MM)break}while(h&&v.test(h.type)&&!/^comment.start/.test(h.type));h=r.stepBackward()}else h=r.getCurrentToken();return y.end.row=r.getCurrentTokenRow(),y.end.column=r.getCurrentTokenColumn(),/^comment.end/.test(h.type)||(y.end.column+=h.value.length-2),y}},this.foldAll=function(l,c,o,r){null==o&&(o=1e5);var h=this.foldWidgets;if(h){c=c||this.getLength();for(var p=l=l||0;p=l&&(p=v.end.row,v.collapseChildren=o,this.addFold("...",v))}}},this.foldToLevel=function(l){for(this.foldAll();l-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var l=this;this.foldAll(null,null,null,function(c){for(var o=l.getTokens(c),r=0;r=0;){var p=o[r];if(null==p&&(p=o[r]=this.getFoldWidget(r)),"start"==p){var v=this.getFoldWidgetRange(r);if(h||(h=v),v&&v.end.row>=l)break}r--}return{range:-1!==r&&v,firstRange:h}},this.onFoldWidgetClick=function(l,c){if(c instanceof f&&(c=c.domEvent),!this.$toggleFoldWidget(l,{children:c.shiftKey,all:c.ctrlKey||c.metaKey,siblings:c.altKey})){var h=c.target||c.srcElement;h&&/ace_fold-widget/.test(h.className)&&(h.className+=" ace_invalid")}},this.$toggleFoldWidget=function(l,c){if(this.getFoldWidget){var o=this.getFoldWidget(l),r=this.getLine(l),h="end"===o?-1:1,p=this.getFoldAt(l,-1===h?0:r.length,h);if(p)return c.children||c.all?this.removeFold(p):this.expandFold(p),p;var v=this.getFoldWidgetRange(l,!0);if(v&&!v.isMultiLine()&&(p=this.getFoldAt(v.start.row,v.start.column,1))&&v.isEqual(p.range))return this.removeFold(p),p;if(c.siblings){var y=this.getParentFoldRangeData(l);if(y.range)var M=y.range.start.row+1,w=y.range.end.row;this.foldAll(M,w,c.all?1e4:0)}else c.children?(w=v?v.end.row:this.getLength(),this.foldAll(l+1,w,c.all?1e4:0)):v&&(c.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(l){var c=this.selection.getCursor().row;c=this.getRowFoldStart(c);var o=this.$toggleFoldWidget(c,{});if(!o){var r=this.getParentFoldRangeData(c,!0);if(o=r.range||r.firstRange){var h=this.getFoldAt(c=o.start.row,this.getLine(c).length,1);h?this.removeFold(h):this.addFold("...",o)}}},this.updateFoldWidgets=function(l){var c=l.start.row,o=l.end.row-c;if(0===o)this.foldWidgets[c]=null;else if("remove"==l.action)this.foldWidgets.splice(c,o+1,null);else{var r=Array(o+1);r.unshift(c,1),this.foldWidgets.splice.apply(this.foldWidgets,r)}},this.tokenizerUpdateFoldWidgets=function(l){var c=l.data;c.first!=c.last&&this.foldWidgets.length>c.first&&this.foldWidgets.splice(c.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(t,_,C){"use strict";var E=t("../token_iterator").TokenIterator,u=t("../range").Range;_.BracketMatch=function b(){this.findMatchingBracket=function(s,f){if(0==s.column)return null;var d=f||this.getLine(s.row).charAt(s.column-1);if(""==d)return null;var l=d.match(/([\(\[\{])|([\)\]\}])/);return l?l[1]?this.$findClosingBracket(l[1],s):this.$findOpeningBracket(l[2],s):null},this.getBracketRange=function(s){var l,f=this.getLine(s.row),d=!0,c=f.charAt(s.column-1),o=c&&c.match(/([\(\[\{])|([\)\]\}])/);if(o||(c=f.charAt(s.column),s={row:s.row,column:s.column+1},o=c&&c.match(/([\(\[\{])|([\)\]\}])/),d=!1),!o)return null;if(o[1]){if(!(r=this.$findClosingBracket(o[1],s)))return null;l=u.fromPoints(s,r),d||(l.end.column++,l.start.column--),l.cursor=l.end}else{var r;if(!(r=this.$findOpeningBracket(o[2],s)))return null;l=u.fromPoints(r,s),d||(l.start.column++,l.end.column--),l.cursor=l.start}return l},this.getMatchingBracketRanges=function(s,f){var d=this.getLine(s.row),l=/([\(\[\{])|([\)\]\}])/,c=!f&&d.charAt(s.column-1),o=c&&c.match(l);if(o||(c=(void 0===f||f)&&d.charAt(s.column),s={row:s.row,column:s.column+1},o=c&&c.match(l)),!o)return null;var r=new u(s.row,s.column-1,s.row,s.column),h=o[1]?this.$findClosingBracket(o[1],s):this.$findOpeningBracket(o[2],s);return h?[r,new u(h.row,h.column,h.row,h.column+1)]:[r]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(s,f,d){var l=this.$brackets[s],c=1,o=new E(this,f.row,f.column),r=o.getCurrentToken();if(r||(r=o.stepForward()),r){d||(d=new RegExp("(\\.?"+r.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var h=f.column-o.getCurrentTokenColumn()-2,p=r.value;;){for(;h>=0;){var v=p.charAt(h);if(v==l){if(0==(c-=1))return{row:o.getCurrentTokenRow(),column:h+o.getCurrentTokenColumn()}}else v==s&&(c+=1);h-=1}do{r=o.stepBackward()}while(r&&!d.test(r.type));if(null==r)break;h=(p=r.value).length-1}return null}},this.$findClosingBracket=function(s,f,d){var l=this.$brackets[s],c=1,o=new E(this,f.row,f.column),r=o.getCurrentToken();if(r||(r=o.stepForward()),r){d||(d=new RegExp("(\\.?"+r.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var h=f.column-o.getCurrentTokenColumn();;){for(var p=r.value,v=p.length;h"===f.value?l=!0:-1!==f.type.indexOf("tag-name")&&(d=!0))}while(f&&!d);return f},this.$findClosingTag=function(s,f){var d,l=f.value,c=f.value,o=0,r=new u(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);f=s.stepForward();var h=new u(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+f.value.length),p=!1;do{if(d=f,f=s.stepForward()){if(">"===f.value&&!p){var v=new u(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);p=!0}if(-1!==f.type.indexOf("tag-name")){if(c===(l=f.value))if("<"===d.value)o++;else if(""!==f.value)return;var w=new u(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1)}}else c===l&&"/>"===f.value&&--o<0&&(w=M=y=new u(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2),v=new u(h.end.row,h.end.column,h.end.row,h.end.column+1))}}while(f&&o>=0);if(r&&v&&y&&w&&h&&M)return{openTag:new u(r.start.row,r.start.column,v.end.row,v.end.column),closeTag:new u(y.start.row,y.start.column,w.end.row,w.end.column),openTagName:h,closeTagName:M}},this.$findOpeningTag=function(s,f){var d=s.getCurrentToken(),l=f.value,c=0,o=s.getCurrentTokenRow(),r=s.getCurrentTokenColumn(),h=r+2,p=new u(o,r,o,h);s.stepForward();var v=new u(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+f.value.length);if((f=s.stepForward())&&">"===f.value){var y=new u(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);s.stepBackward(),s.stepBackward();do{if(f=d,o=s.getCurrentTokenRow(),h=(r=s.getCurrentTokenColumn())+f.value.length,d=s.stepBackward(),f)if(-1!==f.type.indexOf("tag-name")){if(l===f.value)if("<"===d.value){if(++c>0){var M=new u(o,r,o,h),w=new u(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);do{f=s.stepForward()}while(f&&">"!==f.value);var k=new u(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1)}}else""===f.value){for(var I=0,D=d;D;){if(-1!==D.type.indexOf("tag-name")&&D.value===l){c--;break}if("<"===D.value)break;D=s.stepBackward(),I++}for(var O=0;OA&&(this.$docRowCache.splice(A,N),this.$screenRowCache.splice(A,N))},S.prototype.$getRowCacheIndex=function(R,N){for(var A=0,F=R.length-1;A<=F;){var Y=A+F>>1,ee=R[Y];if(N>ee)A=Y+1;else{if(!(N=N);ee++);return(F=A[ee])?(F.index=ee,F.start=Y-F.value.length,F):null},S.prototype.setUndoManager=function(R){if(this.$undoManager=R,this.$informUndoManager&&this.$informUndoManager.cancel(),R){var N=this;R.addSession(this),this.$syncInformUndoManager=function(){N.$informUndoManager.cancel(),N.mergeUndoDeltas=!1},this.$informUndoManager=u.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},S.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},S.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},S.prototype.getTabString=function(){return this.getUseSoftTabs()?u.stringRepeat(" ",this.getTabSize()):"\t"},S.prototype.setUseSoftTabs=function(R){this.setOption("useSoftTabs",R)},S.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},S.prototype.setTabSize=function(R){this.setOption("tabSize",R)},S.prototype.getTabSize=function(){return this.$tabSize},S.prototype.isTabStop=function(R){return this.$useSoftTabs&&R.column%this.$tabSize==0},S.prototype.setNavigateWithinSoftTabs=function(R){this.setOption("navigateWithinSoftTabs",R)},S.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},S.prototype.setOverwrite=function(R){this.setOption("overwrite",R)},S.prototype.getOverwrite=function(){return this.$overwrite},S.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},S.prototype.addGutterDecoration=function(R,N){this.$decorations[R]||(this.$decorations[R]=""),this.$decorations[R]+=" "+N,this._signal("changeBreakpoint",{})},S.prototype.removeGutterDecoration=function(R,N){this.$decorations[R]=(this.$decorations[R]||"").replace(" "+N,""),this._signal("changeBreakpoint",{})},S.prototype.getBreakpoints=function(){return this.$breakpoints},S.prototype.setBreakpoints=function(R){this.$breakpoints=[];for(var N=0;N0&&(F=!!A.charAt(N-1).match(this.tokenRe)),F||(F=!!A.charAt(N).match(this.tokenRe)),F)var Y=this.tokenRe;else Y=/^\s+$/.test(A.slice(N-1,N+1))?/\s/:this.nonTokenRe;var ee=N;if(ee>0){do{ee--}while(ee>=0&&A.charAt(ee).match(Y));ee++}for(var ie=N;ieR&&(R=N.screenWidth)}),this.lineWidgetWidth=R},S.prototype.$computeWidth=function(R){if(this.$modified||R){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var N=this.doc.getAllLines(),A=this.$rowLengthCache,F=0,Y=0,ee=this.$foldData[Y],ie=ee?ee.start.row:1/0,$=N.length,j=0;j<$;j++){if(j>ie){if((j=ee.end.row+1)>=$)break;ie=(ee=this.$foldData[Y++])?ee.start.row:1/0}null==A[j]&&(A[j]=this.$getStringScreenWidth(N[j])[0]),A[j]>F&&(F=A[j])}this.screenWidth=F}},S.prototype.getLine=function(R){return this.doc.getLine(R)},S.prototype.getLines=function(R,N){return this.doc.getLines(R,N)},S.prototype.getLength=function(){return this.doc.getLength()},S.prototype.getTextRange=function(R){return this.doc.getTextRange(R||this.selection.getRange())},S.prototype.insert=function(R,N){return this.doc.insert(R,N)},S.prototype.remove=function(R){return this.doc.remove(R)},S.prototype.removeFullLines=function(R,N){return this.doc.removeFullLines(R,N)},S.prototype.undoChanges=function(R,N){if(R.length){this.$fromUndo=!0;for(var A=R.length-1;-1!=A;A--){var F=R[A];"insert"==F.action||"remove"==F.action?this.doc.revertDelta(F):F.folds&&this.addFolds(F.folds)}!N&&this.$undoSelect&&(R.selectionBefore?this.selection.fromJSON(R.selectionBefore):this.selection.setRange(this.$getUndoSelection(R,!0))),this.$fromUndo=!1}},S.prototype.redoChanges=function(R,N){if(R.length){this.$fromUndo=!0;for(var A=0;AR.end.column&&(ee.start.column+=$),ee.end.row==R.end.row&&ee.end.column>R.end.column&&(ee.end.column+=$)),ie&&ee.start.row>=R.end.row&&(ee.start.row+=ie,ee.end.row+=ie)),ee.end=this.insert(ee.start,F),Y.length){var j=R.start,G=ee.start,ie=G.row-j.row,$=G.column-j.column;this.addFolds(Y.map(function(K){return(K=K.clone()).start.row==j.row&&(K.start.column+=$),K.end.row==j.row&&(K.end.column+=$),K.start.row+=ie,K.end.row+=ie,K}))}return ee},S.prototype.indentRows=function(R,N,A){A=A.replace(/\t/g,this.getTabString());for(var F=R;F<=N;F++)this.doc.insertInLine({row:F,column:0},A)},S.prototype.outdentRows=function(R){for(var N=R.collapseRows(),A=new c(0,0,0,0),F=this.getTabSize(),Y=N.start.row;Y<=N.end.row;++Y){var ee=this.getLine(Y);A.start.row=Y,A.end.row=Y;for(var ie=0;ie0){var F;if((F=this.getRowFoldEnd(N+A))>this.doc.getLength()-1)return 0;Y=F-N}else R=this.$clipRowToDocument(R),Y=(N=this.$clipRowToDocument(N))-R+1;var ee=new c(R,0,N,Number.MAX_VALUE),ie=this.getFoldsInRange(ee).map(function(j){return(j=j.clone()).start.row+=Y,j.end.row+=Y,j}),$=0==A?this.doc.getLines(R,N):this.doc.removeFullLines(R,N);return this.doc.insertFullLines(R+Y,$),ie.length&&this.addFolds(ie),Y},S.prototype.moveLinesUp=function(R,N){return this.$moveLines(R,N,-1)},S.prototype.moveLinesDown=function(R,N){return this.$moveLines(R,N,1)},S.prototype.duplicateLines=function(R,N){return this.$moveLines(R,N,0)},S.prototype.$clipRowToDocument=function(R){return Math.max(0,Math.min(R,this.doc.getLength()-1))},S.prototype.$clipColumnToRow=function(R,N){return N<0?0:Math.min(this.doc.getLine(R).length,N)},S.prototype.$clipPositionToDocument=function(R,N){if(N=Math.max(0,N),R<0)R=0,N=0;else{var A=this.doc.getLength();R>=A?(R=A-1,N=this.doc.getLine(A-1).length):N=Math.min(this.doc.getLine(R).length,N)}return{row:R,column:N}},S.prototype.$clipRangeToDocument=function(R){R.start.row<0?(R.start.row=0,R.start.column=0):R.start.column=this.$clipColumnToRow(R.start.row,R.start.column);var N=this.doc.getLength()-1;return R.end.row>N?(R.end.row=N,R.end.column=this.doc.getLine(N).length):R.end.column=this.$clipColumnToRow(R.end.row,R.end.column),R},S.prototype.setUseWrapMode=function(R){if(R!=this.$useWrapMode){if(this.$useWrapMode=R,this.$modified=!0,this.$resetRowCache(0),R){var N=this.getLength();this.$wrapData=Array(N),this.$updateWrapData(0,N-1)}this._signal("changeWrapMode")}},S.prototype.getUseWrapMode=function(){return this.$useWrapMode},S.prototype.setWrapLimitRange=function(R,N){(this.$wrapLimitRange.min!==R||this.$wrapLimitRange.max!==N)&&(this.$wrapLimitRange={min:R,max:N},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},S.prototype.adjustWrapLimit=function(R,N){var A=this.$wrapLimitRange;A.max<0&&(A={min:N,max:N});var F=this.$constrainWrapLimit(R,A.min,A.max);return F!=this.$wrapLimit&&F>1&&(this.$wrapLimit=F,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},S.prototype.$constrainWrapLimit=function(R,N,A){return N&&(R=Math.max(N,R)),A&&(R=Math.min(A,R)),R},S.prototype.getWrapLimit=function(){return this.$wrapLimit},S.prototype.setWrapLimit=function(R){this.setWrapLimitRange(R,R)},S.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},S.prototype.$updateInternalDataOnChange=function(R){var N=this.$useWrapMode,A=R.action,F=R.start,Y=R.end,ee=F.row,ie=Y.row,$=ie-ee,j=null;if(this.$updating=!0,0!=$)if("remove"===A){this[N?"$wrapData":"$rowLengthCache"].splice(ee,$);var G=this.$foldData;j=this.getFoldsInRange(R),this.removeFolds(j);var W=0;if(V=this.getFoldLine(Y.row)){V.addRemoveChars(Y.row,Y.column,F.column-Y.column),V.shiftRow(-$);var K=this.getFoldLine(ee);K&&K!==V&&(K.merge(V),V=K),W=G.indexOf(V)+1}for(;W=Y.row&&V.shiftRow(-$);ie=ee}else{var ce=Array($);ce.unshift(ee,0);var ue=N?this.$wrapData:this.$rowLengthCache;if(ue.splice.apply(ue,ce),G=this.$foldData,W=0,V=this.getFoldLine(ee)){var ve=V.range.compareInside(F.row,F.column);0==ve?(V=V.split(F.row,F.column))&&(V.shiftRow($),V.addRemoveChars(ie,0,Y.column-F.column)):-1==ve&&(V.addRemoveChars(ee,0,Y.column-F.column),V.shiftRow($)),W=G.indexOf(V)+1}for(;W=ee&&V.shiftRow($)}}else $=Math.abs(R.start.column-R.end.column),"remove"===A&&(j=this.getFoldsInRange(R),this.removeFolds(j),$=-$),(V=this.getFoldLine(ee))&&V.addRemoveChars(ee,F.column,$);return N&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,N?this.$updateWrapData(ee,ie):this.$updateRowLengthCache(ee,ie),j},S.prototype.$updateRowLengthCache=function(R,N){this.$rowLengthCache[R]=null,this.$rowLengthCache[N]=null},S.prototype.$updateWrapData=function(R,N){var ie,$,A=this.doc.getAllLines(),F=this.getTabSize(),Y=this.$wrapData,ee=this.$wrapLimit,j=R;for(N=Math.min(N,A.length-1);j<=N;)($=this.getFoldLine(j,$))?(ie=[],$.walk(function(G,V,W,K){var ce;if(null!=G){(ce=this.$getDisplayTokens(G,ie.length))[0]=w;for(var ue=1;ueN-K;){var ce=ee+N-K;if(R[ce-1]>=D&&R[ce]>=D)W(ce);else if(R[ce]!=w&&R[ce]!=k){for(var ue=Math.max(ce-(N-(N>>2)),ee-1);ce>ue&&R[ce]ue&&R[ce]ue&&R[ce]==I;)ce--}else for(;ce>ue&&R[ce]ue?W(++ce):(R[ce=ee+N]==M&&ce--,W(ce-K))}else{for(;ce!=ee-1&&R[ce]!=w;ce--);if(ce>ee){W(ce);continue}for(ce=ee+N;ce39&&ee<48||ee>57&&ee<64?A.push(I):ee>=4352&&U(ee)?A.push(y,M):A.push(y)}return A},S.prototype.$getStringScreenWidth=function(R,N,A){if(0==N)return[0,0];var F,Y;for(null==N&&(N=1/0),A=A||0,Y=0;Y=4352&&U(F)?A+=2:A+=1,!(A>N));Y++);return[A,Y]},S.prototype.getRowLength=function(R){var N=1;return this.lineWidgets&&(N+=this.lineWidgets[R]&&this.lineWidgets[R].rowCount||0),this.$useWrapMode&&this.$wrapData[R]?this.$wrapData[R].length+N:N},S.prototype.getRowLineCount=function(R){return this.$useWrapMode&&this.$wrapData[R]?this.$wrapData[R].length+1:1},S.prototype.getRowWrapIndent=function(R){if(this.$useWrapMode){var N=this.screenToDocumentPosition(R,Number.MAX_VALUE),A=this.$wrapData[N.row];return A.length&&A[0]=0){$=G[V],Y=this.$docRowCache[V];var K=R>G[W-1]}else K=!W;for(var ce=this.getLength()-1,ue=this.getNextFoldLine(Y),ve=ue?ue.start.row:1/0;$<=R&&!($+(j=this.getRowLength(Y))>R||Y>=ce);)$+=j,++Y>ve&&(ve=(ue=this.getNextFoldLine(Y=ue.end.row+1,ue))?ue.start.row:1/0),K&&(this.$docRowCache.push(Y),this.$screenRowCache.push($));if(ue&&ue.start.row<=Y)F=this.getFoldDisplayLine(ue),Y=ue.start.row;else{if($+j<=R||Y>ce)return{row:ce,column:this.getLine(ce).length};F=this.getLine(Y),ue=null}var Ye=0,pt=Math.floor(R-$);if(this.$useWrapMode){var ct=this.$wrapData[Y];ct&&(ie=ct[pt],pt>0&&ct.length&&(Ye=ct.indent,F=F.substring(ee=ct[pt-1]||ct[ct.length-1])))}return void 0!==A&&this.$bidiHandler.isBidiRow($+pt,Y,pt)&&(N=this.$bidiHandler.offsetToCol(A)),ee+=this.$getStringScreenWidth(F,N-Ye)[1],this.$useWrapMode&&ee>=ie&&(ee=ie-1),ue?ue.idxToPosition(ee):{row:Y,column:ee}},S.prototype.documentToScreenPosition=function(R,N){if(typeof N>"u")var A=this.$clipPositionToDocument(R.row,R.column);else A=this.$clipPositionToDocument(R,N);var ee,F=0,Y=null;(ee=this.getFoldAt(R=A.row,N=A.column,1))&&(R=ee.start.row,N=ee.start.column);var ie,$=0,j=this.$docRowCache,G=this.$getRowCacheIndex(j,R),V=j.length;if(V&&G>=0){$=j[G],F=this.$screenRowCache[G];var W=R>j[V-1]}else W=!V;for(var K=this.getNextFoldLine($),ce=K?K.start.row:1/0;$=ce){if((ie=K.end.row+1)>R)break;ce=(K=this.getNextFoldLine(ie,K))?K.start.row:1/0}else ie=$+1;F+=this.getRowLength($),$=ie,W&&(this.$docRowCache.push($),this.$screenRowCache.push(F))}var ue="";K&&$>=ce?(ue=this.getFoldDisplayLine(K,R,N),Y=K.start.row):(ue=this.getLine(R).substring(0,N),Y=R);var ve=0;if(this.$useWrapMode){var Ye=this.$wrapData[Y];if(Ye){for(var pt=0;ue.length>=Ye[pt];)F++,pt++;ue=ue.substring(Ye[pt-1]||0,ue.length),ve=pt>0?Ye.indent:0}}return this.lineWidgets&&this.lineWidgets[$]&&this.lineWidgets[$].rowsAbove&&(F+=this.lineWidgets[$].rowsAbove),{row:F,column:ve+this.$getStringScreenWidth(ue)[0]}},S.prototype.documentToScreenColumn=function(R,N){return this.documentToScreenPosition(R,N).column},S.prototype.documentToScreenRow=function(R,N){return this.documentToScreenPosition(R,N).row},S.prototype.getScreenLength=function(){var R=0,N=null;if(this.$useWrapMode)for(var Y=this.$wrapData.length,ee=0,F=0,ie=(N=this.$foldData[F++])?N.start.row:1/0;eeie&&(ee=N.end.row+1,ie=(N=this.$foldData[F++])?N.start.row:1/0)}else{R=this.getLength();var A=this.$foldData;for(F=0;FA);ee++);return[F,ee]})},S.prototype.getPrecedingCharacter=function(){var R=this.selection.getCursor();return 0===R.column?0===R.row?"":this.doc.getNewLineCharacter():this.getLine(R.row)[R.column-1]},S.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},S}();v.$uid=0,v.prototype.$modes=s.$modes,v.prototype.getValue=v.prototype.toString,v.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},v.prototype.$overwrite=!1,v.prototype.$mode=null,v.prototype.$modeId=null,v.prototype.$scrollTop=0,v.prototype.$scrollLeft=0,v.prototype.$wrapLimit=80,v.prototype.$useWrapMode=!1,v.prototype.$wrapLimitRange={min:null,max:null},v.prototype.lineWidgets=null,v.prototype.isFullWidth=U,E.implement(v.prototype,f);var y=1,M=2,w=3,k=4,I=9,D=10,O=11,T=12;function U(S){return!(S<4352)&&(S>=4352&&S<=4447||S>=4515&&S<=4519||S>=4602&&S<=4607||S>=9001&&S<=9002||S>=11904&&S<=11929||S>=11931&&S<=12019||S>=12032&&S<=12245||S>=12272&&S<=12283||S>=12288&&S<=12350||S>=12353&&S<=12438||S>=12441&&S<=12543||S>=12549&&S<=12589||S>=12593&&S<=12686||S>=12688&&S<=12730||S>=12736&&S<=12771||S>=12784&&S<=12830||S>=12832&&S<=12871||S>=12880&&S<=13054||S>=13056&&S<=19903||S>=19968&&S<=42124||S>=42128&&S<=42182||S>=43360&&S<=43388||S>=44032&&S<=55203||S>=55216&&S<=55238||S>=55243&&S<=55291||S>=63744&&S<=64255||S>=65040&&S<=65049||S>=65072&&S<=65106||S>=65108&&S<=65126||S>=65128&&S<=65131||S>=65281&&S<=65376||S>=65504&&S<=65510)}t("./edit_session/folding").Folding.call(v.prototype),t("./edit_session/bracket_match").BracketMatch.call(v.prototype),s.defineOptions(v.prototype,"session",{wrap:{set:function(S){if(S&&"off"!=S?"free"==S?S=!0:"printMargin"==S?S=-1:"string"==typeof S&&(S=parseInt(S,10)||!1):S=!1,this.$wrap!=S)if(this.$wrap=S,S){var R="number"==typeof S?S:null;this.setWrapLimitRange(R,R),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(S){(S="auto"==S?"text"!=this.$mode.type:"text"!=S)!=this.$wrapAsCode&&(this.$wrapAsCode=S,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(S){this.$useWorker=S,this.$stopWorker(),S&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(S){(S=parseInt(S))>0&&this.$tabSize!==S&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=S,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(S){this.setFoldStyle(S)},handlesSet:!0},overwrite:{set:function(S){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(S){this.doc.setNewLineMode(S)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(S){this.setMode(S)},get:function(){return this.$modeId},handlesSet:!0}}),_.EditSession=v}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(t,_,C){"use strict";var E=t("./lib/lang"),u=t("./lib/oop"),b=t("./range").Range,s=function(){function d(){this.$options={}}return d.prototype.set=function(l){return u.mixin(this.$options,l),this},d.prototype.getOptions=function(){return E.copyObject(this.$options)},d.prototype.setOptions=function(l){this.$options=l},d.prototype.find=function(l){var c=this.$options,o=this.$matchIterator(l,c);if(!o)return!1;var r=null;return o.forEach(function(h,p,v,y){return r=new b(h,p,v,y),!(p==y&&c.start&&c.start.start&&0!=c.skipCurrent&&r.isEqual(c.start)&&(r=null,1))}),r},d.prototype.findAll=function(l){var c=this.$options;if(!c.needle)return[];this.$assembleRegExp(c);var o=c.range,r=o?l.getLines(o.start.row,o.end.row):l.doc.getAllLines(),h=[],p=c.re;if(c.$isMultiLine){var M,v=p.length,y=r.length-v;e:for(var w=p.offset||0;w<=y;w++){for(var k=0;kO||(h.push(M=new b(w,O,w+v-1,T)),v>2&&(w=w+v-2))}}else for(var U=0;UA&&h[k].end.row==F;)k--;for(h=h.slice(U,k+1),U=0,k=h.length;U=M;T--)if(D(T,Number.MAX_VALUE,O))return;if(0!=c.wrap)for(T=w,M=y.row;T>=M;T--)if(D(T,Number.MAX_VALUE,O))return}};else k=function(T){var U=y.row;if(!D(U,y.column,T)){for(U+=1;U<=w;U++)if(D(U,0,T))return;if(0!=c.wrap)for(U=M,w=y.row;U<=w;U++)if(D(U,0,T))return}};if(c.$isMultiLine)var I=o.length,D=function(O,T,U){var S=r?O-I+1:O;if(!(S<0||S+I>l.getLength())){var R=l.getLine(S),N=R.search(o[0]);if(!(!r&&NT)&&U(S,N,S+I-1,F))return!0}}};else D=r?function(T,U,S){var A,R=l.getLine(T),N=[],F=0;for(o.lastIndex=0;A=o.exec(R);){if(F=A.index,!(Y=A[0].length)){if(F>=R.length)break;o.lastIndex=F+=E.skipEmptyMatch(R,F,p)}if(A.index+Y>U)break;N.push(A.index,Y)}for(var ee=N.length-1;ee>=0;ee-=2){var Y,ie=N[ee-1];if(S(T,ie,T,ie+(Y=N[ee])))return!0}}:function(T,U,S){var N,A,R=l.getLine(T);for(o.lastIndex=U;A=o.exec(R);){var F=A[0].length;if(S(T,N=A.index,T,N+F))return!0;if(!F&&(o.lastIndex=N+=E.skipEmptyMatch(R,N,p),N>=R.length))return!1}};return{forEach:k}},d}();_.Search=s}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(t,_,C){"use strict";var E=this&&this.__extends||function(){var c=function(o,r){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(h[v]=p[v])})(o,r)};return function(o,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function h(){this.constructor=o}c(o,r),o.prototype=null===r?Object.create(r):(h.prototype=r.prototype,new h)}}(),u=t("../lib/keys"),b=t("../lib/useragent"),s=u.KEY_MODS,f=function(){function c(o,r){this.$init(o,r,!1)}return c.prototype.$init=function(o,r,h){this.platform=r||(b.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(o),this.$singleCommand=h},c.prototype.addCommand=function(o){this.commands[o.name]&&this.removeCommand(o),this.commands[o.name]=o,o.bindKey&&this._buildKeyHash(o)},c.prototype.removeCommand=function(o,r){var h=o&&("string"==typeof o?o:o.name);o=this.commands[h],r||delete this.commands[h];var p=this.commandKeyBinding;for(var v in p){var y=p[v];if(y==o)delete p[v];else if(Array.isArray(y)){var M=y.indexOf(o);-1!=M&&(y.splice(M,1),1==y.length&&(p[v]=y[0]))}}},c.prototype.bindKey=function(o,r,h){if("object"==typeof o&&o&&(null==h&&(h=o.position),o=o[this.platform]),o){if("function"==typeof r)return this.addCommand({exec:r,bindKey:o,name:r.name||o});o.split("|").forEach(function(p){var v="";if(-1!=p.indexOf(" ")){var y=p.split(/\s+/);p=y.pop(),y.forEach(function(k){var I=this.parseKeys(k);this._addCommandToBinding(v+=(v?" ":"")+(s[I.hashId]+I.key),"chainKeys")},this),v+=" "}var M=this.parseKeys(p);this._addCommandToBinding(v+(s[M.hashId]+M.key),r,h)},this)}},c.prototype._addCommandToBinding=function(o,r,h){var v,p=this.commandKeyBinding;if(r)if(!p[o]||this.$singleCommand)p[o]=r;else{Array.isArray(p[o])?-1!=(v=p[o].indexOf(r))&&p[o].splice(v,1):p[o]=[p[o]],"number"!=typeof h&&(h=d(r));var y=p[o];for(v=0;vh);v++);y.splice(v,0,r)}else delete p[o]},c.prototype.addCommands=function(o){o&&Object.keys(o).forEach(function(r){var h=o[r];if(h){if("string"==typeof h)return this.bindKey(h,r);"function"==typeof h&&(h={exec:h}),"object"==typeof h&&(h.name||(h.name=r),this.addCommand(h))}},this)},c.prototype.removeCommands=function(o){Object.keys(o).forEach(function(r){this.removeCommand(o[r])},this)},c.prototype.bindKeys=function(o){Object.keys(o).forEach(function(r){this.bindKey(r,o[r])},this)},c.prototype._buildKeyHash=function(o){this.bindKey(o.bindKey,o)},c.prototype.parseKeys=function(o){var r=o.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(w){return w}),h=r.pop(),p=u[h];if(u.FUNCTION_KEYS[p])h=u.FUNCTION_KEYS[p].toLowerCase();else{if(!r.length)return{key:h,hashId:-1};if(1==r.length&&"shift"==r[0])return{key:h.toUpperCase(),hashId:-1}}for(var v=0,y=r.length;y--;){var M=u.KEY_MODS[r[y]];if(null==M)return typeof console<"u"&&console.error("invalid modifier "+r[y]+" in "+o),!1;v|=M}return{key:h,hashId:v}},c.prototype.findKeyCommand=function(o,r){return this.commandKeyBinding[s[o]+r]},c.prototype.handleKeyboard=function(o,r,h,p){if(!(p<0)){var v=s[r]+h,y=this.commandKeyBinding[v];return o.$keyChain&&(o.$keyChain+=" "+v,y=this.commandKeyBinding[o.$keyChain]||y),!y||"chainKeys"!=y&&"chainKeys"!=y[y.length-1]?(o.$keyChain&&(r&&4!=r||1!=h.length?(-1==r||p>0)&&(o.$keyChain=""):o.$keyChain=o.$keyChain.slice(0,-v.length-1)),{command:y}):(o.$keyChain=o.$keyChain||v,{command:"null"})}},c.prototype.getStatusText=function(o,r){return r.$keyChain||""},c}();function d(c){return"object"==typeof c&&c.bindKey&&c.bindKey.position||(c.isDefault?-100:0)}var l=function(c){function o(r,h){var p=c.call(this,r,h)||this;return p.$singleCommand=!0,p}return E(o,c),o}(f);l.call=function(c,o,r){f.prototype.$init.call(c,o,r,!0)},f.call=function(c,o,r){f.prototype.$init.call(c,o,r,!1)},_.HashHandler=l,_.MultiHashHandler=f}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(t,_,C){"use strict";var E=this&&this.__extends||function(){var d=function(l,c){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var h in r)Object.prototype.hasOwnProperty.call(r,h)&&(o[h]=r[h])})(l,c)};return function(l,c){if("function"!=typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function o(){this.constructor=l}d(l,c),l.prototype=null===c?Object.create(c):(o.prototype=c.prototype,new o)}}(),u=t("../lib/oop"),b=t("../keyboard/hash_handler").MultiHashHandler,s=t("../lib/event_emitter").EventEmitter,f=function(d){function l(c,o){var r=d.call(this,o,c)||this;return r.byName=r.commands,r.setDefaultHandler("exec",function(h){return h.args?h.command.exec(h.editor,h.args,h.event,!1):h.command.exec(h.editor,{},h.event,!0)}),r}return E(l,d),l.prototype.exec=function(c,o,r){if(Array.isArray(c)){for(var h=c.length;h--;)if(this.exec(c[h],o,r))return!0;return!1}if("string"==typeof c&&(c=this.commands[c]),!c||o&&o.$readOnly&&!c.readOnly||0!=this.$checkCommandState&&c.isAvailable&&!c.isAvailable(o))return!1;var p={editor:o,command:c,args:r};return p.returnValue=this._emit("exec",p),this._signal("afterExec",p),!1!==p.returnValue},l.prototype.toggleRecording=function(c){if(!this.$inReplay)return c&&c._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(o){this.macro.push([o.command,o.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},l.prototype.replay=function(c){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(c);try{this.$inReplay=!0,this.macro.forEach(function(o){"string"==typeof o?this.exec(o,c):this.exec(o[0],c,o[1])},this)}finally{this.$inReplay=!1}}},l.prototype.trimMacro=function(c){return c.map(function(o){return"string"!=typeof o[0]&&(o[0]=o[0].name),o[1]||(o=o[0]),o})},l}(b);u.implement(f.prototype,s),_.CommandManager=f}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(t,_,C){"use strict";var E=t("../lib/lang"),u=t("../config"),b=t("../range").Range;function s(d,l){return{win:d,mac:l}}_.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:s("Ctrl-,","Command-,"),exec:function(d){u.loadModule("ace/ext/settings_menu",function(l){l.init(d),d.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:s("Alt-E","F4"),exec:function(d){u.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(d,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(d){u.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(d,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:s("Ctrl-A","Command-A"),exec:function(d){d.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:s(null,"Ctrl-L"),exec:function(d){d.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:s("Ctrl-L","Command-L"),exec:function(d,l){"number"==typeof l&&!isNaN(l)&&d.gotoLine(l),d.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:s("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(d){d.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:s("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(d){d.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:s("F2","F2"),exec:function(d){d.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:s("Alt-F2","Alt-F2"),exec:function(d){d.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(d){d.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(d){d.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:s("Alt-0","Command-Option-0"),exec:function(d){d.session.foldAll(),d.session.unfold(d.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:s("Alt-Shift-0","Command-Option-Shift-0"),exec:function(d){d.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:s("Ctrl-K","Command-G"),exec:function(d){d.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:s("Ctrl-Shift-K","Command-Shift-G"),exec:function(d){d.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:s("Alt-K","Ctrl-G"),exec:function(d){d.selection.isEmpty()?d.selection.selectWord():d.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:s("Alt-Shift-K","Ctrl-Shift-G"),exec:function(d){d.selection.isEmpty()?d.selection.selectWord():d.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:s("Ctrl-F","Command-F"),exec:function(d){u.loadModule("ace/ext/searchbox",function(l){l.Search(d)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(d){d.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:s("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(d){d.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:s("Ctrl-Home","Command-Home|Command-Up"),exec:function(d){d.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:s("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(d){d.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:s("Up","Up|Ctrl-P"),exec:function(d,l){d.navigateUp(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:s("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(d){d.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:s("Ctrl-End","Command-End|Command-Down"),exec:function(d){d.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:s("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(d){d.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:s("Down","Down|Ctrl-N"),exec:function(d,l){d.navigateDown(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:s("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(d){d.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:s("Ctrl-Left","Option-Left"),exec:function(d){d.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:s("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(d){d.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:s("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(d){d.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:s("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(d){d.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:s("Left","Left|Ctrl-B"),exec:function(d,l){d.navigateLeft(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:s("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(d){d.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:s("Ctrl-Right","Option-Right"),exec:function(d){d.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:s("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(d){d.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:s("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(d){d.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:s("Shift-Right","Shift-Right"),exec:function(d){d.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:s("Right","Right|Ctrl-F"),exec:function(d,l){d.navigateRight(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(d){d.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:s(null,"Option-PageDown"),exec:function(d){d.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:s("PageDown","PageDown|Ctrl-V"),exec:function(d){d.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(d){d.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:s(null,"Option-PageUp"),exec:function(d){d.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(d){d.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:s("Ctrl-Up",null),exec:function(d){d.renderer.scrollBy(0,-2*d.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:s("Ctrl-Down",null),exec:function(d){d.renderer.scrollBy(0,2*d.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(d){d.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(d){d.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:s("Ctrl-Alt-E","Command-Option-E"),exec:function(d){d.commands.toggleRecording(d)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:s("Ctrl-Shift-E","Command-Shift-E"),exec:function(d){d.commands.replay(d)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:s("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(d){d.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:s("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(d){d.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:s("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(d){d.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:s(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(d){},readOnly:!0},{name:"cut",description:"Cut",exec:function(d){var c=d.$copyWithEmptySelection&&d.selection.isEmpty()?d.selection.getLineRange():d.selection.getRange();d._emit("cut",c),c.isEmpty()||d.session.remove(c),d.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(d,l){d.$handlePaste(l)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:s("Ctrl-D","Command-D"),exec:function(d){d.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:s("Ctrl-Shift-D","Command-Shift-D"),exec:function(d){d.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:s("Ctrl-Alt-S","Command-Alt-S"),exec:function(d){d.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:s("Ctrl-/","Command-/"),exec:function(d){d.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:s("Ctrl-Shift-/","Command-Shift-/"),exec:function(d){d.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:s("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(d){d.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:s("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(d){d.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:s("Ctrl-H","Command-Option-F"),exec:function(d){u.loadModule("ace/ext/searchbox",function(l){l.Search(d,!0)})}},{name:"undo",description:"Undo",bindKey:s("Ctrl-Z","Command-Z"),exec:function(d){d.undo()}},{name:"redo",description:"Redo",bindKey:s("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(d){d.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:s("Alt-Shift-Up","Command-Option-Up"),exec:function(d){d.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:s("Alt-Up","Option-Up"),exec:function(d){d.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:s("Alt-Shift-Down","Command-Option-Down"),exec:function(d){d.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:s("Alt-Down","Option-Down"),exec:function(d){d.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:s("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(d){d.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:s("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(d){d.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:s("Shift-Delete",null),exec:function(d){if(!d.selection.isEmpty())return!1;d.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:s("Alt-Backspace","Command-Backspace"),exec:function(d){d.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:s("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(d){d.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:s("Ctrl-Shift-Backspace",null),exec:function(d){var l=d.selection.getRange();l.start.column=0,d.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(d){var l=d.selection.getRange();l.end.column=Number.MAX_VALUE,d.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:s("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(d){d.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:s("Ctrl-Delete","Alt-Delete"),exec:function(d){d.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:s("Shift-Tab","Shift-Tab"),exec:function(d){d.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:s("Tab","Tab"),exec:function(d){d.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:s("Ctrl-[","Ctrl-["),exec:function(d){d.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:s("Ctrl-]","Ctrl-]"),exec:function(d){d.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(d,l){d.insert(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(d,l){d.insert(E.stringRepeat(l.text||"",l.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:s(null,"Ctrl-O"),exec:function(d){d.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:s("Alt-Shift-X","Ctrl-T"),exec:function(d){d.transposeLetters()},multiSelectAction:function(d){d.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:s("Ctrl-U","Ctrl-U"),exec:function(d){d.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:s("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(d){d.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:s(null,null),exec:function(d){d.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(d){var l=d.selection.getRange();l.start.column=l.end.column=0,l.end.row++,d.selection.setRange(l,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:s("Ctrl+F3","F3"),exec:function(d){d.openLink()}},{name:"joinlines",description:"Join lines",bindKey:s(null,null),exec:function(d){for(var l=d.selection.isBackwards(),c=l?d.selection.getSelectionLead():d.selection.getSelectionAnchor(),o=l?d.selection.getSelectionAnchor():d.selection.getSelectionLead(),r=d.session.doc.getLine(c.row).length,p=d.session.doc.getTextRange(d.selection.getRange()).replace(/\n\s*/," ").length,v=d.session.doc.getLine(c.row),y=c.row+1;y<=o.row+1;y++){var M=E.stringTrimLeft(E.stringTrimRight(d.session.doc.getLine(y)));0!==M.length&&(M=" "+M),v+=M}o.row+10?(d.selection.moveCursorTo(c.row,c.column),d.selection.selectTo(c.row,c.column+p)):(r=d.session.doc.getLine(c.row).length>r?r+1:r,d.selection.moveCursorTo(c.row,r))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(d){var l=d.session.doc.getLength()-1,c=d.session.doc.getLine(l).length,o=d.selection.rangeList.ranges,r=[];o.length<1&&(o=[d.selection.getRange()]);for(var h=0;hf[d].column&&d++,o.unshift(d,0),f.splice.apply(f,o),this.$updateRows()}}},b.prototype.$updateRows=function(){var s=this.session.lineWidgets;if(s){var f=!0;s.forEach(function(d,l){if(d)for(f=!1,d.row=l;d.$oldWidget;)d.$oldWidget.row=l,d=d.$oldWidget}),f&&(this.session.lineWidgets=null)}},b.prototype.$registerLineWidget=function(s){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var f=this.session.lineWidgets[s.row];return f&&(s.$oldWidget=f,f.el&&f.el.parentNode&&(f.el.parentNode.removeChild(f.el),f._inDocument=!1)),this.session.lineWidgets[s.row]=s,s},b.prototype.addLineWidget=function(s){if(this.$registerLineWidget(s),s.session=this.session,!this.editor)return s;var f=this.editor.renderer;s.html&&!s.el&&(s.el=E.createElement("div"),s.el.innerHTML=s.html),s.text&&!s.el&&(s.el=E.createElement("div"),s.el.textContent=s.text),s.el&&(E.addCssClass(s.el,"ace_lineWidgetContainer"),s.className&&E.addCssClass(s.el,s.className),s.el.style.position="absolute",s.el.style.zIndex="5",f.container.appendChild(s.el),s._inDocument=!0,s.coverGutter||(s.el.style.zIndex="3"),null==s.pixelHeight&&(s.pixelHeight=s.el.offsetHeight)),null==s.rowCount&&(s.rowCount=s.pixelHeight/f.layerConfig.lineHeight);var d=this.session.getFoldAt(s.row,0);if(s.$fold=d,d){var l=this.session.lineWidgets;s.row!=d.end.row||l[d.start.row]?s.hidden=!0:l[d.start.row]=s}return this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows(),this.renderWidgets(null,f),this.onWidgetChanged(s),s},b.prototype.removeLineWidget=function(s){if(s._inDocument=!1,s.session=null,s.el&&s.el.parentNode&&s.el.parentNode.removeChild(s.el),s.editor&&s.editor.destroy)try{s.editor.destroy()}catch{}if(this.session.lineWidgets){var f=this.session.lineWidgets[s.row];if(f==s)this.session.lineWidgets[s.row]=s.$oldWidget,s.$oldWidget&&this.onWidgetChanged(s.$oldWidget);else for(;f;){if(f.$oldWidget==s){f.$oldWidget=s.$oldWidget;break}f=f.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows()},b.prototype.getWidgetsAtRow=function(s){for(var f=this.session.lineWidgets,d=f&&f[s],l=[];d;)l.push(d),d=d.$oldWidget;return l},b.prototype.onWidgetChanged=function(s){this.session._changedWidgets.push(s),this.editor&&this.editor.renderer.updateFull()},b.prototype.measureWidgets=function(s,f){var d=this.session._changedWidgets,l=f.layerConfig;if(d&&d.length){for(var c=1/0,o=0;o0&&!l[c];)c--;this.firstRow=d.firstRow,this.lastRow=d.lastRow,f.$cursorLayer.config=d;for(var r=c;r<=o;r++){var h=l[r];if(h&&h.el){if(h.hidden){h.el.style.top=-100-(h.pixelHeight||0)+"px";continue}h._inDocument||(h._inDocument=!0,f.container.appendChild(h.el));var p=f.$cursorLayer.getPixelPosition({row:r,column:0},!0).top;h.coverLine||(p+=d.lineHeight*this.session.getRowLineCount(h.row)),h.el.style.top=p-d.offset+"px";var v=h.coverGutter?0:f.gutterWidth;h.fixedWidth||(v-=f.scrollLeft),h.el.style.left=v+"px",h.fullWidth&&h.screenWidth&&(h.el.style.minWidth=d.width+2*d.padding+"px"),h.el.style.right=h.fixedWidth?f.scrollBar.getWidth()+"px":""}}}},b}();_.LineWidgets=u}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(t,_,C){"use strict";var E=t("../lib/keys"),u=t("../mouse/default_gutter_handler").GutterTooltip,b=function(){function f(d){this.editor=d,this.gutterLayer=d.renderer.$gutterLayer,this.element=d.renderer.$gutter,this.lines=d.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new u(this.editor)}return f.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},f.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},f.prototype.$onGutterKeyDown=function(d){if(this.annotationTooltip.isOpen)return d.preventDefault(),void(d.keyCode===E.escape&&this.annotationTooltip.hideTooltip());if(d.target===this.element){if(d.keyCode!=E.enter)return;d.preventDefault();var l=this.editor.getCursorPosition().row;return this.editor.isRowVisible(l)||this.editor.scrollToLine(l,!0,!0),void setTimeout(function(){var c=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),o=this.$findNearestFoldWidget(c),r=this.$findNearestAnnotation(c);if(null!==o||null!==r)return null===o&&null!==r?(this.activeRowIndex=r,this.activeLane="annotation",void this.$focusAnnotation(this.activeRowIndex)):null!==o&&null===r?(this.activeRowIndex=o,this.activeLane="fold",void this.$focusFoldWidget(this.activeRowIndex)):Math.abs(r-c)0||d+l=0&&this.$isFoldWidgetVisible(d-l))return d-l;if(d+l<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(d+l))return d+l}return null},f.prototype.$findNearestAnnotation=function(d){if(this.$isAnnotationVisible(d))return d;for(var l=0;d-l>0||d+l=0&&this.$isAnnotationVisible(d-l))return d-l;if(d+l<=this.lines.getLength()-1&&this.$isAnnotationVisible(d+l))return d+l}return null},f.prototype.$focusFoldWidget=function(d){if(null!=d){var l=this.$getFoldWidget(d);l.classList.add(this.editor.renderer.keyboardFocusClassName),l.focus()}},f.prototype.$focusAnnotation=function(d){if(null!=d){var l=this.$getAnnotation(d);l.classList.add(this.editor.renderer.keyboardFocusClassName),l.focus()}},f.prototype.$blurFoldWidget=function(d){var l=this.$getFoldWidget(d);l.classList.remove(this.editor.renderer.keyboardFocusClassName),l.blur()},f.prototype.$blurAnnotation=function(d){var l=this.$getAnnotation(d);l.classList.remove(this.editor.renderer.keyboardFocusClassName),l.blur()},f.prototype.$moveFoldWidgetUp=function(){for(var d=this.activeRowIndex;d>0;)if(d--,this.$isFoldWidgetVisible(d))return this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=d,void this.$focusFoldWidget(this.activeRowIndex)},f.prototype.$moveFoldWidgetDown=function(){for(var d=this.activeRowIndex;d0;)if(d--,this.$isAnnotationVisible(d))return this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=d,void this.$focusAnnotation(this.activeRowIndex)},f.prototype.$moveAnnotationDown=function(){for(var d=this.activeRowIndex;d=N.length&&(N=void 0),{value:N&&N[Y++],done:!N}}};throw new TypeError(A?"Object is not iterable.":"Symbol.iterator is not defined.")},u=t("./lib/oop"),b=t("./lib/dom"),s=t("./lib/lang"),f=t("./lib/useragent"),d=t("./keyboard/textinput").TextInput,l=t("./mouse/mouse_handler").MouseHandler,c=t("./mouse/fold_handler").FoldHandler,o=t("./keyboard/keybinding").KeyBinding,r=t("./edit_session").EditSession,h=t("./search").Search,p=t("./range").Range,v=t("./lib/event_emitter").EventEmitter,y=t("./commands/command_manager").CommandManager,M=t("./commands/default_commands").commands,w=t("./config"),k=t("./token_iterator").TokenIterator,I=t("./line_widgets").LineWidgets,D=t("./keyboard/gutter_handler").GutterKeyboardHandler,O=t("./config").nls,T=t("./clipboard"),U=t("./lib/keys"),S=function(){function N(A,F,Y){this.$toDestroy=[];var ee=A.getContainerElement();this.container=ee,this.renderer=A,this.id="editor"+ ++N.$uid,this.commands=new y(f.isMac?"mac":"win",M),"object"==typeof document&&(this.textInput=new d(A.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new c(this)),this.keyBinding=new o(this),this.$search=(new h).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=s.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(ie,$){$._$emitInputEvent.schedule(31)}),this.setSession(F||Y&&Y.session||new r("")),w.resetOptions(this),Y&&this.setOptions(Y),w._signal("editor",this)}return N.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=s.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},N.prototype.startOperation=function(A){if(this.curOp){if(!A||this.curOp.command)return;this.prevOp=this.curOp}A||(this.previousCommand=null,A={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:A.command||{},args:A.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},N.prototype.endOperation=function(A){if(this.curOp&&this.session){if(A&&!1===A.returnValue||!this.session)return this.curOp=null;if(1==A&&this.curOp.command&&"mouse"==this.curOp.command.name||(this._signal("beforeEndOperation"),!this.curOp))return;var F=this.curOp.command,Y=F&&F.scrollIntoView;if(Y){switch(Y){case"center-animate":Y="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var ee=this.selection.getRange(),ie=this.renderer.layerConfig;(ee.start.row>=ie.lastRow||ee.end.row<=ie.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==Y&&this.renderer.animateScrolling(this.curOp.scrollTop)}var $=this.selection.toJSON();this.curOp.selectionAfter=$,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection($),this.prevOp=this.curOp,this.curOp=null}},N.prototype.$historyTracker=function(A){if(this.$mergeUndoDeltas){var F=this.prevOp,Y=this.$mergeableCommands,ee=F.command&&A.command.name==F.command.name;if("insertstring"==A.command.name){var ie=A.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),ee=ee&&this.mergeNextCommand&&(!/\s/.test(ie)||/\s/.test(F.args)),this.mergeNextCommand=!0}else ee=ee&&-1!==Y.indexOf(A.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(ee=!1),ee?this.session.mergeUndoDeltas=!0:-1!==Y.indexOf(A.command.name)&&(this.sequenceStartTime=Date.now())}},N.prototype.setKeyboardHandler=function(A,F){if(A&&"string"==typeof A&&"ace"!=A){this.$keybindingId=A;var Y=this;w.loadModule(["keybinding",A],function(ee){Y.$keybindingId==A&&Y.keyBinding.setKeyboardHandler(ee&&ee.handler),F&&F()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(A),F&&F()},N.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},N.prototype.setSession=function(A){if(this.session!=A){this.curOp&&this.endOperation(),this.curOp={};var F=this.session;if(F){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 Y=this.session.getSelection();Y.off("changeCursor",this.$onCursorChange),Y.off("changeSelection",this.$onSelectionChange)}this.session=A,A?(this.$onDocumentChange=this.onDocumentChange.bind(this),A.on("change",this.$onDocumentChange),this.renderer.setSession(A),this.$onChangeMode=this.onChangeMode.bind(this),A.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),A.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),A.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),A.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),A.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),A.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=A.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(A)),this._signal("changeSession",{session:A,oldSession:F}),this.curOp=null,F&&F._signal("changeEditor",{oldEditor:this}),A&&A._signal("changeEditor",{editor:this}),A&&!A.destroyed&&A.bgTokenizer.scheduleStart()}},N.prototype.getSession=function(){return this.session},N.prototype.setValue=function(A,F){return this.session.doc.setValue(A),F?1==F?this.navigateFileEnd():-1==F&&this.navigateFileStart():this.selectAll(),A},N.prototype.getValue=function(){return this.session.getValue()},N.prototype.getSelection=function(){return this.selection},N.prototype.resize=function(A){this.renderer.onResize(A)},N.prototype.setTheme=function(A,F){this.renderer.setTheme(A,F)},N.prototype.getTheme=function(){return this.renderer.getTheme()},N.prototype.setStyle=function(A){this.renderer.setStyle(A)},N.prototype.unsetStyle=function(A){this.renderer.unsetStyle(A)},N.prototype.getFontSize=function(){return this.getOption("fontSize")||b.computedStyle(this.container).fontSize},N.prototype.setFontSize=function(A){this.setOption("fontSize",A)},N.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var A=this;this.$highlightPending=!0,setTimeout(function(){A.$highlightPending=!1;var F=A.session;if(F&&!F.destroyed){F.$bracketHighlight&&(F.$bracketHighlight.markerIds.forEach(function(K){F.removeMarker(K)}),F.$bracketHighlight=null);var Y=A.getCursorPosition(),ee=A.getKeyboardHandler(),ie=ee&&ee.$getDirectionForHighlight&&ee.$getDirectionForHighlight(A),$=F.getMatchingBracketRanges(Y,ie);if(!$){var G=new k(F,Y.row,Y.column).getCurrentToken();if(G&&/\b(?:tag-open|tag-name)/.test(G.type)){var V=F.getMatchingTags(Y);V&&($=[V.openTagName,V.closeTagName])}}if(!$&&F.$mode.getMatching&&($=F.$mode.getMatching(A.session)),!$)return void(A.getHighlightIndentGuides()&&A.renderer.$textLayer.$highlightIndentGuide());var W="ace_bracket";Array.isArray($)?1==$.length&&(W="ace_error_bracket"):$=[$],2==$.length&&(0==p.comparePoints($[0].end,$[1].start)?$=[p.fromPoints($[0].start,$[1].end)]:0==p.comparePoints($[0].start,$[1].end)&&($=[p.fromPoints($[1].start,$[0].end)])),F.$bracketHighlight={ranges:$,markerIds:$.map(function(K){return F.addMarker(K,W,"text")})},A.getHighlightIndentGuides()&&A.renderer.$textLayer.$highlightIndentGuide()}},50)}},N.prototype.focus=function(){this.textInput.focus()},N.prototype.isFocused=function(){return this.textInput.isFocused()},N.prototype.blur=function(){this.textInput.blur()},N.prototype.onFocus=function(A){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",A))},N.prototype.onBlur=function(A){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",A))},N.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},N.prototype.onDocumentChange=function(A){this.renderer.updateLines(A.start.row,A.start.row==A.end.row?A.end.row:1/0,this.session.$useWrapMode),this._signal("change",A),this.$cursorChange()},N.prototype.onTokenizerUpdate=function(A){var F=A.data;this.renderer.updateLines(F.first,F.last)},N.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},N.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},N.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},N.prototype.$updateHighlightActiveLine=function(){var F,A=this.getSession();if(this.$highlightActiveLine&&(("line"!=this.$selectionStyle||!this.selection.isMultiLine())&&(F=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(F=!1),this.renderer.$maxLines&&1===this.session.getLength()&&!(this.renderer.$minLines>1)&&(F=!1)),A.$highlightLineMarker&&!F)A.removeMarker(A.$highlightLineMarker.id),A.$highlightLineMarker=null;else if(!A.$highlightLineMarker&&F){var Y=new p(F.row,F.column,F.row,1/0);Y.id=A.addMarker(Y,"ace_active-line","screenLine"),A.$highlightLineMarker=Y}else F&&(A.$highlightLineMarker.start.row=F.row,A.$highlightLineMarker.end.row=F.row,A.$highlightLineMarker.start.column=F.column,A._signal("changeBackMarker"))},N.prototype.onSelectionChange=function(A){var F=this.session;if(F.$selectionMarker&&F.removeMarker(F.$selectionMarker),F.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var Y=this.selection.getRange(),ee=this.getSelectionStyle();F.$selectionMarker=F.addMarker(Y,"ace_selection",ee)}var ie=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(ie),this._signal("changeSelection")},N.prototype.$getSelectionHighLightRegexp=function(){var A=this.session,F=this.getSelectionRange();if(!F.isEmpty()&&!F.isMultiLine()){var Y=F.start.column,ee=F.end.column,ie=A.getLine(F.start.row),$=ie.substring(Y,ee);if(!($.length>5e3)&&/[\w\d]/.test($)){var j=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:$}),G=ie.substring(Y-1,ee+1);if(j.test(G))return j}}},N.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},N.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},N.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},N.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},N.prototype.onChangeMode=function(A){this.renderer.updateText(),this._emit("changeMode",A)},N.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},N.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},N.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},N.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},N.prototype.getCopyText=function(){var A=this.getSelectedText(),F=this.session.doc.getNewLineCharacter(),Y=!1;if(!A&&this.$copyWithEmptySelection){Y=!0;for(var ee=this.selection.getAllRanges(),ie=0;ieK.search(/\S|$/)){var G=K.substr(ie.column).search(/\S|$/);Y.doc.removeInLine(ie.row,ie.column,ie.column+G)}}this.clearSelection();var V=ie.column,W=Y.getState(ie.row),ce=(K=Y.getLine(ie.row),ee.checkOutdent(W,K,A));if(Y.insert(ie,A),$&&$.selection&&this.selection.setSelectionRange(2==$.selection.length?new p(ie.row,V+$.selection[0],ie.row,V+$.selection[1]):new p(ie.row+$.selection[0],$.selection[1],ie.row+$.selection[2],$.selection[3])),this.$enableAutoIndent){if(Y.getDocument().isNewLine(A)){var ue=ee.getNextLineIndent(W,K.slice(0,ie.column),Y.getTabString());Y.insert({row:ie.row+1,column:0},ue)}ce&&ee.autoOutdent(W,Y,ie.row)}},N.prototype.autoIndent=function(){for(var A=this.session,F=A.getMode(),Y=this.selection.isEmpty()?[new p(0,0,A.doc.getLength()-1,0)]:this.selection.getAllRanges(),ee="",ie="",$="",j=A.getTabString(),G=0;G0&&(ee=A.getState(K-1),ie=A.getLine(K-1),$=F.getNextLineIndent(ee,ie,j));var ce=A.getLine(K),ue=F.$getIndent(ce);if($!==ue){if(ue.length>0){var ve=new p(K,0,K,ue.length);A.remove(ve)}$.length>0&&A.insert({row:K,column:0},$)}F.autoOutdent(ee,A,K)}},N.prototype.onTextInput=function(A,F){if(!F)return this.keyBinding.onTextInput(A);this.startOperation({command:{name:"insertstring"}});var Y=this.applyComposition.bind(this,A,F);this.selection.rangeCount?this.forEachSelection(Y):Y(),this.endOperation()},N.prototype.applyComposition=function(A,F){var Y;(F.extendLeft||F.extendRight)&&((Y=this.selection.getRange()).start.column-=F.extendLeft,Y.end.column+=F.extendRight,Y.start.column<0&&(Y.start.row--,Y.start.column+=this.session.getLine(Y.start.row).length+1),this.selection.setRange(Y),!A&&!Y.isEmpty()&&this.remove()),(A||!this.selection.isEmpty())&&this.insert(A,!0),(F.restoreStart||F.restoreEnd)&&((Y=this.selection.getRange()).start.column-=F.restoreStart,Y.end.column-=F.restoreEnd,this.selection.setRange(Y))},N.prototype.onCommandKey=function(A,F,Y){return this.keyBinding.onCommandKey(A,F,Y)},N.prototype.setOverwrite=function(A){this.session.setOverwrite(A)},N.prototype.getOverwrite=function(){return this.session.getOverwrite()},N.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},N.prototype.setScrollSpeed=function(A){this.setOption("scrollSpeed",A)},N.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},N.prototype.setDragDelay=function(A){this.setOption("dragDelay",A)},N.prototype.getDragDelay=function(){return this.getOption("dragDelay")},N.prototype.setSelectionStyle=function(A){this.setOption("selectionStyle",A)},N.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},N.prototype.setHighlightActiveLine=function(A){this.setOption("highlightActiveLine",A)},N.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},N.prototype.setHighlightGutterLine=function(A){this.setOption("highlightGutterLine",A)},N.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},N.prototype.setHighlightSelectedWord=function(A){this.setOption("highlightSelectedWord",A)},N.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},N.prototype.setAnimatedScroll=function(A){this.renderer.setAnimatedScroll(A)},N.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},N.prototype.setShowInvisibles=function(A){this.renderer.setShowInvisibles(A)},N.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},N.prototype.setDisplayIndentGuides=function(A){this.renderer.setDisplayIndentGuides(A)},N.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},N.prototype.setHighlightIndentGuides=function(A){this.renderer.setHighlightIndentGuides(A)},N.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},N.prototype.setShowPrintMargin=function(A){this.renderer.setShowPrintMargin(A)},N.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},N.prototype.setPrintMarginColumn=function(A){this.renderer.setPrintMarginColumn(A)},N.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},N.prototype.setReadOnly=function(A){this.setOption("readOnly",A)},N.prototype.getReadOnly=function(){return this.getOption("readOnly")},N.prototype.setBehavioursEnabled=function(A){this.setOption("behavioursEnabled",A)},N.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},N.prototype.setWrapBehavioursEnabled=function(A){this.setOption("wrapBehavioursEnabled",A)},N.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},N.prototype.setShowFoldWidgets=function(A){this.setOption("showFoldWidgets",A)},N.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},N.prototype.setFadeFoldWidgets=function(A){this.setOption("fadeFoldWidgets",A)},N.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},N.prototype.remove=function(A){this.selection.isEmpty()&&("left"==A?this.selection.selectLeft():this.selection.selectRight());var F=this.getSelectionRange();if(this.getBehavioursEnabled()){var Y=this.session,ee=Y.getState(F.start.row),ie=Y.getMode().transformAction(ee,"deletion",this,Y,F);if(0===F.end.column){var $=Y.getTextRange(F);if("\n"==$[$.length-1]){var j=Y.getLine(F.end.row);/^\s+$/.test(j)&&(F.end.column=j.length)}}ie&&(F=ie)}this.session.remove(F),this.clearSelection()},N.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},N.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},N.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},N.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var A=this.getSelectionRange();A.start.column==A.end.column&&A.start.row==A.end.row&&(A.end.column=0,A.end.row++),this.session.remove(A),this.clearSelection()},N.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var A=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(A)},N.prototype.setGhostText=function(A,F){this.session.widgetManager||(this.session.widgetManager=new I(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(A,F)},N.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},N.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var A=this.getCursorPosition(),F=A.column;if(0!==F){var ee,ie,Y=this.session.getLine(A.row);FG.toLowerCase()?1:0});var ie=new p(0,0,0,0);for(ee=A.first;ee<=A.last;ee++){var $=F.getLine(ee);ie.start.row=ee,ie.end.row=ee,ie.end.column=$.length,F.replace(ie,Y[ee-A.first])}},N.prototype.toggleCommentLines=function(){var A=this.session.getState(this.getCursorPosition().row),F=this.$getSelectedRows();this.session.getMode().toggleCommentLines(A,this.session,F.first,F.last)},N.prototype.toggleBlockComment=function(){var A=this.getCursorPosition(),F=this.session.getState(A.row),Y=this.getSelectionRange();this.session.getMode().toggleBlockComment(F,this.session,Y,A)},N.prototype.getNumberAt=function(A,F){var Y=/[\-]?[0-9]+(?:\.[0-9]+)?/g;Y.lastIndex=0;for(var ee=this.session.getLine(A);Y.lastIndex=F)return{value:ie[0],start:ie.index,end:ie.index+ie[0].length}}return null},N.prototype.modifyNumber=function(A){var F=this.selection.getCursor().row,Y=this.selection.getCursor().column,ee=new p(F,Y-1,F,Y),ie=this.session.getTextRange(ee);if(!isNaN(parseFloat(ie))&&isFinite(ie)){var $=this.getNumberAt(F,Y);if($){var j=$.value.indexOf(".")>=0?$.start+$.value.indexOf(".")+1:$.end,G=$.start+$.value.length-j,V=parseFloat($.value);V*=Math.pow(10,G),V+=A*=j!==$.end&&Y=j&&$<=G&&(Y=Ct,V.selection.clearSelection(),V.moveCursorTo(A,j+ee),V.selection.selectTo(A,G+ee)),j=G});for(var K,W=this.$toggleWordPairs,ce=0;ce=G&&j<=V&&ue.match(/((?:https?|ftp):\/\/[\S]+)/)){W=ue.replace(/[\s:.,'";}\]]+$/,"");break}G=V}}catch(ve){Y={error:ve}}finally{try{ce&&!ce.done&&(ee=K.return)&&ee.call(K)}finally{if(Y)throw Y.error}}return W},N.prototype.openLink=function(){var A=this.selection.getCursor(),F=this.findLinkAt(A.row,A.column);return F&&window.open(F,"_blank"),null!=F},N.prototype.removeLines=function(){var A=this.$getSelectedRows();this.session.removeFullLines(A.first,A.last),this.clearSelection()},N.prototype.duplicateSelection=function(){var A=this.selection,F=this.session,Y=A.getRange(),ee=A.isBackwards();if(Y.isEmpty()){var ie=Y.start.row;F.duplicateLines(ie,ie)}else{var $=ee?Y.start:Y.end,j=F.insert($,F.getTextRange(Y));Y.start=$,Y.end=j,A.setSelectionRange(Y,ee)}},N.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},N.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},N.prototype.moveText=function(A,F,Y){return this.session.moveText(A,F,Y)},N.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},N.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},N.prototype.$moveLines=function(A,F){var Y,ee,ie=this.selection;if(!ie.inMultiSelectMode||this.inVirtualSelectionMode){var $=ie.toOrientedRange();Y=this.$getSelectedRows($),ee=this.session.$moveLines(Y.first,Y.last,F?0:A),F&&-1==A&&(ee=0),$.moveBy(ee,0),ie.fromOrientedRange($)}else{var j=ie.rangeList.ranges;ie.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var G=0,V=0,W=j.length,K=0;Kve+1)break;ve=Ye.last}for(K--,G=this.session.$moveLines(ue,ve,F?0:A),F&&-1==A&&(ce=K+1);ce<=K;)j[ce].moveBy(G,0),ce++;F||(G=0),V+=G}ie.fromOrientedRange(ie.ranges[0]),ie.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},N.prototype.$getSelectedRows=function(A){return A=(A||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(A.start.row),last:this.session.getRowFoldEnd(A.end.row)}},N.prototype.onCompositionStart=function(A){this.renderer.showComposition(A)},N.prototype.onCompositionUpdate=function(A){this.renderer.setCompositionText(A)},N.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},N.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},N.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},N.prototype.isRowVisible=function(A){return A>=this.getFirstVisibleRow()&&A<=this.getLastVisibleRow()},N.prototype.isRowFullyVisible=function(A){return A>=this.renderer.getFirstFullyVisibleRow()&&A<=this.renderer.getLastFullyVisibleRow()},N.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},N.prototype.$moveByPage=function(A,F){var Y=this.renderer,ee=this.renderer.layerConfig,ie=A*Math.floor(ee.height/ee.lineHeight);!0===F?this.selection.$moveSelection(function(){this.moveCursorBy(ie,0)}):!1===F&&(this.selection.moveCursorBy(ie,0),this.selection.clearSelection());var $=Y.scrollTop;Y.scrollBy(0,ie*ee.lineHeight),null!=F&&Y.scrollCursorIntoView(null,.5),Y.animateScrolling($)},N.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},N.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},N.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},N.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},N.prototype.scrollPageDown=function(){this.$moveByPage(1)},N.prototype.scrollPageUp=function(){this.$moveByPage(-1)},N.prototype.scrollToRow=function(A){this.renderer.scrollToRow(A)},N.prototype.scrollToLine=function(A,F,Y,ee){this.renderer.scrollToLine(A,F,Y,ee)},N.prototype.centerSelection=function(){var A=this.getSelectionRange(),F={row:Math.floor(A.start.row+(A.end.row-A.start.row)/2),column:Math.floor(A.start.column+(A.end.column-A.start.column)/2)};this.renderer.alignCursor(F,.5)},N.prototype.getCursorPosition=function(){return this.selection.getCursor()},N.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},N.prototype.getSelectionRange=function(){return this.selection.getRange()},N.prototype.selectAll=function(){this.selection.selectAll()},N.prototype.clearSelection=function(){this.selection.clearSelection()},N.prototype.moveCursorTo=function(A,F){this.selection.moveCursorTo(A,F)},N.prototype.moveCursorToPosition=function(A){this.selection.moveCursorToPosition(A)},N.prototype.jumpToMatching=function(A,F){var Y=this.getCursorPosition(),ee=new k(this.session,Y.row,Y.column),ie=ee.getCurrentToken(),$=0;ie&&-1!==ie.type.indexOf("tag-name")&&(ie=ee.stepBackward());var j=ie||ee.stepForward();if(j){var G,ce,V=!1,W={},K=Y.column-j.start,ue={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(j.value.match(/[{}()\[\]]/g)){for(;K1?W[j.value]++:"=0;--$)this.$tryReplace(Y[$],A)&&ee++;return this.selection.setSelectionRange(ie),ee},N.prototype.$tryReplace=function(A,F){var Y=this.session.getTextRange(A);return null!==(F=this.$search.replace(Y,F))?(A.end=this.session.replace(A,F),A):null},N.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},N.prototype.find=function(A,F,Y){F||(F={}),"string"==typeof A||A instanceof RegExp?F.needle=A:"object"==typeof A&&u.mixin(F,A);var ee=this.selection.getRange();null==F.needle&&((A=this.session.getTextRange(ee)||this.$search.$options.needle)||(ee=this.session.getWordRange(ee.start.row,ee.start.column),A=this.session.getTextRange(ee)),this.$search.set({needle:A})),this.$search.set(F),F.start||this.$search.set({start:ee});var ie=this.$search.find(this.session);return F.preventScroll?ie:ie?(this.revealRange(ie,Y),ie):(F.backwards?ee.start=ee.end:ee.end=ee.start,void this.selection.setRange(ee))},N.prototype.findNext=function(A,F){this.find({skipCurrent:!0,backwards:!1},A,F)},N.prototype.findPrevious=function(A,F){this.find(A,{skipCurrent:!0,backwards:!0},F)},N.prototype.revealRange=function(A,F){this.session.unfold(A),this.selection.setSelectionRange(A);var Y=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(A.start,A.end,.5),!1!==F&&this.renderer.animateScrolling(Y)},N.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},N.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},N.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(A){A.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()},N.prototype.setAutoScrollEditorIntoView=function(A){if(A){var F,Y=this,ee=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var ie=this.$scrollAnchor;ie.style.cssText="position:absolute",this.container.insertBefore(ie,this.container.firstChild);var $=this.on("changeSelection",function(){ee=!0}),j=this.renderer.on("beforeRender",function(){ee&&(F=Y.renderer.container.getBoundingClientRect())}),G=this.renderer.on("afterRender",function(){if(ee&&F&&(Y.isFocused()||Y.searchBox&&Y.searchBox.isFocused())){var V=Y.renderer,W=V.$cursorLayer.$pixelPos,K=V.layerConfig,ce=W.top-K.offset;null!=(ee=W.top>=0&&ce+F.top<0||!(W.topwindow.innerHeight)&&null)&&(ie.style.top=ce+"px",ie.style.left=W.left+"px",ie.style.height=K.lineHeight+"px",ie.scrollIntoView(ee)),ee=F=null}});this.setAutoScrollEditorIntoView=function(V){V||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",$),this.renderer.off("afterRender",G),this.renderer.off("beforeRender",j))}}},N.prototype.$resetCursorStyle=function(){var A=this.$cursorStyle||"ace",F=this.renderer.$cursorLayer;F&&(F.setSmoothBlinking(/smooth/.test(A)),F.isBlinking=!this.$readOnly&&"wide"!=A,b.setCssClass(F.element,"ace_slim-cursors",/slim/.test(A)))},N.prototype.prompt=function(A,F,Y){var ee=this;w.loadModule("ace/ext/prompt",function(ie){ie.prompt(ee,A,F,Y)})},N}();S.$uid=0,S.prototype.curOp=null,S.prototype.prevOp={},S.prototype.$mergeableCommands=["backspace","del","insertstring"],S.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],u.implement(S.prototype,v),w.defineOptions(S.prototype,"editor",{selectionStyle:{set:function(N){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:N})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(N){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(N){this.textInput.setReadOnly(N),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(N){this.textInput.setCopyWithEmptySelection(N)},initialValue:!1},cursorStyle:{set:function(N){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(N){this.setAutoScrollEditorIntoView(N)}},keyboardHandler:{set:function(N){this.setKeyboardHandler(N)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(N){this.session.setValue(N)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(N){this.setSession(N)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(N){this.renderer.$gutterLayer.setShowLineNumbers(N),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),N&&this.$relativeLineNumbers?R.attach(this):R.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(N){this.$showLineNumbers&&N?R.attach(this):R.detach(this)}},placeholder:{set:function(N){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var A=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(A&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),b.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(A||this.renderer.placeholderNode)!A&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),b.addCssClass(this.container,"ace_hasPlaceholder");var F=b.createElement("div");F.className="ace_placeholder",F.textContent=this.$placeholder||"",this.renderer.placeholderNode=F,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(N){var Y,A={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(ee){ee.blur(),ee.renderer.scroller.focus()},readOnly:!0},F=function(ee){if(ee.target==this.renderer.scroller&&ee.keyCode===U.enter){ee.preventDefault();var ie=this.getCursorPosition().row;this.isRowVisible(ie)||this.scrollToLine(ie,!0,!0),this.focus()}};N?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(f.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",O("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",O("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",F.bind(this)),this.commands.addCommand(A),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",O("editor")),this.renderer.$gutter.setAttribute("aria-label",O("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),Y||(Y=new D(this)),Y.addListener()):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",F.bind(this)),this.commands.removeCommand(A),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),Y&&Y.removeListener())},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"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 R={getText:function(N,A){return(Math.abs(N.selection.lead.row-A)||A+1+(A<9?"\xb7":""))+""},getWidth:function(N,A,F){return Math.max(A.toString().length,(F.lastRow+1).toString().length,2)*F.characterWidth},update:function(N,A){A.renderer.$loop.schedule(A.renderer.CHANGE_GUTTER)},attach:function(N){N.renderer.$gutterLayer.$renderer=this,N.on("changeSelection",this.update),this.update(null,N)},detach:function(N){N.renderer.$gutterLayer.$renderer==this&&(N.renderer.$gutterLayer.$renderer=null),N.off("changeSelection",this.update),this.update(null,N)}};_.Editor=S}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(t,_,C){"use strict";var E=t("../lib/dom"),u=function(){function b(s,f){this.element=s,this.canvasHeight=f||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return b.prototype.moveContainer=function(s){E.translate(this.element,0,-s.firstRowScreen*s.lineHeight%this.canvasHeight-s.offset*this.$offsetCoefficient)},b.prototype.pageChanged=function(s,f){return Math.floor(s.firstRowScreen*s.lineHeight/this.canvasHeight)!==Math.floor(f.firstRowScreen*f.lineHeight/this.canvasHeight)},b.prototype.computeLineTop=function(s,f,d){var c=Math.floor(f.firstRowScreen*f.lineHeight/this.canvasHeight);return d.documentToScreenRow(s,0)*f.lineHeight-c*this.canvasHeight},b.prototype.computeLineHeight=function(s,f,d){return f.lineHeight*d.getRowLineCount(s)},b.prototype.getLength=function(){return this.cells.length},b.prototype.get=function(s){return this.cells[s]},b.prototype.shift=function(){this.$cacheCell(this.cells.shift())},b.prototype.pop=function(){this.$cacheCell(this.cells.pop())},b.prototype.push=function(s){if(Array.isArray(s)){this.cells.push.apply(this.cells,s);for(var f=E.createFragment(this.element),d=0;dM&&(M=(y=h.getNextFoldLine(I=y.end.row+1,y))?y.start.row:1/0),I>v){for(;this.$lines.getLength()>k+1;)this.$lines.pop();break}(w=this.$lines.get(++k))?w.row=I:(w=this.$lines.createCell(I,r,this.session,c),this.$lines.push(w)),this.$renderCell(w,r,y,I),I++}this._signal("afterRender"),this.$updateGutterWidth(r)},o.prototype.$updateGutterWidth=function(r){var h=this.session,p=h.gutterRenderer||this.$renderer,v=h.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||h.$useWrapMode)&&(y=h.getLength()+v-1);var M=p?p.getWidth(h,y,r):y.toString().length*r.characterWidth,w=this.$padding||this.$computePadding();(M+=w.left+w.right)!==this.gutterWidth&&!isNaN(M)&&(this.gutterWidth=M,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",M))},o.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var r=this.session.selection.getCursor();this.$cursorRow!==r.row&&(this.$cursorRow=r.row)}},o.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var r=this.session.selection.cursor.row;if(this.$cursorRow=r,!this.$cursorCell||this.$cursorCell.row!=r){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var h=this.$lines.cells;this.$cursorCell=null;for(var p=0;p=this.$cursorRow){if(v.row>this.$cursorRow){var y=this.session.getFoldLine(this.$cursorRow);if(!(p>0&&y&&y.start.row==h[p-1].row))break;v=h[p-1]}v.element.className="ace_gutter-active-line "+v.element.className,this.$cursorCell=v;break}}}}},o.prototype.scrollLines=function(r){var h=this.config;if(this.config=r,this.$updateCursorRow(),this.$lines.pageChanged(h,r))return this.update(r);this.$lines.moveContainer(r);var p=Math.min(r.lastRow+r.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=p,!h||v0;y--)this.$lines.shift();if(v>p)for(y=this.session.getFoldedRowCount(p+1,v);y>0;y--)this.$lines.pop();r.firstRowv&&this.$lines.push(this.$renderLines(r,v+1,p)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(r)},o.prototype.$renderLines=function(r,h,p){for(var v=[],y=h,M=this.session.getNextFoldLine(y),w=M?M.start.row:1/0;y>w&&(w=(M=this.session.getNextFoldLine(y=M.end.row+1,M))?M.start.row:1/0),!(y>p);){var k=this.$lines.createCell(y,r,this.session,c);this.$renderCell(k,r,M,y),v.push(k),y++}return v},o.prototype.$renderCell=function(r,h,p,v){var y=r.element,M=this.session,w=y.childNodes[0],k=y.childNodes[1],I=y.childNodes[2],D=I.firstChild,O=M.$firstLineNumber,T=M.$breakpoints,U=M.$decorations,S=M.gutterRenderer||this.$renderer,R=this.$showFoldWidgets&&M.foldWidgets,N=p?p.start.row:Number.MAX_VALUE,A=h.lineHeight+"px",F=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",Y=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",ee=(S?S.getText(M,v):v+O).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||p&&v=N&&this.$cursorRow<=p.end.row)&&(F+="ace_gutter-active-line ",this.$cursorCell!=r&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=r)),T[v]&&(F+=T[v]),U[v]&&(F+=U[v]),this.$annotations[v]&&v!==N&&(F+=this.$annotations[v].className),R){var ie=R[v];null==ie&&(ie=R[v]=M.getFoldWidget(v))}if(ie){var $="ace_fold-widget ace_"+ie,j="start"==ie&&v==N&&vp.right-h.right?"foldWidgets":void 0},o}();function c(o){var r=document.createTextNode("");o.appendChild(r);var h=E.createElement("span");o.appendChild(h);var p=E.createElement("span");o.appendChild(p);var v=E.createElement("span");return p.appendChild(v),o}l.prototype.$fixedWidth=!1,l.prototype.$highlightGutterLine=!0,l.prototype.$renderer="",l.prototype.$showLineNumbers=!0,l.prototype.$showFoldWidgets=!0,u.implement(l.prototype,s),_.Gutter=l}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(t,_,C){"use strict";var E=t("../range").Range,u=t("../lib/dom"),b=function(){function f(d){this.element=u.createElement("div"),this.element.className="ace_layer ace_marker-layer",d.appendChild(this.element)}return f.prototype.setPadding=function(d){this.$padding=d},f.prototype.setSession=function(d){this.session=d},f.prototype.setMarkers=function(d){this.markers=d},f.prototype.elt=function(d,l){var c=-1!=this.i&&this.element.childNodes[this.i];c?this.i++:(c=document.createElement("div"),this.element.appendChild(c),this.i=-1),c.style.cssText=l,c.className=d},f.prototype.update=function(d){if(d){var l;for(var c in this.config=d,this.i=0,this.markers){var o=this.markers[c];if(o.range){var r=o.range.clipRows(d.firstRow,d.lastRow);if(!r.isEmpty())if(r=r.toScreenRange(this.session),o.renderer){var h=this.$getTop(r.start.row,d);o.renderer(l,r,this.$padding+r.start.column*d.characterWidth,h,d)}else"fullLine"==o.type?this.drawFullLineMarker(l,r,o.clazz,d):"screenLine"==o.type?this.drawScreenLineMarker(l,r,o.clazz,d):r.isMultiLine()?"text"==o.type?this.drawTextMarker(l,r,o.clazz,d):this.drawMultiLineMarker(l,r,o.clazz,d):this.drawSingleLineMarker(l,r,o.clazz+" ace_start ace_br15",d)}else o.update(l,this,this.session,d)}if(-1!=this.i)for(;this.ik,y==v),o,y==v?0:1,r)},f.prototype.drawMultiLineMarker=function(d,l,c,o,r){var M,h=this.$padding,p=o.lineHeight,v=this.$getTop(l.start.row,o),y=h+l.start.column*o.characterWidth;if(r=r||"",this.session.$bidiHandler.isBidiRow(l.start.row)?((M=l.clone()).end.row=M.start.row,M.end.column=this.session.getLine(M.start.row).length,this.drawBidiSingleLineMarker(d,M,c+" ace_br1 ace_start",o,null,r)):this.elt(c+" ace_br1 ace_start","height:"+p+"px;right:0;top:"+v+"px;left:"+y+"px;"+(r||"")),this.session.$bidiHandler.isBidiRow(l.end.row)?((M=l.clone()).start.row=M.end.row,M.start.column=0,this.drawBidiSingleLineMarker(d,M,c+" ace_br12",o,null,r)):(v=this.$getTop(l.end.row,o),this.elt(c+" ace_br12","height:"+p+"px;width:"+l.end.column*o.characterWidth+"px;top:"+v+"px;left:"+h+"px;"+(r||""))),!((p=(l.end.row-l.start.row-1)*o.lineHeight)<=0)){v=this.$getTop(l.start.row+1,o);var k=(l.start.column?1:0)|(l.end.column?0:8);this.elt(c+(k?" ace_br"+k:""),"height:"+p+"px;right:0;top:"+v+"px;left:"+h+"px;"+(r||""))}},f.prototype.drawSingleLineMarker=function(d,l,c,o,r,h){if(this.session.$bidiHandler.isBidiRow(l.start.row))return this.drawBidiSingleLineMarker(d,l,c,o,r,h);var p=o.lineHeight,v=(l.end.column+(r||0)-l.start.column)*o.characterWidth,y=this.$getTop(l.start.row,o);this.elt(c,"height:"+p+"px;width:"+v+"px;top:"+y+"px;left:"+(this.$padding+l.start.column*o.characterWidth)+"px;"+(h||""))},f.prototype.drawBidiSingleLineMarker=function(d,l,c,o,r,h){var p=o.lineHeight,v=this.$getTop(l.start.row,o),y=this.$padding;this.session.$bidiHandler.getSelections(l.start.column,l.end.column).forEach(function(w){this.elt(c,"height:"+p+"px;width:"+(w.width+(r||0))+"px;top:"+v+"px;left:"+(y+w.left)+"px;"+(h||""))},this)},f.prototype.drawFullLineMarker=function(d,l,c,o,r){var h=this.$getTop(l.start.row,o),p=o.lineHeight;l.start.row!=l.end.row&&(p+=this.$getTop(l.end.row,o)-h),this.elt(c,"height:"+p+"px;top:"+h+"px;left:0;right:0;"+(r||""))},f.prototype.drawScreenLineMarker=function(d,l,c,o,r){var h=this.$getTop(l.start.row,o);this.elt(c,"height:"+o.lineHeight+"px;top:"+h+"px;left:0;right:0;"+(r||""))},f}();function s(f,d,l,c){return(f?1:0)|(d?2:0)|(l?4:0)|(c?8:0)}b.prototype.$padding=0,_.Marker=b}),ace.define("ace/layer/text_util",["require","exports","module"],function(t,_,C){var E=new Set(["text","rparen","lparen"]);_.isTextToken=function(u){return E.has(u)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(t,_,C){"use strict";var E=t("../lib/oop"),u=t("../lib/dom"),b=t("../lib/lang"),s=t("./lines").Lines,f=t("../lib/event_emitter").EventEmitter,d=t("../config").nls,l=t("./text_util").isTextToken,c=function(){function o(r){this.dom=u,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",r.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)}return o.prototype.$updateEolChar=function(){var r=this.session.doc,p="\n"==r.getNewLineCharacter()&&"windows"!=r.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=p)return this.EOL_CHAR=p,!0},o.prototype.setPadding=function(r){this.$padding=r,this.element.style.margin="0 "+r+"px"},o.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},o.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},o.prototype.$setFontMetrics=function(r){this.$fontMetrics=r,this.$fontMetrics.on("changeCharacterSize",function(h){this._signal("changeCharacterSize",h)}.bind(this)),this.$pollSizeChanges()},o.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},o.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},o.prototype.setSession=function(r){this.session=r,r&&this.$computeTabString()},o.prototype.setShowInvisibles=function(r){return this.showInvisibles!=r&&(this.showInvisibles=r,"string"==typeof r?(this.showSpaces=/tab/i.test(r),this.showTabs=/space/i.test(r),this.showEOL=/eol/i.test(r)):this.showSpaces=this.showTabs=this.showEOL=r,this.$computeTabString(),!0)},o.prototype.setDisplayIndentGuides=function(r){return this.displayIndentGuides!=r&&(this.displayIndentGuides=r,this.$computeTabString(),!0)},o.prototype.setHighlightIndentGuides=function(r){return this.$highlightIndentGuides!==r&&(this.$highlightIndentGuides=r,r)},o.prototype.$computeTabString=function(){var r=this.session.getTabSize();this.tabSize=r;for(var h=this.$tabStrings=[0],p=1;pO&&(O=(D=this.session.getNextFoldLine(I=D.end.row+1,D))?D.start.row:1/0),!(I>y);){var T=M[w++];if(T){this.dom.removeChildren(T),this.$renderLine(T,I,I==O&&D),k&&(T.style.top=this.$lines.computeLineTop(I,r,this.session)+"px");var U=r.lineHeight*this.session.getRowLength(I)+"px";T.style.height!=U&&(k=!0,T.style.height=U)}I++}if(k)for(;w0;y--)this.$lines.shift();if(h.lastRow>r.lastRow)for(y=this.session.getFoldedRowCount(r.lastRow+1,h.lastRow);y>0;y--)this.$lines.pop();r.firstRowh.lastRow&&this.$lines.push(this.$renderLinesFragment(r,h.lastRow+1,r.lastRow)),this.$highlightIndentGuide()},o.prototype.$renderLinesFragment=function(r,h,p){for(var v=[],y=h,M=this.session.getNextFoldLine(y),w=M?M.start.row:1/0;y>w&&(w=(M=this.session.getNextFoldLine(y=M.end.row+1,M))?M.start.row:1/0),!(y>p);){var k=this.$lines.createCell(y,r,this.session),I=k.element;this.dom.removeChildren(I),u.setStyle(I.style,"height",this.$lines.computeLineHeight(y,r,this.session)+"px"),u.setStyle(I.style,"top",this.$lines.computeLineTop(y,r,this.session)+"px"),this.$renderLine(I,y,y==w&&M),I.className=this.$useLineGroups()?"ace_line_group":"ace_line",v.push(k),y++}return v},o.prototype.update=function(r){this.$lines.moveContainer(r),this.config=r;for(var h=r.firstRow,p=r.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(r,h,p))},o.prototype.$renderToken=function(r,h,p,v){for(var k,y=this,M=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\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,w=this.dom.createFragment(this.element),I=0;k=M.exec(v);){var D=k[1],O=k[2],T=k[3],U=k[4],S=k[5];if(y.showSpaces||!O){var R=I!=k.index?v.slice(I,k.index):"";if(I=k.index+k[0].length,R&&w.appendChild(this.dom.createTextNode(R,this.element)),D){var N=y.session.getScreenTabSize(h+k.index);w.appendChild(y.$tabStrings[N].cloneNode(!0)),h+=N-1}else O?y.showSpaces?((A=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",A.textContent=b.stringRepeat(y.SPACE_CHAR,O.length),w.appendChild(A)):w.appendChild(this.dom.createTextNode(O,this.element)):T?((A=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",A.textContent=b.stringRepeat(y.SPACE_CHAR,T.length),w.appendChild(A)):U?(h+=1,(A=this.dom.createElement("span")).style.width=2*y.config.characterWidth+"px",A.className=y.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",A.textContent=y.showSpaces?y.SPACE_CHAR:U,w.appendChild(A)):S&&(h+=1,(A=this.dom.createElement("span")).style.width=2*y.config.characterWidth+"px",A.className="ace_cjk",A.textContent=S,w.appendChild(A))}}if(w.appendChild(this.dom.createTextNode(I?v.slice(I):v,this.element)),l(p.type))r.appendChild(w);else{var F="ace_"+p.type.replace(/\./g," ace_"),A=this.dom.createElement("span");"fold"==p.type&&(A.style.width=p.value.length*this.config.characterWidth+"px",A.setAttribute("title",d("Unfold code"))),A.className=F,A.appendChild(w),r.appendChild(A)}return h+v.length},o.prototype.renderIndentGuide=function(r,h,p){var v=h.search(this.$indentGuideRe);if(v<=0||v>=p)return h;if(" "==h[0]){for(var y=(v-=v%this.tabSize)/this.tabSize,M=0;MM[w].start.row?-1:1;break}if(!this.$highlightIndentGuideMarker.end&&""!==r[h.row]&&h.column===r[h.row].length)for(this.$highlightIndentGuideMarker.dir=1,w=h.row+1;w0)for(var y=0;y=this.$highlightIndentGuideMarker.start+1){if(v.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,h)}}else for(p=r.length-1;p>=0;p--)if(v=r[p],this.$highlightIndentGuideMarker.end&&v.row=M;)w=this.$renderToken(k,w,D,O.substring(0,M-v)),O=O.substring(M-v),v=M,k=this.$createLineElement(),r.appendChild(k),k.appendChild(this.dom.createTextNode(b.stringRepeat("\xa0",p.indent),this.element)),w=0,M=p[++y]||Number.MAX_VALUE;0!=O.length&&(v+=O.length,w=this.$renderToken(k,w,D,O))}}p[p.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(k,w,null,"",!0)},o.prototype.$renderSimpleLine=function(r,h){for(var p=0,v=0;vthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(r,p,y,M);p=this.$renderToken(r,p,y,M)}}},o.prototype.$renderOverflowMessage=function(r,h,p,v,y){p&&this.$renderToken(r,h,p,v.slice(0,this.MAX_LINE_LENGTH-h));var M=this.dom.createElement("span");M.className="ace_inline_button ace_keyword ace_toggle_wrap",M.textContent=y?"":"",r.appendChild(M)},o.prototype.$renderLine=function(r,h,p){if(!p&&0!=p&&(p=this.session.getFoldLine(h)),p)var v=this.$getFoldLineTokens(h,p);else v=this.session.getTokens(h);var y=r;if(v.length){var M=this.session.getRowSplitData(h);M&&M.length?(this.$renderWrappedLine(r,v,M),y=r.lastChild):(y=r,this.$useLineGroups()&&(y=this.$createLineElement(),r.appendChild(y)),this.$renderSimpleLine(y,v))}else this.$useLineGroups()&&(y=this.$createLineElement(),r.appendChild(y));if(this.showEOL&&y){p&&(h=p.end.row);var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_eol",w.textContent=h==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,y.appendChild(w)}},o.prototype.$getFoldLineTokens=function(r,h){var p=this.session,v=[],M=p.getTokens(r);return h.walk(function(w,k,I,D,O){null!=w?v.push({type:"fold",value:w}):(O&&(M=p.getTokens(k)),M.length&&function y(w,k,I){for(var D=0,O=0;O+w[D].value.lengthI-k&&(T=T.substring(0,I-k)),v.push({type:w[D].type,value:T}),O=k+T.length,D+=1);OI?{type:w[D].type,value:T.substring(0,I-O)}:w[D]),O+=T.length,D+=1}}(M,D,I))},h.end.row,this.session.getLine(h.end.row).length),v},o.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},o}();c.prototype.EOF_CHAR="\xb6",c.prototype.EOL_CHAR_LF="\xac",c.prototype.EOL_CHAR_CRLF="\xa4",c.prototype.EOL_CHAR=c.prototype.EOL_CHAR_LF,c.prototype.TAB_CHAR="\u2014",c.prototype.SPACE_CHAR="\xb7",c.prototype.$padding=0,c.prototype.MAX_LINE_LENGTH=1e4,c.prototype.showInvisibles=!1,c.prototype.showSpaces=!1,c.prototype.showTabs=!1,c.prototype.showEOL=!1,c.prototype.displayIndentGuides=!0,c.prototype.$highlightIndentGuides=!0,c.prototype.$tabStrings=[],c.prototype.destroy={},c.prototype.onChangeTabSize=c.prototype.$computeTabString,E.implement(c.prototype,f),_.Text=c}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(t,_,C){"use strict";var E=t("../lib/dom"),u=function(){function b(s){this.element=E.createElement("div"),this.element.className="ace_layer ace_cursor-layer",s.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),E.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return b.prototype.$updateOpacity=function(s){for(var f=this.cursors,d=f.length;d--;)E.setStyle(f[d].style,"opacity",s?"":"0")},b.prototype.$startCssAnimation=function(){for(var s=this.cursors,f=s.length;f--;)s[f].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&E.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},b.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,E.removeCssClass(this.element,"ace_animate-blinking")},b.prototype.setPadding=function(s){this.$padding=s},b.prototype.setSession=function(s){this.session=s},b.prototype.setBlinking=function(s){s!=this.isBlinking&&(this.isBlinking=s,this.restartTimer())},b.prototype.setBlinkInterval=function(s){s!=this.blinkInterval&&(this.blinkInterval=s,this.restartTimer())},b.prototype.setSmoothBlinking=function(s){s!=this.smoothBlinking&&(this.smoothBlinking=s,E.setCssClass(this.element,"ace_smooth-blinking",s),this.$updateCursors(!0),this.restartTimer())},b.prototype.addCursor=function(){var s=E.createElement("div");return s.className="ace_cursor",this.element.appendChild(s),this.cursors.push(s),s},b.prototype.removeCursor=function(){if(this.cursors.length>1){var s=this.cursors.pop();return s.parentNode.removeChild(s),s}},b.prototype.hideCursor=function(){this.isVisible=!1,E.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},b.prototype.showCursor=function(){this.isVisible=!0,E.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},b.prototype.restartTimer=function(){var s=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,E.removeCssClass(this.element,"ace_smooth-blinking")),s(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&E.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),E.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var f=function(){this.timeoutId=setTimeout(function(){s(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){s(!0),f()},this.blinkInterval),f()}else this.$stopCssAnimation()},b.prototype.getPixelPosition=function(s,f){if(!this.config||!this.session)return{left:0,top:0};s||(s=this.session.selection.getCursor());var d=this.session.documentToScreenPosition(s);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(d.row,s.row)?this.session.$bidiHandler.getPosLeft(d.column):d.column*this.config.characterWidth),top:(d.row-(f?this.config.firstRowScreen:0))*this.config.lineHeight}},b.prototype.isCursorInView=function(s,f){return s.top>=0&&s.tops.height+s.offset||o.top<0)&&d>1)){var r=this.cursors[l++]||this.addCursor(),h=r.style;this.drawCursor?this.drawCursor(r,o,s,f[d],this.session):this.isCursorInView(o,s)?(E.setStyle(h,"display","block"),E.translate(r,o.left,o.top),E.setStyle(h,"width",Math.round(s.characterWidth)+"px"),E.setStyle(h,"height",s.lineHeight+"px")):E.setStyle(h,"display","none")}}for(;this.cursors.length>l;)this.removeCursor();var p=this.session.getOverwrite();this.$setOverwrite(p),this.$pixelPos=o,this.restartTimer()},b.prototype.$setOverwrite=function(s){s!=this.overwrite&&(this.overwrite=s,s?E.addCssClass(this.element,"ace_overwrite-cursors"):E.removeCssClass(this.element,"ace_overwrite-cursors"))},b.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},b}();u.prototype.$padding=0,u.prototype.drawCursor=null,_.Cursor=u}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(t,_,C){"use strict";var E=this&&this.__extends||function(){var r=function(h,p){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var M in y)Object.prototype.hasOwnProperty.call(y,M)&&(v[M]=y[M])})(h,p)};return function(h,p){if("function"!=typeof p&&null!==p)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function v(){this.constructor=h}r(h,p),h.prototype=null===p?Object.create(p):(v.prototype=p.prototype,new v)}}(),u=t("./lib/oop"),b=t("./lib/dom"),s=t("./lib/event"),f=t("./lib/event_emitter").EventEmitter,d=32768,l=function(){function r(h,p){this.element=b.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+p,this.inner=b.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent="\xa0",this.element.appendChild(this.inner),h.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addListener(this.element,"scroll",this.onScroll.bind(this)),s.addListener(this.element,"mousedown",s.preventDefault)}return r.prototype.setVisible=function(h){this.element.style.display=h?"":"none",this.isVisible=h,this.coeff=1},r}();u.implement(l.prototype,f);var c=function(r){function h(p,v){var y=r.call(this,p,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,v.$scrollbarWidth=y.width=b.scrollbarWidth(p.ownerDocument),y.inner.style.width=y.element.style.width=(y.width||15)+5+"px",y.$minWidth=0,y}return E(h,r),h.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var p=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-p)/(this.coeff-p)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},h.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},h.prototype.setHeight=function(p){this.element.style.height=p+"px"},h.prototype.setScrollHeight=function(p){this.scrollHeight=p,p>d?(this.coeff=d/p,p=d):1!=this.coeff&&(this.coeff=1),this.inner.style.height=p+"px"},h.prototype.setScrollTop=function(p){this.scrollTop!=p&&(this.skipEvent=!0,this.scrollTop=p,this.element.scrollTop=p*this.coeff)},h}(l);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var o=function(r){function h(p,v){var y=r.call(this,p,"-h")||this;return y.scrollLeft=0,y.height=v.$scrollbarWidth,y.inner.style.height=y.element.style.height=(y.height||15)+5+"px",y}return E(h,r),h.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},h.prototype.getHeight=function(){return this.isVisible?this.height:0},h.prototype.setWidth=function(p){this.element.style.width=p+"px"},h.prototype.setInnerWidth=function(p){this.inner.style.width=p+"px"},h.prototype.setScrollWidth=function(p){this.inner.style.width=p+"px"},h.prototype.setScrollLeft=function(p){this.scrollLeft!=p&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=p)},h}(l);_.ScrollBar=c,_.ScrollBarV=c,_.ScrollBarH=o,_.VScrollBar=c,_.HScrollBar=o}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(t,_,C){"use strict";var E=this&&this.__extends||function(){var o=function(r,h){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(p[y]=v[y])})(r,h)};return function(r,h){if("function"!=typeof h&&null!==h)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function p(){this.constructor=r}o(r,h),r.prototype=null===h?Object.create(h):(p.prototype=h.prototype,new p)}}(),u=t("./lib/oop"),b=t("./lib/dom"),s=t("./lib/event"),f=t("./lib/event_emitter").EventEmitter;b.importCssString(".ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{\n position: absolute;\n background: rgba(128, 128, 128, 0.6);\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n border: 1px solid #bbb;\n border-radius: 2px;\n z-index: 8;\n}\n.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {\n position: absolute;\n z-index: 6;\n background: none;\n overflow: hidden!important;\n}\n.ace_editor>.ace_sb-v {\n z-index: 6;\n right: 0;\n top: 0;\n width: 12px;\n}\n.ace_editor>.ace_sb-v div {\n z-index: 8;\n right: 0;\n width: 100%;\n}\n.ace_editor>.ace_sb-h {\n bottom: 0;\n left: 0;\n height: 12px;\n}\n.ace_editor>.ace_sb-h div {\n bottom: 0;\n height: 100%;\n}\n.ace_editor>.ace_sb_grabbed {\n z-index: 8;\n background: #000;\n}","ace_scrollbar.css",!1);var d=function(){function o(r,h){this.element=b.createElement("div"),this.element.className="ace_sb"+h,this.inner=b.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,r.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return o.prototype.setVisible=function(r){this.element.style.display=r?"":"none",this.isVisible=r,this.coeff=1},o}();u.implement(d.prototype,f);var l=function(o){function r(h,p){var v=o.call(this,h,"-v")||this;return v.scrollTop=0,v.scrollHeight=0,v.parent=h,v.width=v.VScrollWidth,v.renderer=p,v.inner.style.width=v.element.style.width=(v.width||15)+"px",v.$minWidth=0,v}return E(r,o),r.prototype.onMouseDown=function(h,p){if("mousedown"===h&&0===s.getButton(p)&&2!==p.detail){if(p.target===this.inner){var v=this,y=p.clientY,k=p.clientY,I=this.thumbTop;s.capture(this.inner,function(U){y=U.clientY},function(){clearInterval(O)});var O=setInterval(function(){if(void 0!==y){var U=v.scrollTopFromThumbTop(I+y-k);U!==v.scrollTop&&v._emit("scroll",{data:U})}},20);return s.preventDefault(p)}var T=p.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(T)}),s.preventDefault(p)}},r.prototype.getHeight=function(){return this.height},r.prototype.scrollTopFromThumbTop=function(h){var p=h*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return(p|=0)<0?p=0:p>this.pageHeight-this.viewHeight&&(p=this.pageHeight-this.viewHeight),p},r.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},r.prototype.setHeight=function(h){this.height=Math.max(0,h),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},r.prototype.setScrollHeight=function(h,p){this.pageHeight===h&&!p||(this.pageHeight=h,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},r.prototype.setScrollTop=function(h){this.scrollTop=h,h<0&&(h=0),this.thumbTop=h*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},r}(d);l.prototype.setInnerHeight=l.prototype.setScrollHeight;var c=function(o){function r(h,p){var v=o.call(this,h,"-h")||this;return v.scrollLeft=0,v.scrollWidth=0,v.height=v.HScrollHeight,v.inner.style.height=v.element.style.height=(v.height||12)+"px",v.renderer=p,v}return E(r,o),r.prototype.onMouseDown=function(h,p){if("mousedown"===h&&0===s.getButton(p)&&2!==p.detail){if(p.target===this.inner){var v=this,y=p.clientX,k=p.clientX,I=this.thumbLeft;s.capture(this.inner,function(U){y=U.clientX},function(){clearInterval(O)});var O=setInterval(function(){if(void 0!==y){var U=v.scrollLeftFromThumbLeft(I+y-k);U!==v.scrollLeft&&v._emit("scroll",{data:U})}},20);return s.preventDefault(p)}var T=p.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(T)}),s.preventDefault(p)}},r.prototype.getHeight=function(){return this.isVisible?this.height:0},r.prototype.scrollLeftFromThumbLeft=function(h){var p=h*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return(p|=0)<0?p=0:p>this.pageWidth-this.viewWidth&&(p=this.pageWidth-this.viewWidth),p},r.prototype.setWidth=function(h){this.width=Math.max(0,h),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},r.prototype.setScrollWidth=function(h,p){this.pageWidth===h&&!p||(this.pageWidth=h,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},r.prototype.setScrollLeft=function(h){this.scrollLeft=h,h<0&&(h=0),this.thumbLeft=h*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},r}(d);c.prototype.setInnerWidth=c.prototype.setScrollWidth,_.ScrollBar=l,_.ScrollBarV=l,_.ScrollBarH=c,_.VScrollBar=l,_.HScrollBar=c}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(t,_,C){"use strict";var E=t("./lib/event"),u=function(){function b(s,f){this.onRender=s,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=f||window;var d=this;this._flush=function(l){d.pending=!1;var c=d.changes;if(c&&(E.blockIdle(100),d.changes=0,d.onRender(c)),d.changes){if(d.$recursionLimit--<0)return;d.schedule()}else d.$recursionLimit=2}}return b.prototype.schedule=function(s){this.changes=this.changes|s,this.changes&&!this.pending&&(E.nextFrame(this._flush),this.pending=!0)},b.prototype.clear=function(s){var f=this.changes;return this.changes=0,f},b}();_.RenderLoop=u}),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(t,_,C){var E=t("../lib/oop"),u=t("../lib/dom"),b=t("../lib/lang"),s=t("../lib/event"),f=t("../lib/useragent"),d=t("../lib/event_emitter").EventEmitter,l=512,c="function"==typeof ResizeObserver,o=200,r=function(){function h(p){this.el=u.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=u.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=u.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),p.appendChild(this.el),this.$measureNode.textContent=b.stringRepeat("X",l),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()}return h.prototype.$setMeasureNodeStyles=function(p,v){p.width=p.height="auto",p.left=p.top="0px",p.visibility="hidden",p.position="absolute",p.whiteSpace="pre",f.isIE<8?p["font-family"]="inherit":p.font="inherit",p.overflow=v?"hidden":"visible"},h.prototype.checkForSizeChanges=function(p){if(void 0===p&&(p=this.$measureSizes()),p&&(this.$characterSize.width!==p.width||this.$characterSize.height!==p.height)){this.$measureNode.style.fontWeight="bold";var v=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=p,this.charSizes=Object.create(null),this.allowBoldFonts=v&&v.width===p.width&&v.height===p.height,this._emit("changeCharacterSize",{data:p})}},h.prototype.$addObserver=function(){var p=this;this.$observer=new window.ResizeObserver(function(v){p.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},h.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var p=this;return this.$pollSizeChangesTimer=s.onIdle(function v(){p.checkForSizeChanges(),s.onIdle(v,500)},500)},h.prototype.setPolling=function(p){p?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},h.prototype.$measureSizes=function(p){var v={height:(p||this.$measureNode).clientHeight,width:(p||this.$measureNode).clientWidth/l};return 0===v.width||0===v.height?null:v},h.prototype.$measureCharWidth=function(p){return this.$main.textContent=b.stringRepeat(p,l),this.$main.getBoundingClientRect().width/l},h.prototype.getCharacterWidth=function(p){var v=this.charSizes[p];return void 0===v&&(v=this.charSizes[p]=this.$measureCharWidth(p)/this.$characterSize.width),v},h.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},h.prototype.$getZoom=function(p){return p&&p.parentElement?(window.getComputedStyle(p).zoom||1)*this.$getZoom(p.parentElement):1},h.prototype.$initTransformMeasureNodes=function(){var p=function(v,y){return["div",{style:"position: absolute;top:"+v+"px;left:"+y+"px;"}]};this.els=u.buildDom([p(0,0),p(o,0),p(0,o),p(o,o)],this.el)},h.prototype.transformCoordinates=function(p,v){function M(j,G,V){var W=j[1]*G[0]-j[0]*G[1];return[(-G[1]*V[0]+G[0]*V[1])/W,(+j[1]*V[0]-j[0]*V[1])/W]}function w(j,G){return[j[0]-G[0],j[1]-G[1]]}function k(j,G){return[j[0]+G[0],j[1]+G[1]]}function I(j,G){return[j*G[0],j*G[1]]}function D(j){var G=j.getBoundingClientRect();return[G.left,G.top]}p&&(p=I(1/this.$getZoom(this.el),p)),this.els||this.$initTransformMeasureNodes();var O=D(this.els[0]),T=D(this.els[1]),U=D(this.els[2]),S=D(this.els[3]),R=M(w(S,T),w(S,U),w(k(T,U),k(S,O))),N=I(1+R[0],w(T,O)),A=I(1+R[1],w(U,O));if(v){var F=v,Y=R[0]*F[0]/o+R[1]*F[1]/o+1,ee=k(I(F[0],N),I(F[1],A));return k(I(1/Y/o,ee),O)}var ie=w(p,O),$=M(w(N,I(R[0],ie)),w(A,I(R[1],ie)),ie);return I(o,$)},h}();r.prototype.$characterSize={width:0,height:0},E.implement(r.prototype,d),_.FontMetrics=r}),ace.define("ace/css/editor-css",["require","exports","module"],function(t,_,C){C.exports='\n.ace_br1 {border-top-left-radius : 3px;}\n.ace_br2 {border-top-right-radius : 3px;}\n.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}\n.ace_br4 {border-bottom-right-radius: 3px;}\n.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}\n.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}\n.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}\n.ace_br8 {border-bottom-left-radius : 3px;}\n.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}\n.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}\n.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n\n\n.ace_editor {\n position: relative;\n overflow: hidden;\n padding: 0;\n font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'Source Code Pro\', \'source-code-pro\', monospace;\n direction: ltr;\n text-align: left;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n.ace_scroller {\n position: absolute;\n overflow: hidden;\n top: 0;\n bottom: 0;\n background-color: inherit;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n cursor: text;\n}\n\n.ace_content {\n position: absolute;\n box-sizing: border-box;\n min-width: 100%;\n contain: style size layout;\n font-variant-ligatures: no-common-ligatures;\n}\n\n.ace_keyboard-focus:focus {\n box-shadow: inset 0 0 0 2px #5E9ED6;\n outline: none;\n}\n\n.ace_dragging .ace_scroller:before{\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n content: \'\';\n background: rgba(250, 250, 250, 0.01);\n z-index: 1000;\n}\n.ace_dragging.ace_dark .ace_scroller:before{\n background: rgba(0, 0, 0, 0.01);\n}\n\n.ace_gutter {\n position: absolute;\n overflow : hidden;\n width: auto;\n top: 0;\n bottom: 0;\n left: 0;\n cursor: default;\n z-index: 4;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n contain: style size layout;\n}\n\n.ace_gutter-active-line {\n position: absolute;\n left: 0;\n right: 0;\n}\n\n.ace_scroller.ace_scroll-left:after {\n content: "";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;\n pointer-events: none;\n}\n\n.ace_gutter-cell, .ace_gutter-cell_svg-icons {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n padding-left: 19px;\n padding-right: 6px;\n background-repeat: no-repeat;\n}\n\n.ace_gutter-cell_svg-icons .ace_gutter_annotation {\n margin-left: -14px;\n float: left;\n}\n\n.ace_gutter-cell .ace_gutter_annotation {\n margin-left: -19px;\n float: left;\n}\n\n.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {\n 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==");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {\n 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==");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_info, .ace_icon.ace_info {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");\n}\n\n.ace_icon_svg.ace_error {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");\n background-color: crimson;\n}\n.ace_icon_svg.ace_warning {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");\n background-color: darkorange;\n}\n.ace_icon_svg.ace_info {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");\n background-color: royalblue;\n}\n\n.ace_icon_svg.ace_error_fold {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");\n background-color: crimson;\n}\n.ace_icon_svg.ace_warning_fold {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");\n background-color: darkorange;\n}\n\n.ace_scrollbar {\n contain: strict;\n position: absolute;\n right: 0;\n bottom: 0;\n z-index: 6;\n}\n\n.ace_scrollbar-inner {\n position: absolute;\n cursor: text;\n left: 0;\n top: 0;\n}\n\n.ace_scrollbar-v{\n overflow-x: hidden;\n overflow-y: scroll;\n top: 0;\n}\n\n.ace_scrollbar-h {\n overflow-x: scroll;\n overflow-y: hidden;\n left: 0;\n}\n\n.ace_print-margin {\n position: absolute;\n height: 100%;\n}\n\n.ace_text-input {\n position: absolute;\n z-index: 0;\n width: 0.5em;\n height: 1em;\n opacity: 0;\n background: transparent;\n -moz-appearance: none;\n appearance: none;\n border: none;\n resize: none;\n outline: none;\n overflow: hidden;\n font: inherit;\n padding: 0 1px;\n margin: 0 -1px;\n contain: strict;\n -ms-user-select: text;\n -moz-user-select: text;\n -webkit-user-select: text;\n user-select: text;\n /*with `pre-line` chrome inserts   instead of space*/\n white-space: pre!important;\n}\n.ace_text-input.ace_composition {\n background: transparent;\n color: inherit;\n z-index: 1000;\n opacity: 1;\n}\n.ace_composition_placeholder { color: transparent }\n.ace_composition_marker { \n border-bottom: 1px solid;\n position: absolute;\n border-radius: 0;\n margin-top: 1px;\n}\n\n[ace_nocontext=true] {\n transform: none!important;\n filter: none!important;\n clip-path: none!important;\n mask : none!important;\n contain: none!important;\n perspective: none!important;\n mix-blend-mode: initial!important;\n z-index: auto;\n}\n\n.ace_layer {\n z-index: 1;\n position: absolute;\n overflow: hidden;\n /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/\n word-wrap: normal;\n white-space: pre;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n /* setting pointer-events: auto; on node under the mouse, which changes\n during scroll, will break mouse wheel scrolling in Safari */\n pointer-events: none;\n}\n\n.ace_gutter-layer {\n position: relative;\n width: auto;\n text-align: right;\n pointer-events: auto;\n height: 1000000px;\n contain: style size layout;\n}\n\n.ace_text-layer {\n font: inherit !important;\n position: absolute;\n height: 1000000px;\n width: 1000000px;\n contain: style size layout;\n}\n\n.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {\n contain: style size layout;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n}\n\n.ace_hidpi .ace_text-layer,\n.ace_hidpi .ace_gutter-layer,\n.ace_hidpi .ace_content,\n.ace_hidpi .ace_gutter {\n contain: strict;\n}\n.ace_hidpi .ace_text-layer > .ace_line, \n.ace_hidpi .ace_text-layer > .ace_line_group {\n contain: strict;\n}\n\n.ace_cjk {\n display: inline-block;\n text-align: center;\n}\n\n.ace_cursor-layer {\n z-index: 4;\n}\n\n.ace_cursor {\n z-index: 4;\n position: absolute;\n box-sizing: border-box;\n border-left: 2px solid;\n /* workaround for smooth cursor repaintng whole screen in chrome */\n transform: translatez(0);\n}\n\n.ace_multiselect .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_slim-cursors .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_overwrite-cursors .ace_cursor {\n border-left-width: 0;\n border-bottom: 1px solid;\n}\n\n.ace_hidden-cursors .ace_cursor {\n opacity: 0.2;\n}\n\n.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {\n opacity: 0;\n}\n\n.ace_smooth-blinking .ace_cursor {\n transition: opacity 0.18s;\n}\n\n.ace_animate-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: step-end;\n animation-name: blink-ace-animate;\n animation-iteration-count: infinite;\n}\n\n.ace_animate-blinking.ace_smooth-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: ease-in-out;\n animation-name: blink-ace-animate-smooth;\n}\n \n@keyframes blink-ace-animate {\n from, to { opacity: 1; }\n 60% { opacity: 0; }\n}\n\n@keyframes blink-ace-animate-smooth {\n from, to { opacity: 1; }\n 45% { opacity: 1; }\n 60% { opacity: 0; }\n 85% { opacity: 0; }\n}\n\n.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {\n position: absolute;\n z-index: 3;\n}\n\n.ace_marker-layer .ace_selection {\n position: absolute;\n z-index: 5;\n}\n\n.ace_marker-layer .ace_bracket {\n position: absolute;\n z-index: 6;\n}\n\n.ace_marker-layer .ace_error_bracket {\n position: absolute;\n border-bottom: 1px solid #DE5555;\n border-radius: 0;\n}\n\n.ace_marker-layer .ace_active-line {\n position: absolute;\n z-index: 2;\n}\n\n.ace_marker-layer .ace_selected-word {\n position: absolute;\n z-index: 4;\n box-sizing: border-box;\n}\n\n.ace_line .ace_fold {\n box-sizing: border-box;\n\n display: inline-block;\n height: 11px;\n margin-top: -2px;\n vertical-align: middle;\n\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");\n background-repeat: no-repeat, repeat-x;\n background-position: center center, top left;\n color: transparent;\n\n border: 1px solid black;\n border-radius: 2px;\n\n cursor: pointer;\n pointer-events: auto;\n}\n\n.ace_dark .ace_fold {\n}\n\n.ace_fold:hover{\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");\n}\n\n.ace_tooltip {\n background-color: #f5f5f5;\n border: 1px solid gray;\n border-radius: 1px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\n color: black;\n max-width: 100%;\n padding: 3px 4px;\n position: fixed;\n z-index: 999999;\n box-sizing: border-box;\n cursor: default;\n white-space: pre-wrap;\n word-wrap: break-word;\n line-height: normal;\n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n pointer-events: none;\n overflow: auto;\n max-width: min(60em, 66vw);\n overscroll-behavior: contain;\n}\n.ace_tooltip pre {\n white-space: pre-wrap;\n}\n\n.ace_tooltip.ace_dark {\n background-color: #636363;\n color: #fff;\n}\n\n.ace_tooltip:focus {\n outline: 1px solid #5E9ED6;\n}\n\n.ace_icon {\n display: inline-block;\n width: 18px;\n vertical-align: top;\n}\n\n.ace_icon_svg {\n display: inline-block;\n width: 12px;\n vertical-align: top;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: 12px;\n -webkit-mask-position: center;\n}\n\n.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {\n padding-right: 13px;\n}\n\n.ace_fold-widget {\n box-sizing: border-box;\n\n margin: 0 -12px 0 1px;\n display: none;\n width: 11px;\n vertical-align: top;\n\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: center;\n\n border-radius: 3px;\n \n border: 1px solid transparent;\n cursor: pointer;\n}\n\n.ace_folding-enabled .ace_fold-widget {\n display: inline-block; \n}\n\n.ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");\n}\n\n.ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");\n}\n\n.ace_fold-widget:hover {\n border: 1px solid rgba(0, 0, 0, 0.3);\n background-color: rgba(255, 255, 255, 0.2);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);\n}\n\n.ace_fold-widget:active {\n border: 1px solid rgba(0, 0, 0, 0.4);\n background-color: rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);\n}\n/**\n * Dark version for fold widgets\n */\n.ace_dark .ace_fold-widget {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");\n}\n.ace_dark .ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget:hover {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n background-color: rgba(255, 255, 255, 0.1);\n}\n.ace_dark .ace_fold-widget:active {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n}\n\n.ace_inline_button {\n border: 1px solid lightgray;\n display: inline-block;\n margin: -1px 8px;\n padding: 0 5px;\n pointer-events: auto;\n cursor: pointer;\n}\n.ace_inline_button:hover {\n border-color: gray;\n background: rgba(200,200,200,0.2);\n display: inline-block;\n pointer-events: auto;\n}\n\n.ace_fold-widget.ace_invalid {\n background-color: #FFB4B4;\n border-color: #DE5555;\n}\n\n.ace_fade-fold-widgets .ace_fold-widget {\n transition: opacity 0.4s ease 0.05s;\n opacity: 0;\n}\n\n.ace_fade-fold-widgets:hover .ace_fold-widget {\n transition: opacity 0.05s ease 0.05s;\n opacity:1;\n}\n\n.ace_underline {\n text-decoration: underline;\n}\n\n.ace_bold {\n font-weight: bold;\n}\n\n.ace_nobold .ace_bold {\n font-weight: normal;\n}\n\n.ace_italic {\n font-style: italic;\n}\n\n\n.ace_error-marker {\n background-color: rgba(255, 0, 0,0.2);\n position: absolute;\n z-index: 9;\n}\n\n.ace_highlight-marker {\n background-color: rgba(255, 255, 0,0.2);\n position: absolute;\n z-index: 8;\n}\n\n.ace_mobile-menu {\n position: absolute;\n line-height: 1.5;\n border-radius: 4px;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n background: white;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #dcdcdc;\n color: black;\n}\n.ace_dark > .ace_mobile-menu {\n background: #333;\n color: #ccc;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #444;\n\n}\n.ace_mobile-button {\n padding: 2px;\n cursor: pointer;\n overflow: hidden;\n}\n.ace_mobile-button:hover {\n background-color: #eee;\n opacity:1;\n}\n.ace_mobile-button:active {\n background-color: #ddd;\n}\n\n.ace_placeholder {\n font-family: arial;\n transform: scale(0.9);\n transform-origin: left;\n white-space: pre;\n opacity: 0.7;\n margin: 0 10px;\n}\n\n.ace_ghost_text {\n opacity: 0.5;\n font-style: italic;\n white-space: pre;\n}\n\n.ace_screenreader-only {\n position:absolute;\n left:-10000px;\n top:auto;\n width:1px;\n height:1px;\n overflow:hidden;\n}'}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(t,_,C){"use strict";var E=t("../lib/dom"),u=t("../lib/oop"),b=t("../lib/event_emitter").EventEmitter,s=function(){function f(d,l){this.canvas=E.createElement("canvas"),this.renderer=l,this.pixelRatio=1,this.maxHeight=l.layerConfig.maxHeight,this.lineHeight=l.layerConfig.lineHeight,this.canvasHeight=d.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=d.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},d.element.appendChild(this.canvas)}return f.prototype.$updateDecorators=function(d){var l=!0===this.renderer.theme.isDark?this.colors.dark:this.colors.light;d&&(this.maxHeight=d.maxHeight,this.lineHeight=d.lineHeight,this.canvasHeight=d.height,this.heightRatio=(d.lastRow+1)*this.lineHeightR.priority?1:0});for(var v=this.renderer.session.$foldData,y=0;ythis.canvasHeight&&(T=this.canvasHeight-this.halfMinDecorationHeight),I=Math.round(T-this.halfMinDecorationHeight),D=Math.round(T+this.halfMinDecorationHeight)}o.fillStyle=l[h[y].type]||null,o.fillRect(0,k,this.canvasWidth,D-I)}}var U=this.renderer.session.selection.getCursor();U&&(w=this.compensateFoldRows(U.row,v),k=Math.round((U.row-w)*this.lineHeight*this.heightRatio),o.fillStyle="rgba(0, 0, 0, 0.5)",o.fillRect(0,k,this.canvasWidth,2))},f.prototype.compensateFoldRows=function(d,l){var c=0;if(l&&l.length>0)for(var o=0;ol[o].start.row&&d=l[o].end.row&&(c+=l[o].end.row-l[o].start.row);return c},f}();u.implement(s.prototype,b),_.Decorator=s}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],function(t,_,C){"use strict";var E=t("./lib/oop"),u=t("./lib/dom"),b=t("./lib/lang"),s=t("./config"),f=t("./layer/gutter").Gutter,d=t("./layer/marker").Marker,l=t("./layer/text").Text,c=t("./layer/cursor").Cursor,o=t("./scrollbar").HScrollBar,r=t("./scrollbar").VScrollBar,h=t("./scrollbar_custom").HScrollBar,p=t("./scrollbar_custom").VScrollBar,v=t("./renderloop").RenderLoop,y=t("./layer/font_metrics").FontMetrics,M=t("./lib/event_emitter").EventEmitter,w=t("./css/editor-css"),k=t("./layer/decorators").Decorator,I=t("./lib/useragent");u.importCssString(w,"ace_editor.css",!1);var D=function(){function O(T,U){var S=this;this.container=T||u.createElement("div"),u.addCssClass(this.container,"ace_editor"),u.HI_DPI&&u.addCssClass(this.container,"ace_hidpi"),this.setTheme(U),null==s.get("useStrictCSP")&&s.set("useStrictCSP",!1),this.$gutter=u.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=u.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=u.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new f(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new d(this.content);var R=this.$textLayer=new l(this.content);this.canvas=R.element,this.$markerFront=new d(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new r(this.container,this),this.scrollBarH=new o(this.container,this),this.scrollBarV.on("scroll",function(N){S.$scrollAnimation||S.session.setScrollTop(N.data-S.scrollMargin.top)}),this.scrollBarH.on("scroll",function(N){S.$scrollAnimation||S.session.setScrollLeft(N.data-S.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new y(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(N){S.updateCharacterSize(),S.onResize(!0,S.gutterWidth,S.$size.width,S.$size.height),S._signal("changeCharacterSize",N)}),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=!I.isIOS,this.$loop=new v(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),s.resetOptions(this),s._signal("renderer",this)}return O.prototype.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(),u.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},O.prototype.setSession=function(T){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=T,T&&this.scrollMargin.top&&T.getScrollTop()<=0&&T.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(T),this.$markerBack.setSession(T),this.$markerFront.setSession(T),this.$gutterLayer.setSession(T),this.$textLayer.setSession(T),T&&(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))},O.prototype.updateLines=function(T,U,S){if(void 0===U&&(U=1/0),this.$changedLines?(this.$changedLines.firstRow>T&&(this.$changedLines.firstRow=T),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},O.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},O.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},O.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},O.prototype.updateFull=function(T){T?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},O.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},O.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},O.prototype.onResize=function(T,U,S,R){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=T?1:0;var N=this.container;R||(R=N.clientHeight||N.scrollHeight),S||(S=N.clientWidth||N.scrollWidth);var A=this.$updateCachedSize(T,U,S,R);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!S&&!R)return this.resizing=0;T&&(this.$gutterLayer.$padding=null),T?this.$renderChanges(A|this.$changes,!0):this.$loop.schedule(A|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},O.prototype.$updateCachedSize=function(T,U,S,R){var N=0,A=this.$size,F={width:A.width,height:A.height,scrollerHeight:A.scrollerHeight,scrollerWidth:A.scrollerWidth};if((R-=this.$extraHeight||0)&&(T||A.height!=R)&&(A.height=R,N|=this.CHANGE_SIZE,A.scrollerHeight=A.height,this.$horizScroll&&(A.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(A.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",N|=this.CHANGE_SCROLL),S&&(T||A.width!=S)){N|=this.CHANGE_SIZE,A.width=S,null==U&&(U=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=U,u.setStyle(this.scrollBarH.element.style,"left",U+"px"),u.setStyle(this.scroller.style,"left",U+this.margin.left+"px"),A.scrollerWidth=Math.max(0,S-U-this.scrollBarV.getWidth()-this.margin.h),u.setStyle(this.$gutter.style,"left",this.margin.left+"px");var Y=this.scrollBarV.getWidth()+"px";u.setStyle(this.scrollBarH.element.style,"right",Y),u.setStyle(this.scroller.style,"right",Y),u.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(A.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||T)&&(N|=this.CHANGE_FULL)}return A.$dirty=!S||!R,N&&this._signal("resize",F),N},O.prototype.onGutterResize=function(T){var U=this.$showGutter?T:0;U!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,U,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},O.prototype.adjustWrapLimit=function(){var U=Math.floor((this.$size.scrollerWidth-2*this.$padding)/this.characterWidth);return this.session.adjustWrapLimit(U,this.$showPrintMargin&&this.$printMarginColumn)},O.prototype.setAnimatedScroll=function(T){this.setOption("animatedScroll",T)},O.prototype.getAnimatedScroll=function(){return this.$animatedScroll},O.prototype.setShowInvisibles=function(T){this.setOption("showInvisibles",T),this.session.$bidiHandler.setShowInvisibles(T)},O.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},O.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},O.prototype.setDisplayIndentGuides=function(T){this.setOption("displayIndentGuides",T)},O.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},O.prototype.setHighlightIndentGuides=function(T){this.setOption("highlightIndentGuides",T)},O.prototype.setShowPrintMargin=function(T){this.setOption("showPrintMargin",T)},O.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},O.prototype.setPrintMarginColumn=function(T){this.setOption("printMarginColumn",T)},O.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},O.prototype.getShowGutter=function(){return this.getOption("showGutter")},O.prototype.setShowGutter=function(T){return this.setOption("showGutter",T)},O.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},O.prototype.setFadeFoldWidgets=function(T){this.setOption("fadeFoldWidgets",T)},O.prototype.setHighlightGutterLine=function(T){this.setOption("highlightGutterLine",T)},O.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},O.prototype.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var T=u.createElement("div");T.className="ace_layer ace_print-margin-layer",this.$printMarginEl=u.createElement("div"),this.$printMarginEl.className="ace_print-margin",T.appendChild(this.$printMarginEl),this.content.insertBefore(T,this.content.firstChild)}var U=this.$printMarginEl.style;U.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",U.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},O.prototype.getContainerElement=function(){return this.container},O.prototype.getMouseEventTarget=function(){return this.scroller},O.prototype.getTextAreaContainer=function(){return this.container},O.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var T=this.textarea.style,U=this.$composition;if(!this.$keepTextAreaAtCursor&&!U)return void u.translate(this.textarea,-100,0);var S=this.$cursorLayer.$pixelPos;if(S){U&&U.markerRange&&(S=this.$cursorLayer.getPixelPosition(U.markerRange.start,!0));var R=this.layerConfig,N=S.top,A=S.left,F=U&&U.useTextareaForIME||I.isMobile?this.lineHeight:1;if((N-=R.offset)<0||N>R.height-F)return void u.translate(this.textarea,0,0);var Y=1,ee=this.$size.height-F;U?U.useTextareaForIME?Y=this.characterWidth*this.session.$getStringScreenWidth(this.textarea.value)[0]:N+=this.lineHeight+2:N+=this.lineHeight,(A-=this.scrollLeft)>this.$size.scrollerWidth-Y&&(A=this.$size.scrollerWidth-Y),A+=this.gutterWidth+this.margin.left,u.setStyle(T,"height",F+"px"),u.setStyle(T,"width",Y+"px"),u.translate(this.textarea,Math.min(A,this.$size.scrollerWidth-Y),Math.min(N,ee))}}},O.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},O.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},O.prototype.getLastFullyVisibleRow=function(){var T=this.layerConfig,U=T.lastRow;return this.session.documentToScreenRow(U,0)*T.lineHeight-this.session.getScrollTop()>T.height-T.lineHeight?U-1:U},O.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},O.prototype.setPadding=function(T){this.$padding=T,this.$textLayer.setPadding(T),this.$cursorLayer.setPadding(T),this.$markerFront.setPadding(T),this.$markerBack.setPadding(T),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},O.prototype.setScrollMargin=function(T,U,S,R){var N=this.scrollMargin;N.top=0|T,N.bottom=0|U,N.right=0|R,N.left=0|S,N.v=N.top+N.bottom,N.h=N.left+N.right,N.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-N.top),this.updateFull()},O.prototype.setMargin=function(T,U,S,R){var N=this.margin;N.top=0|T,N.bottom=0|U,N.right=0|R,N.left=0|S,N.v=N.top+N.bottom,N.h=N.left+N.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},O.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},O.prototype.setHScrollBarAlwaysVisible=function(T){this.setOption("hScrollBarAlwaysVisible",T)},O.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},O.prototype.setVScrollBarAlwaysVisible=function(T){this.setOption("vScrollBarAlwaysVisible",T)},O.prototype.$updateScrollBarV=function(){var T=this.layerConfig.maxHeight,U=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&this.scrollTop>(T-=(U-this.lineHeight)*this.$scrollPastEnd)-U&&(T=this.scrollTop+U,this.scrollBarV.scrollTop=null),this.scrollBarV.setScrollHeight(T+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},O.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},O.prototype.freeze=function(){this.$frozen=!0},O.prototype.unfreeze=function(){this.$frozen=!1},O.prototype.$renderChanges=function(T,U){if(this.$changes&&(T|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(T||U)){if(this.$size.$dirty)return this.$changes|=T,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",T),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var S=this.layerConfig;if(T&this.CHANGE_FULL||T&this.CHANGE_SIZE||T&this.CHANGE_TEXT||T&this.CHANGE_LINES||T&this.CHANGE_SCROLL||T&this.CHANGE_H_SCROLL){if(T|=this.$computeLayerConfig()|this.$loop.clear(),S.firstRow!=this.layerConfig.firstRow&&S.firstRowScreen==this.layerConfig.firstRowScreen){var R=this.scrollTop+(S.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;R>0&&(this.scrollTop=R,T|=this.CHANGE_SCROLL,T|=this.$computeLayerConfig()|this.$loop.clear())}S=this.layerConfig,this.$updateScrollBarV(),T&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),u.translate(this.content,-this.scrollLeft,-S.offset);var A=S.minHeight+"px";u.setStyle(this.content.style,"width",S.width+2*this.$padding+"px"),u.setStyle(this.content.style,"height",A)}return T&this.CHANGE_H_SCROLL&&(u.translate(this.content,-this.scrollLeft,-S.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),T&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(S),this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S),this.$markerBack.update(S),this.$markerFront.update(S),this.$cursorLayer.update(S),this.$moveTextAreaToCursor(),void this._signal("afterRender",T)):T&this.CHANGE_SCROLL?(this.$changedLines=null,T&this.CHANGE_TEXT||T&this.CHANGE_LINES?this.$textLayer.update(S):this.$textLayer.scrollLines(S),this.$showGutter&&(T&this.CHANGE_GUTTER||T&this.CHANGE_LINES?this.$gutterLayer.update(S):this.$gutterLayer.scrollLines(S)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S),this.$markerBack.update(S),this.$markerFront.update(S),this.$cursorLayer.update(S),this.$moveTextAreaToCursor(),void this._signal("afterRender",T)):(T&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(S),this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):T&this.CHANGE_LINES?((this.$updateLines()||T&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):T&this.CHANGE_TEXT||T&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):T&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)),T&this.CHANGE_CURSOR&&(this.$cursorLayer.update(S),this.$moveTextAreaToCursor()),T&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(S),T&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(S),void this._signal("afterRender",T))}this.$changes|=T},O.prototype.$autosize=function(){var T=this.session.getScreenLength()*this.lineHeight,U=this.$maxLines*this.lineHeight,S=Math.min(U,Math.max((this.$minLines||1)*this.lineHeight,T))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(S+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&S>this.$maxPixelHeight&&(S=this.$maxPixelHeight);var N=!(S<=2*this.lineHeight)&&T>U;if(S!=this.desiredHeight||this.$size.height!=this.desiredHeight||N!=this.$vScroll){N!=this.$vScroll&&(this.$vScroll=N,this.scrollBarV.setVisible(N));var A=this.container.clientWidth;this.container.style.height=S+"px",this.$updateCachedSize(!0,this.$gutterWidth,A,S),this.desiredHeight=S,this._signal("autosize")}},O.prototype.$computeLayerConfig=function(){var T=this.session,U=this.$size,S=U.height<=2*this.lineHeight,N=this.session.getScreenLength()*this.lineHeight,A=this.$getLongestLine(),F=!S&&(this.$hScrollBarAlwaysVisible||U.scrollerWidth-A-2*this.$padding<0),Y=this.$horizScroll!==F;Y&&(this.$horizScroll=F,this.scrollBarH.setVisible(F));var ee=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var ie=U.scrollerHeight+this.lineHeight,$=!this.$maxLines&&this.$scrollPastEnd?(U.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;N+=$;var j=this.scrollMargin;this.session.setScrollTop(Math.max(-j.top,Math.min(this.scrollTop,N-U.scrollerHeight+j.bottom))),this.session.setScrollLeft(Math.max(-j.left,Math.min(this.scrollLeft,A+2*this.$padding-U.scrollerWidth+j.right)));var G=!S&&(this.$vScrollBarAlwaysVisible||U.scrollerHeight-N+$<0||this.scrollTop>j.top),V=ee!==G;V&&(this.$vScroll=G,this.scrollBarV.setVisible(G));var ve,Ye,W=this.scrollTop%this.lineHeight,K=Math.ceil(ie/this.lineHeight)-1,ce=Math.max(0,Math.round((this.scrollTop-W)/this.lineHeight)),ue=ce+K,pt=this.lineHeight;ce=T.screenToDocumentRow(ce,0);var ct=T.getFoldLine(ce);ct&&(ce=ct.start.row),ve=T.documentToScreenRow(ce,0),Ye=T.getRowLength(ce)*pt,ue=Math.min(T.screenToDocumentRow(ue,0),T.getLength()-1),ie=U.scrollerHeight+T.getRowLength(ue)*pt+Ye,W=this.scrollTop-ve*pt;var Ct=0;return(this.layerConfig.width!=A||Y)&&(Ct=this.CHANGE_H_SCROLL),(Y||V)&&(Ct|=this.$updateCachedSize(!0,this.gutterWidth,U.width,U.height),this._signal("scrollbarVisibilityChanged"),V&&(A=this.$getLongestLine())),this.layerConfig={width:A,padding:this.$padding,firstRow:ce,firstRowScreen:ve,lastRow:ue,lineHeight:pt,characterWidth:this.characterWidth,minHeight:ie,maxHeight:N,offset:W,gutterOffset:pt?Math.max(0,Math.ceil((W+U.height-U.scrollerHeight)/pt)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(A-this.$padding),Ct},O.prototype.$updateLines=function(){if(this.$changedLines){var T=this.$changedLines.firstRow,U=this.$changedLines.lastRow;this.$changedLines=null;var S=this.layerConfig;if(!(T>S.lastRow+1||Uthis.$textLayer.MAX_LINE_LENGTH&&(T=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(T*this.characterWidth))},O.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},O.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},O.prototype.addGutterDecoration=function(T,U){this.$gutterLayer.addGutterDecoration(T,U)},O.prototype.removeGutterDecoration=function(T,U){this.$gutterLayer.removeGutterDecoration(T,U)},O.prototype.updateBreakpoints=function(T){this._rows=T,this.$loop.schedule(this.CHANGE_GUTTER)},O.prototype.setAnnotations=function(T){this.$gutterLayer.setAnnotations(T),this.$loop.schedule(this.CHANGE_GUTTER)},O.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},O.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},O.prototype.showCursor=function(){this.$cursorLayer.showCursor()},O.prototype.scrollSelectionIntoView=function(T,U,S){this.scrollCursorIntoView(T,S),this.scrollCursorIntoView(U,S)},O.prototype.scrollCursorIntoView=function(T,U,S){if(0!==this.$size.scrollerHeight){var R=this.$cursorLayer.getPixelPosition(T),N=R.left,A=R.top,F=S&&S.top||0,Y=S&&S.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var ee=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;ee+F>A?(U&&ee+F>A+this.lineHeight&&(A-=U*this.$size.scrollerHeight),0===A&&(A=-this.scrollMargin.top),this.session.setScrollTop(A)):ee+this.$size.scrollerHeight-Y=1-this.scrollMargin.top||U>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||T<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||T>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},O.prototype.pixelToScreenCoordinates=function(T,U){var S;if(this.$hasCssTransforms){S={top:0,left:0};var R=this.$fontMetrics.transformCoordinates([T,U]);T=R[1]-this.gutterWidth-this.margin.left,U=R[0]}else S=this.scroller.getBoundingClientRect();var N=T+this.scrollLeft-S.left-this.$padding,A=N/this.characterWidth,F=Math.floor((U+this.scrollTop-S.top)/this.lineHeight),Y=this.$blockCursor?Math.floor(A):Math.round(A);return{row:F,column:Y,side:A-Y>0?1:-1,offsetX:N}},O.prototype.screenToTextCoordinates=function(T,U){var S;if(this.$hasCssTransforms){S={top:0,left:0};var R=this.$fontMetrics.transformCoordinates([T,U]);T=R[1]-this.gutterWidth-this.margin.left,U=R[0]}else S=this.scroller.getBoundingClientRect();var N=T+this.scrollLeft-S.left-this.$padding,A=N/this.characterWidth,F=this.$blockCursor?Math.floor(A):Math.round(A),Y=Math.floor((U+this.scrollTop-S.top)/this.lineHeight);return this.session.screenToDocumentPosition(Y,Math.max(F,0),N)},O.prototype.textToScreenCoordinates=function(T,U){var S=this.scroller.getBoundingClientRect(),R=this.session.documentToScreenPosition(T,U),N=this.$padding+(this.session.$bidiHandler.isBidiRow(R.row,T)?this.session.$bidiHandler.getPosLeft(R.column):Math.round(R.column*this.characterWidth));return{pageX:S.left+N-this.scrollLeft,pageY:S.top+R.row*this.lineHeight-this.scrollTop}},O.prototype.visualizeFocus=function(){u.addCssClass(this.container,"ace_focus")},O.prototype.visualizeBlur=function(){u.removeCssClass(this.container,"ace_focus")},O.prototype.showComposition=function(T){this.$composition=T,T.cssText||(T.cssText=this.textarea.style.cssText),null==T.useTextareaForIME&&(T.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(u.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):T.markerId=this.session.addMarker(T.markerRange,"ace_composition_marker","text")},O.prototype.setCompositionText=function(T){var U=this.session.selection.cursor;this.addToken(T,"composition_placeholder",U.row,U.column),this.$moveTextAreaToCursor()},O.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),u.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var T=this.session.selection.cursor;this.removeExtraToken(T.row,T.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},O.prototype.setGhostText=function(T,U){var S=this.session.selection.cursor,R=U||{row:S.row,column:S.column};this.removeGhostText();var N=T.split("\n");if(this.addToken(N[0],"ghost_text",R.row,R.column),this.$ghostText={text:T,position:{row:R.row,column:R.column}},N.length>1){this.$ghostTextWidget={text:N.slice(1).join("\n"),row:R.row,column:R.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var A=this.$cursorLayer.getPixelPosition(R,!0),Y=this.container.getBoundingClientRect().height,ee=N.length*this.lineHeight;if(ee1||Math.abs(T.$size.height-R)>1?T.$resizeTimer.delay():T.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},O}();D.prototype.CHANGE_CURSOR=1,D.prototype.CHANGE_MARKER=2,D.prototype.CHANGE_GUTTER=4,D.prototype.CHANGE_SCROLL=8,D.prototype.CHANGE_LINES=16,D.prototype.CHANGE_TEXT=32,D.prototype.CHANGE_SIZE=64,D.prototype.CHANGE_MARKER_BACK=128,D.prototype.CHANGE_MARKER_FRONT=256,D.prototype.CHANGE_FULL=512,D.prototype.CHANGE_H_SCROLL=1024,D.prototype.$changes=0,D.prototype.$padding=null,D.prototype.$frozen=!1,D.prototype.STEPS=8,E.implement(D.prototype,M),s.defineOptions(D.prototype,"renderer",{useResizeObserver:{set:function(O){!O&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):O&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(O){this.$textLayer.setShowInvisibles(O)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(O){"number"==typeof O&&(this.$printMarginColumn=O),this.$showPrintMargin=!!O,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(O){this.$gutter.style.display=O?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(O){this.$gutterLayer.$useSvgGutterIcons=O},initialValue:!1},showFoldedAnnotations:{set:function(O){this.$gutterLayer.$showFoldedAnnotations=O},initialValue:!1},fadeFoldWidgets:{set:function(O){u.setCssClass(this.$gutter,"ace_fade-fold-widgets",O)},initialValue:!1},showFoldWidgets:{set:function(O){this.$gutterLayer.setShowFoldWidgets(O),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(O){this.$textLayer.setDisplayIndentGuides(O)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(O){1==this.$textLayer.setHighlightIndentGuides(O)?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(O){this.$gutterLayer.setHighlightGutterLine(O),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(O){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(O){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(O){"number"==typeof O&&(O+="px"),this.container.style.fontSize=O,this.updateFontSize()},initialValue:12},fontFamily:{set:function(O){this.container.style.fontFamily=O,this.updateFontSize()}},maxLines:{set:function(O){this.updateFull()}},minLines:{set:function(O){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(O){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(O){this.$scrollPastEnd!=(O=+O||0)&&(this.$scrollPastEnd=O,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(O){this.$gutterLayer.$fixedWidth=!!O,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(O){this.$updateCustomScrollbar(O)},initialValue:!1},theme:{set:function(O){this.setTheme(O)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!I.isMobile&&!I.isIE}}),_.VirtualRenderer=D}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(t,_,C){"use strict";var E=t("../lib/oop"),u=t("../lib/net"),b=t("../lib/event_emitter").EventEmitter,s=t("../config");function d(o){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(s.get("loadWorkerFromBlob")){var r=function f(o){var r="importScripts('"+u.qualifyURL(o)+"');";try{return new Blob([r],{type:"application/javascript"})}catch{var p=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return p.append(r),p.getBlob("application/javascript")}}(o),p=(window.URL||window.webkitURL).createObjectURL(r);return new Worker(p)}return new Worker(o)}var l=function(o){o.postMessage||(o=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=o,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){E.implement(this,b),this.$createWorkerFromOldConfig=function(o,r,h,p,v){if(t.nameToUrl&&!t.toUrl&&(t.toUrl=t.nameToUrl),s.get("packaged")||!t.toUrl)p=p||s.moduleUrl(r,"worker");else{var y=this.$normalizePath;p=p||y(t.toUrl("ace/worker/worker.js",null,"_"));var M={};o.forEach(function(w){M[w]=y(t.toUrl(w,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=d(p),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:M,module:r,classname:h}),this.$worker},this.onMessage=function(o){var r=o.data;switch(r.type){case"event":this._signal(r.name,{data:r.data});break;case"call":var h=this.callbacks[r.id];h&&(h(r.data),delete this.callbacks[r.id]);break;case"error":this.reportError(r.data);break;case"log":window.console&&console.log&&console.log.apply(console,r.data)}},this.reportError=function(o){window.console&&console.error&&console.error(o)},this.$normalizePath=function(o){return u.qualifyURL(o)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(o){o.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(o,r){this.$worker.postMessage({command:o,args:r})},this.call=function(o,r,h){if(h){var p=this.callbackId++;this.callbacks[p]=h,r.push(p)}this.send(o,r)},this.emit=function(o,r){try{r.data&&r.data.err&&(r.data.err={message:r.data.err.message,stack:r.data.err.stack,code:r.data.err.code}),this.$worker&&this.$worker.postMessage({event:o,data:{data:r.data}})}catch(h){console.error(h.stack)}},this.attachToDocument=function(o){this.$doc&&this.terminate(),this.$doc=o,this.call("setValue",[o.getValue()]),o.on("change",this.changeListener,!0)},this.changeListener=function(o){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),this.deltaQueue.push(o.start,"insert"==o.action?o.lines:o.end)},this.$sendDeltaQueue=function(){var o=this.deltaQueue;o&&(this.deltaQueue=null,o.length>50&&o.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:o}))}}).call(l.prototype),_.UIWorkerClient=function(o,r,h){var p=null,v=!1,y=Object.create(b),M=[],w=new l({messageBuffer:M,terminate:function(){},postMessage:function(I){M.push(I),p&&(v?setTimeout(k):k())}});w.setEmitSync=function(I){v=I};var k=function(){var I=M.shift();I.command?p[I.command].apply(p,I.args):I.event&&y._signal(I.event,I.data)};return y.postMessage=function(I){w.onMessage({data:I})},y.callback=function(I,D){this.postMessage({type:"call",id:D,data:I})},y.emit=function(I,D){this.postMessage({type:"event",name:I,data:D})},s.loadModule(["worker",r],function(I){for(p=new I[h](y);M.length;)k()}),w},_.WorkerClient=l,_.createWorker=d}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(t,_,C){"use strict";var E=t("./range").Range,u=t("./lib/event_emitter").EventEmitter,b=t("./lib/oop"),s=function(){function f(d,l,c,o,r,h){var p=this;this.length=l,this.session=d,this.doc=d.getDocument(),this.mainClass=r,this.othersClass=h,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=o,this.$onCursorChange=function(){setTimeout(function(){p.onCursorChange()})},this.$pos=c;var v=d.getUndoManager().$undoStack||d.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),d.selection.on("changeCursor",this.$onCursorChange)}return f.prototype.setup=function(){var d=this,l=this.doc,c=this.session;this.selectionBefore=c.selection.toJSON(),c.selection.inMultiSelectMode&&c.selection.toSingleRange(),this.pos=l.createAnchor(this.$pos.row,this.$pos.column);var o=this.pos;o.$insertRight=!0,o.detach(),o.markerId=c.addMarker(new E(o.row,o.column,o.row,o.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(r){var h=l.createAnchor(r.row,r.column);h.$insertRight=!0,h.detach(),d.others.push(h)}),c.setUndoSelect(!1)},f.prototype.showOtherMarkers=function(){if(!this.othersActive){var d=this.session,l=this;this.othersActive=!0,this.others.forEach(function(c){c.markerId=d.addMarker(new E(c.row,c.column,c.row,c.column+l.length),l.othersClass,null,!1)})}},f.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var d=0;d=this.pos.column&&l.start.column<=this.pos.column+this.length+1,r=l.start.column-this.pos.column;if(this.updateAnchors(d),o&&(this.length+=c),o&&!this.session.$fromUndo)if("insert"===d.action)for(var h=this.others.length-1;h>=0;h--)this.doc.insertMergedLines(v={row:(p=this.others[h]).row,column:p.column+r},d.lines);else if("remove"===d.action)for(h=this.others.length-1;h>=0;h--){var p,v;this.doc.remove(new E((v={row:(p=this.others[h]).row,column:p.column+r}).row,v.column,v.row,v.column-c))}this.$updating=!1,this.updateMarkers()}},f.prototype.updateAnchors=function(d){this.pos.onChange(d);for(var l=this.others.length;l--;)this.others[l].onChange(d);this.updateMarkers()},f.prototype.updateMarkers=function(){if(!this.$updating){var d=this,l=this.session,c=function(r,h){l.removeMarker(r.markerId),r.markerId=l.addMarker(new E(r.row,r.column,r.row,r.column+d.length),h,null,!1)};c(this.pos,this.mainClass);for(var o=this.others.length;o--;)c(this.others[o],this.othersClass)}},f.prototype.onCursorChange=function(d){if(!this.$updating&&this.session){var l=this.session.selection.getCursor();l.row===this.pos.row&&l.column>=this.pos.column&&l.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",d)):(this.hideOtherMarkers(),this._emit("cursorLeave",d))}},f.prototype.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},f.prototype.cancel=function(){if(-1!==this.$undoStackDepth){for(var d=this.session.getUndoManager(),l=(d.$undoStack||d.$undostack).length-this.$undoStackDepth,c=0;c1?u.multiSelect.joinSelections():u.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(u){u.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(u){u.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(u){u.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],_.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(u){u.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(u){return u&&u.inMultiSelectMode}}];var E=t("../keyboard/hash_handler").HashHandler;_.keyboardHandler=new E(_.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(t,_,C){var E=t("./range_list").RangeList,u=t("./range").Range,b=t("./selection").Selection,s=t("./mouse/multi_select_handler").onMouseDown,f=t("./lib/event"),d=t("./lib/lang"),l=t("./commands/multi_select_commands");_.commands=l.defaultCommands.concat(l.multiSelectCommands);var o=new(0,t("./search").Search),h=t("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(h.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(w,k){if(w){if(!this.inMultiSelectMode&&0===this.rangeCount){var I=this.toOrientedRange();if(this.rangeList.add(I),this.rangeList.add(w),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),k||this.fromOrientedRange(w);this.rangeList.removeAll(),this.rangeList.add(I),this.$onAddRange(I)}w.cursor||(w.cursor=w.end);var D=this.rangeList.add(w);return this.$onAddRange(w),D.length&&this.$onRemoveRange(D),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),k||this.fromOrientedRange(w)}},this.toSingleRange=function(w){w=w||this.ranges[0];var k=this.rangeList.removeAll();k.length&&this.$onRemoveRange(k),w&&this.fromOrientedRange(w)},this.substractPoint=function(w){var k=this.rangeList.substractPoint(w);if(k)return this.$onRemoveRange(k),k[0]},this.mergeOverlappingRanges=function(){var w=this.rangeList.merge();w.length&&this.$onRemoveRange(w)},this.$onAddRange=function(w){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(w),this._signal("addRange",{range:w})},this.$onRemoveRange=function(w){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var k=this.rangeList.ranges.pop();w.push(k),this.rangeCount=0}for(var I=w.length;I--;){var D=this.ranges.indexOf(w[I]);this.ranges.splice(D,1)}this._signal("removeRange",{ranges:w}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(k=k||this.ranges[0])&&!k.isEqual(this.getRange())&&this.fromOrientedRange(k)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new E,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var w=this.ranges.length?this.ranges:[this.getRange()],k=[],I=0;I1){var w=this.rangeList.ranges,k=w[w.length-1],I=u.fromPoints(w[0].start,k.end);this.toSingleRange(),this.setSelectionRange(I,k.cursor==k.start)}else{var D=this.session.documentToScreenPosition(this.cursor),O=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(D,O).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(w,k,I){var D=[],O=w.column0;)$--;if($>0)for(var j=0;D[j].isEmpty();)j++;for(var G=$;G>=j;G--)D[G].isEmpty()&&D.splice(G,1)}return D}}.call(b.prototype);var p=t("./editor").Editor;function v(w,k){return w.row==k.row&&w.column==k.column}function y(w){w.$multiselectOnSessionChange||(w.$onAddRange=w.$onAddRange.bind(w),w.$onRemoveRange=w.$onRemoveRange.bind(w),w.$onMultiSelect=w.$onMultiSelect.bind(w),w.$onSingleSelect=w.$onSingleSelect.bind(w),w.$multiselectOnSessionChange=_.onSessionChange.bind(w),w.$checkMultiselectChange=w.$checkMultiselectChange.bind(w),w.$multiselectOnSessionChange(w),w.on("changeSession",w.$multiselectOnSessionChange),w.on("mousedown",s),w.commands.addCommands(l.defaultCommands),function M(w){if(w.textInput){var k=w.textInput.getElement(),I=!1;f.addListener(k,"keydown",function(O){w.$blockSelectEnabled&&18==O.keyCode&&!(O.ctrlKey||O.shiftKey||O.metaKey)?I||(w.renderer.setMouseCursor("crosshair"),I=!0):I&&D()},w),f.addListener(k,"keyup",D,w),f.addListener(k,"blur",D,w)}function D(O){I&&(w.renderer.setMouseCursor(""),I=!1)}}(w))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(w){w.cursor||(w.cursor=w.end);var k=this.getSelectionStyle();return w.marker=this.session.addMarker(w,"ace_selection",k),this.session.$selectionMarkers.push(w),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,w},this.removeSelectionMarker=function(w){if(w.marker){this.session.removeMarker(w.marker);var k=this.session.$selectionMarkers.indexOf(w);-1!=k&&this.session.$selectionMarkers.splice(k,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(w){for(var k=this.session.$selectionMarkers,I=w.length;I--;){var D=w[I];if(D.marker){this.session.removeMarker(D.marker);var O=k.indexOf(D);-1!=O&&k.splice(O,1)}}this.session.selectionMarkerCount=k.length},this.$onAddRange=function(w){this.addSelectionMarker(w.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(w){this.removeSelectionMarkers(w.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(w){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(w){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(w){var k=w.command,I=w.editor;if(I.multiSelect){if(k.multiSelectAction)"forEach"==k.multiSelectAction?D=I.forEachSelection(k,w.args):"forEachLine"==k.multiSelectAction?D=I.forEachSelection(k,w.args,!0):"single"==k.multiSelectAction?(I.exitMultiSelectMode(),D=k.exec(I,w.args||{})):D=k.multiSelectAction(I,w.args||{});else{var D=k.exec(I,w.args||{});I.multiSelect.addRange(I.multiSelect.toOrientedRange()),I.multiSelect.mergeOverlappingRanges()}return D}},this.forEachSelection=function(w,k,I){if(!this.inVirtualSelectionMode){var N,O=1==I||I&&I.$byLines,T=this.session,U=this.selection,R=(I&&I.keepOrder?U:U.rangeList).ranges;if(!R.length)return w.exec?w.exec(this,k||{}):w(this,k||{});var A=U._eventRegistry;U._eventRegistry={};var F=new b(T);this.inVirtualSelectionMode=!0;for(var Y=R.length;Y--;){if(O)for(;Y>0&&R[Y].start.row==R[Y-1].end.row;)Y--;F.fromOrientedRange(R[Y]),F.index=Y,this.selection=T.selection=F;var ee=w.exec?w.exec(this,k||{}):w(this,k||{});!N&&void 0!==ee&&(N=ee),F.toOrientedRange(R[Y])}F.detach(),this.selection=T.selection=U,this.inVirtualSelectionMode=!1,U._eventRegistry=A,U.mergeOverlappingRanges(),U.ranges[0]&&U.fromOrientedRange(U.ranges[0]);var ie=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),ie&&ie.from==ie.to&&this.renderer.animateScrolling(ie.from),N}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var w="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var k=this.multiSelect.rangeList.ranges,I=[],D=0;DY&&(Y=j.column),VW?w.insert(G,d.stringRepeat(" ",V-W)):w.remove(new u(G.row,G.column,G.row,G.column-V+W)),$.start.column=$.end.column=Y,$.start.row=$.end.row=G.row,$.cursor=$.end}),k.fromOrientedRange(I[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var T=this.selection.getRange(),U=T.start.row,S=T.end.row,R=U==S;if(R){var A,N=this.session.getLength();do{A=this.session.getLine(S)}while(/[=:]/.test(A)&&++S0);U<0&&(U=0),S>=N&&(S=N-1)}var F=this.session.removeFullLines(U,S);F=this.$reAlignText(F,R),this.session.insert({row:U,column:0},F.join("\n")+"\n"),R||(T.start.column=0,T.end.column=F[F.length-1].length),this.selection.setRange(T)}},this.$reAlignText=function(w,k){var O,T,U,I=!0,D=!0;return w.map(function(F){var Y=F.match(/(\s*)(.*?)(\s*)([=:].*)/);return Y?null==O?(O=Y[1].length,T=Y[2].length,U=Y[3].length,Y):(O+T+U!=Y[1].length+Y[2].length+Y[3].length&&(D=!1),O!=Y[1].length&&(I=!1),O>Y[1].length&&(O=Y[1].length),TY[3].length&&(U=Y[3].length),Y):[F]}).map(k?R:I?D?function N(F){return F[2]?S(O+T-F[2].length)+F[2]+S(U)+F[4].replace(/^([=:])\s+/,"$1 "):F[0]}:R:function A(F){return F[2]?S(O)+F[2]+S(U)+F[4].replace(/^([=:])\s+/,"$1 "):F[0]});function S(F){return d.stringRepeat(" ",F)}function R(F){return F[2]?S(O)+F[2]+S(T-F[2].length+U)+F[4].replace(/^([=:])\s+/,"$1 "):F[0]}}}).call(p.prototype),_.onSessionChange=function(w){var k=w.session;k&&!k.multiSelect&&(k.$selectionMarkers=[],k.selection.$initRangeList(),k.multiSelect=k.selection),this.multiSelect=k&&k.multiSelect;var I=w.oldSession;I&&(I.multiSelect.off("addRange",this.$onAddRange),I.multiSelect.off("removeRange",this.$onRemoveRange),I.multiSelect.off("multiSelect",this.$onMultiSelect),I.multiSelect.off("singleSelect",this.$onSingleSelect),I.multiSelect.lead.off("change",this.$checkMultiselectChange),I.multiSelect.anchor.off("change",this.$checkMultiselectChange)),k&&(k.multiSelect.on("addRange",this.$onAddRange),k.multiSelect.on("removeRange",this.$onRemoveRange),k.multiSelect.on("multiSelect",this.$onMultiSelect),k.multiSelect.on("singleSelect",this.$onSingleSelect),k.multiSelect.lead.on("change",this.$checkMultiselectChange),k.multiSelect.anchor.on("change",this.$checkMultiselectChange)),k&&this.inMultiSelectMode!=k.selection.inMultiSelectMode&&(k.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},_.MultiSelect=y,t("./config").defineOptions(p.prototype,"editor",{enableMultiselect:{set:function(w){y(this),w?this.on("mousedown",s):this.off("mousedown",s)},value:!0},enableBlockSelect:{set:function(w){this.$blockSelectEnabled=w},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(t,_,C){"use strict";var E=t("../../range").Range,u=_.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(b,s,f){var d=b.getLine(f);return this.foldingStartMarker.test(d)?"start":"markbeginend"==s&&this.foldingStopMarker&&this.foldingStopMarker.test(d)?"end":""},this.getFoldWidgetRange=function(b,s,f){return null},this.indentationBlock=function(b,s,f){var d=/\S/,l=b.getLine(s),c=l.search(d);if(-1!=c){for(var o=f||l.length,r=b.getLength(),h=s,p=s;++sh){var M=b.getLine(p).length;return new E(h,o,p,M)}}},this.openingBracketBlock=function(b,s,f,d,l){var c={row:f,column:d+1},o=b.$findClosingBracket(s,c,l);if(o){var r=b.foldWidgets[o.row];return null==r&&(r=b.getFoldWidget(o.row)),"start"==r&&o.row>c.row&&(o.row--,o.column=b.getLine(o.row).length),E.fromPoints(c,o)}},this.closingBracketBlock=function(b,s,f,d,l){var c={row:f,column:d},o=b.$findOpeningBracket(s,c);if(o)return o.column++,c.column--,E.fromPoints(o,c)}}).call(u.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(t,_,C){"use strict";var E=t("../line_widgets").LineWidgets,u=t("../lib/dom"),b=t("../range").Range,s=t("../config").nls;_.showErrorMarker=function(l,c){var o=l.session;o.widgetManager||(o.widgetManager=new E(o),o.widgetManager.attach(l));var r=l.getCursorPosition(),h=r.row,p=o.widgetManager.getWidgetsAtRow(h).filter(function(T){return"errorMarker"==T.type})[0];p?p.destroy():h-=c;var y,v=function d(l,c,o){var r=l.getAnnotations().sort(b.comparePoints);if(r.length){var h=function f(l,c,o){for(var r=0,h=l.length-1;r<=h;){var p=r+h>>1,v=o(c,l[p]);if(v>0)r=p+1;else{if(!(v<0))return p;h=p-1}}return-(r+1)}(r,{row:c,column:-1},b.comparePoints);h<0&&(h=-h-1),h>=r.length?h=o>0?0:r.length-1:0===h&&o<0&&(h=r.length-1);var p=r[h];if(p&&o){if(p.row===c){do{p=r[h+=o]}while(p&&p.row===c);if(!p)return r.slice()}var v=[];c=p.row;do{v[o<0?"unshift":"push"](p),p=r[h+=o]}while(p&&p.row==c);return v.length&&v}}}(o,h,c);if(v){var M=v[0];r.column=(M.pos&&"number"!=typeof M.column?M.pos.sc:M.column)||0,r.row=M.row,y=l.renderer.$gutterLayer.$annotations[r.row]}else{if(p)return;y={text:[s("Looks good!")],className:"ace_ok"}}l.session.unfold(r.row),l.selection.moveToPosition(r);var w={row:r.row,fixedWidth:!0,coverGutter:!0,el:u.createElement("div"),type:"errorMarker"},k=w.el.appendChild(u.createElement("div")),I=w.el.appendChild(u.createElement("div"));I.className="error_widget_arrow "+y.className;var D=l.renderer.$cursorLayer.getPixelPosition(r).left;I.style.left=D+l.renderer.gutterWidth-5+"px",w.el.className="error_widget_wrapper",k.className="error_widget "+y.className,k.innerHTML=y.text.join("
"),k.appendChild(u.createElement("div"));var O=function(T,U,S){if(0===U&&("esc"===S||"return"===S))return w.destroy(),{command:"null"}};w.destroy=function(){l.$mouseHandler.isMousePressed||(l.keyBinding.removeKeyboardHandler(O),o.widgetManager.removeLineWidget(w),l.off("changeSelection",w.destroy),l.off("changeSession",w.destroy),l.off("mouseup",w.destroy),l.off("change",w.destroy))},l.keyBinding.addKeyboardHandler(O),l.on("changeSelection",w.destroy),l.on("changeSession",w.destroy),l.on("mouseup",w.destroy),l.on("change",w.destroy),l.session.widgetManager.addLineWidget(w),w.el.onmousedown=l.focus.bind(l),l.renderer.scrollCursorIntoView(null,.5,{bottom:w.el.offsetHeight})},u.importCssString("\n .error_widget_wrapper {\n background: inherit;\n color: inherit;\n border:none\n }\n .error_widget {\n border-top: solid 2px;\n border-bottom: solid 2px;\n margin: 5px 0;\n padding: 10px 40px;\n white-space: pre-wrap;\n }\n .error_widget.ace_error, .error_widget_arrow.ace_error{\n border-color: #ff5a5a\n }\n .error_widget.ace_warning, .error_widget_arrow.ace_warning{\n border-color: #F1D817\n }\n .error_widget.ace_info, .error_widget_arrow.ace_info{\n border-color: #5a5a5a\n }\n .error_widget.ace_ok, .error_widget_arrow.ace_ok{\n border-color: #5aaa5a\n }\n .error_widget_arrow {\n position: absolute;\n border: solid 5px;\n border-top-color: transparent!important;\n border-right-color: transparent!important;\n border-left-color: transparent!important;\n top: -5px;\n }\n","error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","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","ace/loader_build"],function(t,_,C){"use strict";t("./loader_build")(_);var E=t("./lib/dom"),u=t("./range").Range,b=t("./editor").Editor,s=t("./edit_session").EditSession,f=t("./undomanager").UndoManager,d=t("./virtual_renderer").VirtualRenderer;t("./worker/worker_client"),t("./keyboard/hash_handler"),t("./placeholder"),t("./multi_select"),t("./mode/folding/fold_mode"),t("./theme/textmate"),t("./ext/error_marker"),_.config=t("./config"),_.edit=function(l,c){if("string"==typeof l){var o=l;if(!(l=document.getElementById(o)))throw new Error("ace.edit can't find div #"+o)}if(l&&l.env&&l.env.editor instanceof b)return l.env.editor;var r="";if(l&&/input|textarea/i.test(l.tagName)){var h=l;r=h.value,l=E.createElement("pre"),h.parentNode.replaceChild(l,h)}else l&&(r=l.textContent,l.innerHTML="");var p=_.createEditSession(r),v=new b(new d(l),p,c),y={document:p,editor:v,onResize:v.resize.bind(v,null)};return h&&(y.textarea=h),v.on("destroy",function(){y.editor.container.env=null}),v.container.env=v.env=y,v},_.createEditSession=function(l,c){var o=new s(l,c);return o.setUndoManager(new f),o},_.Range=u,_.Editor=b,_.EditSession=s,_.UndoManager=f,_.VirtualRenderer=d,_.version=_.config.version}),ace.require(["ace/ace"],function(t){t&&(t.config.init(!0),t.define=ace.define);var _=function(){return this}();for(var C in!_&&typeof window<"u"&&(_=window),!_&&typeof self<"u"&&(_=self),_.ace||(_.ace=t),t)t.hasOwnProperty(C)&&(_.ace[C]=t[C]);_.ace.default=_.ace,Te&&(Te.exports=_.ace)})},740:(Te,ne,g)=>{Te=g.nmd(Te),ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,_,C){"use strict";var E=t("../lib/oop"),u=t("./text_highlight_rules").TextHighlightRules,b=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};E.inherits(b,u),_.JsonHighlightRules=b}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(t,_,C){"use strict";var E=t("../range").Range,u=function(){};(function(){this.checkOutdent=function(b,s){return!!/^\s+$/.test(b)&&/^\s*\}/.test(s)},this.autoOutdent=function(b,s){var d=b.getLine(s).match(/^(\s*\})/);if(!d)return 0;var l=d[1].length,c=b.findMatchingBracket({row:s,column:l});if(!c||c.row==s)return 0;var o=this.$getIndent(b.getLine(c.row));b.replace(new E(s,0,s,l-1),o)},this.$getIndent=function(b){return b.match(/^\s*/)[0]}}).call(u.prototype),_.MatchingBraceOutdent=u}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(t,_,C){"use strict";var E=t("../../lib/oop"),u=t("../../range").Range,b=t("./fold_mode").FoldMode,s=_.FoldMode=function(f){f&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+f.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+f.end)))};E.inherits(s,b),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(f,d,l){var c=f.getLine(l);if(this.singleLineBlockCommentRe.test(c)&&!this.startRegionRe.test(c)&&!this.tripleStarBlockCommentRe.test(c))return"";var o=this._getFoldWidgetBase(f,d,l);return!o&&this.startRegionRe.test(c)?"start":o},this.getFoldWidgetRange=function(f,d,l,c){var p,o=f.getLine(l);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(f,o,l);if(p=o.match(this.foldingStartMarker)){var r=p.index;if(p[1])return this.openingBracketBlock(f,p[1],l,r);var h=f.getCommentFoldRange(l,r+p[0].length,1);return h&&!h.isMultiLine()&&(c?h=this.getSectionRange(f,l):"all"!=d&&(h=null)),h}return"markbegin"!==d&&(p=o.match(this.foldingStopMarker))?(r=p.index+p[0].length,p[1]?this.closingBracketBlock(f,p[1],l,r):f.getCommentFoldRange(l,r,-1)):void 0},this.getSectionRange=function(f,d){for(var l=f.getLine(d),c=l.search(/\S/),o=d,r=l.length,h=d+=1,p=f.getLength();++dv)break;var y=this.getFoldWidgetRange(f,"all",d);if(y){if(y.start.row<=o)break;if(y.isMultiLine())d=y.end.row;else if(c==v)break}h=d}}return new u(o,r,h,f.getLine(h).length)},this.getCommentRegionBlock=function(f,d,l){for(var c=d.search(/\s*$/),o=f.getLength(),r=l,h=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,p=1;++lr)return new u(r,c,l,d.length)}}.call(s.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(t,_,C){"use strict";var E=t("../lib/oop"),u=t("./text").Mode,b=t("./json_highlight_rules").JsonHighlightRules,s=t("./matching_brace_outdent").MatchingBraceOutdent,f=t("./folding/cstyle").FoldMode,d=t("../worker/worker_client").WorkerClient,l=function(){this.HighlightRules=b,this.$outdent=new s,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new f};E.inherits(l,u),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(c,o,r){var h=this.$getIndent(o);return"start"==c&&o.match(/^.*[\{\(\[]\s*$/)&&(h+=r),h},this.checkOutdent=function(c,o,r){return this.$outdent.checkOutdent(o,r)},this.autoOutdent=function(c,o,r){this.$outdent.autoOutdent(o,r)},this.createWorker=function(c){var o=new d(["ace"],"ace/mode/json_worker","JsonWorker");return o.attachToDocument(c.getDocument()),o.on("annotate",function(r){c.setAnnotations(r.data)}),o.on("terminate",function(){c.clearAnnotations()}),o},this.$id="ace/mode/json"}.call(l.prototype),_.Mode=l}),ace.require(["ace/mode/json"],function(t){Te&&(Te.exports=t)})},9748:(Te,ne,g)=>{Te=g.nmd(Te),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(t,_,C){"use strict";_.isDark=!1,_.cssClass="ace-tm",_.cssText=t("./textmate-css"),_.$id="ace/theme/textmate",t("../lib/dom").importCssString(_.cssText,_.cssClass,!1)}),ace.require(["ace/theme/textmate"],function(t){Te&&(Te.exports=t)})},3269:Te=>{function ne(){}Te.exports=ne,Te.exports.HttpsAgent=ne},3788:(Te,ne,g)=>{const{Token:t}=g(7709),_=g(9258),{Interval:C}=g(7127);class E{}Te.exports=class u extends E{constructor(s){super(),this.tokenSource=s,this.tokens=[],this.index=-1,this.fetchedEOF=!1}mark(){return 0}release(s){}reset(){this.seek(0)}seek(s){this.lazyInit(),this.index=this.adjustSeekIndex(s)}get(s){return this.lazyInit(),this.tokens[s]}consume(){let s=!1;if(s=this.index>=0&&(this.fetchedEOF?this.index0)||this.fetch(f)>=f}fetch(s){if(this.fetchedEOF)return 0;for(let f=0;f=this.tokens.length&&(f=this.tokens.length-1);for(let c=s;c=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[f]}adjustSeekIndex(s){return s}lazyInit(){-1===this.index&&this.setup()}setup(){this.sync(0),this.index=this.adjustSeekIndex(0)}setTokenSource(s){this.tokenSource=s,this.tokens=[],this.index=-1,this.fetchedEOF=!1}nextTokenOnChannel(s,f){if(this.sync(s),s>=this.tokens.length)return-1;let d=this.tokens[s];for(;d.channel!==this.channel;){if(d.type===t.EOF)return-1;this.sync(s+=1),d=this.tokens[s]}return s}previousTokenOnChannel(s,f){for(;s>=0&&this.tokens[s].channel!==f;)s-=1;return s}getHiddenTokensToRight(s,f){if(void 0===f&&(f=-1),this.lazyInit(),s<0||s>=this.tokens.length)throw s+" not in 0.."+this.tokens.length-1;const d=this.nextTokenOnChannel(s+1,_.DEFAULT_TOKEN_CHANNEL);return this.filterForChannel(s+1,-1===d?this.tokens.length-1:d,f)}getHiddenTokensToLeft(s,f){if(void 0===f&&(f=-1),this.lazyInit(),s<0||s>=this.tokens.length)throw s+" not in 0.."+this.tokens.length-1;const d=this.previousTokenOnChannel(s-1,_.DEFAULT_TOKEN_CHANNEL);return d===s-1?null:this.filterForChannel(d+1,s-1,f)}filterForChannel(s,f,d){const l=[];for(let c=s;c=this.tokens.length&&(d=this.tokens.length-1);let l="";for(let c=f;c{const t=g(7709).CommonToken;class _{}class C extends _{constructor(u){super(),this.copyText=void 0!==u&&u}create(u,b,s,f,d,l,c,o){const r=new t(u,b,f,d,l);return r.line=c,r.column=o,null!==s?r.text=s:this.copyText&&null!==u[1]&&(r.text=u[1].getText(d,l)),r}createThin(u,b){const s=new t(null,u);return s.text=b,s}}C.DEFAULT=new C,Te.exports=C},6842:(Te,ne,g)=>{const t=g(7709).Token,_=g(3788);Te.exports=class C extends _{constructor(u,b){super(u),this.channel=void 0===b?t.DEFAULT_CHANNEL:b}adjustSeekIndex(u){return this.nextTokenOnChannel(u,this.channel)}LB(u){if(0===u||this.index-u<0)return null;let b=this.index,s=1;for(;s<=u;)b=this.previousTokenOnChannel(b-1,this.channel),s+=1;return b<0?null:this.tokens[b]}LT(u){if(this.lazyInit(),0===u)return null;if(u<0)return this.LB(-u);let b=this.index,s=1;for(;s{const{Token:t}=g(7709);g(395),g(9458),Te.exports=class _{constructor(E,u){if(this.name="",this.strdata=E,this.decodeToUnicodeCodePoints=u||!1,this._index=0,this.data=[],this.decodeToUnicodeCodePoints)for(let b=0;b=this._size)throw"cannot consume EOF";this._index+=1}LA(E){if(0===E)return 0;E<0&&(E+=1);const u=this._index+E-1;return u<0||u>=this._size?t.EOF:this.data[u]}LT(E){return this.LA(E)}mark(){return-1}release(E){}seek(E){this._index=E<=this._index?E:Math.min(E,this._size)}getText(E,u){if(u>=this._size&&(u=this._size-1),E>=this._size)return"";if(this.decodeToUnicodeCodePoints){let b="";for(let s=E;s<=u;s++)b+=String.fromCodePoint(this.data[s]);return b}return this.strdata.slice(E,u+1)}toString(){return this.strdata}get index(){return this._index}get size(){return this._size}}},7127:(Te,ne,g)=>{const{Token:t}=g(7709);class _{constructor(u,b){this.start=u,this.stop=b}clone(){return new _(this.start,this.stop)}contains(u){return u>=this.start&&uthis.addInterval(b),this),this}reduce(u){if(u=s.stop?(this.intervals.splice(u+1,1),this.reduce(u)):b.stop>=s.start&&(this.intervals[u]=new _(b.start,s.stop),this.intervals.splice(u+1,1))}}complement(u,b){const s=new C;return s.addInterval(new _(u,b+1)),null!==this.intervals&&this.intervals.forEach(f=>s.removeRange(f)),s}contains(u){if(null===this.intervals)return!1;for(let b=0;bf.start&&u.stop=f.stop?(this.intervals.splice(b,1),b-=1):u.start":"'"+String.fromCharCode(s.start)+"'":"'"+String.fromCharCode(s.start)+"'..'"+String.fromCharCode(s.stop-1)+"'")}return u.length>1?"{"+u.join(", ")+"}":u[0]}toIndexString(){const u=[];for(let b=0;b":s.start.toString():s.start.toString()+".."+(s.stop-1).toString())}return u.length>1?"{"+u.join(", ")+"}":u[0]}toTokenString(u,b){const s=[];for(let f=0;f1?"{"+s.join(", ")+"}":s[0]}elementName(u,b,s){return s===t.EOF?"":s===t.EPSILON?"":u[s]||b[s]}get length(){return this.intervals.map(u=>u.length).reduce((u,b)=>u+b)}}Te.exports={Interval:_,IntervalSet:C}},9441:(Te,ne,g)=>{const{Set:t,BitSet:_}=g(4137),{Token:C}=g(7709),{ATNConfig:E}=g(4341),{IntervalSet:u}=g(7127),{RuleStopState:b}=g(8402),{RuleTransition:s,NotSetTransition:f,WildcardTransition:d,AbstractPredicateTransition:l}=g(8935),{predictionContextFromRuleContext:c,PredictionContext:o,SingletonPredictionContext:r}=g(3260);class h{constructor(v){this.atn=v}getDecisionLookahead(v){if(null===v)return null;const y=v.transitions.length,M=[];for(let w=0;w{const{Token:t}=g(7709),_=g(7208),C=g(8914),{RecognitionException:E}=g(8118),{LexerNoViableAltException:u}=g(8118);class s extends _{constructor(d){super(),this._input=d,this._factory=C.DEFAULT,this._tokenFactorySourcePair=[this,d],this._interp=null,this._token=null,this._tokenStartCharIndex=-1,this._tokenStartLine=-1,this._tokenStartColumn=-1,this._hitEOF=!1,this._channel=t.DEFAULT_CHANNEL,this._type=t.INVALID_TYPE,this._modeStack=[],this._mode=s.DEFAULT_MODE,this._text=null}reset(){null!==this._input&&this._input.seek(0),this._token=null,this._type=t.INVALID_TYPE,this._channel=t.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=s.DEFAULT_MODE,this._modeStack=[],this._interp.reset()}nextToken(){if(null===this._input)throw"nextToken requires a non-null input stream.";const d=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=t.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;let l=!1;for(;;){this._type=t.INVALID_TYPE;let c=s.SKIP;try{c=this._interp.match(this._input,this._mode)}catch(o){if(!(o instanceof E))throw console.log(o.stack),o;this.notifyListeners(o),this.recover(o)}if(this._input.LA(1)===t.EOF&&(this._hitEOF=!0),this._type===t.INVALID_TYPE&&(this._type=c),this._type===s.SKIP){l=!0;break}if(this._type!==s.MORE)break}if(!l)return null===this._token&&this.emit(),this._token}}finally{this._input.release(d)}}skip(){this._type=s.SKIP}more(){this._type=s.MORE}mode(d){this._mode=d}pushMode(d){this._interp.debug&&console.log("pushMode "+d),this._modeStack.push(this._mode),this.mode(d)}popMode(){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}emitToken(d){this._token=d}emit(){const d=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(d),d}emitEOF(){const c=this._factory.create(this._tokenFactorySourcePair,t.EOF,null,t.DEFAULT_CHANNEL,this._input.index,this._input.index-1,this.line,this.column);return this.emitToken(c),c}getCharIndex(){return this._input.index}getAllTokens(){const d=[];let l=this.nextToken();for(;l.type!==t.EOF;)d.push(l),l=this.nextToken();return d}notifyListeners(d){const o=this._input.getText(this._tokenStartCharIndex,this._input.index),r="token recognition error at: '"+this.getErrorDisplay(o)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,r,d)}getErrorDisplay(d){const l=[];for(let c=0;c":"\n"===d?"\\n":"\t"===d?"\\t":"\r"===d?"\\r":d}getCharErrorDisplay(d){return"'"+this.getErrorDisplayForChar(d)+"'"}recover(d){this._input.LA(1)!==t.EOF&&(d instanceof u?this._interp.consume(this._input):this._input.consume())}get inputStream(){return this._input}set inputStream(d){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=d,this._tokenFactorySourcePair=[this,this._input]}get sourceName(){return this._input.sourceName}get type(){return this._type}set type(d){this._type=d}get line(){return this._interp.line}set line(d){this._interp.line=d}get column(){return this._interp.column}set column(d){this._interp.column=d}get text(){return null!==this._text?this._text:this._interp.getText(this._input)}set text(d){this._text=d}}s.DEFAULT_MODE=0,s.MORE=-2,s.SKIP=-3,s.DEFAULT_TOKEN_CHANNEL=t.DEFAULT_CHANNEL,s.HIDDEN=t.HIDDEN_CHANNEL,s.MIN_CHAR_VALUE=0,s.MAX_CHAR_VALUE=1114111,Te.exports=s},6309:(Te,ne,g)=>{const{Token:t}=g(7709),{ParseTreeListener:_,TerminalNode:C,ErrorNode:E}=g(6261),u=g(7208),{DefaultErrorStrategy:b}=g(1962),s=g(9880),f=g(2498),d=g(9258);class l extends _{constructor(r){super(),this.parser=r}enterEveryRule(r){console.log("enter "+this.parser.ruleNames[r.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}visitTerminal(r){console.log("consume "+r.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])}exitEveryRule(r){console.log("exit "+this.parser.ruleNames[r.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}}Te.exports=(()=>{class o extends u{constructor(h){super(),this._input=null,this._errHandler=new b,this._precedenceStack=[],this._precedenceStack.push(0),this._ctx=null,this.buildParseTrees=!0,this._tracer=null,this._parseListeners=null,this._syntaxErrors=0,this.setInputStream(h)}reset(){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()}match(h){let p=this.getCurrentToken();return p.type===h?(this._errHandler.reportMatch(this),this.consume()):(p=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===p.tokenIndex&&this._ctx.addErrorNode(p)),p}matchWildcard(){let h=this.getCurrentToken();return h.type>0?(this._errHandler.reportMatch(this),this.consume()):(h=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===h.tokenIndex&&this._ctx.addErrorNode(h)),h}getParseListeners(){return this._parseListeners||[]}addParseListener(h){if(null===h)throw"listener";null===this._parseListeners&&(this._parseListeners=[]),this._parseListeners.push(h)}removeParseListener(h){if(null!==this._parseListeners){const p=this._parseListeners.indexOf(h);p>=0&&this._parseListeners.splice(p,1),0===this._parseListeners.length&&(this._parseListeners=null)}}removeParseListeners(){this._parseListeners=null}triggerEnterRuleEvent(){if(null!==this._parseListeners){const h=this._ctx;this._parseListeners.forEach(function(p){p.enterEveryRule(h),h.enterRule(p)})}}triggerExitRuleEvent(){if(null!==this._parseListeners){const h=this._ctx;this._parseListeners.slice(0).reverse().forEach(function(p){h.exitRule(p),p.exitEveryRule(h)})}}getTokenFactory(){return this._input.tokenSource._factory}setTokenFactory(h){this._input.tokenSource._factory=h}getATNWithBypassAlts(){const h=this.getSerializedATN();if(null===h)throw"The current parser does not support an ATN with bypass alternatives.";let p=this.bypassAltsAtnCache[h];if(null===p){const v=new f;v.generateRuleBypassTransitions=!0,p=new s(v).deserialize(h),this.bypassAltsAtnCache[h]=p}return p}compileParseTreePattern(h,p,v){if(null===(v=v||null)&&null!==this.getTokenStream()){const M=this.getTokenStream().tokenSource;M instanceof d&&(v=M)}if(null===v)throw"Parser can't discover a lexer to use";return new ParseTreePatternMatcher(v,this).compile(h,p)}getInputStream(){return this.getTokenStream()}setInputStream(h){this.setTokenStream(h)}getTokenStream(){return this._input}setTokenStream(h){this._input=null,this.reset(),this._input=h}getCurrentToken(){return this._input.LT(1)}notifyErrorListeners(h,p,v){v=v||null,null===(p=p||null)&&(p=this.getCurrentToken()),this._syntaxErrors+=1;const y=p.line,M=p.column;this.getErrorListenerDispatch().syntaxError(this,p,y,M,h,v)}consume(){const h=this.getCurrentToken();h.type!==t.EOF&&this.getInputStream().consume();const p=null!==this._parseListeners&&this._parseListeners.length>0;if(this.buildParseTrees||p){let v;v=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(h):this._ctx.addTokenNode(h),v.invokingState=this.state,p&&this._parseListeners.forEach(function(y){v instanceof E||void 0!==v.isErrorNode&&v.isErrorNode()?y.visitErrorNode(v):v instanceof C&&y.visitTerminal(v)})}return h}addContextToParseTree(){null!==this._ctx.parentCtx&&this._ctx.parentCtx.addChild(this._ctx)}enterRule(h,p,v){this.state=p,this._ctx=h,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this._ctx.stop=this._input.LT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx}enterOuterAlt(h,p){h.setAltNumber(p),this.buildParseTrees&&this._ctx!==h&&null!==this._ctx.parentCtx&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(h)),this._ctx=h}getPrecedence(){return 0===this._precedenceStack.length?-1:this._precedenceStack[this._precedenceStack.length-1]}enterRecursionRule(h,p,v,y){this.state=p,this._precedenceStack.push(y),this._ctx=h,this._ctx.start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(h,p,v){const y=this._ctx;y.parentCtx=h,y.invokingState=p,y.stop=this._input.LT(-1),this._ctx=h,this._ctx.start=y.start,this.buildParseTrees&&this._ctx.addChild(y),this.triggerEnterRuleEvent()}unrollRecursionContexts(h){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);const p=this._ctx,v=this.getParseListeners();if(null!==v&&v.length>0)for(;this._ctx!==h;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=h;p.parentCtx=h,this.buildParseTrees&&null!==h&&h.addChild(p)}getInvokingContext(h){let p=this._ctx;for(;null!==p;){if(p.ruleIndex===h)return p;p=p.parentCtx}return null}precpred(h,p){return p>=this._precedenceStack[this._precedenceStack.length-1]}inContext(h){return!1}isExpectedToken(h){const p=this._interp.atn;let v=this._ctx,M=p.nextTokens(p.states[this.state]);if(M.contains(h))return!0;if(!M.contains(t.EPSILON))return!1;for(;null!==v&&v.invokingState>=0&&M.contains(t.EPSILON);){if(M=p.nextTokens(p.states[v.invokingState].transitions[0].followState),M.contains(h))return!0;v=v.parentCtx}return!(!M.contains(t.EPSILON)||h!==t.EOF)}getExpectedTokens(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)}getExpectedTokensWithinCurrentRule(){const h=this._interp.atn;return h.nextTokens(h.states[this.state])}getRuleIndex(h){const p=this.getRuleIndexMap()[h];return null!==p?p:-1}getRuleInvocationStack(h){null===(h=h||null)&&(h=this._ctx);const p=[];for(;null!==h;){const v=h.ruleIndex;p.push(v<0?"n/a":this.ruleNames[v]),h=h.parentCtx}return p}getDFAStrings(){return this._interp.decisionToDFA.toString()}dumpDFA(){let h=!1;for(let p=0;p0&&(h&&console.log(),this.printer.println("Decision "+v.decision+":"),this.printer.print(v.toString(this.literalNames,this.symbolicNames)),h=!0)}}getSourceName(){return this._input.sourceName}setTrace(h){h?(null!==this._tracer&&this.removeParseListener(this._tracer),this._tracer=new l(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)}}return o.bypassAltsAtnCache={},o})()},1900:(Te,ne,g)=>{const t=g(4677),_=g(6261),C=_.INVALID_INTERVAL,E=_.TerminalNode,u=_.TerminalNodeImpl,b=_.ErrorNodeImpl,s=g(7127).Interval;class f extends t{constructor(c,o){super(c=c||null,o=o||null),this.ruleIndex=-1,this.children=null,this.start=null,this.stop=null,this.exception=null}copyFrom(c){this.parentCtx=c.parentCtx,this.invokingState=c.invokingState,this.children=null,this.start=c.start,this.stop=c.stop,c.children&&(this.children=[],c.children.map(function(o){o instanceof b&&(this.children.push(o),o.parentCtx=this)},this))}enterRule(c){}exitRule(c){}addChild(c){return null===this.children&&(this.children=[]),this.children.push(c),c}removeLastChild(){null!==this.children&&this.children.pop()}addTokenNode(c){const o=new u(c);return this.addChild(o),o.parentCtx=this,o}addErrorNode(c){const o=new b(c);return this.addChild(o),o.parentCtx=this,o}getChild(c,o){if(null===this.children||c<0||c>=this.children.length)return null;if(null===(o=o||null))return this.children[c];for(let r=0;r=this.children.length)return null;for(let r=0;r{const t=g(4677),{Hash:_,Map:C,equalArrays:E}=g(4137);class u{constructor(w){this.cachedHashCode=w}isEmpty(){return this===u.EMPTY}hasEmptyPath(){return this.getReturnState(this.length-1)===u.EMPTY_RETURN_STATE}hashCode(){return this.cachedHashCode}updateHashCode(w){w.update(this.cachedHashCode)}}u.EMPTY=null,u.EMPTY_RETURN_STATE=2147483647,u.globalNodeCount=1,u.id=u.globalNodeCount;class s extends u{constructor(w,k){let I=0;const D=new _;null!==w?D.update(w,k):D.update(1),I=D.finish(),super(I),this.parentCtx=w,this.returnState=k}getParent(w){return this.parentCtx}getReturnState(w){return this.returnState}equals(w){return this===w||w instanceof s&&this.hashCode()===w.hashCode()&&this.returnState===w.returnState&&(null==this.parentCtx?null==w.parentCtx:this.parentCtx.equals(w.parentCtx))}toString(){const w=null===this.parentCtx?"":this.parentCtx.toString();return 0===w.length?this.returnState===u.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+w}get length(){return 1}static create(w,k){return k===u.EMPTY_RETURN_STATE&&null===w?u.EMPTY:new s(w,k)}}class f extends s{constructor(){super(null,u.EMPTY_RETURN_STATE)}isEmpty(){return!0}getParent(w){return null}getReturnState(w){return this.returnState}equals(w){return this===w}toString(){return"$"}}u.EMPTY=new f;class d extends u{constructor(w,k){const I=new _;return I.update(w,k),super(I.finish()),this.parents=w,this.returnStates=k,this}isEmpty(){return this.returnStates[0]===u.EMPTY_RETURN_STATE}getParent(w){return this.parents[w]}getReturnState(w){return this.returnStates[w]}equals(w){return this===w||w instanceof d&&this.hashCode()===w.hashCode()&&E(this.returnStates,w.returnStates)&&E(this.parents,w.parents)}toString(){if(this.isEmpty())return"[]";{let w="[";for(let k=0;k0&&(w+=", "),this.returnStates[k]!==u.EMPTY_RETURN_STATE?(w+=this.returnStates[k],null!==this.parents[k]?w=w+" "+this.parents[k]:w+="null"):w+="$";return w+"]"}}get length(){return this.returnStates.length}}Te.exports={merge:function c(M,w,k,I){if(M===w)return M;if(M instanceof s&&w instanceof s)return function o(M,w,k,I){if(null!==I){let O=I.get(M,w);if(null!==O||(O=I.get(w,M),null!==O))return O}const D=function r(M,w,k){if(k){if(M===u.EMPTY||w===u.EMPTY)return u.EMPTY}else{if(M===u.EMPTY&&w===u.EMPTY)return u.EMPTY;if(M===u.EMPTY)return new d([w.parentCtx,null],[w.returnState,u.EMPTY_RETURN_STATE]);if(w===u.EMPTY)return new d([M.parentCtx,null],[M.returnState,u.EMPTY_RETURN_STATE])}return null}(M,w,k);if(null!==D)return null!==I&&I.set(M,w,D),D;if(M.returnState===w.returnState){const O=c(M.parentCtx,w.parentCtx,k,I);if(O===M.parentCtx)return M;if(O===w.parentCtx)return w;const T=s.create(O,M.returnState);return null!==I&&I.set(M,w,T),T}{let O=null;if((M===w||null!==M.parentCtx&&M.parentCtx===w.parentCtx)&&(O=M.parentCtx),null!==O){const R=[M.returnState,w.returnState];M.returnState>w.returnState&&(R[0]=w.returnState,R[1]=M.returnState);const A=new d([O,O],R);return null!==I&&I.set(M,w,A),A}const T=[M.returnState,w.returnState];let U=[M.parentCtx,w.parentCtx];M.returnState>w.returnState&&(T[0]=w.returnState,T[1]=M.returnState,U=[w.parentCtx,M.parentCtx]);const S=new d(U,T);return null!==I&&I.set(M,w,S),S}}(M,w,k,I);if(k){if(M instanceof f)return M;if(w instanceof f)return w}return M instanceof s&&(M=new d([M.getParent()],[M.returnState])),w instanceof s&&(w=new d([w.getParent()],[w.returnState])),function h(M,w,k,I){if(null!==I){let N=I.get(M,w);if(null!==N||(N=I.get(w,M),null!==N))return N}let D=0,O=0,T=0,U=[],S=[];for(;D{const{Token:t}=g(7709),{ConsoleErrorListener:_}=g(5243),{ProxyErrorListener:C}=g(5243);Te.exports=(()=>{class u{constructor(){this._listeners=[_.INSTANCE],this._interp=null,this._stateNumber=-1}checkVersion(s){"4.9.3"!==s&&console.log("ANTLR runtime and generated code versions disagree: 4.9.3!="+s)}addErrorListener(s){this._listeners.push(s)}removeErrorListeners(){this._listeners=[]}getLiteralNames(){return Object.getPrototypeOf(this).constructor.literalNames||[]}getSymbolicNames(){return Object.getPrototypeOf(this).constructor.symbolicNames||[]}getTokenNames(){if(!this.tokenNames){const s=this.getLiteralNames(),f=this.getSymbolicNames(),d=s.length>f.length?s.length:f.length;this.tokenNames=[];for(let l=0;l";let f=s.text;return null===f&&(f=s.type===t.EOF?"":"<"+s.type+">"),f=f.replace("\n","\\n").replace("\r","\\r").replace("\t","\\t"),"'"+f+"'"}getErrorListenerDispatch(){return new C(this._listeners)}sempred(s,f,d){return!0}precpred(s,f){return!0}get state(){return this._stateNumber}set state(s){this._stateNumber=s}}return u.tokenTypeMapCache={},u.ruleIndexMapCache={},u})()},4677:(Te,ne,g)=>{const{RuleNode:t}=g(6261),{INVALID_INTERVAL:_}=g(6261),C=g(7760);Te.exports=class E extends t{constructor(b,s){super(),this.parentCtx=b||null,this.invokingState=s||-1}depth(){let b=0,s=this;for(;null!==s;)s=s.parentCtx,b+=1;return b}isEmpty(){return-1===this.invokingState}getSourceInterval(){return _}getRuleContext(){return this}getPayload(){return this}getText(){return 0===this.getChildCount()?"":this.children.map(function(b){return b.getText()}).join("")}getAltNumber(){return 0}setAltNumber(b){}getChild(b){return null}getChildCount(){return 0}accept(b){return b.visitChildren(this)}toStringTree(b,s){return C.toStringTree(this,b,s)}toString(b,s){b=b||null,s=s||null;let f=this,d="[";for(;null!==f&&f!==s;){if(null===b)f.isEmpty()||(d+=f.invokingState);else{const l=f.ruleIndex;d+=l>=0&&l{let ne=(()=>{class t{constructor(){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}getTokenSource(){return this.source[0]}getInputStream(){return this.source[1]}get text(){return this._text}set text(C){this._text=C}}return t.INVALID_TYPE=0,t.EPSILON=-2,t.MIN_USER_TOKEN_TYPE=1,t.EOF=-1,t.DEFAULT_CHANNEL=0,t.HIDDEN_CHANNEL=1,t})();Te.exports={Token:ne,CommonToken:(()=>{class t extends ne{constructor(C,E,u,b,s){super(),this.source=void 0!==C?C:t.EMPTY_SOURCE,this.type=void 0!==E?E:null,this.channel=void 0!==u?u:ne.DEFAULT_CHANNEL,this.start=void 0!==b?b:-1,this.stop=void 0!==s?s:-1,this.tokenIndex=-1,null!==this.source[0]?(this.line=C[0].line,this.column=C[0].column):this.column=-1}clone(){const C=new t(this.source,this.type,this.channel,this.start,this.stop);return C.tokenIndex=this.tokenIndex,C.line=this.line,C.column=this.column,C.text=this.text,C}toString(){let C=this.text;return C=null!==C?C.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+C+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"}get text(){if(null!==this._text)return this._text;const C=this.getInputStream();if(null===C)return null;const E=C.size;return this.start"}set text(C){this._text=C}}return t.EMPTY_SOURCE=[null,null],t})()}},4137:Te=>{function ne(r){return null===r?"null":r}function g(r){return Array.isArray(r)?"["+r.map(ne).join(", ")+"]":"null"}function t(r,h){return r?r.equals(h):r==h}function _(r){return r?r.hashCode():-1}String.prototype.seed=String.prototype.seed||Math.round(Math.random()*Math.pow(2,32)),String.prototype.hashCode=function(){const r=this.toString();let h,p;const v=3&r.length,y=r.length-v;let M=String.prototype.seed;const w=3432918353,k=461845907;let I=0;for(;I>>16)*w&65535)<<16)&4294967295,p=p<<15|p>>>17,p=(65535&p)*k+(((p>>>16)*k&65535)<<16)&4294967295,M^=p,M=M<<13|M>>>19,h=5*(65535&M)+((5*(M>>>16)&65535)<<16)&4294967295,M=27492+(65535&h)+((58964+(h>>>16)&65535)<<16);switch(p=0,v){case 3:p^=(255&r.charCodeAt(I+2))<<16;case 2:p^=(255&r.charCodeAt(I+1))<<8;case 1:p^=255&r.charCodeAt(I),p=(65535&p)*w+(((p>>>16)*w&65535)<<16)&4294967295,p=p<<15|p>>>17,p=(65535&p)*k+(((p>>>16)*k&65535)<<16)&4294967295,M^=p}return M^=r.length,M^=M>>>16,M=2246822507*(65535&M)+((2246822507*(M>>>16)&65535)<<16)&4294967295,M^=M>>>13,M=3266489909*(65535&M)+((3266489909*(M>>>16)&65535)<<16)&4294967295,M^=M>>>16,M>>>0};class E{constructor(){this.data=[]}add(h){this.data[h]=!0}or(h){const p=this;Object.keys(h.data).map(function(v){p.add(v)})}remove(h){delete this.data[h]}contains(h){return!0===this.data[h]}values(){return Object.keys(this.data)}minValue(){return Math.min.apply(null,this.values())}hashCode(){const h=new f;return h.update(this.values()),h.finish()}equals(h){return h instanceof E&&this.hashCode()===h.hashCode()}toString(){return"{"+this.values().join(", ")+"}"}get length(){return this.values().length}}class u{constructor(h,p){this.data={},this.hashFunction=h||_,this.equalsFunction=p||t}put(h,p){const v="hash_"+this.hashFunction(h);if(v in this.data){const y=this.data[v];for(let M=0;M>>17,v*=461845907,this.count=this.count+1;let y=this.hash^v;y=y<<13|y>>>19,y=5*y+3864292196,this.hash=y}}}finish(){let h=this.hash^4*this.count;return h^=h>>>16,h*=2246822507,h^=h>>>13,h*=3266489909,h^=h>>>16,h}}Te.exports={Hash:f,Set:class C{constructor(h,p){this.data={},this.hashFunction=h||_,this.equalsFunction=p||t}add(h){const v="hash_"+this.hashFunction(h);if(v in this.data){const y=this.data[v];for(let M=0;M{const t=g(9441),{IntervalSet:_}=g(7127),{Token:C}=g(7709);Te.exports=(()=>{class u{constructor(s,f){this.grammarType=s,this.maxTokenType=f,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[]}nextTokensInContext(s,f){return new t(this).LOOK(s,null,f)}nextTokensNoContext(s){return null!==s.nextTokenWithinRule||(s.nextTokenWithinRule=this.nextTokensInContext(s,null),s.nextTokenWithinRule.readOnly=!0),s.nextTokenWithinRule}nextTokens(s,f){return void 0===f?this.nextTokensNoContext(s):this.nextTokensInContext(s,f)}addState(s){null!==s&&(s.atn=this,s.stateNumber=this.states.length),this.states.push(s)}removeState(s){this.states[s.stateNumber]=null}defineDecisionState(s){return this.decisionToState.push(s),s.decision=this.decisionToState.length-1,s.decision}getDecisionState(s){return 0===this.decisionToState.length?null:this.decisionToState[s]}getExpectedTokens(s,f){if(s<0||s>=this.states.length)throw"Invalid state number.";let l=this.nextTokens(this.states[s]);if(!l.contains(C.EPSILON))return l;const c=new _;for(c.addSet(l),c.removeOne(C.EPSILON);null!==f&&f.invokingState>=0&&l.contains(C.EPSILON);)l=this.nextTokens(this.states[f.invokingState].transitions[0].followState),c.addSet(l),c.removeOne(C.EPSILON),f=f.parentCtx;return l.contains(C.EPSILON)&&c.addOne(C.EOF),c}}return u.INVALID_ALT_NUMBER=0,u})()},4341:(Te,ne,g)=>{const{DecisionState:t}=g(8402),{SemanticContext:_}=g(449),{Hash:C}=g(4137);function E(s,f){if(null===s){const d={state:null,alt:null,context:null,semanticContext:null};return f&&(d.reachesIntoOuterContext=0),d}{const d={};return d.state=s.state||null,d.alt=void 0===s.alt?null:s.alt,d.context=s.context||null,d.semanticContext=s.semanticContext||null,f&&(d.reachesIntoOuterContext=s.reachesIntoOuterContext||0,d.precedenceFilterSuppressed=s.precedenceFilterSuppressed||!1),d}}class u{constructor(f,d){this.checkContext(f,d),f=E(f),d=E(d,!0),this.state=null!==f.state?f.state:d.state,this.alt=null!==f.alt?f.alt:d.alt,this.context=null!==f.context?f.context:d.context,this.semanticContext=null!==f.semanticContext?f.semanticContext:null!==d.semanticContext?d.semanticContext:_.NONE,this.reachesIntoOuterContext=d.reachesIntoOuterContext,this.precedenceFilterSuppressed=d.precedenceFilterSuppressed}checkContext(f,d){null==f.context&&(null===d||null==d.context)&&(this.context=null)}hashCode(){const f=new C;return this.updateHashCode(f),f.finish()}updateHashCode(f){f.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)}equals(f){return this===f||f instanceof u&&this.state.stateNumber===f.state.stateNumber&&this.alt===f.alt&&(null===this.context?null===f.context:this.context.equals(f.context))&&this.semanticContext.equals(f.semanticContext)&&this.precedenceFilterSuppressed===f.precedenceFilterSuppressed}hashCodeForConfigSet(){const f=new C;return f.update(this.state.stateNumber,this.alt,this.semanticContext),f.finish()}equalsForConfigSet(f){return this===f||f instanceof u&&this.state.stateNumber===f.state.stateNumber&&this.alt===f.alt&&this.semanticContext.equals(f.semanticContext)}toString(){return"("+this.state+","+this.alt+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==_.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"}}class b extends u{constructor(f,d){return super(f,d),this.lexerActionExecutor=f.lexerActionExecutor||(null!==d?d.lexerActionExecutor:null),this.passedThroughNonGreedyDecision=null!==d&&this.checkNonGreedyDecision(d,this.state),this.hashCodeForConfigSet=b.prototype.hashCode,this.equalsForConfigSet=b.prototype.equals,this}updateHashCode(f){f.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)}equals(f){return this===f||f instanceof b&&this.passedThroughNonGreedyDecision===f.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(f.lexerActionExecutor):!f.lexerActionExecutor)&&super.equals(f)}checkNonGreedyDecision(f,d){return f.passedThroughNonGreedyDecision||d instanceof t&&d.nonGreedy}}Te.exports.ATNConfig=u,Te.exports.LexerATNConfig=b},2301:(Te,ne,g)=>{const t=g(1019),_=g(4137),{SemanticContext:C}=g(449),{merge:E}=g(3260);function u(d){return d.hashCodeForConfigSet()}function b(d,l){return d===l||null!==d&&null!==l&&d.equalsForConfigSet(l)}class s{constructor(l){this.configLookup=new _.Set(u,b),this.fullCtx=void 0===l||l,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1}add(l,c){if(void 0===c&&(c=null),this.readOnly)throw"This set is readonly";l.semanticContext!==C.NONE&&(this.hasSemanticContext=!0),l.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);const o=this.configLookup.add(l);if(o===l)return this.cachedHashCode=-1,this.configs.push(l),!0;const h=E(o.context,l.context,!this.fullCtx,c);return o.reachesIntoOuterContext=Math.max(o.reachesIntoOuterContext,l.reachesIntoOuterContext),l.precedenceFilterSuppressed&&(o.precedenceFilterSuppressed=!0),o.context=h,!0}getStates(){const l=new _.Set;for(let c=0;c{class ne{constructor(t){void 0===t&&(t=null),this.readOnly=!1,this.verifyATN=null===t||t.verifyATN,this.generateRuleBypassTransitions=null!==t&&t.generateRuleBypassTransitions}}ne.defaultOptions=new ne,ne.defaultOptions.readOnly=!0,Te.exports=ne},9880:(Te,ne,g)=>{const{Token:t}=g(7709),_=g(1019),C=g(4371),{ATNState:E,BasicState:u,DecisionState:b,BlockStartState:s,BlockEndState:f,LoopEndState:d,RuleStartState:l,RuleStopState:c,TokensStartState:o,PlusLoopbackState:r,StarLoopbackState:h,StarLoopEntryState:p,PlusBlockStartState:v,StarBlockStartState:y,BasicBlockStartState:M}=g(8402),{Transition:w,AtomTransition:k,SetTransition:I,NotSetTransition:D,RuleTransition:O,RangeTransition:T,ActionTransition:U,EpsilonTransition:S,WildcardTransition:R,PredicateTransition:N,PrecedencePredicateTransition:A}=g(8935),{IntervalSet:F}=g(7127),Y=g(2498),{LexerActionType:ee,LexerSkipAction:ie,LexerChannelAction:$,LexerCustomAction:j,LexerMoreAction:G,LexerTypeAction:V,LexerPushModeAction:W,LexerPopModeAction:K,LexerModeAction:ce}=g(2866),ve="59627784-3BE5-417A-B9EB-8131A7286089",Ye=["AADB8D7E-AEEF-4415-AD2B-8204D6CF042E",ve],ct=ve;function Ct(rt,Ee){const be=[];return be[rt-1]=Ee,be.map(function(Se){return Ee})}const Ie=function Ne(){const rt=[];for(let Ee=0;Ee<256;Ee++)rt[Ee]=(Ee+256).toString(16).substr(1).toUpperCase();return rt}();Te.exports=class We{constructor(Ee){null==Ee&&(Ee=Y.defaultOptions),this.deserializationOptions=Ee,this.stateFactories=null,this.actionFactories=null}isFeatureSupported(Ee,be){const Se=Ye.indexOf(Ee);return!(Se<0)&&Ye.indexOf(be)>=Se}deserialize(Ee){this.reset(Ee),this.checkVersion(),this.checkUUID();const be=this.readATN();this.readStates(be),this.readRules(be),this.readModes(be);const Se=[];return this.readSets(be,Se,this.readInt.bind(this)),this.isFeatureSupported(ve,this.uuid)&&this.readSets(be,Se,this.readInt32.bind(this)),this.readEdges(be,Se),this.readDecisions(be),this.readLexerActions(be),this.markPrecedenceDecisions(be),this.verifyATN(be),this.deserializationOptions.generateRuleBypassTransitions&&be.grammarType===C.PARSER&&(this.generateRuleBypassTransitions(be),this.verifyATN(be)),be}reset(Ee){const Se=Ee.split("").map(function(Q){const pe=Q.charCodeAt(0);return pe>1?pe-2:pe+65534});Se[0]=Ee.charCodeAt(0),this.data=Se,this.pos=0}checkVersion(){const Ee=this.readInt();if(3!==Ee)throw"Could not deserialize ATN with version "+Ee+" (expected 3)."}checkUUID(){const Ee=this.readUUID();if(Ye.indexOf(Ee)<0)throw ct;this.uuid=Ee}readATN(){const Ee=this.readInt(),be=this.readInt();return new _(Ee,be)}readStates(Ee){let be,Se,Q;const pe=[],Re=[],bt=this.readInt();for(let He=0;He0;)pe.addTransition(ye.transitions[He-1]),ye.transitions=ye.transitions.slice(-1);Ee.ruleToStartState[be].addTransition(new S(pe)),Re.addTransition(new S(it));const De=new u;Ee.addState(De),De.addTransition(new k(Re,Ee.ruleToTokenType[be])),pe.addTransition(new S(De))}stateIsEndStateFor(Ee,be){if(Ee.ruleIndex!==be||!(Ee instanceof p))return null;const Se=Ee.transitions[Ee.transitions.length-1].target;return Se instanceof d&&Se.epsilonOnlyTransitions&&Se.transitions[0].target instanceof c?Ee:null}markPrecedenceDecisions(Ee){for(let be=0;be=0:Se.transitions.length<=1||Se instanceof c)}}checkCondition(Ee,be){if(!Ee)throw null==be&&(be="IllegalState"),be}readInt(){return this.data[this.pos++]}readInt32(){return this.readInt()|this.readInt()<<16}readLong(){return 4294967295&this.readInt32()|this.readInt32()<<32}readUUID(){const Ee=[];for(let be=7;be>=0;be--){const Se=this.readInt();Ee[2*be+1]=255&Se,Ee[2*be]=Se>>8&255}return Ie[Ee[0]]+Ie[Ee[1]]+Ie[Ee[2]]+Ie[Ee[3]]+"-"+Ie[Ee[4]]+Ie[Ee[5]]+"-"+Ie[Ee[6]]+Ie[Ee[7]]+"-"+Ie[Ee[8]]+Ie[Ee[9]]+"-"+Ie[Ee[10]]+Ie[Ee[11]]+Ie[Ee[12]]+Ie[Ee[13]]+Ie[Ee[14]]+Ie[Ee[15]]}edgeFactory(Ee,be,Se,Q,pe,Re,bt,it){const ye=Ee.states[Q];switch(be){case w.EPSILON:return new S(ye);case w.RANGE:return new T(ye,0!==bt?t.EOF:pe,Re);case w.RULE:return new O(Ee.states[pe],Re,bt,ye);case w.PREDICATE:return new N(ye,pe,Re,0!==bt);case w.PRECEDENCE:return new A(ye,pe);case w.ATOM:return new k(ye,0!==bt?t.EOF:pe);case w.ACTION:return new U(ye,pe,Re,0!==bt);case w.SET:return new I(ye,it[pe]);case w.NOT_SET:return new D(ye,it[pe]);case w.WILDCARD:return new R(ye);default:throw"The specified transition type: "+be+" is not valid."}}stateFactory(Ee,be){if(null===this.stateFactories){const Se=[];Se[E.INVALID_TYPE]=null,Se[E.BASIC]=()=>new u,Se[E.RULE_START]=()=>new l,Se[E.BLOCK_START]=()=>new M,Se[E.PLUS_BLOCK_START]=()=>new v,Se[E.STAR_BLOCK_START]=()=>new y,Se[E.TOKEN_START]=()=>new o,Se[E.RULE_STOP]=()=>new c,Se[E.BLOCK_END]=()=>new f,Se[E.STAR_LOOP_BACK]=()=>new h,Se[E.STAR_LOOP_ENTRY]=()=>new p,Se[E.PLUS_LOOP_BACK]=()=>new r,Se[E.LOOP_END]=()=>new d,this.stateFactories=Se}if(Ee>this.stateFactories.length||null===this.stateFactories[Ee])throw"The specified state type "+Ee+" is not valid.";{const Se=this.stateFactories[Ee]();if(null!==Se)return Se.ruleIndex=be,Se}}lexerActionFactory(Ee,be,Se){if(null===this.actionFactories){const Q=[];Q[ee.CHANNEL]=(pe,Re)=>new $(pe),Q[ee.CUSTOM]=(pe,Re)=>new j(pe,Re),Q[ee.MODE]=(pe,Re)=>new ce(pe),Q[ee.MORE]=(pe,Re)=>G.INSTANCE,Q[ee.POP_MODE]=(pe,Re)=>K.INSTANCE,Q[ee.PUSH_MODE]=(pe,Re)=>new W(pe),Q[ee.SKIP]=(pe,Re)=>ie.INSTANCE,Q[ee.TYPE]=(pe,Re)=>new V(pe),this.actionFactories=Q}if(Ee>this.actionFactories.length||null===this.actionFactories[Ee])throw"The specified lexer action type "+Ee+" is not valid.";return this.actionFactories[Ee](be,Se)}}},5737:(Te,ne,g)=>{const{DFAState:t}=g(10),{ATNConfigSet:_}=g(2301),{getCachedPredictionContext:C}=g(3260),{Map:E}=g(4137);class u{constructor(s,f){return this.atn=s,this.sharedContextCache=f,this}getCachedContext(s){if(null===this.sharedContextCache)return s;const f=new E;return C(s,this.sharedContextCache,f)}}u.ERROR=new t(2147483647,new _),Te.exports=u},8402:Te=>{let g=(()=>{class p{constructor(){this.atn=null,this.stateNumber=p.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null}toString(){return this.stateNumber}equals(y){return y instanceof p&&this.stateNumber===y.stateNumber}isNonGreedyExitState(){return!1}addTransition(y,M){void 0===M&&(M=-1),0===this.transitions.length?this.epsilonOnlyTransitions=y.isEpsilon:this.epsilonOnlyTransitions!==y.isEpsilon&&(this.epsilonOnlyTransitions=!1),-1===M?this.transitions.push(y):this.transitions.splice(M,1,y)}}return p.INVALID_TYPE=0,p.BASIC=1,p.RULE_START=2,p.BLOCK_START=3,p.PLUS_BLOCK_START=4,p.STAR_BLOCK_START=5,p.TOKEN_START=6,p.RULE_STOP=7,p.BLOCK_END=8,p.STAR_LOOP_BACK=9,p.STAR_LOOP_ENTRY=10,p.PLUS_LOOP_BACK=11,p.LOOP_END=12,p.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"],p.INVALID_STATE_NUMBER=-1,p})();class _ extends g{constructor(){return super(),this.decision=-1,this.nonGreedy=!1,this}}class C extends _{constructor(){return super(),this.endState=null,this}}Te.exports={ATNState:g,BasicState:class t extends g{constructor(){super(),this.stateType=g.BASIC}},DecisionState:_,BlockStartState:C,BlockEndState:class u extends g{constructor(){return super(),this.stateType=g.BLOCK_END,this.startState=null,this}},LoopEndState:class r extends g{constructor(){return super(),this.stateType=g.LOOP_END,this.loopBackState=null,this}},RuleStartState:class s extends g{constructor(){return super(),this.stateType=g.RULE_START,this.stopState=null,this.isPrecedenceRule=!1,this}},RuleStopState:class b extends g{constructor(){return super(),this.stateType=g.RULE_STOP,this}},TokensStartState:class h extends _{constructor(){return super(),this.stateType=g.TOKEN_START,this}},PlusLoopbackState:class f extends _{constructor(){return super(),this.stateType=g.PLUS_LOOP_BACK,this}},StarLoopbackState:class c extends g{constructor(){return super(),this.stateType=g.STAR_LOOP_BACK,this}},StarLoopEntryState:class o extends _{constructor(){return super(),this.stateType=g.STAR_LOOP_ENTRY,this.loopBackState=null,this.isPrecedenceDecision=null,this}},PlusBlockStartState:class d extends C{constructor(){return super(),this.stateType=g.PLUS_BLOCK_START,this.loopBackState=null,this}},StarBlockStartState:class l extends C{constructor(){return super(),this.stateType=g.STAR_BLOCK_START,this}},BasicBlockStartState:class E extends C{constructor(){return super(),this.stateType=g.BLOCK_START,this}}}},4371:Te=>{Te.exports={LEXER:0,PARSER:1}},8557:(Te,ne,g)=>{const{Token:t}=g(7709),_=g(9258),C=g(1019),E=g(5737),{DFAState:u}=g(10),{OrderedATNConfigSet:b}=g(2301),{PredictionContext:s}=g(3260),{SingletonPredictionContext:f}=g(3260),{RuleStopState:d}=g(8402),{LexerATNConfig:l}=g(4341),{Transition:c}=g(8935),o=g(1999),{LexerNoViableAltException:r}=g(8118);function h(y){y.index=-1,y.line=0,y.column=-1,y.dfaState=null}class p{constructor(){h(this)}reset(){h(this)}}Te.exports=(()=>{class y extends E{constructor(w,k,I,D){super(k,D),this.decisionToDFA=I,this.recog=w,this.startIndex=-1,this.line=1,this.column=0,this.mode=_.DEFAULT_MODE,this.prevAccept=new p}copyState(w){this.column=w.column,this.line=w.line,this.mode=w.mode,this.startIndex=w.startIndex}match(w,k){this.match_calls+=1,this.mode=k;const I=w.mark();try{this.startIndex=w.index,this.prevAccept.reset();const D=this.decisionToDFA[k];return null===D.s0?this.matchATN(w):this.execATN(w,D.s0)}finally{w.release(I)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=_.DEFAULT_MODE}matchATN(w){const k=this.atn.modeToStartState[this.mode];y.debug&&console.log("matchATN mode "+this.mode+" start: "+k);const I=this.mode,D=this.computeStartState(w,k),O=D.hasSemanticContext;D.hasSemanticContext=!1;const T=this.addDFAState(D);O||(this.decisionToDFA[this.mode].s0=T);const U=this.execATN(w,T);return y.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[I].toLexerString()),U}execATN(w,k){y.debug&&console.log("start state closure="+k.configs),k.isAcceptState&&this.captureSimState(this.prevAccept,w,k);let I=w.LA(1),D=k;for(;;){y.debug&&console.log("execATN loop starting closure: "+D.configs);let O=this.getExistingTargetState(D,I);if(null===O&&(O=this.computeTargetState(w,D,I)),O===E.ERROR||(I!==t.EOF&&this.consume(w),O.isAcceptState&&(this.captureSimState(this.prevAccept,w,O),I===t.EOF)))break;I=w.LA(1),D=O}return this.failOrAccept(this.prevAccept,w,D.configs,I)}getExistingTargetState(w,k){if(null===w.edges||ky.MAX_DFA_EDGE)return null;let I=w.edges[k-y.MIN_DFA_EDGE];return void 0===I&&(I=null),y.debug&&null!==I&&console.log("reuse state "+w.stateNumber+" edge to "+I.stateNumber),I}computeTargetState(w,k,I){const D=new b;return this.getReachableConfigSet(w,k.configs,D,I),0===D.items.length?(D.hasSemanticContext||this.addDFAEdge(k,I,E.ERROR),E.ERROR):this.addDFAEdge(k,I,null,D)}failOrAccept(w,k,I,D){if(null!==this.prevAccept.dfaState)return this.accept(k,w.dfaState.lexerActionExecutor,this.startIndex,w.index,w.line,w.column),w.dfaState.prediction;if(D===t.EOF&&k.index===this.startIndex)return t.EOF;throw new r(this.recog,k,this.startIndex,I)}getReachableConfigSet(w,k,I,D){let O=C.INVALID_ALT_NUMBER;for(let T=0;Ty.MAX_DFA_EDGE||(y.debug&&console.log("EDGE "+w+" -> "+I+" upon "+k),null===w.edges&&(w.edges=[]),w.edges[k-y.MIN_DFA_EDGE]=I),I}addDFAState(w){const k=new u(null,w);let I=null;for(let U=0;U{const ne={CHANNEL:0,CUSTOM:1,MODE:2,MORE:3,POP_MODE:4,PUSH_MODE:5,SKIP:6,TYPE:7};class g{constructor(c){this.actionType=c,this.isPositionDependent=!1}hashCode(){const c=new Hash;return this.updateHashCode(c),c.finish()}updateHashCode(c){c.update(this.actionType)}equals(c){return this===c}}class t extends g{constructor(){super(ne.SKIP)}execute(c){c.skip()}toString(){return"skip"}}t.INSTANCE=new t;class _ extends g{constructor(c){super(ne.TYPE),this.type=c}execute(c){c.type=this.type}updateHashCode(c){c.update(this.actionType,this.type)}equals(c){return this===c||c instanceof _&&this.type===c.type}toString(){return"type("+this.type+")"}}class C extends g{constructor(c){super(ne.PUSH_MODE),this.mode=c}execute(c){c.pushMode(this.mode)}updateHashCode(c){c.update(this.actionType,this.mode)}equals(c){return this===c||c instanceof C&&this.mode===c.mode}toString(){return"pushMode("+this.mode+")"}}class E extends g{constructor(){super(ne.POP_MODE)}execute(c){c.popMode()}toString(){return"popMode"}}E.INSTANCE=new E;class u extends g{constructor(){super(ne.MORE)}execute(c){c.more()}toString(){return"more"}}u.INSTANCE=new u;class b extends g{constructor(c){super(ne.MODE),this.mode=c}execute(c){c.mode(this.mode)}updateHashCode(c){c.update(this.actionType,this.mode)}equals(c){return this===c||c instanceof b&&this.mode===c.mode}toString(){return"mode("+this.mode+")"}}class s extends g{constructor(c,o){super(ne.CUSTOM),this.ruleIndex=c,this.actionIndex=o,this.isPositionDependent=!0}execute(c){c.action(null,this.ruleIndex,this.actionIndex)}updateHashCode(c){c.update(this.actionType,this.ruleIndex,this.actionIndex)}equals(c){return this===c||c instanceof s&&this.ruleIndex===c.ruleIndex&&this.actionIndex===c.actionIndex}}class f extends g{constructor(c){super(ne.CHANNEL),this.channel=c}execute(c){c._channel=this.channel}updateHashCode(c){c.update(this.actionType,this.channel)}equals(c){return this===c||c instanceof f&&this.channel===c.channel}toString(){return"channel("+this.channel+")"}}class d extends g{constructor(c,o){super(o.actionType),this.offset=c,this.action=o,this.isPositionDependent=!0}execute(c){this.action.execute(c)}updateHashCode(c){c.update(this.actionType,this.offset,this.action)}equals(c){return this===c||c instanceof d&&this.offset===c.offset&&this.action===c.action}}Te.exports={LexerActionType:ne,LexerSkipAction:t,LexerChannelAction:f,LexerCustomAction:s,LexerIndexedCustomAction:d,LexerMoreAction:u,LexerTypeAction:_,LexerPushModeAction:C,LexerPopModeAction:E,LexerModeAction:b}},1999:(Te,ne,g)=>{const{hashStuff:t}=g(4137),{LexerIndexedCustomAction:_}=g(2866);class C{constructor(u){return this.lexerActions=null===u?[]:u,this.cachedHashCode=t(u),this}fixOffsetBeforeMatch(u){let b=null;for(let s=0;s{const t=g(4137),{Set:_,BitSet:C,DoubleDict:E}=t,u=g(1019),{ATNState:b,RuleStopState:s}=g(8402),{ATNConfig:f}=g(4341),{ATNConfigSet:d}=g(2301),{Token:l}=g(7709),{DFAState:c,PredPrediction:o}=g(10),r=g(5737),h=g(7822),p=g(4677),{SemanticContext:y}=(g(1900),g(449)),{PredictionContext:M}=g(3260),{Interval:w}=g(7127),{Transition:k,SetTransition:I,NotSetTransition:D,RuleTransition:O,ActionTransition:T}=g(8935),{NoViableAltException:U}=g(8118),{SingletonPredictionContext:S,predictionContextFromRuleContext:R}=g(3260);Te.exports=class N extends r{constructor(F,Y,ee,ie){super(Y,ie),this.parser=F,this.decisionToDFA=ee,this.predictionMode=h.LL,this._input=null,this._startIndex=0,this._outerContext=null,this._dfa=null,this.mergeCache=null,this.debug=!1,this.debug_closure=!1,this.debug_add=!1,this.debug_list_atn_decisions=!1,this.dfa_debug=!1,this.retry_debug=!1}reset(){}adaptivePredict(F,Y,ee){(this.debug||this.debug_list_atn_decisions)&&console.log("adaptivePredict decision "+Y+" exec LA(1)=="+this.getLookaheadName(F)+" line "+F.LT(1).line+":"+F.LT(1).column),this._input=F,this._startIndex=F.index,this._outerContext=ee;const ie=this.decisionToDFA[Y];this._dfa=ie;const $=F.mark(),j=F.index;try{let G;if(G=ie.precedenceDfa?ie.getPrecedenceStartState(this.parser.getPrecedence()):ie.s0,null===G){null===ee&&(ee=p.EMPTY),(this.debug||this.debug_list_atn_decisions)&&console.log("predictATN decision "+ie.decision+" exec LA(1)=="+this.getLookaheadName(F)+", outerContext="+ee.toString(this.parser.ruleNames));let K=this.computeStartState(ie.atnStartState,p.EMPTY,!1);ie.precedenceDfa?(ie.s0.configs=K,K=this.applyPrecedenceFilter(K),G=this.addDFAState(ie,new c(null,K)),ie.setPrecedenceStartState(this.parser.getPrecedence(),G)):(G=this.addDFAState(ie,new c(null,K)),ie.s0=G)}const V=this.execATN(ie,G,F,j,ee);return this.debug&&console.log("DFA after predictATN: "+ie.toString(this.parser.literalNames,this.parser.symbolicNames)),V}finally{this._dfa=null,this.mergeCache=null,F.seek(j),F.release($)}}execATN(F,Y,ee,ie,$){(this.debug||this.debug_list_atn_decisions)&&console.log("execATN decision "+F.decision+" exec LA(1)=="+this.getLookaheadName(ee)+" line "+ee.LT(1).line+":"+ee.LT(1).column);let j,G=Y;this.debug&&console.log("s0 = "+Y);let V=ee.LA(1);for(;;){let W=this.getExistingTargetState(G,V);if(null===W&&(W=this.computeTargetState(F,G,V)),W===r.ERROR){const K=this.noViableAlt(ee,$,G.configs,ie);if(ee.seek(ie),j=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(G.configs,$),j!==u.INVALID_ALT_NUMBER)return j;throw K}if(W.requiresFullContext&&this.predictionMode!==h.SLL){let K=null;if(null!==W.predicates){this.debug&&console.log("DFA state has preds in DFA sim LL failover");const ve=ee.index;if(ve!==ie&&ee.seek(ie),K=this.evalSemanticContext(W.predicates,$,!0),1===K.length)return this.debug&&console.log("Full LL avoided"),K.minValue();ve!==ie&&ee.seek(ve)}this.dfa_debug&&console.log("ctx sensitive state "+$+" in "+W);const ue=this.computeStartState(F.atnStartState,$,!0);return this.reportAttemptingFullContext(F,K,W.configs,ie,ee.index),j=this.execATNWithFullContext(F,W,ue,ee,ie,$),j}if(W.isAcceptState){if(null===W.predicates)return W.prediction;const K=ee.index;ee.seek(ie);const ce=this.evalSemanticContext(W.predicates,$,!0);if(0===ce.length)throw this.noViableAlt(ee,$,W.configs,ie);return 1===ce.length||this.reportAmbiguity(F,W,ie,K,!1,ce,W.configs),ce.minValue()}G=W,V!==l.EOF&&(ee.consume(),V=ee.LA(1))}}getExistingTargetState(F,Y){const ee=F.edges;return null===ee?null:ee[Y+1]||null}computeTargetState(F,Y,ee){const ie=this.computeReachSet(Y.configs,ee,!1);if(null===ie)return this.addDFAEdge(F,Y,ee,r.ERROR),r.ERROR;let $=new c(null,ie);const j=this.getUniqueAlt(ie);if(this.debug){const G=h.getConflictingAltSubsets(ie);console.log("SLL altSubSets="+t.arrayToString(G)+", configs="+ie+", predict="+j+", allSubsetsConflict="+h.allSubsetsConflict(G)+", conflictingAlts="+this.getConflictingAlts(ie))}return j!==u.INVALID_ALT_NUMBER?($.isAcceptState=!0,$.configs.uniqueAlt=j,$.prediction=j):h.hasSLLConflictTerminatingPrediction(this.predictionMode,ie)&&($.configs.conflictingAlts=this.getConflictingAlts(ie),$.requiresFullContext=!0,$.isAcceptState=!0,$.prediction=$.configs.conflictingAlts.minValue()),$.isAcceptState&&$.configs.hasSemanticContext&&(this.predicateDFAState($,this.atn.getDecisionState(F.decision)),null!==$.predicates&&($.prediction=u.INVALID_ALT_NUMBER)),$=this.addDFAEdge(F,Y,ee,$),$}predicateDFAState(F,Y){const ee=Y.transitions.length,ie=this.getConflictingAltsOrUniqueAlt(F.configs),$=this.getPredsForAmbigAlts(ie,F.configs,ee);null!==$?(F.predicates=this.getPredicatePredictions(ie,$),F.prediction=u.INVALID_ALT_NUMBER):F.prediction=ie.minValue()}execATNWithFullContext(F,Y,ee,ie,$,j){(this.debug||this.debug_list_atn_decisions)&&console.log("execATNWithFullContext "+ee);let W,V=!1,K=ee;ie.seek($);let ce=ie.LA(1),ue=-1;for(;;){if(W=this.computeReachSet(K,ce,!0),null===W){const Ye=this.noViableAlt(ie,j,K,$);ie.seek($);const pt=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(K,j);if(pt!==u.INVALID_ALT_NUMBER)return pt;throw Ye}const ve=h.getConflictingAltSubsets(W);if(this.debug&&console.log("LL altSubSets="+ve+", predict="+h.getUniqueAlt(ve)+", resolvesToJustOneViableAlt="+h.resolvesToJustOneViableAlt(ve)),W.uniqueAlt=this.getUniqueAlt(W),W.uniqueAlt!==u.INVALID_ALT_NUMBER){ue=W.uniqueAlt;break}if(this.predictionMode!==h.LL_EXACT_AMBIG_DETECTION){if(ue=h.resolvesToJustOneViableAlt(ve),ue!==u.INVALID_ALT_NUMBER)break}else if(h.allSubsetsConflict(ve)&&h.allSubsetsEqual(ve)){V=!0,ue=h.getSingleViableAlt(ve);break}K=W,ce!==l.EOF&&(ie.consume(),ce=ie.LA(1))}return W.uniqueAlt!==u.INVALID_ALT_NUMBER?(this.reportContextSensitivity(F,ue,W,$,ie.index),ue):(this.reportAmbiguity(F,Y,$,ie.index,V,null,W),ue)}computeReachSet(F,Y,ee){this.debug&&console.log("in computeReachSet, starting closure: "+F),null===this.mergeCache&&(this.mergeCache=new E);const ie=new d(ee);let $=null;for(let G=0;G0&&(j=this.getAltThatFinishedDecisionEntryRule($),j!==u.INVALID_ALT_NUMBER)?j:u.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(F){const Y=[];for(let ee=0;ee0||ie.state instanceof s&&ie.context.hasEmptyPath())&&Y.indexOf(ie.alt)<0&&Y.push(ie.alt)}return 0===Y.length?u.INVALID_ALT_NUMBER:Math.min.apply(null,Y)}splitAccordingToSemanticValidity(F,Y){const ee=new d(F.fullCtx),ie=new d(F.fullCtx);for(let $=0;$50))throw"problem";if(F.state instanceof s){if(!F.context.isEmpty()){for(let V=0;V=0&&(ve+=1)}this.closureCheckingStopState(ue,Y,ee,ce,$,ve,G)}}}canDropLoopEntryEdgeInLeftRecursiveRule(F){const Y=F.state;if(Y.stateType!==b.STAR_LOOP_ENTRY||Y.stateType!==b.STAR_LOOP_ENTRY||!Y.isPrecedenceDecision||F.context.isEmpty()||F.context.hasEmptyPath())return!1;const ee=F.context.length;for(let G=0;G=0?this.parser.ruleNames[F]:""}getEpsilonTarget(F,Y,ee,ie,$,j){switch(Y.serializationType){case k.RULE:return this.ruleTransition(F,Y);case k.PRECEDENCE:return this.precedenceTransition(F,Y,ee,ie,$);case k.PREDICATE:return this.predTransition(F,Y,ee,ie,$);case k.ACTION:return this.actionTransition(F,Y);case k.EPSILON:return new f({state:Y.target},F);case k.ATOM:case k.RANGE:case k.SET:return j&&Y.matches(l.EOF,0,1)?new f({state:Y.target},F):null;default:return null}}actionTransition(F,Y){return this.debug&&console.log("ACTION edge "+Y.ruleIndex+":"+(-1===Y.actionIndex?65535:Y.actionIndex)),new f({state:Y.target},F)}precedenceTransition(F,Y,ee,ie,$){this.debug&&(console.log("PRED (collectPredicates="+ee+") "+Y.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+t.arrayToString(this.parser.getRuleInvocationStack())));let j=null;if(ee&&ie)if($){const G=this._input.index;this._input.seek(this._startIndex);const V=Y.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(G),V&&(j=new f({state:Y.target},F))}else{const G=y.andContext(F.semanticContext,Y.getPredicate());j=new f({state:Y.target,semanticContext:G},F)}else j=new f({state:Y.target},F);return this.debug&&console.log("config from pred transition="+j),j}predTransition(F,Y,ee,ie,$){this.debug&&(console.log("PRED (collectPredicates="+ee+") "+Y.ruleIndex+":"+Y.predIndex+", ctx dependent="+Y.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+t.arrayToString(this.parser.getRuleInvocationStack())));let j=null;if(ee&&(Y.isCtxDependent&&ie||!Y.isCtxDependent))if($){const G=this._input.index;this._input.seek(this._startIndex);const V=Y.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(G),V&&(j=new f({state:Y.target},F))}else{const G=y.andContext(F.semanticContext,Y.getPredicate());j=new f({state:Y.target,semanticContext:G},F)}else j=new f({state:Y.target},F);return this.debug&&console.log("config from pred transition="+j),j}ruleTransition(F,Y){this.debug&&console.log("CALL rule "+this.getRuleName(Y.target.ruleIndex)+", ctx="+F.context);const ie=S.create(F.context,Y.followState.stateNumber);return new f({state:Y.target,context:ie},F)}getConflictingAlts(F){const Y=h.getConflictingAltSubsets(F);return h.getAlts(Y)}getConflictingAltsOrUniqueAlt(F){let Y=null;return F.uniqueAlt!==u.INVALID_ALT_NUMBER?(Y=new C,Y.add(F.uniqueAlt)):Y=F.conflictingAlts,Y}getTokenName(F){if(F===l.EOF)return"EOF";if(null!==this.parser&&null!==this.parser.literalNames){if(!(F>=this.parser.literalNames.length&&F>=this.parser.symbolicNames.length))return(this.parser.literalNames[F]||this.parser.symbolicNames[F])+"<"+F+">";console.log(F+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+F}getLookaheadName(F){return this.getTokenName(F.LA(1))}dumpDeadEndConfigs(F){console.log("dead end configs: ");const Y=F.getDeadEndConfigs();for(let ee=0;ee0){const j=ie.state.transitions[0];j instanceof AtomTransition?$="Atom "+this.getTokenName(j.label):j instanceof I&&($=(j instanceof D?"~":"")+"Set "+j.set)}console.error(ie.toString(this.parser,!0)+":"+$)}}noViableAlt(F,Y,ee,ie){return new U(this.parser,F,F.get(ie),F.LT(1),ee,Y)}getUniqueAlt(F){let Y=u.INVALID_ALT_NUMBER;for(let ee=0;ee "+ie+" upon "+this.getTokenName(ee)),null===ie?null:(ie=this.addDFAState(F,ie),null===Y||ee<-1||ee>this.atn.maxTokenType||(null===Y.edges&&(Y.edges=[]),Y.edges[ee+1]=ie,this.debug&&console.log("DFA=\n"+F.toString(null===this.parser?null:this.parser.literalNames,null===this.parser?null:this.parser.symbolicNames))),ie)}addDFAState(F,Y){if(Y===r.ERROR)return Y;const ee=F.states.get(Y);return null!==ee?ee:(Y.stateNumber=F.states.length,Y.configs.readOnly||(Y.configs.optimizeConfigs(this),Y.configs.setReadonly(!0)),F.states.add(Y),this.debug&&console.log("adding new DFA state: "+Y),Y)}reportAttemptingFullContext(F,Y,ee,ie,$){if(this.debug||this.retry_debug){const j=new w(ie,$+1);console.log("reportAttemptingFullContext decision="+F.decision+":"+ee+", input="+this.parser.getTokenStream().getText(j))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,F,ie,$,Y,ee)}reportContextSensitivity(F,Y,ee,ie,$){if(this.debug||this.retry_debug){const j=new w(ie,$+1);console.log("reportContextSensitivity decision="+F.decision+":"+ee+", input="+this.parser.getTokenStream().getText(j))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,F,ie,$,Y,ee)}reportAmbiguity(F,Y,ee,ie,$,j,G){if(this.debug||this.retry_debug){const V=new w(ee,ie+1);console.log("reportAmbiguity "+j+":"+G+", input="+this.parser.getTokenStream().getText(V))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,F,ee,ie,$,j,G)}}},7822:(Te,ne,g)=>{const{Map:t,BitSet:_,AltDict:C,hashStuff:E}=g(4137),u=g(1019),{RuleStopState:b}=g(8402),{ATNConfigSet:s}=g(2301),{ATNConfig:f}=g(4341),{SemanticContext:d}=g(449),l={SLL:0,LL:1,LL_EXACT_AMBIG_DETECTION:2,hasSLLConflictTerminatingPrediction:function(c,o){if(l.allConfigsInRuleStopStates(o))return!0;if(c===l.SLL&&o.hasSemanticContext){const h=new s;for(let p=0;p1)return!0;return!1},allSubsetsEqual:function(c){let o=null;for(let r=0;r{const{Set:t,Hash:_,equalArrays:C}=g(4137);class E{hashCode(){const l=new _;return this.updateHashCode(l),l.finish()}evaluate(l,c){}evalPrecedence(l,c){return this}static andContext(l,c){if(null===l||l===E.NONE)return c;if(null===c||c===E.NONE)return l;const o=new s(l,c);return 1===o.opnds.length?o.opnds[0]:o}static orContext(l,c){if(null===l)return c;if(null===c)return l;if(l===E.NONE||c===E.NONE)return E.NONE;const o=new f(l,c);return 1===o.opnds.length?o.opnds[0]:o}}class u extends E{constructor(l,c,o){super(),this.ruleIndex=void 0===l?-1:l,this.predIndex=void 0===c?-1:c,this.isCtxDependent=void 0!==o&&o}evaluate(l,c){return l.sempred(this.isCtxDependent?c:null,this.ruleIndex,this.predIndex)}updateHashCode(l){l.update(this.ruleIndex,this.predIndex,this.isCtxDependent)}equals(l){return this===l||l instanceof u&&this.ruleIndex===l.ruleIndex&&this.predIndex===l.predIndex&&this.isCtxDependent===l.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}E.NONE=new u;class b extends E{constructor(l){super(),this.precedence=void 0===l?0:l}evaluate(l,c){return l.precpred(c,this.precedence)}evalPrecedence(l,c){return l.precpred(c,this.precedence)?E.NONE:null}compareTo(l){return this.precedence-l.precedence}updateHashCode(l){l.update(this.precedence)}equals(l){return this===l||l instanceof b&&this.precedence===l.precedence}toString(){return"{"+this.precedence+">=prec}?"}static filterPrecedencePredicates(l){const c=[];return l.values().map(function(o){o instanceof b&&c.push(o)}),c}}class s extends E{constructor(l,c){super();const o=new t;l instanceof s?l.opnds.map(function(h){o.add(h)}):o.add(l),c instanceof s?c.opnds.map(function(h){o.add(h)}):o.add(c);const r=b.filterPrecedencePredicates(o);if(r.length>0){let h=null;r.map(function(p){(null===h||p.precedencec.toString());return(l.length>3?l.slice(3):l).join("&&")}}class f extends E{constructor(l,c){super();const o=new t;l instanceof f?l.opnds.map(function(h){o.add(h)}):o.add(l),c instanceof f?c.opnds.map(function(h){o.add(h)}):o.add(c);const r=b.filterPrecedencePredicates(o);if(r.length>0){const h=r.sort(function(v,y){return v.compareTo(y)});o.add(h[h.length-1])}this.opnds=Array.from(o.values())}equals(l){return this===l||l instanceof f&&C(this.opnds,l.opnds)}updateHashCode(l){l.update(this.opnds,"OR")}evaluate(l,c){for(let o=0;oc.toString());return(l.length>3?l.slice(3):l).join("||")}}Te.exports={SemanticContext:E,PrecedencePredicate:b,Predicate:u}},8935:(Te,ne,g)=>{const{Token:t}=g(7709),{IntervalSet:_}=g(7127),{Predicate:C,PrecedencePredicate:E}=g(449);class u{constructor(M){if(null==M)throw"target cannot be null.";this.target=M,this.isEpsilon=!1,this.label=null}}u.EPSILON=1,u.RANGE=2,u.RULE=3,u.PREDICATE=4,u.ATOM=5,u.ACTION=6,u.SET=7,u.NOT_SET=8,u.WILDCARD=9,u.PRECEDENCE=10,u.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],u.serializationTypes={EpsilonTransition:u.EPSILON,RangeTransition:u.RANGE,RuleTransition:u.RULE,PredicateTransition:u.PREDICATE,AtomTransition:u.ATOM,ActionTransition:u.ACTION,SetTransition:u.SET,NotSetTransition:u.NOT_SET,WildcardTransition:u.WILDCARD,PrecedencePredicateTransition:u.PRECEDENCE};class l extends u{constructor(M){super(M)}}class r extends u{constructor(M,w){super(M),this.serializationType=u.SET,null!=w?this.label=w:(this.label=new _,this.label.addOne(t.INVALID_TYPE))}matches(M,w,k){return this.label.contains(M)}toString(){return this.label.toString()}}Te.exports={Transition:u,AtomTransition:class b extends u{constructor(M,w){super(M),this.label_=w,this.label=this.makeLabel(),this.serializationType=u.ATOM}makeLabel(){const M=new _;return M.addOne(this.label_),M}matches(M,w,k){return this.label_===M}toString(){return this.label_}},SetTransition:r,NotSetTransition:class h extends r{constructor(M,w){super(M,w),this.serializationType=u.NOT_SET}matches(M,w,k){return M>=w&&M<=k&&!super.matches(M,w,k)}toString(){return"~"+super.toString()}},RuleTransition:class s extends u{constructor(M,w,k,I){super(M),this.ruleIndex=w,this.precedence=k,this.followState=I,this.serializationType=u.RULE,this.isEpsilon=!0}matches(M,w,k){return!1}},ActionTransition:class o extends u{constructor(M,w,k,I){super(M),this.serializationType=u.ACTION,this.ruleIndex=w,this.actionIndex=void 0===k?-1:k,this.isCtxDependent=void 0!==I&&I,this.isEpsilon=!0}matches(M,w,k){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}},EpsilonTransition:class f extends u{constructor(M,w){super(M),this.serializationType=u.EPSILON,this.isEpsilon=!0,this.outermostPrecedenceReturn=w}matches(M,w,k){return!1}toString(){return"epsilon"}},RangeTransition:class d extends u{constructor(M,w,k){super(M),this.serializationType=u.RANGE,this.start=w,this.stop=k,this.label=this.makeLabel()}makeLabel(){const M=new _;return M.addRange(this.start,this.stop),M}matches(M,w,k){return M>=this.start&&M<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}},WildcardTransition:class p extends u{constructor(M){super(M),this.serializationType=u.WILDCARD}matches(M,w,k){return M>=w&&M<=k}toString(){return"."}},PredicateTransition:class c extends l{constructor(M,w,k,I){super(M),this.serializationType=u.PREDICATE,this.ruleIndex=w,this.predIndex=k,this.isCtxDependent=I,this.isEpsilon=!0}matches(M,w,k){return!1}getPredicate(){return new C(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}},PrecedencePredicateTransition:class v extends l{constructor(M,w){super(M),this.serializationType=u.PRECEDENCE,this.precedence=w,this.isEpsilon=!0}matches(M,w,k){return!1}getPredicate(){return new E(this.precedence)}toString(){return this.precedence+" >= _p"}},AbstractPredicateTransition:l}},758:(Te,ne,g)=>{ne.ATN=g(1019),ne.ATNDeserializer=g(9880),ne.LexerATNSimulator=g(8557),ne.ParserATNSimulator=g(1346),ne.PredictionMode=g(7822)},1267:(Te,ne,g)=>{const{Set:t}=g(4137),{DFAState:_}=g(10),{StarLoopEntryState:C}=g(8402),{ATNConfigSet:E}=g(2301),{DFASerializer:u}=g(3015),{LexerDFASerializer:b}=g(3015);Te.exports=class s{constructor(d,l){if(void 0===l&&(l=0),this.atnStartState=d,this.decision=l,this._states=new t,this.s0=null,this.precedenceDfa=!1,d instanceof C&&d.isPrecedenceDecision){this.precedenceDfa=!0;const c=new _(null,new E);c.edges=[],c.isAcceptState=!1,c.requiresFullContext=!1,this.s0=c}}getPrecedenceStartState(d){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return d<0||d>=this.s0.edges.length?null:this.s0.edges[d]||null}setPrecedenceStartState(d,l){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";d<0||(this.s0.edges[d]=l)}setPrecedenceDfa(d){if(this.precedenceDfa!==d){if(this._states=new t,d){const l=new _(null,new E);l.edges=[],l.isAcceptState=!1,l.requiresFullContext=!1,this.s0=l}else this.s0=null;this.precedenceDfa=d}}sortedStates(){return this._states.values().sort(function(l,c){return l.stateNumber-c.stateNumber})}toString(d,l){return d=d||null,l=l||null,null===this.s0?"":new u(this,d,l).toString()}toLexerString(){return null===this.s0?"":new b(this).toString()}get states(){return this._states}}},3015:(Te,ne,g)=>{const t=g(4137);class _{constructor(u,b,s){this.dfa=u,this.literalNames=b||[],this.symbolicNames=s||[]}toString(){if(null===this.dfa.s0)return null;let u="";const b=this.dfa.sortedStates();for(let s=0;s"),u=u.concat(this.getStateString(c)),u=u.concat("\n"))}}}return 0===u.length?null:u}getEdgeLabel(u){return 0===u?"EOF":null!==this.literalNames||null!==this.symbolicNames?this.literalNames[u-1]||this.symbolicNames[u-1]:String.fromCharCode(u-1)}getStateString(u){const b=(u.isAcceptState?":":"")+"s"+u.stateNumber+(u.requiresFullContext?"^":"");return u.isAcceptState?null!==u.predicates?b+"=>"+t.arrayToString(u.predicates):b+"=>"+u.prediction.toString():b}}Te.exports={DFASerializer:_,LexerDFASerializer:class C extends _{constructor(u){super(u,null)}getEdgeLabel(u){return"'"+String.fromCharCode(u)+"'"}}}},10:(Te,ne,g)=>{const{ATNConfigSet:t}=g(2301),{Hash:_,Set:C}=g(4137);class u{constructor(s,f){return null===s&&(s=-1),null===f&&(f=new t),this.stateNumber=s,this.configs=f,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}getAltSet(){const s=new C;if(null!==this.configs)for(let f=0;f{ne.DFA=g(1267),ne.DFASerializer=g(3015).DFASerializer,ne.LexerDFASerializer=g(3015).LexerDFASerializer,ne.PredPrediction=g(10).PredPrediction},4294:(Te,ne,g)=>{const{BitSet:t}=g(4137),{ErrorListener:_}=g(5243),{Interval:C}=g(7127);Te.exports=class E extends _{constructor(b){super(),this.exactOnly=b=b||!0}reportAmbiguity(b,s,f,d,l,c,o){if(this.exactOnly&&!l)return;const r="reportAmbiguity d="+this.getDecisionDescription(b,s)+": ambigAlts="+this.getConflictingAlts(c,o)+", input='"+b.getTokenStream().getText(new C(f,d))+"'";b.notifyErrorListeners(r)}reportAttemptingFullContext(b,s,f,d,l,c){const o="reportAttemptingFullContext d="+this.getDecisionDescription(b,s)+", input='"+b.getTokenStream().getText(new C(f,d))+"'";b.notifyErrorListeners(o)}reportContextSensitivity(b,s,f,d,l,c){const o="reportContextSensitivity d="+this.getDecisionDescription(b,s)+", input='"+b.getTokenStream().getText(new C(f,d))+"'";b.notifyErrorListeners(o)}getDecisionDescription(b,s){const f=s.decision,d=s.atnStartState.ruleIndex,l=b.ruleNames;if(d<0||d>=l.length)return""+f;const c=l[d]||null;return null===c||0===c.length?""+f:`${f} (${c})`}getConflictingAlts(b,s){if(null!==b)return b;const f=new t;for(let d=0;d{class ne{syntaxError(C,E,u,b,s,f){}reportAmbiguity(C,E,u,b,s,f,d){}reportAttemptingFullContext(C,E,u,b,s,f){}reportContextSensitivity(C,E,u,b,s,f){}}class g extends ne{constructor(){super()}syntaxError(C,E,u,b,s,f){console.error("line "+u+":"+b+" "+s)}}g.INSTANCE=new g,Te.exports={ErrorListener:ne,ConsoleErrorListener:g,ProxyErrorListener:class t extends ne{constructor(C){if(super(),null===C)throw"delegates";return this.delegates=C,this}syntaxError(C,E,u,b,s,f){this.delegates.map(d=>d.syntaxError(C,E,u,b,s,f))}reportAmbiguity(C,E,u,b,s,f,d){this.delegates.map(l=>l.reportAmbiguity(C,E,u,b,s,f,d))}reportAttemptingFullContext(C,E,u,b,s,f){this.delegates.map(d=>d.reportAttemptingFullContext(C,E,u,b,s,f))}reportContextSensitivity(C,E,u,b,s,f){this.delegates.map(d=>d.reportContextSensitivity(C,E,u,b,s,f))}}}},1962:(Te,ne,g)=>{const{Token:t}=g(7709),{NoViableAltException:_,InputMismatchException:C,FailedPredicateException:E,ParseCancellationException:u}=g(8118),{ATNState:b}=g(8402),{Interval:s,IntervalSet:f}=g(7127);class d{reset(r){}recoverInline(r){}recover(r,h){}sync(r){}inErrorRecoveryMode(r){}reportError(r){}}class l extends d{constructor(){super(),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this.nextTokensContext=null,this.nextTokenState=0}reset(r){this.endErrorCondition(r)}beginErrorCondition(r){this.errorRecoveryMode=!0}inErrorRecoveryMode(r){return this.errorRecoveryMode}endErrorCondition(r){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1}reportMatch(r){this.endErrorCondition(r)}reportError(r,h){this.inErrorRecoveryMode(r)||(this.beginErrorCondition(r),h instanceof _?this.reportNoViableAlternative(r,h):h instanceof C?this.reportInputMismatch(r,h):h instanceof E?this.reportFailedPredicate(r,h):(console.log("unknown recognition error type: "+h.constructor.name),console.log(h.stack),r.notifyErrorListeners(h.getOffendingToken(),h.getMessage(),h)))}recover(r,h){this.lastErrorIndex===r.getInputStream().index&&null!==this.lastErrorStates&&this.lastErrorStates.indexOf(r.state)>=0&&r.consume(),this.lastErrorIndex=r._input.index,null===this.lastErrorStates&&(this.lastErrorStates=[]),this.lastErrorStates.push(r.state);const p=this.getErrorRecoverySet(r);this.consumeUntil(r,p)}sync(r){if(this.inErrorRecoveryMode(r))return;const h=r._interp.atn.states[r.state],p=r.getTokenStream().LA(1),v=r.atn.nextTokens(h);if(v.contains(p))return this.nextTokensContext=null,void(this.nextTokenState=b.INVALID_STATE_NUMBER);if(v.contains(t.EPSILON))null===this.nextTokensContext&&(this.nextTokensContext=r._ctx,this.nextTokensState=r._stateNumber);else switch(h.stateType){case b.BLOCK_START:case b.STAR_BLOCK_START:case b.PLUS_BLOCK_START:case b.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(r))return;throw new C(r);case b.PLUS_LOOP_BACK:case b.STAR_LOOP_BACK:this.reportUnwantedToken(r);const y=new f;y.addSet(r.getExpectedTokens());const M=y.addSet(this.getErrorRecoverySet(r));this.consumeUntil(r,M)}}reportNoViableAlternative(r,h){const p=r.getTokenStream();let v;v=null!==p?h.startToken.type===t.EOF?"":p.getText(new s(h.startToken.tokenIndex,h.offendingToken.tokenIndex)):"";const y="no viable alternative at input "+this.escapeWSAndQuote(v);r.notifyErrorListeners(y,h.offendingToken,h)}reportInputMismatch(r,h){const p="mismatched input "+this.getTokenErrorDisplay(h.offendingToken)+" expecting "+h.getExpectedTokens().toString(r.literalNames,r.symbolicNames);r.notifyErrorListeners(p,h.offendingToken,h)}reportFailedPredicate(r,h){r.notifyErrorListeners("rule "+r.ruleNames[r._ctx.ruleIndex]+" "+h.message,h.offendingToken,h)}reportUnwantedToken(r){if(this.inErrorRecoveryMode(r))return;this.beginErrorCondition(r);const h=r.getCurrentToken(),y="extraneous input "+this.getTokenErrorDisplay(h)+" expecting "+this.getExpectedTokens(r).toString(r.literalNames,r.symbolicNames);r.notifyErrorListeners(y,h,null)}reportMissingToken(r){if(this.inErrorRecoveryMode(r))return;this.beginErrorCondition(r);const h=r.getCurrentToken(),v="missing "+this.getExpectedTokens(r).toString(r.literalNames,r.symbolicNames)+" at "+this.getTokenErrorDisplay(h);r.notifyErrorListeners(v,h,null)}recoverInline(r){const h=this.singleTokenDeletion(r);if(null!==h)return r.consume(),h;if(this.singleTokenInsertion(r))return this.getMissingSymbol(r);throw new C(r)}singleTokenInsertion(r){const h=r.getTokenStream().LA(1),p=r._interp.atn;return!!p.nextTokens(p.states[r.state].transitions[0].target,r._ctx).contains(h)&&(this.reportMissingToken(r),!0)}singleTokenDeletion(r){const h=r.getTokenStream().LA(2);if(this.getExpectedTokens(r).contains(h)){this.reportUnwantedToken(r),r.consume();const v=r.getCurrentToken();return this.reportMatch(r),v}return null}getMissingSymbol(r){const h=r.getCurrentToken(),v=this.getExpectedTokens(r).first();let y;y=v===t.EOF?"":"";let M=h;const w=r.getTokenStream().LT(-1);return M.type===t.EOF&&null!==w&&(M=w),r.getTokenFactory().create(M.source,v,y,t.DEFAULT_CHANNEL,-1,-1,M.line,M.column)}getExpectedTokens(r){return r.getExpectedTokens()}getTokenErrorDisplay(r){if(null===r)return"";let h=r.text;return null===h&&(h=r.type===t.EOF?"":"<"+r.type+">"),this.escapeWSAndQuote(h)}escapeWSAndQuote(r){return"'"+(r=(r=(r=r.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}getErrorRecoverySet(r){const h=r._interp.atn;let p=r._ctx;const v=new f;for(;null!==p&&p.invokingState>=0;){const w=h.nextTokens(h.states[p.invokingState].transitions[0].followState);v.addSet(w),p=p.parentCtx}return v.removeOne(t.EPSILON),v}consumeUntil(r,h){let p=r.getTokenStream().LA(1);for(;p!==t.EOF&&!h.contains(p);)r.consume(),p=r.getTokenStream().LA(1)}}Te.exports={BailErrorStrategy:class c extends l{constructor(){super()}recover(r,h){let p=r._ctx;for(;null!==p;)p.exception=h,p=p.parentCtx;throw new u(h)}recoverInline(r){this.recover(r,new C(r))}sync(r){}},DefaultErrorStrategy:l}},8118:(Te,ne,g)=>{const{PredicateTransition:t}=g(8935),{Interval:_}=g(7127).Interval;class C extends Error{constructor(c){super(c.message),Error.captureStackTrace?Error.captureStackTrace(this,C):new Error,this.message=c.message,this.recognizer=c.recognizer,this.input=c.input,this.ctx=c.ctx,this.offendingToken=null,this.offendingState=-1,null!==this.recognizer&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return null!==this.recognizer?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}}function s(l,c){return null!==c?c:"failed predicate: {"+l+"}?"}class d extends Error{constructor(){super(),Error.captureStackTrace(this,d)}}Te.exports={RecognitionException:C,NoViableAltException:class u extends C{constructor(c,o,r,h,p,v){v=v||c._ctx,h=h||c.getCurrentToken(),r=r||c.getCurrentToken(),o=o||c.getInputStream(),super({message:"",recognizer:c,input:o,ctx:v}),this.deadEndConfigs=p,this.startToken=r,this.offendingToken=h}},LexerNoViableAltException:class E extends C{constructor(c,o,r,h){super({message:"",recognizer:c,input:o,ctx:null}),this.startIndex=r,this.deadEndConfigs=h}toString(){let c="";return this.startIndex>=0&&this.startIndex{Te.exports.RecognitionException=g(8118).RecognitionException,Te.exports.NoViableAltException=g(8118).NoViableAltException,Te.exports.LexerNoViableAltException=g(8118).LexerNoViableAltException,Te.exports.InputMismatchException=g(8118).InputMismatchException,Te.exports.FailedPredicateException=g(8118).FailedPredicateException,Te.exports.DiagnosticErrorListener=g(4294),Te.exports.BailErrorStrategy=g(1962).BailErrorStrategy,Te.exports.DefaultErrorStrategy=g(1962).DefaultErrorStrategy,Te.exports.ErrorListener=g(5243).ErrorListener},395:()=>{String.prototype.codePointAt||function(){"use strict";var Te=function(){let g;try{const t={},_=Object.defineProperty;g=_(t,t,t)&&_}catch{}return g}();const ne=function(g){if(null==this)throw TypeError();const t=String(this),_=t.length;let C=g?Number(g):0;if(C!=C&&(C=0),C<0||C>=_)return;const E=t.charCodeAt(C);let u;return E>=55296&&E<=56319&&_>C+1&&(u=t.charCodeAt(C+1),u>=56320&&u<=57343)?1024*(E-55296)+u-56320+65536:E};Te?Te(String.prototype,"codePointAt",{value:ne,configurable:!0,writable:!0}):String.prototype.codePointAt=ne}()},9458:()=>{String.fromCodePoint||function(){const Te=function(){let _;try{const C={},E=Object.defineProperty;_=E(C,C,C)&&E}catch{}return _}(),ne=String.fromCharCode,g=Math.floor,t=function(_){const E=[];let u,b,s=-1;const f=arguments.length;if(!f)return"";let d="";for(;++s1114111||g(l)!==l)throw RangeError("Invalid code point: "+l);l<=65535?E.push(l):(l-=65536,u=55296+(l>>10),b=l%1024+56320,E.push(u,b)),(s+1===f||E.length>16384)&&(d+=ne.apply(null,E),E.length=0)}return d};Te?Te(String,"fromCodePoint",{value:t,configurable:!0,writable:!0}):String.fromCodePoint=t}()},6261:(Te,ne,g)=>{const{Token:t}=g(7709),{Interval:_}=g(7127),C=new _(-1,-2);class E{}class u extends E{constructor(){super()}}class b extends u{constructor(){super()}}class f extends b{constructor(){super()}}class d extends f{constructor(){super()}}class o extends f{constructor(v){super(),this.parentCtx=null,this.symbol=v}getChild(v){return null}getSymbol(){return this.symbol}getParent(){return this.parentCtx}getPayload(){return this.symbol}getSourceInterval(){if(null===this.symbol)return C;const v=this.symbol.tokenIndex;return new _(v,v)}getChildCount(){return 0}accept(v){return v.visitTerminal(this)}getText(){return this.symbol.text}toString(){return this.symbol.type===t.EOF?"":this.symbol.text}}class h{walk(v,y){if(y instanceof d||void 0!==y.isErrorNode&&y.isErrorNode())v.visitErrorNode(y);else if(y instanceof f)v.visitTerminal(y);else{this.enterRule(v,y);for(let w=0;w{const t=g(4137),{Token:_}=g(7709),{ErrorNode:C,TerminalNode:E,RuleNode:u}=g(6261),b={toStringTree:function(s,f,d){f=f||null,null!==(d=d||null)&&(f=d.ruleNames);let l=b.getNodeText(s,f);l=t.escapeWhitespace(l,!1);const c=s.getChildCount();if(0===c)return l;let o="("+l+" ";c>0&&(l=b.toStringTree(s.getChild(0),f),o=o.concat(l));for(let r=1;r{const t=g(6261),_=g(7760);Te.exports={...t,Trees:_}},9804:function(){var Te;Te=typeof self<"u"?self:this,function(g){var t_searchParams="URLSearchParams"in Te,t_iterable="Symbol"in Te&&"iterator"in Symbol,t_blob="FileReader"in Te&&"Blob"in Te&&function(){try{return new Blob,!0}catch{return!1}}(),t_formData="FormData"in Te,t_arrayBuffer="ArrayBuffer"in Te;if(t_arrayBuffer)var C=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],E=ArrayBuffer.isView||function(T){return T&&C.indexOf(Object.prototype.toString.call(T))>-1};function u(T){if("string"!=typeof T&&(T=String(T)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(T))throw new TypeError("Invalid character in header field name");return T.toLowerCase()}function b(T){return"string"!=typeof T&&(T=String(T)),T}function s(T){var U={next:function(){var S=T.shift();return{done:void 0===S,value:S}}};return t_iterable&&(U[Symbol.iterator]=function(){return U}),U}function f(T){this.map={},T instanceof f?T.forEach(function(U,S){this.append(S,U)},this):Array.isArray(T)?T.forEach(function(U){this.append(U[0],U[1])},this):T&&Object.getOwnPropertyNames(T).forEach(function(U){this.append(U,T[U])},this)}function d(T){if(T.bodyUsed)return Promise.reject(new TypeError("Already read"));T.bodyUsed=!0}function l(T){return new Promise(function(U,S){T.onload=function(){U(T.result)},T.onerror=function(){S(T.error)}})}function c(T){var U=new FileReader,S=l(U);return U.readAsArrayBuffer(T),S}function h(T){if(T.slice)return T.slice(0);var U=new Uint8Array(T.byteLength);return U.set(new Uint8Array(T)),U.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(T){this._bodyInit=T,T?"string"==typeof T?this._bodyText=T:t_blob&&Blob.prototype.isPrototypeOf(T)?this._bodyBlob=T:t_formData&&FormData.prototype.isPrototypeOf(T)?this._bodyFormData=T:t_searchParams&&URLSearchParams.prototype.isPrototypeOf(T)?this._bodyText=T.toString():t_arrayBuffer&&t_blob&&function _(T){return T&&DataView.prototype.isPrototypeOf(T)}(T)?(this._bodyArrayBuffer=h(T.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t_arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(T)||E(T))?this._bodyArrayBuffer=h(T):this._bodyText=T=Object.prototype.toString.call(T):this._bodyText="",this.headers.get("content-type")||("string"==typeof T?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t_searchParams&&URLSearchParams.prototype.isPrototypeOf(T)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t_blob&&(this.blob=function(){var T=d(this);if(T)return T;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?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(c)}),this.text=function(){var T=d(this);if(T)return T;if(this._bodyBlob)return function o(T){var U=new FileReader,S=l(U);return U.readAsText(T),S}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function r(T){for(var U=new Uint8Array(T),S=new Array(U.length),R=0;R-1?U:T}(U.method||this.method||"GET"),this.mode=U.mode||this.mode||null,this.signal=U.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&S)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(S)}function w(T){var U=new FormData;return T.trim().split("&").forEach(function(S){if(S){var R=S.split("="),N=R.shift().replace(/\+/g," "),A=R.join("=").replace(/\+/g," ");U.append(decodeURIComponent(N),decodeURIComponent(A))}}),U}function k(T){var U=new f;return T.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(R){var N=R.split(":"),A=N.shift().trim();if(A){var F=N.join(":").trim();U.append(A,F)}}),U}function I(T,U){U||(U={}),this.type="default",this.status=void 0===U.status?200:U.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in U?U.statusText:"OK",this.headers=new f(U.headers),this.url=U.url||"",this._initBody(T)}M.prototype.clone=function(){return new M(this,{body:this._bodyInit})},p.call(M.prototype),p.call(I.prototype),I.prototype.clone=function(){return new I(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},I.error=function(){var T=new I(null,{status:0,statusText:""});return T.type="error",T};var D=[301,302,303,307,308];I.redirect=function(T,U){if(-1===D.indexOf(U))throw new RangeError("Invalid status code");return new I(null,{status:U,headers:{location:T}})},g.DOMException=Te.DOMException;try{new g.DOMException}catch{g.DOMException=function(U,S){this.message=U,this.name=S;var R=Error(U);this.stack=R.stack},g.DOMException.prototype=Object.create(Error.prototype),g.DOMException.prototype.constructor=g.DOMException}function O(T,U){return new Promise(function(S,R){var N=new M(T,U);if(N.signal&&N.signal.aborted)return R(new g.DOMException("Aborted","AbortError"));var A=new XMLHttpRequest;function F(){A.abort()}A.onload=function(){var Y={status:A.status,statusText:A.statusText,headers:k(A.getAllResponseHeaders()||"")};Y.url="responseURL"in A?A.responseURL:Y.headers.get("X-Request-URL"),S(new I("response"in A?A.response:A.responseText,Y))},A.onerror=function(){R(new TypeError("Network request failed"))},A.ontimeout=function(){R(new TypeError("Network request failed"))},A.onabort=function(){R(new g.DOMException("Aborted","AbortError"))},A.open(N.method,N.url,!0),"include"===N.credentials?A.withCredentials=!0:"omit"===N.credentials&&(A.withCredentials=!1),"responseType"in A&&t_blob&&(A.responseType="blob"),N.headers.forEach(function(Y,ee){A.setRequestHeader(ee,Y)}),N.signal&&(N.signal.addEventListener("abort",F),A.onreadystatechange=function(){4===A.readyState&&N.signal.removeEventListener("abort",F)}),A.send(typeof N._bodyInit>"u"?null:N._bodyInit)})}O.polyfill=!0,Te.fetch||(Te.fetch=O,Te.Headers=f,Te.Request=M,Te.Response=I),g.Headers=f,g.Request=M,g.Response=I,g.fetch=O,Object.defineProperty(g,"__esModule",{value:!0})}({})},59:Te=>{Te.exports=function(t){var _=new Date(t.getTime()),C=_.getTimezoneOffset();return _.setSeconds(0,0),6e4*C+_.getTime()%6e4}},2378:(Te,ne,g)=>{var t=g(8356);Te.exports=function _(C,E){var u=t(C),b=Number(E);return u.setDate(u.getDate()+b),u}},6200:(Te,ne,g)=>{var t=g(9627);Te.exports=function C(E,u){var b=Number(u);return t(E,36e5*b)}},9627:(Te,ne,g)=>{var t=g(8356);Te.exports=function _(C,E){var u=t(C).getTime(),b=Number(E);return new Date(u+b)}},5462:(Te,ne,g)=>{var t=g(9627);Te.exports=function C(E,u){var b=Number(u);return t(E,6e4*b)}},2482:(Te,ne,g)=>{var t=g(8356),_=g(590);Te.exports=function C(E,u){var b=t(E),s=Number(u),f=b.getMonth()+s,d=new Date(0);d.setFullYear(b.getFullYear(),f,1),d.setHours(0,0,0,0);var l=_(d);return b.setMonth(f,Math.min(l,b.getDate())),b}},5802:(Te,ne,g)=>{var t=g(9627);Te.exports=function _(C,E){var u=Number(E);return t(C,1e3*u)}},1818:(Te,ne,g)=>{var t=g(2378);Te.exports=function _(C,E){var u=Number(E);return t(C,7*u)}},6833:(Te,ne,g)=>{var t=g(2482);Te.exports=function _(C,E){var u=Number(E);return t(C,12*u)}},590:(Te,ne,g)=>{var t=g(8356);Te.exports=function _(C){var E=t(C),u=E.getFullYear(),b=E.getMonth(),s=new Date(0);return s.setFullYear(u,b+1,0),s.setHours(0,0,0,0),s.getDate()}},2057:Te=>{Te.exports=function ne(g){return g instanceof Date}},8356:(Te,ne,g)=>{var t=g(59),_=g(2057),C=36e5,E=6e4,b=/[T ]/,s=/:/,f=/^(\d{2})$/,d=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],l=/^(\d{4})/,c=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],o=/^-(\d{2})$/,r=/^-?(\d{3})$/,h=/^-?(\d{2})-?(\d{2})$/,p=/^-?W(\d{2})$/,v=/^-?W(\d{2})-?(\d{1})$/,y=/^(\d{2}([.,]\d*)?)$/,M=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,w=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,k=/([Z+-].*)$/,I=/^(Z)$/,D=/^([+-])(\d{2})$/,O=/^([+-])(\d{2}):?(\d{2})$/;function F(Y,ee,ie){ee=ee||0,ie=ie||0;var $=new Date(0);$.setUTCFullYear(Y,0,4);var G=7*ee+ie+1-($.getUTCDay()||7);return $.setUTCDate($.getUTCDate()+G),$}Te.exports=function T(Y,ee){if(_(Y))return new Date(Y.getTime());if("string"!=typeof Y)return new Date(Y);var $=(ee||{}).additionalDigits;$=null==$?2:Number($);var j=function U(Y){var $,ee={},ie=Y.split(b);if(s.test(ie[0])?(ee.date=null,$=ie[0]):(ee.date=ie[0],$=ie[1]),$){var j=k.exec($);j?(ee.time=$.replace(j[1],""),ee.timezone=j[1]):ee.time=$}return ee}(Y),G=function S(Y,ee){var j,ie=d[ee],$=c[ee];if(j=l.exec(Y)||$.exec(Y)){var G=j[1];return{year:parseInt(G,10),restDateString:Y.slice(G.length)}}if(j=f.exec(Y)||ie.exec(Y)){var V=j[1];return{year:100*parseInt(V,10),restDateString:Y.slice(V.length)}}return{year:null}}(j.date,$),K=function R(Y,ee){if(null===ee)return null;var ie,$,j;if(0===Y.length)return($=new Date(0)).setUTCFullYear(ee),$;if(ie=o.exec(Y))return $=new Date(0),j=parseInt(ie[1],10)-1,$.setUTCFullYear(ee,j),$;if(ie=r.exec(Y)){$=new Date(0);var V=parseInt(ie[1],10);return $.setUTCFullYear(ee,0,V),$}if(ie=h.exec(Y)){$=new Date(0),j=parseInt(ie[1],10)-1;var W=parseInt(ie[2],10);return $.setUTCFullYear(ee,j,W),$}return(ie=p.exec(Y))?F(ee,parseInt(ie[1],10)-1):(ie=v.exec(Y))?F(ee,parseInt(ie[1],10)-1,parseInt(ie[2],10)-1):null}(G.restDateString,G.year);if(K){var ve,ce=K.getTime(),ue=0;if(j.time&&(ue=function N(Y){var ee,ie,$;if(ee=y.exec(Y))return(ie=parseFloat(ee[1].replace(",",".")))%24*C;if(ee=M.exec(Y))return ie=parseInt(ee[1],10),$=parseFloat(ee[2].replace(",",".")),ie%24*C+$*E;if(ee=w.exec(Y)){ie=parseInt(ee[1],10),$=parseInt(ee[2],10);var j=parseFloat(ee[3].replace(",","."));return ie%24*C+$*E+1e3*j}return null}(j.time)),j.timezone)ve=function A(Y){var ee,ie;return(ee=I.exec(Y))?0:(ee=D.exec(Y))?(ie=60*parseInt(ee[2],10),"+"===ee[1]?-ie:ie):(ee=O.exec(Y))?(ie=60*parseInt(ee[2],10)+parseInt(ee[3],10),"+"===ee[1]?-ie:ie):0}(j.timezone)*E;else{var Ye=ce+ue,pt=new Date(Ye);ve=t(pt);var ct=new Date(Ye);ct.setDate(pt.getDate()+1);var Ct=t(ct)-t(pt);Ct>0&&(ve+=Ct)}return new Date(ce+ue+ve)}return new Date(Y)}},282:(Te,ne,g)=>{ne.formatArgs=function _(s){if(s[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+s[0]+(this.useColors?"%c ":" ")+"+"+Te.exports.humanize(this.diff),!this.useColors)return;const f="color: "+this.color;s.splice(1,0,f,"color: inherit");let d=0,l=0;s[0].replace(/%[a-zA-Z%]/g,c=>{"%%"!==c&&(d++,"%c"===c&&(l=d))}),s.splice(l,0,f)},ne.save=function C(s){try{s?ne.storage.setItem("debug",s):ne.storage.removeItem("debug")}catch{}},ne.load=function E(){let s;try{s=ne.storage.getItem("debug")}catch{}return!s&&typeof process<"u"&&"env"in process&&(s=process.env.DEBUG),s},ne.useColors=function t(){return!(!(typeof window<"u"&&window.process)||"renderer"!==window.process.type&&!window.process.__nwjs)||!(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},ne.storage=function u(){try{return localStorage}catch{}}(),ne.destroy=(()=>{let s=!1;return()=>{s||(s=!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`."))}})(),ne.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"],ne.log=console.debug||console.log||(()=>{}),Te.exports=g(741)(ne);const{formatters:b}=Te.exports;b.j=function(s){try{return JSON.stringify(s)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}}},741:(Te,ne,g)=>{Te.exports=function t(_){function E(o){let r,p,v,h=null;function y(...M){if(!y.enabled)return;const w=y,k=Number(new Date);w.diff=k-(r||k),w.prev=r,w.curr=k,r=k,M[0]=E.coerce(M[0]),"string"!=typeof M[0]&&M.unshift("%O");let D=0;M[0]=M[0].replace(/%([a-zA-Z%])/g,(T,U)=>{if("%%"===T)return"%";D++;const S=E.formatters[U];return"function"==typeof S&&(T=S.call(w,M[D]),M.splice(D,1),D--),T}),E.formatArgs.call(w,M),(w.log||E.log).apply(w,M)}return y.namespace=o,y.useColors=E.useColors(),y.color=E.selectColor(o),y.extend=u,y.destroy=E.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==h?h:(p!==E.namespaces&&(p=E.namespaces,v=E.enabled(o)),v),set:M=>{h=M}}),"function"==typeof E.init&&E.init(y),y}function u(o,r){const h=E(this.namespace+(typeof r>"u"?":":r)+o);return h.log=this.log,h}function d(o){return o.toString().substring(2,o.toString().length-2).replace(/\.\*\?$/,"*")}return E.debug=E,E.default=E,E.coerce=function l(o){return o instanceof Error?o.stack||o.message:o},E.disable=function s(){const o=[...E.names.map(d),...E.skips.map(d).map(r=>"-"+r)].join(",");return E.enable(""),o},E.enable=function b(o){let r;E.save(o),E.namespaces=o,E.names=[],E.skips=[];const h=("string"==typeof o?o:"").split(/[\s,]+/),p=h.length;for(r=0;r{E[o]=_[o]}),E.names=[],E.skips=[],E.formatters={},E.selectColor=function C(o){let r=0;for(let h=0;h{"use strict";var ne="%[a-f0-9]{2}",g=new RegExp("("+ne+")|([^%]+?)","gi"),t=new RegExp("("+ne+")+","gi");function _(u,b){try{return[decodeURIComponent(u.join(""))]}catch{}if(1===u.length)return u;var s=u.slice(0,b=b||1),f=u.slice(b);return Array.prototype.concat.call([],_(s),_(f))}function C(u){try{return decodeURIComponent(u)}catch{for(var b=u.match(g)||[],s=1;s"u"&&typeof process<"u"&&"[object process]"==={}.toString.call(process),r=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function M(){var Re=setTimeout;return function(){return Re(k,1)}}var w=new Array(1e3);function k(){for(var Re=0;Re{Te.exports=class ne{constructor(t){this.capabilityStatement=t}serverCan(t){return this.supportFor({capabilityType:"interaction",where:{code:t}})}resourceCan(t,_){return this.supportFor({resourceType:t,capabilityType:"interaction",where:{code:_}})}serverSearch(t){return this.supportFor({capabilityType:"searchParam",where:{name:t}})}resourceSearch(t,_){return this.supportFor({resourceType:t,capabilityType:"searchParam",where:{name:_}})}supportFor({resourceType:t,capabilityType:_,where:C}={}){let E;if(E=t?this.resourceCapabilities({resourceType:t}):this.serverCapabilities(),!E)return!1;const u=E[_];if(C&&u){const b=Object.keys(C)[0];return void 0!==u.find(f=>f[b]===C[b])}return void 0!==u}interactionsFor({resourceType:t}={}){const _=this.resourceCapabilities({resourceType:t});return void 0===_?[]:_.interaction.map(C=>C.code)}searchParamsFor({resourceType:t}={}){const _=this.resourceCapabilities({resourceType:t});return void 0===_||void 0===_.searchParam?[]:_.searchParam.map(C=>C.name)}resourceCapabilities({resourceType:t}={}){return this.serverCapabilities().resource.find(E=>E.type===t)}capabilityContents({resourceType:t,capabilityType:_}={}){const C=this.resourceCapabilities({resourceType:t});if(void 0!==C)return C[_]}serverCapabilities(){return this.capabilityStatement.rest.find(t=>"server"===t.mode)}}},3833:(Te,ne,g)=>{var t=g(9293).default;const _=g(8570),{authFromCapability:C,authFromWellKnown:E}=g(4205),u=g(5236),b=g(1336),s=g(1482),{createQueryString:f,validResourceType:d}=g(3097),{FetchQueue:l}=g(918),{deprecatePaginationArgs:c,deprecateHeaders:o}=g(1813),r=g(9799);Te.exports=class h{constructor({baseUrl:v,customHeaders:y,requestOptions:M,requestSigner:w,bearerToken:k}={}){this.httpClient=new u({baseUrl:v,customHeaders:y,requestOptions:M,requestSigner:w}),k&&(this.httpClient.bearerToken=k),this.resolver=new b(this),this.pagination=new s(this.httpClient)}static httpFor(v){return{request:u.requestFor(v),response:u.responseFor(v)}}get baseUrl(){return this.httpClient&&this.httpClient.baseUrl}set baseUrl(v){this.httpClient&&(this.httpClient.baseUrl=v)}get customHeaders(){return this.httpClient.customHeaders}set customHeaders(v){this.httpClient.customHeaders=v}set bearerToken(v){this.httpClient.bearerToken=v}resolve({reference:v,context:y,headers:M,options:w={}}={}){return this.resolver.resolve({reference:v,context:y,options:o(w,M)})}smartAuthMetadata({headers:v,options:y={}}={}){var M=this;return t(function*(){const w={options:o(y,v)};w.options.headers||(w.options.headers={}),w.options.headers.accept="application/fhir+json,application/json";const k=M.baseUrl.replace(/\/*$/,"/"),I=new l,D=I.buildJob(),O=I.buildJob(),T=I.buildJob(),U=[];return new Promise((S,R)=>{function N(A){U.push(A)===I.numJobs&&R(new Error(U.map(F=>F.message).join("; ")))}M.httpClient.request("GET",`${k}.well-known/smart-configuration`,O.addSignalOption(w)).then(A=>(I.safeAbortOthers(O),S(E(A)))).catch(A=>N(A)),M.capabilityStatement(D.addSignalOption(w)).then(A=>(I.safeAbortOthers(D),S(C(A)))).catch(A=>N(A)),M.httpClient.request("GET",`${k}.well-known/openid-configuration`,T.addSignalOption(w)).then(A=>(I.safeAbortOthers(T),S(E(A)))).catch(A=>N(A))})})()}capabilityStatement({headers:v,options:y={}}={}){return this.metadata||(this.metadata=this.httpClient.get("metadata",o(y,v))),this.metadata}request(v,{method:y="GET",options:M={},body:w}={}){return M.method&&M.method!==y&&console.warn(`WARNING: 'options.method' has been specified: ${M.method} but will be ignored. Use 'method' instead.`),this.httpClient.request(y,v,M,w)}read({resourceType:v,id:y,headers:M,options:w={}}={}){if(!d(v))throw new Error("Invalid resourceType",v);return this.httpClient.get(`${v}/${y}`,o(w,M))}vread({resourceType:v,id:y,version:M,headers:w,options:k={}}={}){if(!d(v))throw new Error("Invalid resourceType",v);return this.httpClient.get(`${v}/${y}/_history/${M}`,o(k,w))}create({resourceType:v,body:y,headers:M,options:w={}}={}){if(!d(v))throw new Error("Invalid resourceType",v);return this.httpClient.post(v,y,o(w,M))}delete({resourceType:v,id:y,headers:M,options:w={}}={}){if(!d(v))throw new Error("Invalid resourceType",v);return this.httpClient.delete(`${v}/${y}`,o(w,M))}update({resourceType:v,id:y,searchParams:M,body:w,headers:k,options:I={}}={}){if(!d(v))throw new Error("Invalid resourceType",v);if(y&&M)throw new Error("Conditional update with search params cannot be with id",v);if(M){const D=f(M);return this.httpClient.put(`${v}?${D}`,w,o(I,k))}return this.httpClient.put(`${v}/${y}`,w,o(I,k))}patch({resourceType:v,id:y,JSONPatch:M,headers:w,options:k={}}={}){if(!d(v))throw new Error("Invalid resourceType",v);const D={...o(k,w).headers||{},"Content-Type":"application/json-patch+json"};return this.httpClient.patch(`${v}/${y}`,M,{...k,headers:D})}batch({body:v,headers:y,options:M={}}={}){return this.httpClient.post("/",v,o(M,y))}transaction({body:v,headers:y,options:M={}}={}){return this.httpClient.post("/",v,o(M,y))}operation({name:v,resourceType:y,id:M,method:w="POST",input:k,options:I={}}={}){const D=["/"];if(y){if(!d(y))throw new Error("Invalid resourceType",y);D.push(`${y}/`)}return M&&D.push(`${M}/`),D.push(`${v.startsWith("$")?v:`$${v}`}`),"POST"===w.toUpperCase()?this.httpClient.post(D.join(""),k,I):"GET"===w.toUpperCase()?(k&&D.push(`?${_.stringify(k)}`),this.httpClient.get(D.join(""),I)):void 0}nextPage(v,y){const{bundle:M,options:w={}}=c(v,y);return this.pagination.nextPage(M,w)}prevPage(v,y){const{bundle:M,options:w={}}=c(v,y);return this.pagination.prevPage(M,w)}search({resourceType:v,compartment:y,searchParams:M,headers:w,options:k={}}={}){if(v&&!d(v))throw new Error("Invalid resourceType",v);if(y&&v)return this.compartmentSearch({resourceType:v,compartment:y,searchParams:M,options:o(k,w)});if(v)return this.resourceSearch({resourceType:v,searchParams:M,options:o(k,w)});if(M instanceof Object&&Object.keys(M).length>0)return this.systemSearch({searchParams:M,options:o(k,w)});throw new Error("search requires either searchParams or a resourceType")}resourceSearch({resourceType:v,searchParams:y,headers:M,options:w={}}={}){if(!d(v))throw new Error("Invalid resourceType",v);let k=v;return w.postSearch&&(k+="/_search"),this.baseSearch({searchPath:k,searchParams:y,headers:M,options:w})}systemSearch({searchParams:v,headers:y,options:M={}}={}){return this.baseSearch({searchPath:"/_search",searchParams:v,headers:y,options:M})}compartmentSearch({resourceType:v,compartment:y,searchParams:M,headers:w,options:k={}}={}){if(!d(v))throw new Error("Invalid resourceType",v);const{resourceType:I,id:D}=y;if(!d(I))throw new Error("Invalid compartmentType",I);let O=`/${I}/${D}/${v}`;return k.postSearch&&(O+="/_search"),this.baseSearch({searchPath:O,searchParams:M,headers:w,options:k})}baseSearch({searchPath:v,searchParams:y,headers:M,options:w}){const k=f(y),I=o(w,M);return this[w.postSearch?"postSearch":"getSearch"](v,k,I)}postSearch(v,y,M){const k={"Content-Type":"application/x-www-form-urlencoded",...M.headers},I={...M,headers:k};return this.httpClient.post(v,y,I)}getSearch(v,y,M){let w=v;return y&&(w+=`?${y}`),this.httpClient.get(w,M)}history({resourceType:v,id:y,headers:M,options:w={}}={}){if(v&&!d(v))throw new Error("Invalid resourceType",v);return y&&v?this.resourceHistory({resourceType:v,id:y,options:o(w,M)}):v?this.typeHistory({resourceType:v,options:o(w,M)}):this.systemHistory({options:o(w,M)})}resourceHistory({resourceType:v,id:y,headers:M,options:w={}}={}){if(!d(v))throw new Error("Invalid resourceType",v);return this.httpClient.get(`${v}/${y}/_history`,o(w,M))}typeHistory({resourceType:v,headers:y,options:M={}}={}){if(!d(v))throw new Error("Invalid resourceType",v);return this.httpClient.get(`${v}/_history`,o(M,y))}systemHistory({headers:v,options:y={}}={}){return this.httpClient.get("_history",o(y,v))}},Te.exports.CapabilityTool=r},1813:Te=>{Te.exports={deprecateHeaders:(t,_)=>_?(console.warn("WARNING: headers is deprecated and will be removed in the next major version. Use options.headers instead."),console.warn(JSON.stringify(_,null," ")),{headers:_,...t}):t,deprecatePaginationArgs:(t,_)=>{if(Object.prototype.hasOwnProperty.call(t,"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 C={bundle:t};return _&&(C.options={headers:_}),C}return t}}},918:(Te,ne,g)=>{const{AbortController:t}=g(98);class _{constructor(){this.controller=new t,this.resolving=!1}addSignalOption(u){return{signal:this.controller.signal,...u}}safeAbort(){this.resolving||this.controller.abort()}}Te.exports={FetchQueue:class C{constructor(){this.jobs=[],this.numJobs=0}buildJob(){const u=new _;return this.numJobs=this.jobs.push(u),u}safeAbortOthers(u){u.resolving=!0;for(let b=0,s=this.numJobs;b{Te.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})?$/}},5236:(Te,ne,g)=>{var t=g(9293).default;g(1653).polyfill(),g(9804);const{logRequestError:_,logRequestInfo:C,logResponseInfo:E}=g(4641),u={accept:"application/fhir+json"},b="__response",s="__request";let d,l,f=!1;try{d=g(3269),l=g(3269).HttpsAgent,f=!0}catch{C("HTTP Agent is not available")}const c=new WeakMap;function r({status:p,data:v,method:y,headers:M,url:w}){const k={response:{status:p,data:v},config:{method:y,url:w,headers:M}};return _(k),k}Te.exports=class nd{static lcKeys(v){return v&&Object.keys(v).reduce((y,M)=>(y[M.toLowerCase()]=v[M],y),{})}constructor({baseUrl:v,customHeaders:y={},requestOptions:M={},requestSigner:w}){this.baseUrl=v,this.customHeaders=y,this.baseRequestOptions=M,this.requestSigner=w}set baseUrl(v){if(!v)throw new Error("baseUrl cannot be blank");if("string"!=typeof v)throw new Error("baseUrl must be a string");this.baseUrlValue=v}get baseUrl(){return this.baseUrlValue}static responseFor(v){return v[b]}static requestFor(v){return v[s]}set bearerToken(v){this.authHeader={authorization:`Bearer ${v}`}}requestBuilder(v,y,M,w){const k={...this.baseRequestOptions,...M,method:v,body:(p=w,"string"==typeof p?p:JSON.stringify(p))};var p;let I={};return f||(I={keepalive:!Object.prototype.hasOwnProperty.call(k,"keepalive")||k.keepalive}),Object.assign(k,I,{headers:new Headers(this.mergeHeaders(M.headers))},function o(p,v={}){const y={baseUrl:p,agentOptions:v};return f?(c.get(y)||(p.startsWith("https")?c.set(y,{agent:new l(v)}):c.set(y,{agent:new d(v)})),c.get(y)):{}}(this.baseUrl,k)),this.requestSigner&&this.requestSigner(y,k),new Request(y,k)}request(v,y,M={},w){var k=this;return t(function*(){const I=k.expandUrl(y),D=k.requestBuilder(v,I,M,w);C(v,I,D.headers);const O=yield fetch(D),{status:T,headers:U}=O;E({status:T,response:O});const S=yield O.text();let R={};if(S)try{R=JSON.parse(S)}catch{throw R=S,r({status:T,data:R,method:v,headers:U,url:I})}if(!O.ok)throw r({status:T,data:R,method:v,headers:U,url:I});return Object.defineProperty(R,b,{writable:!1,enumerable:!1,value:O}),Object.defineProperty(R,s,{writable:!1,enumerable:!1,value:D}),R})()}get(v,y){var M=this;return t(function*(){return M.request("GET",v,y)})()}delete(v,y){var M=this;return t(function*(){return M.request("DELETE",v,y)})()}put(v,y,M={}){var w=this;return t(function*(){const k={"content-type":"application/fhir+json",...nd.lcKeys(M.headers)},I={...M,headers:k};return w.request("PUT",v,I,y)})()}post(v,y,M={}){var w=this;return t(function*(){const k={"content-type":"application/fhir+json",...nd.lcKeys(M.headers)},I={...M,headers:k};return w.request("POST",v,I,y)})()}patch(v,y,M){var w=this;return t(function*(){return w.request("PATCH",v,M,y)})()}expandUrl(v=""){return v.toLowerCase().startsWith("http")?v:this.baseUrl.endsWith("/")&&v.startsWith("/")?this.baseUrl+v.slice(1):this.baseUrl.endsWith("/")||v.startsWith("/")?this.baseUrl+v:`${this.baseUrl}/${v}`}mergeHeaders(v){const{lcKeys:y}=nd;return{...y(u),...y(this.authHeader),...y(this.customHeaders),...y(v)}}}},4641:(Te,ne,g)=>{const t=g(5293),_=g(282)("fhir-kit-client:error"),C=g(282)("fhir-kit-client:info");function E(l){return t(l)}function u(l){return E(l.raw&&"function"==typeof l.raw?l.raw():l)}Te.exports={logRequestError:function b(l){_.enabled&&(_("!!! Error"),l.response&&_(` Status: ${l.response.status}`),l.config&&(_(` ${l.config.method.toUpperCase()}: ${l.config.url}`),_(` Headers: ${u(l.config.headers)}`)),l.response&&l.response.data&&_(E(l.response.data)),_("!!! Request Error"))},logRequestInfo:function s(l,c,o){C.enabled&&(c&&C(`Request: ${l.toUpperCase()} ${c.toString()}`),C(`Request Headers: ${u(o)}`))},logResponseInfo:function f(l){C.enabled&&(C(`Response: ${l.status}`),l.data&&C(E(l.data)))},logError:function d(l){_.enabled&&_(l)}}},1482:Te=>{Te.exports=class ne{constructor(t){this.httpClient=t}nextPage(t,{headers:_}={}){const C=t.link.find(E=>"next"===E.relation);return C?this.httpClient.get(C.url,{headers:_}):void 0}prevPage(t,{headers:_}={}){const C=t.link.find(E=>E.relation.match(/^prev(ious)?$/));return C?this.httpClient.get(C.url,{headers:_}):void 0}}},1336:(Te,ne,g)=>{var t=g(9293).default;const{splitReference:_}=g(3097),{deprecateHeaders:C}=g(1813);Te.exports=class{constructor(E){this.client=E}resolve({reference:E,context:u,headers:b,options:s={}}={}){var f=this;return t(function*(){return void 0===u?E.startsWith("http")?f.resolveAbsoluteReference(E,C(s,b)):f.client.httpClient.get(E,C(s,b)):E.startsWith("#")?f.resolveContainedReference(E,u):f.resolveBundleReference(E,u,C(s,b))})()}resolveAbsoluteReference(E,u){var b=this;return t(function*(){if(E.startsWith(b.client.baseUrl))return b.client.httpClient.get(E,u);const{baseUrl:s,resourceType:f,id:d}=_(E);return new(g(3833))({baseUrl:s}).read({resourceType:f,id:d,options:u})})()}resolveContainedReference(E,u){if(u.contained){const b=E.slice(1),s=u.contained.find(f=>f.id===b);if(s)return s}throw new Error(`Unable to resolve contained reference: ${E}`)}resolveBundleReference(E,u,b){var s=this;return t(function*(){const f=new RegExp(`(^|/)${E}$`),d=u.entry.find(l=>f.test(l.fullUrl));return d?d.resource:s.resolve({reference:E,options:b})})()}}},4205:(Te,ne,g)=>{const{logError:_}=g(4641);Te.exports={authFromCapability:function C(u){const b={};try{return u.rest.forEach(s=>{s.security.extension.find(d=>"http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris"===d.url).extension.forEach(d=>{switch(d.url){case"authorize":b.authorizeUrl=new URL(d.valueUri);break;case"token":b.tokenUrl=new URL(d.valueUri);break;case"register":b.registerUrl=new URL(d.valueUri);break;case"manage":b.manageUrl=new URL(d.valueUri)}})}),b}catch(s){return _(s),b}},authFromWellKnown:function E(u){const{authorization_endpoint:b,token_endpoint:s,registration_endpoint:f}=u;return{authorizeUrl:b&&new URL(b),tokenUrl:s&&new URL(s),registerUrl:f&&new URL(f)}}}},3097:(Te,ne,g)=>{const t=g(8570),{fhirReferenceRegEx:_}=g(5760);Te.exports={createQueryString:function u(b){if(b instanceof Object&&Object.keys(b).length>0)return t.stringify(b)},splitReference:function C(b){if(!b.match(_))throw new Error(`${b} is not a recognized FHIR reference`);let s,f=b;b.startsWith("http")&&([,s]=_.exec(b),f=b.slice(s.length),s.endsWith("/")&&(s=s.slice(0,-1)));const[d,l]=f.split("/");return{baseUrl:s,resourceType:d,id:l}},validResourceType:function E(b){return!b.startsWith("/")&&!b.includes(":")&&/\S/.test(b)}}},9656:(Te,ne,g)=>{let t={};const _=g(3982),C=g(5987),E=g(8347);function u(b,s){let f;if(0===b.length||null==E.valData(b[0]))f=[];else{f=[b[0]];for(let d=1;d(this.$index=c,this.$total=s(l)),this.$total=f)},t.countFn=function(b){return b&&b.length?b.length:0},t.sumFn=function(b){return t.aggregateMacro.apply(this,[b.slice(1),s=>{let f=E.arraify(s).filter(l=>null!=E.valData(l)),d=E.arraify(this.$total).filter(l=>null!=E.valData(l));return 0===f.length||0===d.length?[]:_.plus(f,d)},b[0]])},t.minFn=function(b){return u(b,C.lt)},t.maxFn=function(b){return u(b,C.gt)},t.avgFn=function(b){const s=E.arraify(t.sumFn(b)),f=E.arraify(t.countFn(b));return 0===s.length||0===f.length?[]:_.div(s,f)},Te.exports=t},3286:(Te,ne,g)=>{const{deepEqual:t}=g(2488),_={};function C(E,u){for(var b=0;b1)throw new Error("Expected singleton on right side of contains, got "+JSON.stringify(u));return C(E,u)},_.in=function(E,u){if(0==E.length)return[];if(0==u.length)return!1;if(E.length>1)throw new Error("Expected singleton on right side of in, got "+JSON.stringify(u));return C(u,E)},Te.exports=_},7717:(Te,ne,g)=>{const t={},{distinctFn:_}=g(7113),C=g(7899),{deepEqual:E,maxCollSizeForDeepEqual:u}=g(2488);t.union=function(b,s){return _(b.concat(s))},t.combineFn=function(b,s){return b.concat(s)},t.intersect=function(b,s){let f=[];const d=b.length;let l=s.length;if(d&&l)if(d+l>u){let c={};s.forEach(o=>{const r=C(o);c[r]?l--:c[r]=!0});for(let o=0;o0;++o){let r=b[o],h=C(r);c[h]&&(f.push(r),c[h]=!1,l--)}}else f=_(b).filter(c=>s.some(o=>E(c,o)));return f},t.exclude=function(b,s){let f=[];const d=b.length,l=s.length;if(!l)return b;if(d)if(d+l>u){let c={};s.forEach(o=>{const r=C(o);c[r]=!0}),f=b.filter(o=>!c[C(o)])}else f=b.filter(c=>!s.some(o=>E(c,o)));return f},Te.exports=t},417:Te=>{Te.exports={reset:function(){this.nowDate=new Date,this.today=null,this.now=null,this.timeOfDay=null,this.localTimezoneOffset=null},today:null,now:null,timeOfDay:null}},6414:(Te,ne,g)=>{var t={};const _=g(8186),C=g(417),E=_.FP_Date,u=_.FP_DateTime,b=_.FP_Time;t.now=function(){if(!C.now){var f=u.isoDateTime(C.nowDate);C.now=new u(f)}return C.now},t.today=function(){if(!C.today){var f=E.isoDate(C.nowDate);C.today=new E(f)}return C.today},t.timeOfDay=function(){if(!C.timeOfDay){const f=u.isoTime(C.nowDate);C.timeOfDay=new b(f)}return C.timeOfDay},Te.exports=t},2488:(Te,ne,g)=>{const{FP_Type:t,FP_Quantity:_}=g(8186);var C=g(8347),E=g(8417),u=Array.prototype.slice,b=Object.keys,s=function(h){return"[object Arguments]"==Object.prototype.toString.call(h)};function f(h){return"string"==typeof h||h instanceof String}function d(h){return!isNaN(parseFloat(h))&&isFinite(h)}function l(h){return h.toUpperCase().replace(/\s+/," ")}function o(h){return null==h}Te.exports={deepEqual:function c(h,p,v){if(v||(v={}),(h=C.valDataConverted(h))===(p=C.valDataConverted(p)))return!0;if(v.fuzzy){if(f(h)&&f(p))return l(h)==l(p);if(d(h)&&d(p))return E.isEquivalent(h,p)}else if("number"==typeof h&&"number"==typeof p)return E.isEqual(h,p);if(h instanceof Date&&p instanceof Date)return h.getTime()===p.getTime();if(!h||!p||"object"!=typeof h&&"object"!=typeof p)return h===p;var y=h instanceof t,M=p instanceof t;if(y&&M)return v.fuzzy?h.equivalentTo(p):h.equals(p);if(y||M){let w=!1;return"number"==typeof h&&(h=new _(h,"'1'"),w=!0),"number"==typeof p&&(p=new _(p,"'1'"),w=!0),!!w&&(v.fuzzy?h.equivalentTo(p):h.equals(p))}return function r(h,p,v){var y,M;if(o(h)||o(p)||h.prototype!==p.prototype)return!1;if(s(h)||s(p))return c(h=s(h)?u.call(h):h,p=s(p)?u.call(p):p,v);try{var w=b(h),k=b(p)}catch{return!1}if(w.length!=k.length)return!1;for(w.sort(),k.sort(),y=w.length-1;y>=0;y--)if(w[y]!=k[y])return!1;if(1===w.length)return c(h[M=w[0]],p[M],v);for(y=w.length-1;y>=0;y--)if(!c(h[M=w[y]],p[M],v))return!1;return typeof h==typeof p}(h,p,v)},maxCollSizeForDeepEqual:6}},5987:(Te,ne,g)=>{const t=g(8347),{deepEqual:_}=g(2488),C=g(8186),E=C.FP_Type,u=C.FP_DateTime;var b={};function s(l,c){return t.isEmpty(l)||t.isEmpty(c)?[]:_(l,c)}function f(l,c){return t.isEmpty(l)&&t.isEmpty(c)?[!0]:t.isEmpty(l)||t.isEmpty(c)?[]:_(l,c,{fuzzy:!0})}function d(l,c){if(t.assertOnlyOne(l,"Singleton was expected"),t.assertOnlyOne(c,"Singleton was expected"),l=t.valDataConverted(l[0]),c=t.valDataConverted(c[0]),null!=l&&null!=c){let o=l instanceof u?u:l.constructor,r=c instanceof u?u:c.constructor;o!==r&&t.raiseError('Type of "'+l+'" ('+o.name+') did not match type of "'+c+'" ('+r.name+")","InequalityExpression")}return[l,c]}b.equal=function(l,c){return s(l,c)},b.unequal=function(l,c){var o=s(l,c);return void 0===o?void 0:!o},b.equival=function(l,c){return f(l,c)},b.unequival=function(l,c){return!f(l,c)},b.lt=function(l,c){const[o,r]=d(l,c);if(null==o||null==r)return[];if(o instanceof E){const h=o.compare(r);return null===h?[]:h<0}return o0}return o>r},b.lte=function(l,c){const[o,r]=d(l,c);if(null==o||null==r)return[];if(o instanceof E){const h=o.compare(r);return null===h?[]:h<=0}return o<=r},b.gte=function(l,c){const[o,r]=d(l,c);if(null==o||null==r)return[];if(o instanceof E){const h=o.compare(r);return null===h?[]:h>=0}return o>=r},Te.exports=b},8423:(Te,ne,g)=>{const t=g(8347),{whereMacro:_,distinctFn:C}=g(7113),E=g(2295),u=g(7899),{deepEqual:b,maxCollSizeForDeepEqual:s}=g(2488),f={};function d(l,c){const o=l.length,r=c.length;let h=o<=r;if(h)if(o+r>s){const p=c.reduce((v,y)=>(v[u(y)]=!0,v),{});h=!l.some(v=>!p[u(v)])}else for(let p=0,v=l.length;pb(y,t.valData(M)))}return h}f.emptyFn=t.isEmpty,f.notFn=function(l){let c=E.singleton(l,"Boolean");return"boolean"==typeof c?!c:[]},f.existsMacro=function(l,c){var o=l;return c?f.existsMacro(_.call(this,l,c)):!t.isEmpty(o)},f.allMacro=function(l,c){for(let o=0,r=l.length;o{const{version:t}=g(9852),_=g(171),C=g(8347);g(2600);const E=g(417);let u={},b=g(8423),s=g(7113),f=g(9656),d=g(7717),l=g(2295),c=g(5987),o=g(3286),r=g(3982),h=g(6897),p=g(2253),v=g(6414),y=g(2601);const M=g(8186),{FP_Date:w,FP_DateTime:k,FP_Time:I,FP_Quantity:D,FP_Type:O,ResourceNode:T,TypeInfo:U}=M;let S=T.makeResNode;function R(V,W,K,ce){if("Expr"===K)return function(ve){const Ye=C.arraify(ve);return u.doEval({...V,$this:Ye},Ye,ce)};if("AnyAtRoot"===K){const ve=V.$this||V.dataRoot;return u.doEval({...V,$this:ve},ve,ce)}if("Identifier"===K){if("TermExpression"===ce.type)return ce.text;throw new Error("Expected identifier node, got "+JSON.stringify(ce))}if("TypeSpecifier"===K)return u.TypeSpecifier(V,W,ce);let ue=u.doEval(V,W,ce);if("Any"===K)return ue;if(Array.isArray(K)){if(0===ue.length)return[];K=K[0]}return l.singleton(ue,K)}function A(V){return null==V||C.isEmpty(V)}function F(V,W,K,ce){var ue=u.invocationTable[W];if(ue&&ue.fn){var ve=ce?ce.length:0;if(2!==ve)throw new Error("Infix invoke should have arity 2");var Ye=ue.arity[ve];if(Ye){for(var pt=[],ct=0;ctct?.__path__?S(ct,ct.__path__.path,null,ct.__path__.fhirNodeDataType||null):ct),Ye={context:ve,ucum:"http://unitsofmeasure.org"};K&&(K=Object.keys(K).reduce((ct,Ct)=>(ct[Ct]=Array.isArray(K[Ct])?K[Ct].map(We=>We?.__path__?S(We,We.__path__.path||null,null,We.__path__.fhirNodeDataType||null):We):K[Ct]?.__path__?S(K[Ct],K[Ct].__path__.path||null,null,K[Ct].__path__.fhirNodeDataType||null):K[Ct],ct),{}));let pt={dataRoot:ve,vars:Object.assign(Ye,K),model:ce};return ue.traceFn&&(pt.customTraceFn=ue.traceFn),ue.userInvocationTable&&(pt.userInvocationTable=ue.userInvocationTable),u.doEval(pt,ve,W.children[0]).reduce((ct,Ct)=>{let We,Ne;return Ct instanceof T&&(We=Ct.path,Ne=Ct.fhirNodeDataType),(Ct=C.valData(Ct))instanceof O&&ue.resolveInternalTypes&&(Ct=Ct.toString()),null!=Ct&&(We&&"object"==typeof Ct&&!Ct.__path__&&Object.defineProperty(Ct,"__path__",{value:{path:We,fhirNodeDataType:Ne}}),ct.push(Ct)),ct},[])}function j(V,W,K){const ce=(K={resolveInternalTypes:!0,...K}).userInvocationTable;if(ce&&(K.userInvocationTable=Object.keys(ce).reduce((ue,ve)=>(ue[ve]=ce[ve].internalStructures?ce[ve]:{...ce[ve],fn:(...Ye)=>ce[ve].fn.apply(this,Ye.map(pt=>Array.isArray(pt)?pt.map(ct=>C.valData(ct)):pt))},ue),{})),"object"==typeof V){const ue=Y(V.expression);return function(ve,Ye){if(V.base){let pt=W.pathsDefinedElsewhere[V.base]||V.base;const ct=W&&W.path2Type[pt]||null;pt="BackboneElement"===ct||"Element"===ct?pt:ct||pt,ve=S(ve,pt,null,ct)}return U.model=W,ee(ve,ue,Ye,W,K)}}{const ue=Y(V);return function(ve,Ye){return U.model=W,ee(ve,ue,Ye,W,K)}}}u.invocationTable={empty:{fn:b.emptyFn},not:{fn:b.notFn},exists:{fn:b.existsMacro,arity:{0:[],1:["Expr"]}},all:{fn:b.allMacro,arity:{1:["Expr"]}},allTrue:{fn:b.allTrueFn},anyTrue:{fn:b.anyTrueFn},allFalse:{fn:b.allFalseFn},anyFalse:{fn:b.anyFalseFn},subsetOf:{fn:b.subsetOfFn,arity:{1:["AnyAtRoot"]}},supersetOf:{fn:b.supersetOfFn,arity:{1:["AnyAtRoot"]}},isDistinct:{fn:b.isDistinctFn},distinct:{fn:s.distinctFn},count:{fn:f.countFn},where:{fn:s.whereMacro,arity:{1:["Expr"]}},extension:{fn:s.extension,arity:{1:["String"]}},select:{fn:s.selectMacro,arity:{1:["Expr"]}},aggregate:{fn:f.aggregateMacro,arity:{1:["Expr"],2:["Expr","AnyAtRoot"]}},sum:{fn:f.sumFn},min:{fn:f.minFn},max:{fn:f.maxFn},avg:{fn:f.avgFn},single:{fn:s.singleFn},first:{fn:s.firstFn},last:{fn:s.lastFn},type:{fn:M.typeFn,arity:{0:[]}},ofType:{fn:s.ofTypeFn,arity:{1:["TypeSpecifier"]}},is:{fn:M.isFn,arity:{1:["TypeSpecifier"]}},as:{fn:M.asFn,arity:{1:["TypeSpecifier"]}},tail:{fn:s.tailFn},take:{fn:s.takeFn,arity:{1:["Integer"]}},skip:{fn:s.skipFn,arity:{1:["Integer"]}},combine:{fn:d.combineFn,arity:{1:["AnyAtRoot"]}},union:{fn:d.union,arity:{1:["AnyAtRoot"]}},intersect:{fn:d.intersect,arity:{1:["AnyAtRoot"]}},exclude:{fn:d.exclude,arity:{1:["AnyAtRoot"]}},iif:{fn:l.iifMacro,arity:{2:["Expr","Expr"],3:["Expr","Expr","Expr"]}},trace:{fn:l.traceFn,arity:{1:["String"],2:["String","Expr"]}},toInteger:{fn:l.toInteger},toDecimal:{fn:l.toDecimal},toString:{fn:l.toString},toDate:{fn:l.toDate},toDateTime:{fn:l.toDateTime},toTime:{fn:l.toTime},toBoolean:{fn:l.toBoolean},toQuantity:{fn:l.toQuantity,arity:{0:[],1:["String"]}},hasValue:{fn:l.hasValueFn},convertsToBoolean:{fn:l.createConvertsToFn(l.toBoolean,"boolean")},convertsToInteger:{fn:l.createConvertsToFn(l.toInteger,"number")},convertsToDecimal:{fn:l.createConvertsToFn(l.toDecimal,"number")},convertsToString:{fn:l.createConvertsToFn(l.toString,"string")},convertsToDate:{fn:l.createConvertsToFn(l.toDate,w)},convertsToDateTime:{fn:l.createConvertsToFn(l.toDateTime,k)},convertsToTime:{fn:l.createConvertsToFn(l.toTime,I)},convertsToQuantity:{fn:l.createConvertsToFn(l.toQuantity,D)},indexOf:{fn:h.indexOf,arity:{1:["String"]}},substring:{fn:h.substring,arity:{1:["Integer"],2:["Integer","Integer"]}},startsWith:{fn:h.startsWith,arity:{1:["String"]}},endsWith:{fn:h.endsWith,arity:{1:["String"]}},contains:{fn:h.containsFn,arity:{1:["String"]}},upper:{fn:h.upper},lower:{fn:h.lower},replace:{fn:h.replace,arity:{2:["String","String"]}},matches:{fn:h.matches,arity:{1:["String"]}},replaceMatches:{fn:h.replaceMatches,arity:{2:["String","String"]}},length:{fn:h.length},toChars:{fn:h.toChars},join:{fn:h.joinFn,arity:{0:[],1:["String"]}},split:{fn:h.splitFn,arity:{1:["String"]}},trim:{fn:h.trimFn},encode:{fn:h.encodeFn,arity:{1:["String"]}},decode:{fn:h.decodeFn,arity:{1:["String"]}},abs:{fn:r.abs},ceiling:{fn:r.ceiling},exp:{fn:r.exp},floor:{fn:r.floor},ln:{fn:r.ln},log:{fn:r.log,arity:{1:["Number"]},nullable:!0},power:{fn:r.power,arity:{1:["Number"]},nullable:!0},round:{fn:r.round,arity:{0:[],1:["Number"]}},sqrt:{fn:r.sqrt},truncate:{fn:r.truncate},now:{fn:v.now},today:{fn:v.today},timeOfDay:{fn:v.timeOfDay},repeat:{fn:s.repeatMacro,arity:{1:["Expr"]}},children:{fn:p.children},descendants:{fn:p.descendants},"|":{fn:d.union,arity:{2:["Any","Any"]}},"=":{fn:c.equal,arity:{2:["Any","Any"]},nullable:!0},"!=":{fn:c.unequal,arity:{2:["Any","Any"]},nullable:!0},"~":{fn:c.equival,arity:{2:["Any","Any"]}},"!~":{fn:c.unequival,arity:{2:["Any","Any"]}},"<":{fn:c.lt,arity:{2:["Any","Any"]},nullable:!0},">":{fn:c.gt,arity:{2:["Any","Any"]},nullable:!0},"<=":{fn:c.lte,arity:{2:["Any","Any"]},nullable:!0},">=":{fn:c.gte,arity:{2:["Any","Any"]},nullable:!0},containsOp:{fn:o.contains,arity:{2:["Any","Any"]}},inOp:{fn:o.in,arity:{2:["Any","Any"]}},isOp:{fn:M.isFn,arity:{2:["Any","TypeSpecifier"]}},asOp:{fn:M.asFn,arity:{2:["Any","TypeSpecifier"]}},"&":{fn:r.amp,arity:{2:["String","String"]}},"+":{fn:r.plus,arity:{2:["Any","Any"]},nullable:!0},"-":{fn:r.minus,arity:{2:["Any","Any"]},nullable:!0},"*":{fn:r.mul,arity:{2:["Any","Any"]},nullable:!0},"/":{fn:r.div,arity:{2:["Any","Any"]},nullable:!0},mod:{fn:r.mod,arity:{2:["Number","Number"]},nullable:!0},div:{fn:r.intdiv,arity:{2:["Number","Number"]},nullable:!0},or:{fn:y.orOp,arity:{2:[["Boolean"],["Boolean"]]}},and:{fn:y.andOp,arity:{2:[["Boolean"],["Boolean"]]}},xor:{fn:y.xorOp,arity:{2:[["Boolean"],["Boolean"]]}},implies:{fn:y.impliesOp,arity:{2:[["Boolean"],["Boolean"]]}}},u.InvocationExpression=function(V,W,K){return K.children.reduce(function(ce,ue){return u.doEval(V,ce,ue)},W)},u.TermExpression=function(V,W,K){return W&&(W=W.map(ce=>ce instanceof Object&&ce.resourceType?S(ce,ce.resourceType,null,ce.resourceType):ce)),u.doEval(V,W,K.children[0])},u.PolarityExpression=function(V,W,K){var ce=K.terminalNodeText[0],ue=u.doEval(V,W,K.children[0]);if(1!==ue.length)throw new Error("Unary "+ce+" can only be applied to an individual number or Quantity.");if(ue[0]instanceof D)"-"===ce&&(ue[0]=new D(-ue[0].value,ue[0].unit));else{if("number"!=typeof ue[0]||isNaN(ue[0]))throw new Error("Unary "+ce+" can only be applied to a number or Quantity.");"-"===ce&&(ue[0]=-ue[0])}return ue},u.TypeSpecifier=function(V,W,K){let ce,ue;const ve=K.text.split(".").map(pt=>pt.replace(/(^`|`$)/g,""));switch(ve.length){case 2:[ce,ue]=ve;break;case 1:[ue]=ve;break;default:throw new Error("Expected TypeSpecifier node, got "+JSON.stringify(K))}const Ye=new U({namespace:ce,name:ue});if(!Ye.isValid())throw new Error('"'+Ye+'" cannot be resolved to a valid type identifier');return Ye},u.ExternalConstantTerm=function(V,W,K){var ve=u.Identifier(V,W,K.children[0].children[0])[0],Ye=V.vars[ve];if(!(ve in V.vars))throw new Error("Attempting to access an undefined environment variable: "+ve);return null==Ye?[]:Ye instanceof Array?Ye:[Ye]},u.LiteralTerm=function(V,W,K){var ce=K.children[0];return ce?u.doEval(V,W,ce):[K.text]},u.StringLiteral=function(V,W,K){var ce=K.text.replace(/(^'|'$)/g,"");return[ce=ce.replace(/\\(u\d{4}|.)/g,function(ue,ve){switch(ue){case"\\r":return"\r";case"\\n":return"\n";case"\\t":return"\t";case"\\f":return"\f";default:return ve.length>1?String.fromCharCode("0x"+ve.slice(1)):ve}})]},u.BooleanLiteral=function(V,W,K){return"true"===K.text?[!0]:[!1]},u.QuantityLiteral=function(V,W,K){var ce=K.children[0],ue=Number(ce.terminalNodeText[0]),ve=ce.children[0],Ye=ve.terminalNodeText[0];return!Ye&&ve.children&&(Ye=ve.children[0].terminalNodeText[0]),[new D(ue,Ye)]},u.DateTimeLiteral=function(V,W,K){var ce=K.text.slice(1);return[new k(ce)]},u.TimeLiteral=function(V,W,K){var ce=K.text.slice(1);return[new I(ce)]},u.NumberLiteral=function(V,W,K){return[Number(K.text)]},u.Identifier=function(V,W,K){return[K.text.replace(/(^`|`$)/g,"")]},u.InvocationTerm=function(V,W,K){return u.doEval(V,W,K.children[0])},u.MemberInvocation=function(V,W,K){const ce=u.doEval(V,W,K.children[0])[0],ue=V.model;return W?C.isCapitalized(ce)?W.filter(ve=>ve instanceof T&&ve.path===ce):W.reduce(function(ve,Ye){return Ye=S(Ye,Ye.__path__?.path||null,null,Ye.__path__?.fhirNodeDataType||null),C.pushFn(ve,C.makeChildResNodes(Ye,ce,ue)),ve},[]):[]},u.IndexerExpression=function(V,W,K){const ue=K.children[1];var ve=u.doEval(V,W,K.children[0]),Ye=u.doEval(V,W,ue);if(C.isEmpty(Ye))return[];var pt=parseInt(Ye[0]);return ve&&C.isSome(pt)&&ve.length>pt&&pt>=0?[ve[pt]]:[]},u.Functn=function(V,W,K){return K.children.map(function(ce){return u.doEval(V,W,ce)})},u.realizeParams=function(V,W,K){return K&&K[0]&&K[0].children?K[0].children.map(function(ce){return u.doEval(V,W,ce)}):[]},u.FunctionInvocation=function(V,W,K){var ce=u.doEval(V,W,K.children[0]);const ue=ce[0];return ce.shift(),function N(V,W,K,ce){var ve,ue=V.userInvocationTable?.[W]??u.invocationTable[W];if(ue){if(ue.arity){var Ye=ce?ce.length:0,pt=ue.arity[Ye];if(pt){for(var ct=[],Ct=0;Ct{const K=U.fromValue(W?.__path__?new T(W,W.__path__?.path,null,W.__path__?.fhirNodeDataType):W);return`${K.namespace}.${K.name}`})},ucumUtils:g(9070).lG.getInstance(),util:C}},7113:(Te,ne,g)=>{const t=g(8347),{TypeInfo:_,ResourceNode:C}=g(8186),E=g(7899),{deepEqual:u,maxCollSizeForDeepEqual:b}=g(2488);Te.exports={whereMacro:function(f,d){return!1===f||f?t.flatten(f.filter((l,c)=>(this.$index=c,d(l)[0]))):[]},extension:function(f,d){return!1!==f&&!f||!d?[]:t.flatten(f.map((l,c)=>{this.$index=c;const o=l&&(l.data&&l.data.extension||l._data&&l._data.extension);return o?o.filter(r=>r.url===d).map(r=>C.makeResNode(r,"Extension",null,"Extension")):[]}))},selectMacro:function(f,d){return!1===f||f?t.flatten(f.map((l,c)=>(this.$index=c,d(l)))):[]},repeatMacro:function(f,d){if(!1!==f&&!f)return[];let l=[];const c={},o=f.length;for(let r=0;r{const v=E(p),y=!c[v];return y&&(c[v]=!0),y})}while(l.length_.fromValue(l).is(d))},distinctFn:function(f){let d=[];if(f.length>0)if(f.length>b){let l={};for(let c=0,o=f.length;c!u(l,c))}while(f.length)}return d}}},7899:(Te,ne,g)=>{const t=g(9070).lG.getInstance(),{roundToMaxPrecision:_}=g(8417),{valDataConverted:C}=g(8347),{FP_Type:E,FP_Quantity:u}=g(8186);function s(f){if(null===(f=C(f)))return null;if("number"==typeof f)return _(f);if(f instanceof Date)return f.toISOString();if(f instanceof u){const d=u._yearMonthConversionFactor[f.unit];if(d)return"_!yearMonth!_:"+d*f.value;{const l=u.toUcumQuantity(f.value,f.unit),c=t.getSpecifiedUnit(l.unit).unit;return"_!"+c.property_+"!_:"+c.magnitude_*l.value}}return f instanceof E?f.toString():"object"==typeof f?Array.isArray(f)?f.map(s):Object.keys(f).sort().reduce((d,l)=>(d[l]=s(f[l]),d),{}):f}Te.exports=function b(f){return JSON.stringify(s(f))}},2601:Te=>{Te.exports={orOp:function(g,t){if(Array.isArray(t)){if(!0===g)return!0;if(!1===g)return[];if(Array.isArray(g))return[]}return Array.isArray(g)?!0===t||[]:g||t},andOp:function(g,t){if(Array.isArray(t)){if(!0===g)return[];if(!1===g)return!1;if(Array.isArray(g))return[]}return Array.isArray(g)?!0===t&&[]:g&&t},xorOp:function(g,t){return Array.isArray(g)||Array.isArray(t)?[]:g&&!t||!g&&t},impliesOp:function(g,t){if(Array.isArray(t)){if(!0===g)return[];if(!1===g)return!0;if(Array.isArray(g))return[]}return Array.isArray(g)?!0===t||[]:!1===g||g&&t}}},3982:(Te,ne,g)=>{const{FP_Quantity:t,FP_Type:_}=g(8186),C=g(8347),E={};function u(s,f){let d;if(b(s))d=[];else{if(1!==s.length)throw new Error("Unexpected collection"+JSON.stringify(s)+"; expected singleton of type number");{const l=C.valData(s[0]);if(null==l)d=[];else{if("number"!=typeof l)throw new Error("Expected number, but got "+JSON.stringify(l));d=f(l)}}}return d}function b(s){return"number"!=typeof s&&0===s.length}E.amp=function(s,f){return(s||"")+(f||"")},E.plus=function(s,f){let d;if(1===s.length&&1===f.length){const l=C.valDataConverted(s[0]),c=C.valDataConverted(f[0]);null==l||null==c?d=[]:"string"==typeof l&&"string"==typeof c?d=l+c:"number"==typeof l?"number"==typeof c?d=l+c:c instanceof t&&(d=new t(l,"'1'").plus(c)):l instanceof _&&(c instanceof t?d=l.plus(c):c instanceof _?d=c.plus(l):"number"==typeof c&&(d=l.plus(new t(c,"'1'"))))}if(void 0===d)throw new Error("Cannot "+JSON.stringify(s)+" + "+JSON.stringify(f));return d},E.minus=function(s,f){if(1===s.length&&1===f.length){const d=C.valDataConverted(s[0]),l=C.valDataConverted(f[0]);if(null==d||null==l)return[];if("number"==typeof d){if("number"==typeof l)return d-l;if(l instanceof t)return new t(d,"'1'").plus(new t(-l.value,l.unit))}if(d instanceof _){if(l instanceof t)return d.plus(new t(-l.value,l.unit));if("number"==typeof l)return d.plus(new t(-l,"'1'"))}}throw new Error("Cannot "+JSON.stringify(s)+" - "+JSON.stringify(f))},E.mul=function(s,f){if(1===s.length&&1===f.length){const d=C.valDataConverted(s[0]),l=C.valDataConverted(f[0]);if(null==d||null==l)return[];if("number"==typeof d){if("number"==typeof l)return d*l;if(l instanceof t)return new t(d,"'1'").mul(l)}if(d instanceof _){if(l instanceof t)return d.mul(l);if("number"==typeof l)return d.mul(new t(l,"'1'"))}}throw new Error("Cannot "+JSON.stringify(s)+" * "+JSON.stringify(f))},E.div=function(s,f){if(1===s.length&&1===f.length){const d=C.valDataConverted(s[0]),l=C.valDataConverted(f[0]);if(null==d||null==l)return[];if("number"==typeof d){if("number"==typeof l)return 0===l?[]:d/l;if(l instanceof t)return new t(d,"'1'").div(l)}if(d instanceof _){if(l instanceof t)return d.div(l);if("number"==typeof l)return d.div(new t(l,"'1'"))}}throw new Error("Cannot "+JSON.stringify(s)+" / "+JSON.stringify(f))},E.intdiv=function(s,f){return 0===f?[]:Math.floor(s/f)},E.mod=function(s,f){return 0===f?[]:s%f},E.abs=function(s){let f;if(b(s))f=[];else{if(1!==s.length)throw new Error("Unexpected collection"+JSON.stringify(s)+"; expected singleton of type number or Quantity");var d=C.valData(s[0]);if(null==d)f=[];else if("number"==typeof d)f=Math.abs(d);else{if(!(d instanceof t))throw new Error("Expected number or Quantity, but got "+JSON.stringify(d||s));f=new t(Math.abs(d.value),d.unit)}}return f},E.ceiling=function(s){return u(s,Math.ceil)},E.exp=function(s){return u(s,Math.exp)},E.floor=function(s){return u(s,Math.floor)},E.ln=function(s){return u(s,Math.log)},E.log=function(s,f){return u(s,d=>Math.log(d)/Math.log(f))},E.power=function(s,f){return u(s,d=>{const l=Math.pow(d,f);return isNaN(l)?[]:l})},E.round=function(s,f){return u(s,d=>{if(void 0===f)return Math.round(d);{let l=Math.pow(10,f);return Math.round(d*l)/l}})},E.sqrt=function(s){return u(s,f=>f<0?[]:Math.sqrt(f))},E.truncate=function(s){return u(s,Math.trunc)},Te.exports=E},2295:(Te,ne,g)=>{var t=g(8347),_=g(8186);const{FP_Quantity:C,TypeInfo:E}=_;var u={iifMacro:function(p,v,y,M){return t.isTrue(v(p))?y(p):M?M(p):[]},traceFn:function(p,v,y){return this.customTraceFn?this.customTraceFn(y?y(p):p,v??""):y?console.log("TRACE:["+(v||"")+"]",JSON.stringify(y(p),null," ")):console.log("TRACE:["+(v||"")+"]",JSON.stringify(p,null," ")),p}},b=/^[+-]?\d+$/;u.toInteger=function(p){if(1!==p.length)return[];var v=t.valData(p[0]);return!1===v?0:!0===v?1:"number"==typeof v?Number.isInteger(v)?v:[]:"string"==typeof v&&b.test(v)?parseInt(v):[]};const s=/^((\+|-)?\d+(\.\d+)?)\s*(('[^']+')|([a-zA-Z]+))?$/;u.toQuantity=function(p,v){let y;if(p.length>1)throw new Error("Could not convert to quantity: input collection contains multiple items");if(1===p.length){if(v){const k=C._calendarDuration2Seconds[this.unit],I=C._calendarDuration2Seconds[v];if(!k!=!I&&(k>1||I>1))return null;C.mapTimeUnitsToUCUMCode[v]||(v=`'${v}'`)}var M=t.valDataConverted(p[0]);let w;if("number"==typeof M)y=new C(M,"'1'");else if(M instanceof C)y=M;else if("boolean"==typeof M)y=new C(M?1:0,"'1'");else if("string"==typeof M&&(w=s.exec(M))){const I=w[5],D=w[6];(!D||C.mapTimeUnitsToUCUMCode[D])&&(y=new C(Number(w[1]),I||D||"'1'"))}y&&v&&y.unit!==v&&(y=C.convUnitTo(y.unit,y.value,v))}return y||[]};var d=/^[+-]?\d+(\.\d+)?$/;function l(p){let v=p.slice(3);u["to"+v]=function(y){var M=[];if(y.length>1)throw Error("to "+v+" called for a collection of length "+y.length);if(1===y.length){var w=t.valData(y[0]);if("string"==typeof w){var k=_[p].checkString(w);k&&(M=k)}}return M}}u.toDecimal=function(p){if(1!==p.length)return[];var v=t.valData(p[0]);return!1===v?0:!0===v?1:"number"==typeof v?v:"string"==typeof v&&d.test(v)?parseFloat(v):[]},u.toString=function(p){if(1!==p.length)return[];var v=t.valDataConverted(p[0]);return null==v?[]:v.toString()},l("FP_Date"),l("FP_DateTime"),l("FP_Time");const c=["true","t","yes","y","1","1.0"].reduce((p,v)=>(p[v]=!0,p),{}),o=["false","f","no","n","0","0.0"].reduce((p,v)=>(p[v]=!0,p),{});u.toBoolean=function(p){if(1!==p.length)return[];const v=t.valData(p[0]);switch(typeof v){case"boolean":return v;case"number":if(1===v)return!0;if(0===v)return!1;break;case"string":const y=v.toLowerCase();if(c[y])return!0;if(o[y])return!1}return[]},u.createConvertsToFn=function(p,v){return"string"==typeof v?function(y){return 1!==y.length?[]:typeof p(y)===v}:function(y){return 1!==y.length?[]:p(y)instanceof v}};const r={Integer:function(p){if(Number.isInteger(p))return p},Boolean:function(p){return!0!==p&&!1!==p||p},Number:function(p){if("number"==typeof p)return p},String:function(p){if("string"==typeof p)return p}};u.singleton=function(p,v){if(p.length>1)throw new Error("Unexpected collection"+JSON.stringify(p)+"; expected singleton of type "+v);if(0===p.length)return[];const y=t.valData(p[0]);if(null==y)return[];const M=r[v];if(M){const w=M(y);if(void 0!==w)return w;throw new Error(`Expected ${v.toLowerCase()}, but got: ${JSON.stringify(p)}`)}throw new Error("Not supported type "+v)};const h=new Set;["instant","time","date","dateTime","base64Binary","decimal","integer64","boolean","string","code","markdown","id","integer","unsignedInt","positiveInt","uri","oid","uuid","canonical","url","Integer","Decimal","String","Date","DateTime","Time"].forEach(p=>h.add(p)),u.hasValueFn=function(p){return 1===p.length&&null!=t.valData(p[0])&&h.has(E.fromValue(p[0]).name)},Te.exports=u},2253:(Te,ne,g)=>{const t=g(8347);var _={children:function(C){let E=this.model;return C.reduce(function(u,b){let s=t.valData(b);if(null==s)return u;if("object"==typeof s){for(var f of Object.keys(s))t.pushFn(u,t.makeChildResNodes(b,f,E));return u}return u},[])},descendants:function(C){for(var E=_.children.call(this,C),u=[];E.length>0;)t.pushFn(u,E),E=_.children.call(this,E);return u}};Te.exports=_},8417:Te=>{let ne={};function g(E){const b=/(\d+)(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/.exec(""+ +E);if(!b)return 0;const s=b[2];return Math.max(0,("0"===s?0:(s||"").length)-(b[3]||0))}function t(E,u){const b=Math.pow(10,u);return Math.round(E*b)/b}const C=ne.roundToMaxPrecision=function(E){return 1e-8*Math.round(E/1e-8)};ne.isEquivalent=function(E,u){if(Number.isInteger(E)&&Number.isInteger(u))return E===u;const b=Math.min(g(E),g(u));return 0===b?Math.round(E)===Math.round(u):t(E,b)===t(u,b)},ne.isEqual=function(E,u){return C(E)===C(u)},Te.exports=ne},3359:(Te,ne,g)=>{ne.atn=g(758),ne.codepointat=g(395),ne.dfa=g(6945),ne.fromcodepoint=g(9458),ne.tree=g(2445),ne.error=g(321),ne.Token=g(7709).Token,ne.CommonToken=g(7709).CommonToken,ne.InputStream=g(2592),ne.CommonTokenStream=g(6842),ne.Lexer=g(9258),ne.Parser=g(6309);var t=g(3260);ne.PredictionContextCache=t.PredictionContextCache,ne.ParserRuleContext=g(1900),ne.Interval=g(7127).Interval,ne.IntervalSet=g(7127).IntervalSet,ne.Utils=g(4137),ne.LL1Analyzer=g(9441).LL1Analyzer},861:(Te,ne,g)=>{const t=g(3359),_=["\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(""),C=(new t.atn.ATNDeserializer).deserialize(_),E=C.decisionToState.map((b,s)=>new t.dfa.DFA(b,s));class u extends t.Lexer{static grammarFileName="FHIRPath.g4";static channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"];static modeNames=["DEFAULT_MODE"];static 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'"];static 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"];static 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"];constructor(s){super(s),this._interp=new t.atn.LexerATNSimulator(this,C,E,new t.PredictionContextCache)}get atn(){return C}}u.EOF=t.Token.EOF,u.T__0=1,u.T__1=2,u.T__2=3,u.T__3=4,u.T__4=5,u.T__5=6,u.T__6=7,u.T__7=8,u.T__8=9,u.T__9=10,u.T__10=11,u.T__11=12,u.T__12=13,u.T__13=14,u.T__14=15,u.T__15=16,u.T__16=17,u.T__17=18,u.T__18=19,u.T__19=20,u.T__20=21,u.T__21=22,u.T__22=23,u.T__23=24,u.T__24=25,u.T__25=26,u.T__26=27,u.T__27=28,u.T__28=29,u.T__29=30,u.T__30=31,u.T__31=32,u.T__32=33,u.T__33=34,u.T__34=35,u.T__35=36,u.T__36=37,u.T__37=38,u.T__38=39,u.T__39=40,u.T__40=41,u.T__41=42,u.T__42=43,u.T__43=44,u.T__44=45,u.T__45=46,u.T__46=47,u.T__47=48,u.T__48=49,u.T__49=50,u.T__50=51,u.T__51=52,u.T__52=53,u.T__53=54,u.DATETIME=55,u.TIME=56,u.IDENTIFIER=57,u.DELIMITEDIDENTIFIER=58,u.STRING=59,u.NUMBER=60,u.WS=61,u.COMMENT=62,u.LINE_COMMENT=63,Te.exports=u},7516:(Te,ne,g)=>{const t=g(3359);Te.exports=class _ extends t.tree.ParseTreeListener{enterEntireExpression(E){}exitEntireExpression(E){}enterIndexerExpression(E){}exitIndexerExpression(E){}enterPolarityExpression(E){}exitPolarityExpression(E){}enterAdditiveExpression(E){}exitAdditiveExpression(E){}enterMultiplicativeExpression(E){}exitMultiplicativeExpression(E){}enterUnionExpression(E){}exitUnionExpression(E){}enterOrExpression(E){}exitOrExpression(E){}enterAndExpression(E){}exitAndExpression(E){}enterMembershipExpression(E){}exitMembershipExpression(E){}enterInequalityExpression(E){}exitInequalityExpression(E){}enterInvocationExpression(E){}exitInvocationExpression(E){}enterEqualityExpression(E){}exitEqualityExpression(E){}enterImpliesExpression(E){}exitImpliesExpression(E){}enterTermExpression(E){}exitTermExpression(E){}enterTypeExpression(E){}exitTypeExpression(E){}enterInvocationTerm(E){}exitInvocationTerm(E){}enterLiteralTerm(E){}exitLiteralTerm(E){}enterExternalConstantTerm(E){}exitExternalConstantTerm(E){}enterParenthesizedTerm(E){}exitParenthesizedTerm(E){}enterNullLiteral(E){}exitNullLiteral(E){}enterBooleanLiteral(E){}exitBooleanLiteral(E){}enterStringLiteral(E){}exitStringLiteral(E){}enterNumberLiteral(E){}exitNumberLiteral(E){}enterDateTimeLiteral(E){}exitDateTimeLiteral(E){}enterTimeLiteral(E){}exitTimeLiteral(E){}enterQuantityLiteral(E){}exitQuantityLiteral(E){}enterExternalConstant(E){}exitExternalConstant(E){}enterMemberInvocation(E){}exitMemberInvocation(E){}enterFunctionInvocation(E){}exitFunctionInvocation(E){}enterThisInvocation(E){}exitThisInvocation(E){}enterIndexInvocation(E){}exitIndexInvocation(E){}enterTotalInvocation(E){}exitTotalInvocation(E){}enterFunctn(E){}exitFunctn(E){}enterParamList(E){}exitParamList(E){}enterQuantity(E){}exitQuantity(E){}enterUnit(E){}exitUnit(E){}enterDateTimePrecision(E){}exitDateTimePrecision(E){}enterPluralDateTimePrecision(E){}exitPluralDateTimePrecision(E){}enterTypeSpecifier(E){}exitTypeSpecifier(E){}enterQualifiedIdentifier(E){}exitQualifiedIdentifier(E){}enterIdentifier(E){}exitIdentifier(E){}}},7612:(Te,ne,g)=>{const t=g(3359),_=g(7516),C=["\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\x03","P\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(""),E=(new t.atn.ATNDeserializer).deserialize(C),u=E.decisionToState.map((Se,Q)=>new t.dfa.DFA(Se,Q)),b=new t.PredictionContextCache;class s extends t.Parser{static grammarFileName="FHIRPath.g4";static 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'"];static 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"];static ruleNames=["entireExpression","expression","term","literal","externalConstant","invocation","functn","paramList","quantity","unit","dateTimePrecision","pluralDateTimePrecision","typeSpecifier","qualifiedIdentifier","identifier"];constructor(Q){super(Q),this._interp=new t.atn.ParserATNSimulator(this,E,u,b),this.ruleNames=s.ruleNames,this.literalNames=s.literalNames,this.symbolicNames=s.symbolicNames}get atn(){return E}sempred(Q,pe,Re){if(1===pe)return this.expression_sempred(Q,Re);throw"No predicate with index:"+pe}expression_sempred(Q,pe){switch(pe){case 0:return this.precpred(this._ctx,10);case 1:return this.precpred(this._ctx,9);case 2:return this.precpred(this._ctx,8);case 3:return this.precpred(this._ctx,7);case 4:return this.precpred(this._ctx,5);case 5:return this.precpred(this._ctx,4);case 6:return this.precpred(this._ctx,3);case 7:return this.precpred(this._ctx,2);case 8:return this.precpred(this._ctx,1);case 9:return this.precpred(this._ctx,13);case 10:return this.precpred(this._ctx,12);case 11:return this.precpred(this._ctx,6);default:throw"No predicate with index:"+pe}}entireExpression(){let Q=new f(this,this._ctx,this.state);this.enterRule(Q,0,s.RULE_entireExpression);try{this.enterOuterAlt(Q,1),this.state=30,this.expression(0),this.state=31,this.match(s.EOF)}catch(pe){if(!(pe instanceof t.error.RecognitionException))throw pe;Q.exception=pe,this._errHandler.reportError(this,pe),this._errHandler.recover(this,pe)}finally{this.exitRule()}return Q}expression(Q){void 0===Q&&(Q=0);const pe=this._ctx,Re=this.state;let bt=new d(this,this._ctx,Re),it=bt;this.enterRecursionRule(bt,2,s.RULE_expression,Q);var He=0;try{switch(this.enterOuterAlt(bt,1),this.state=37,this._errHandler.sync(this),this._input.LA(1)){case s.T__15:case s.T__16:case s.T__21:case s.T__22:case s.T__27:case s.T__29:case s.T__31:case s.T__32:case s.T__33:case s.T__34:case s.T__35:case s.T__36:case s.DATETIME:case s.TIME:case s.IDENTIFIER:case s.DELIMITEDIDENTIFIER:case s.STRING:case s.NUMBER:bt=new D(this,bt),this._ctx=bt,it=bt,this.state=34,this.term();break;case s.T__3:case s.T__4:bt=new c(this,bt),this._ctx=bt,it=bt,this.state=35,(He=this._input.LA(1))===s.T__3||He===s.T__4?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=36,this.expression(11);break;default:throw new t.error.NoViableAltException(this)}this._ctx.stop=this._input.LT(-1),this.state=79,this._errHandler.sync(this);for(var De=this._interp.adaptivePredict(this._input,2,this._ctx);2!=De&&De!=t.atn.ATN.INVALID_ALT_NUMBER;){if(1===De)switch(null!==this._parseListeners&&this.triggerExitRuleEvent(),it=bt,this.state=77,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,1,this._ctx)){case 1:if(bt=new r(this,new d(this,pe,Re)),this.pushNewRecursionContext(bt,2,s.RULE_expression),this.state=39,!this.precpred(this._ctx,10))throw new t.error.FailedPredicateException(this,"this.precpred(this._ctx, 10)");this.state=40,!(-32&(He=this._input.LA(1)))&&1<{const t=g(3359),_=g(861),C=g(7612),E=g(7516);class u extends t.error.ErrorListener{constructor(f){super(),this.errors=f}syntaxError(f,d,l,c,o,r){this.errors.push([f,d,l,c,o,r])}}Te.exports={parse:function(s){var f=new t.InputStream(s),d=new _(f),l=new t.CommonTokenStream(d),c=new C(l);c.buildParseTrees=!0;var o=[],r=new u(o);d.removeErrorListeners(),d.addErrorListener(r),c.removeErrorListeners(),c.addErrorListener(r);var h=c.entireExpression();class p extends E{constructor(){super()}}var y,v={},M=[v];for(let I of Object.getOwnPropertyNames(E.prototype))I.startsWith("enter")?p.prototype[I]=function(D){let O=M[M.length-1];(y={type:I.slice(5)}).text=D.getText(),O.children||(O.children=[]),O.children.push(y),M.push(y),y.terminalNodeText=[];for(let U of D.children)U.symbol&&y.terminalNodeText.push(U.getText())}:I.startsWith("exit")&&(p.prototype[I]=function(){M.pop()});var w=new p;if(t.tree.ParseTreeWalker.DEFAULT.walk(w,h),o.length>0){let I=[];for(let D=0,O=o.length;D{const Te=Function.prototype.call.bind(Array.prototype.slice);Number.isInteger=Number.isInteger||function(ne){return"number"==typeof ne&&isFinite(ne)&&Math.floor(ne)===ne},String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(ne,g){return this.indexOf(ne,g=g||0)===g}}),String.prototype.endsWith||Object.defineProperty(String.prototype,"endsWith",{value:function(ne,g){var t=this.toString();(void 0===g||g>t.length)&&(g=t.length);var _=t.indexOf(ne,g-=ne.length);return-1!==_&&_===g}}),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(ne){if(null==ne)throw new TypeError("Cannot convert undefined or null to object");return Te(arguments,1).reduce(function(g,t){return Object.keys(Object(t)).forEach(function(_){g[_]=t[_]}),g},Object(ne))}}),typeof btoa>"u"&&(global.btoa=function(ne){return new Buffer.from(ne,"binary").toString("base64")}),typeof atob>"u"&&(global.atob=function(ne){return new Buffer.from(ne,"base64").toString("binary")})},6897:(Te,ne,g)=>{const t=g(8347),_=g(2295),C={},E={};C.indexOf=function(s,f){const d=_.singleton(s,"String");return t.isEmpty(f)||t.isEmpty(d)?[]:d.indexOf(f)},C.substring=function(s,f,d){const l=_.singleton(s,"String");return t.isEmpty(l)||t.isEmpty(f)||f<0||f>=l.length?[]:void 0===d||t.isEmpty(d)?l.substring(f):l.substring(f,f+d)},C.startsWith=function(s,f){const d=_.singleton(s,"String");return t.isEmpty(f)||t.isEmpty(d)?[]:d.startsWith(f)},C.endsWith=function(s,f){const d=_.singleton(s,"String");return t.isEmpty(f)||t.isEmpty(d)?[]:d.endsWith(f)},C.containsFn=function(s,f){const d=_.singleton(s,"String");return t.isEmpty(f)||t.isEmpty(d)?[]:d.includes(f)},C.upper=function(s){const f=_.singleton(s,"String");return t.isEmpty(f)?[]:f.toUpperCase()},C.lower=function(s){const f=_.singleton(s,"String");return t.isEmpty(f)?[]:f.toLowerCase()},C.joinFn=function(s,f){const d=[];return s.forEach(l=>{const c=t.valData(l);if("string"==typeof c)d.push(c);else if(null!=c)throw new Error("Join requires a collection of strings.")}),t.isEmpty(d)?[]:(void 0===f&&(f=""),d.join(f))},C.splitFn=function(s,f){const d=_.singleton(s,"String");return t.isEmpty(d)?[]:d.split(f)},C.trimFn=function(s){const f=_.singleton(s,"String");return t.isEmpty(f)?[]:f.trim()},C.encodeFn=function(s,f){const d=_.singleton(s,"String");return t.isEmpty(d)?[]:"urlbase64"===f||"base64url"===f?btoa(d).replace(/\+/g,"-").replace(/\//g,"_"):"base64"===f?btoa(d):"hex"===f?Array.from(d).map(l=>l.charCodeAt(0)<128?l.charCodeAt(0).toString(16):encodeURIComponent(l).replace(/%/g,"")).join(""):[]},C.decodeFn=function(s,f){const d=_.singleton(s,"String");if(t.isEmpty(d))return[];if("urlbase64"===f||"base64url"===f)return atob(d.replace(/-/g,"+").replace(/_/g,"/"));if("base64"===f)return atob(d);if("hex"===f){if(d.length%2!=0)throw new Error("Decode 'hex' requires an even number of characters.");return decodeURIComponent("%"+d.match(/.{2}/g).join("%"))}return[]},C.matches=!1===new RegExp("").dotAll?function(s,f){const d=_.singleton(s,"String");return t.isEmpty(f)||t.isEmpty(d)?[]:new RegExp(f,"s").test(d)}:function(s,f){const d=_.singleton(s,"String");return t.isEmpty(f)||t.isEmpty(d)?[]:new RegExp(function u(s){return E[s]||(E[s]=s.replace(/\./g,(f,d,l)=>{const o=l.substr(0,d).replace(/\\\\/g,"").replace(/\\[\][]/g,""),r="\\"===o[o.length-1],h=o.lastIndexOf("["),p=o.lastIndexOf("]");return r||h>p?".":"[^]"})),E[s]}(f)).test(d)},C.replace=function(s,f,d){const l=_.singleton(s,"String");if(t.isEmpty(f)||t.isEmpty(d)||t.isEmpty(l))return[];const c=new RegExp(t.escapeStringForRegExp(f),"g");return l.replace(c,d)},C.replaceMatches=function(s,f,d){const l=_.singleton(s,"String");if(t.isEmpty(f)||t.isEmpty(d)||t.isEmpty(l))return[];const c=new RegExp(f,"g");return l.replace(c,d)},C.length=function(s){const f=_.singleton(s,"String");return t.isEmpty(f)?[]:f.length},C.toChars=function(s){const f=_.singleton(s,"String");return t.isEmpty(f)?[]:f.split("")},Te.exports=C},8186:(Te,ne,g)=>{const t=g(5462),_=g(9070).lG.getInstance(),C=g(8417);let u="[0-9][0-9](\\:[0-9][0-9](\\:[0-9][0-9](\\.[0-9]+)?)?)?(Z|(\\+|-)[0-9][0-9]\\:[0-9][0-9])?",b=new RegExp("^T?"+u+"$"),s=new RegExp("^[0-9][0-9][0-9][0-9](-[0-9][0-9](-[0-9][0-9](T"+u+")?)?)?Z?$"),f=new RegExp("^[0-9][0-9][0-9][0-9](-[0-9][0-9](-[0-9][0-9])?)?$"),d=new RegExp("^[0-9][0-9][0-9][0-9](-[0-9][0-9](-[0-9][0-9](T[0-9][0-9](\\:[0-9][0-9](\\:[0-9][0-9](\\.[0-9]+)?))(Z|(\\+|-)[0-9][0-9]\\:[0-9][0-9]))))$");class l{equals(){return!1}equivalentTo(){return!1}toString(){return this.asStr?this.asStr:super.toString()}toJSON(){return this.toString()}compare(){throw"Comparison not implemented for "+this.constructor.name}plus(){throw"Addition not implemented for "+this.constructor.name}mul(){throw"Multiplication not implemented for "+this.constructor.name}div(){throw"Division not implemented for "+this.constructor.name}}class c extends l{constructor(S,R){super(),this.asStr=S+" "+R,this.value=S,this.unit=R}equals(S){if(!(S instanceof this.constructor))return!1;const R=c._calendarDuration2Seconds[this.unit],N=c._calendarDuration2Seconds[S.unit];if(!R!=!N&&(R>1||N>1))return null;if(this.unit===S.unit)return C.isEqual(this.value,S.value);const A=this._compareYearsAndMonths(S);if(A)return A.isEqual;const F=c.toUcumQuantity(this.value,this.unit),Y=c.toUcumQuantity(S.value,S.unit),ee=_.convertUnitTo(Y.unit,Y.value,F.unit);return"succeeded"===ee.status&&C.isEqual(F.value,ee.toVal)}equivalentTo(S){if(!(S instanceof this.constructor))return!1;if(this.unit===S.unit)return C.isEquivalent(this.value,S.value);const R=c.getEquivalentUcumUnitCode(this.unit),N=c.getEquivalentUcumUnitCode(S.unit),A=_.convertUnitTo(N,S.value,R);return"succeeded"===A.status&&C.isEquivalent(this.value,A.toVal)}compare(S){if(this.unit===S.unit)return this.value-S.value;const R=c._calendarDuration2Seconds[this.unit],N=c._calendarDuration2Seconds[S.unit];if(!R!=!N&&(R>1||N>1))return null;const A=c.getEquivalentUcumUnitCode(this.unit),F=c.getEquivalentUcumUnitCode(S.unit),Y=_.convertUnitTo(F,S.value,A);return"succeeded"!==Y.status?null:this.value-Y.toVal}plus(S){const R=c._yearMonthConversionFactor[this.unit],N=c._yearMonthConversionFactor[S.unit];if(R&&N)return new c(this.value+S.value*N/R,this.unit);const A=c._calendarDuration2Seconds[this.unit],F=c._calendarDuration2Seconds[S.unit];if(!A!=!F&&(A>1||F>1))return null;const Y=A?"s":this.unit.replace(o,""),ee=(A||1)*this.value,ie=F?"s":S.unit.replace(o,""),j=_.convertUnitTo(ie,(F||1)*S.value,Y);return"succeeded"!==j.status||j.fromUnit.isSpecial_||j.toUnit.isSpecial_?null:new c(ee+j.toVal,Y)}mul(S){const R=c._calendarDuration2Seconds[this.unit],N=c._calendarDuration2Seconds[S.unit];if(R>1&&"'1'"!==S.unit||N>1&&"'1'"!==this.unit)return null;const A=this.convToUcumUnits(this,R);if(!A)return null;const F=this.convToUcumUnits(S,N);return F?"'1'"===this.unit?new c(this.value*S.value,S.unit):"'1'"===S.unit?new c(this.value*S.value,this.unit):new c(A.value*F.value,`'(${A.unit}).(${F.unit})'`):null}div(S){if(0===S.value)return null;const R=c._calendarDuration2Seconds[this.unit],N=c._calendarDuration2Seconds[S.unit];if(R)if(N){const ie=c._yearMonthConversionFactor[this.unit],$=c._yearMonthConversionFactor[S.unit];if(ie&&$)return new c(this.value*ie/(S.value*$),"'1'")}else{if("'1'"===S.unit)return new c(this.value/S.value,this.unit);if(R>1)return null}else if(N>1)return null;const A=this.convToUcumUnits(this,R);if(!A)return null;const F=this.convToUcumUnits(S,N);if(!F)return null;const ee=_.convertToBaseUnits("1"===F.unit?A.unit:`(${A.unit})/(${F.unit})`,A.value/F.value);return"succeeded"!==ee.status?null:new c(ee.magnitude,`'${Object.keys(ee.unitToExp).map(ie=>ie+ee.unitToExp[ie]).join(".")||"1"}'`)}convToUcumUnits(S,R){if(R)return{value:R*S.value,unit:"s"};{const N=S.unit.replace(o,""),A=_.convertToBaseUnits(N,S.value);return"succeeded"!==A.status||A.fromUnitIsSpecial?null:{value:A.magnitude,unit:Object.keys(A.unitToExp).map(F=>F+A.unitToExp[F]).join(".")||"1"}}}_compareYearsAndMonths(S){const R=c._yearMonthConversionFactor[this.unit],N=c._yearMonthConversionFactor[S.unit];return R&&N?{isEqual:C.isEqual(this.value*R,S.value*N)}:null}}const o=/^'|'$/g;c.getEquivalentUcumUnitCode=function(U){return c.mapTimeUnitsToUCUMCode[U]||U.replace(o,"")},c.toUcumQuantity=function(U,S){const R=c._calendarDuration2Seconds[S];return R?{value:R*U,unit:"s"}:{value:U,unit:S.replace(o,"")}},c.convUnitTo=function(U,S,R){const N=c._yearMonthConversionFactor[U],A=c._yearMonthConversionFactor[R];if(N&&A)return new c(N*S/A,R);const F=c._calendarDuration2Seconds[U],Y=c._calendarDuration2Seconds[R];if(Y){if(F)return new c(F*S/Y,R);{const ee=_.convertUnitTo(U.replace(/^'|'$/g,""),S,"s");if("succeeded"===ee.status)return new c(ee.toVal/Y,R)}}else{const ee=F?_.convertUnitTo("s",F*S,R.replace(/^'|'$/g,"")):_.convertUnitTo(U.replace(/^'|'$/g,""),S,R.replace(/^'|'$/g,""));if("succeeded"===ee.status)return new c(ee.toVal,R)}return null},c._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},c._yearMonthConversionFactor={years:12,months:1,year:12,month:1},c.dateTimeArithmeticDurationUnits={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","'s'":"second","'ms'":"millisecond"},c.mapUCUMCodeToTimeUnits={a:"year",mo:"month",wk:"week",d:"day",h:"hour",min:"minute",s:"second",ms:"millisecond"},c.mapTimeUnitsToUCUMCode=Object.keys(c.mapUCUMCodeToTimeUnits).reduce(function(U,S){return U[c.mapUCUMCodeToTimeUnits[S]]=S,U[c.mapUCUMCodeToTimeUnits[S]+"s"]=S,U},{});class r extends l{constructor(S){super(),this.asStr=S}plus(S){let N=c.dateTimeArithmeticDurationUnits[S.unit];if(!N)throw new Error("For date/time arithmetic, the unit of the quantity must be one of the following time-based units: "+Object.keys(c.dateTimeArithmeticDurationUnits));const A=this.constructor,F=A._timeUnitToDatePrecision[N];if(void 0===F)throw new Error("Unsupported unit for +. The unit should be one of "+Object.keys(A._timeUnitToDatePrecision).join(", ")+".");let Y=S.value;const ee=A===p;if((ee?F<2:F<5)&&(Y=Math.trunc(Y)),this._getPrecision()2?new h(Y)._getTimeParts():this._getTimeParts(),$=A>2?new h(ee)._getTimeParts():S._getTimeParts(),j=0;j<=F&&!1!==R;++j)R=ie[j]==$[j];R&&(R=void 0)}}else R=!1;return R}equivalentTo(S){var R=S instanceof this.constructor;return R&&(R=this._getPrecision()==S._getPrecision())&&(R=this._getDateObj().getTime()==S._getDateObj().getTime()),R}compare(S){var R=this._getPrecision(),N=S._getPrecision(),A=R<=N?this._getDateObj().getTime():this._dateAtPrecision(N).getTime(),F=N<=R?S._getDateObj().getTime():S._dateAtPrecision(R).getTime();return R!==N&&A===F?null:A-F}_getPrecision(){return void 0===this.precision&&this._getMatchData(),this.precision}_getMatchData(S,R){if(void 0===this.timeMatchData&&(this.timeMatchData=this.asStr.match(S),this.timeMatchData))for(let N=R;N>=0&&void 0===this.precision;--N)this.timeMatchData[N]&&(this.precision=N);return this.timeMatchData}_getTimeParts(S){var R=[];R=[S[0]];var N=S[4];if(N){let ee=R[0];R[0]=ee.slice(0,ee.length-N.length)}var A=S[1];if(A){let ee=R[0];R[0]=ee.slice(0,ee.length-A.length),R[1]=A;var F=S[2];if(F){R[1]=A.slice(0,A.length-F.length),R[2]=F;var Y=S[3];Y&&(R[2]=F.slice(0,F.length-Y.length),R[3]=Y)}}return R}_getDateObj(){if(!this.dateObj){var S=this._getPrecision();this.dateObj=this._dateAtPrecision(S)}return this.dateObj}_createDate(S,R,N,A,F,Y,ee,ie){var $=new Date(S,R,N,A,F,Y,ee);if(ie){var j=$.getTimezoneOffset(),G=0;if("Z"!=ie){var V=ie.split(":"),W=parseInt(V[0]);G=parseInt(V[1]),W<0&&(G=-G),G+=60*W}$=t($,-j-G)}return $}}r.timeUnitToAddFn={year:g(6833),month:g(2482),week:g(1818),day:g(2378),hour:g(6200),minute:g(5462),second:g(5802),millisecond:g(9627)};let h=(()=>{class U extends r{constructor(R){super(R)}compare(R){if(!(R instanceof U))throw"Invalid comparison of a DateTime with something else";return super.compare(R)}_getMatchData(){return super._getMatchData(s,5)}_getTimeParts(){if(!this.timeParts){let N=this._getMatchData(),A=N[0];this.timeParts=[A];var R=N[1];if(R){this.timeParts[0]=A.slice(0,A.length-R.length),this.timeParts[1]=R;let F=N[2];if(F){this.timeParts[1]=R.slice(0,R.length-F.length),this.timeParts[2]=F;let Y=N[3];Y&&(this.timeParts[2]=F.slice(0,F.length-Y.length),"T"===Y[0]&&(N[3]=Y.slice(1)),this.timeParts=this.timeParts.concat(super._getTimeParts(N.slice(3))))}}}return this.timeParts}_dateAtPrecision(R){var N=this._getTimeParts(),A=this._getMatchData()[7],F=this._getPrecision(),Y=parseInt(N[0]),ee=F>0?parseInt(N[1].slice(1))-1:0,ie=F>1?parseInt(N[2].slice(1)):1,$=F>2?parseInt(N[3]):0,j=F>3?parseInt(N[4].slice(1)):0,G=F>4?parseInt(N[5].slice(1)):0,V=N.length>6?parseInt(N[6].slice(1)):0,W=this._createDate(Y,ee,ie,$,j,G,V,A);return R0?W.getMonth():0,ie=R>1?W.getDate():1,$=R>2?W.getHours():0,j=R>3?W.getMinutes():0,W=new Date(Y,ee,ie,$,j)),W}}return U.checkString=function(S){let R=new U(S);return R._getMatchData()||(R=null),R},U._timeUnitToDatePrecision={year:0,month:1,week:2,day:2,hour:3,minute:4,second:5,millisecond:6},U._datePrecisionToTimeUnit=["year","month","day","hour","minute","second","millisecond"],U})(),p=(()=>{class U extends r{constructor(R){"T"==R[0]&&(R=R.slice(1)),super(R)}compare(R){if(!(R instanceof U))throw"Invalid comparison of a time with something else";return super.compare(R)}_dateAtPrecision(R){var N=this._getTimeParts(),A=this._getMatchData()[4],F=this._getPrecision(),Y=2010,$=parseInt(N[0]),j=F>0?parseInt(N[1].slice(1)):0,G=F>1?parseInt(N[2].slice(1)):0,V=N.length>3?parseInt(N[3].slice(1)):0,W=this._createDate(Y,0,1,$,j,G,V,A);return A&&(W.setYear(Y),W.setMonth(0),W.setDate(1)),R0?W.getMinutes():0,W=new Date(Y,0,1,$,j)),W}_getMatchData(){return super._getMatchData(b,2)}_getTimeParts(){return this.timeParts||(this.timeParts=super._getTimeParts(this._getMatchData())),this.timeParts}}return U.checkString=function(S){let R=new U(S);return R._getMatchData()||(R=null),R},U._timeUnitToDatePrecision={hour:0,minute:1,second:2,millisecond:3},U._datePrecisionToTimeUnit=["hour","minute","second","millisecond"],U})();function v(U,S){var R=U;return 3===S&&U<100&&(R="0"+U),U<10&&(R="0"+R),R}h.isoDateTime=function(U,S){void 0===S&&(S=5);var R=""+U.getFullYear();if(S>0&&(R+="-"+v(U.getMonth()+1),S>1&&(R+="-"+v(U.getDate()),S>2&&(R+="T"+h.isoTime(U,S-3)))),S>2){var N=U.getTimezoneOffset(),A=N<0?"+":"-",F=(N=Math.abs(N))%60;R+=A+v((N-F)/60)+":"+v(F)}return R},h.isoTime=function(U,S){void 0===S&&(S=2);let R=""+v(U.getHours());return S>0&&(R+=":"+v(U.getMinutes()),S>1&&(R+=":"+v(U.getSeconds()),U.getMilliseconds()&&(R+="."+v(U.getMilliseconds(),3)))),R};let y=(()=>{class U extends h{constructor(R){super(R)}_getMatchData(){return r.prototype._getMatchData.apply(this,[f,2])}}return U.checkString=function(S){let R=new U(S);return R._getMatchData()||(R=null),R},U.isoDate=function(S,R){return(void 0===R||R>2)&&(R=2),h.isoDateTime(S,R)},U})(),M=(()=>{class U extends h{constructor(R){super(R)}_getMatchData(){return r.prototype._getMatchData.apply(this,[d,5])}}return U.checkString=function(S){let R=new U(S);return R._getMatchData()||(R=null),R},U})(),w=(()=>{class U{constructor(R,N,A,F){R?.resourceType&&(N=R.resourceType,F=R.resourceType),this.path=N,this.data=R,this._data=A||{},this.fhirNodeDataType=F}getTypeInfo(){let R;return I.model&&(/^System\.(.*)$/.test(this.fhirNodeDataType)?R=new I({namespace:I.System,name:RegExp.$1}):this.fhirNodeDataType&&(R=new I({namespace:I.FHIR,name:this.fhirNodeDataType}))),R||I.createByValueInSystemNamespace(this.data)}toJSON(){return JSON.stringify(this.data)}convertData(){var R=this.data;const N=I.typeToClassWithCheckString[this.path];if(N)R=N.checkString(R)||R;else if(I.isType(this.path,"Quantity")&&"http://unitsofmeasure.org"===R?.system&&"number"==typeof R.value&&"string"==typeof R.code){if(void 0!==R.comparator)throw new Error("Cannot convert a FHIR.Quantity that has a comparator");R=new c(R.value,c.mapUCUMCodeToTimeUnits[R.code]||"'"+R.code+"'")}return R}}return U.makeResNode=function(S,R,N,A=null){return S instanceof U?S:new U(S,R,N,A)},U})();const k=new Set;["Boolean","String","Integer","Decimal","Date","DateTime","Time","Quantity"].forEach(U=>k.add(U));let I=(()=>{class U{constructor({name:R,namespace:N}){this.name=R,this.namespace=N}static model=null;is(R){return R instanceof U&&(!this.namespace||!R.namespace||this.namespace===R.namespace)&&(!U.model||this.namespace&&this.namespace!==U.FHIR?this.name===R.name:U.isType(this.name,R.name))}toString(){return(this.namespace?this.namespace+".":"")+this.name}isValid(){let R=!1;return"System"===this.namespace?R=k.has(this.name):"FHIR"===this.namespace?R=U.model?.availableTypes.has(this.name):this.namespace||(R=k.has(this.name)||U.model?.availableTypes.has(this.name)),R}}return U.typeToClassWithCheckString={date:y,dateTime:h,instant:M,time:p},U.isType=function(S,R){do{if(S===R)return!0}while(S=U.model?.type2Parent[S]);return!1},U.System="System",U.FHIR="FHIR",U.createByValueInSystemNamespace=function(S){let R=typeof S;return Number.isInteger(S)?R="integer":"number"===R?R="decimal":S instanceof y?R="date":S instanceof h?R="dateTime":S instanceof p?R="time":S instanceof c&&(R="Quantity"),R=R.replace(/^\w/,N=>N.toUpperCase()),new U({namespace:U.System,name:R})},U.fromValue=function(S){return S instanceof w?S.getTypeInfo():U.createByValueInSystemNamespace(S)},U})();Te.exports={FP_Type:l,FP_TimeBase:r,FP_Date:y,FP_DateTime:h,FP_Instant:M,FP_Time:p,FP_Quantity:c,timeRE:b,dateTimeRE:s,ResourceNode:w,TypeInfo:I,typeFn:function D(U){return U.map(S=>I.fromValue(S))},isFn:function O(U,S){if(0===U.length)return[];if(U.length>1)throw new Error("Expected singleton on left side of 'is', got "+JSON.stringify(U));return I.fromValue(U[0]).is(S)},asFn:function T(U,S){if(0===U.length)return[];if(U.length>1)throw new Error("Expected singleton on left side of 'as', got "+JSON.stringify(U));return I.fromValue(U[0]).is(S)?U:[]}}},8347:(Te,ne,g)=>{const t={},_=g(8186),{ResourceNode:C}=_;t.raiseError=function(E,u){throw(u=u?u+": ":"")+E},t.assertOnlyOne=function(E,u){1!==E.length&&t.raiseError("Was expecting only one element but got "+JSON.stringify(E),u)},t.assertType=function(E,u,b){let s=this.valData(E);if(u.indexOf(typeof s)<0){let f=u.length>1?"one of "+u.join(", "):u[0];t.raiseError("Found type '"+typeof E+"' but was expecting "+f,b)}return s},t.isEmpty=function(E){return Array.isArray(E)&&0==E.length},t.isSome=function(E){return null!=E&&!t.isEmpty(E)},t.isTrue=function(E){return null!=E&&(!0===E||1==E.length&&!0===t.valData(E[0]))},t.isCapitalized=function(E){return E&&E[0]===E[0].toUpperCase()},t.flatten=function(E){return E.reduce(function(u,b){return Array.isArray(b)?u=u.concat(b):u.push(b),u},[])},t.arraify=function(E){return Array.isArray(E)?E:t.isSome(E)?[E]:[]},t.valData=function(E){return E instanceof C?E.data:E},t.valDataConverted=function(E){return E instanceof C&&(E=E.convertData()),E},t.escapeStringForRegExp=function(E){return E.replace(/[-[\]{}()*+?.,\\/^$|#\s]/g,"\\$&")},t.pushFn=Function.prototype.apply.bind(Array.prototype.push),t.makeChildResNodes=function(E,u,b){let s=E.path+"."+u;if(b){let r=b.pathsDefinedElsewhere[s];r&&(s=r)}let f,d,l=b&&b.choiceTypePaths[s];if(l)for(let r of l){let h=u+r;if(f=E.data?.[h],d=E.data?.["_"+h],void 0!==f||void 0!==d){s+=r;break}}else f=E.data?.[u],d=E.data?.["_"+u],void 0===f&&void 0===d&&(f=E._data[u]),"extension"===u&&(s="Extension");const c=b&&b.path2Type[s]||null;let o;if(s="BackboneElement"===c||"Element"===c?s:c||s,t.isSome(f)||t.isSome(d))if(Array.isArray(f)){o=f.map((h,p)=>C.makeResNode(h,s,d&&d[p],c));const r=d?.length||0;for(let h=f.length;hC.makeResNode(null,s,r,c)):[C.makeResNode(f,s,d,c)];else o=[];return o},Te.exports=t},3718:Te=>{"use strict";Te.exports=function(ne,g){for(var t={},_=Object.keys(ne),C=Array.isArray(g),E=0;E<_.length;E++){var u=_[E],b=ne[u];(C?-1!==g.indexOf(u):g(u,b,ne))&&(t[u]=b)}return t}},2806:()=>{!function(Te,ne){"use strict";var g="hljs-ln",t="hljs-ln-line",_="hljs-ln-code",C="hljs-ln-numbers",E="hljs-ln-n",u="data-line-number",b=/\r\n|\r|\n/g;function o(A){try{var F=ne.querySelectorAll("code.hljs,code.nohighlight");for(var Y in F)F.hasOwnProperty(Y)&&(r(F[Y])||h(F[Y],A))}catch(ee){Te.console.error("LineNumbers error: ",ee)}}function r(A){return A.classList.contains("nohljsln")}function h(A,F){"object"==typeof A&&function U(A){Te.setTimeout(A,0)}(function(){A.innerHTML=v(A,F)})}function v(A,F){var Y=function M(A,F){return{singleLine:w(F=F||{}),startFrom:k(A,F)}}(A,F);return I(A),function y(A,F){var Y=O(A);if(""===Y[Y.length-1].trim()&&Y.pop(),Y.length>1||F.singleLine){for(var ee="",ie=0,$=Y.length;ie<$;ie++)ee+=S('
{6}',[t,C,E,u,_,ie+F.startFrom,Y[ie].length>0?Y[ie]:" "]);return S('{1}
',[g,ee])}return A}(A.innerHTML,Y)}function w(A){return!!A.singleLine&&A.singleLine}function k(A,F){var ee=1;isFinite(F.startFrom)&&(ee=F.startFrom);var ie=function R(A,F){return A.hasAttribute(F)?A.getAttribute(F):null}(A,"data-ln-start-from");return null!==ie&&(ee=function N(A,F){if(!A)return F;var Y=Number(A);return isFinite(Y)?Y:F}(ie,1)),ee}function I(A){var F=A.childNodes;for(var Y in F)if(F.hasOwnProperty(Y)){var ee=F[Y];T(ee.textContent)>0&&(ee.childNodes.length>0?I(ee):D(ee.parentNode))}}function D(A){var F=A.className;if(/hljs-/.test(F)){for(var Y=O(A.innerHTML),ee=0,ie="";ee{1}\n',[F,Y[ee].length>0?Y[ee]:" "]);A.innerHTML=ie.trim()}}function O(A){return 0===A.length?[]:A.split(b)}function T(A){return(A.trim().match(b)||[]).length}function S(A,F){return A.replace(/\{(\d+)\}/g,function(Y,ee){return void 0!==F[ee]?F[ee]:Y})}Te.hljs?(Te.hljs.initLineNumbersOnLoad=function c(A){"interactive"===ne.readyState||"complete"===ne.readyState?o(A):Te.addEventListener("DOMContentLoaded",function(){o(A)})},Te.hljs.lineNumbersBlock=h,Te.hljs.lineNumbersValue=function p(A,F){if("string"==typeof A){var Y=document.createElement("code");return Y.innerHTML=A,v(Y,F)}},function l(){var A=ne.createElement("style");A.type="text/css",A.innerHTML=S(".{0}{border-collapse:collapse}.{0} td{padding:0}.{1}:before{content:attr({2})}",[g,E,u]),ne.getElementsByTagName("head")[0].appendChild(A)}()):Te.console.error("highlight.js not detected!"),document.addEventListener("copy",function(A){var Y,F=window.getSelection();(function s(A){for(var F=A;F;){if(F.className&&-1!==F.className.indexOf("hljs-ln-code"))return!0;F=F.parentNode}return!1})(F.anchorNode)&&(Y=-1!==window.navigator.userAgent.indexOf("Edge")?function d(A){for(var F=A.toString(),Y=A.anchorNode;"TD"!==Y.nodeName;)Y=Y.parentNode;for(var ee=A.focusNode;"TD"!==ee.nodeName;)ee=ee.parentNode;var ie=parseInt(Y.dataset.lineNumber),$=parseInt(ee.dataset.lineNumber);if(ie!=$){var j=Y.textContent,G=ee.textContent;if(ie>$){var V=ie;ie=$,$=V,V=j,j=G,G=V}for(;0!==F.indexOf(j);)j=j.slice(1);for(;-1===F.lastIndexOf(G);)G=G.slice(0,-1);for(var W=j,K=function f(A){for(var F=A;"TABLE"!==F.nodeName;)F=F.parentNode;return F}(Y),ce=ie+1;ce<$;++ce){var ue=S('.{0}[{1}="{2}"]',[_,u,ce]);W+="\n"+K.querySelector(ue).textContent}return W+"\n"+G}return F}(F):F.toString(),A.clipboardData.setData("text/plain",Y),A.preventDefault())})}(window,document)},1152:Te=>{"use strict";Te.exports=Number.isFinite||function(ne){return!("number"!=typeof ne||ne!=ne||ne===1/0||ne===-1/0)}},6971:(Te,ne,g)=>{var t=g(1152);Te.exports=Number.isInteger||function(_){return"number"==typeof _&&t(_)&&Math.floor(_)===_}},882:function(Te,ne){var g,_;void 0!==(_="function"==typeof(g=function(){"use strict";function C(l){function c(v){for(var y=0,M=o.length;y127){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 E(l){if(!(l instanceof ArrayBuffer))throw new TypeError("arrayBuffer is not an instance of ArrayBuffer.");if(!s.Worker)throw new Error("Worker implementation is not available in this environment.");return new C(function(c,o,r){var h=new Worker(b),p=[];h.onerror=function(v){o(v)},h.onmessage=function(v){switch((v=v.data).type){case"log":console[v.data.level]("Worker: "+v.data.msg);break;case"extract":var y=function u(l){return Object.defineProperties(l,d),l}(v.data);p.push(y),r(y);break;case"complete":h.terminate(),c(p);break;case"error":h.terminate(),o(new Error(v.data.message));break;default:h.terminate(),o(new Error("Unknown message from worker: "+v.type))}},h.postMessage({type:"extract",buffer:l},[l])})}})?g.apply(ne,[]):g)&&(Te.exports=_)},5293:(Te,ne)=>{function t(_,C){var E=[],u=[];return null==C&&(C=function(b,s){return E[0]===s?"[Circular ~]":"[Circular ~."+u.slice(0,E.indexOf(s)).join(".")+"]"}),function(b,s){if(E.length>0){var f=E.indexOf(this);~f?E.splice(f+1):E.push(this),~f?u.splice(f,1/0,b):u.push(b),~E.indexOf(s)&&(s=C.call(this,b,s))}else E.push(s);return null==_?s:_.call(this,b,s)}}(Te.exports=function g(_,C,E,u){return JSON.stringify(_,t(C,u),E)}).getSerialize=t},3244:Te=>{var ne=1e3,g=6e4,t=60*g,_=24*t;function f(d,l,c,o){var r=l>=1.5*c;return Math.round(d/c)+" "+o+(r?"s":"")}Te.exports=function(d,l){l=l||{};var c=typeof d;if("string"===c&&d.length>0)return function u(d){if(!((d=String(d)).length>100)){var l=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(d);if(l){var c=parseFloat(l[1]);switch((l[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*c;case"weeks":case"week":case"w":return 6048e5*c;case"days":case"day":case"d":return c*_;case"hours":case"hour":case"hrs":case"hr":case"h":return c*t;case"minutes":case"minute":case"mins":case"min":case"m":return c*g;case"seconds":case"second":case"secs":case"sec":case"s":return c*ne;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}(d);if("number"===c&&isFinite(d))return l.long?function s(d){var l=Math.abs(d);return l>=_?f(d,l,_,"day"):l>=t?f(d,l,t,"hour"):l>=g?f(d,l,g,"minute"):l>=ne?f(d,l,ne,"second"):d+" ms"}(d):function b(d){var l=Math.abs(d);return l>=_?Math.round(d/_)+"d":l>=t?Math.round(d/t)+"h":l>=g?Math.round(d/g)+"m":l>=ne?Math.round(d/ne)+"s":d+"ms"}(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))}},98:Te=>{"use strict";const ne=typeof self<"u"?self:typeof window<"u"?window:void 0;if(!ne)throw new Error("Unable to find global scope. Are you sure this is running in the browser?");if(!ne.AbortController)throw new Error('Could not find "AbortController" in the global scope. You need to polyfill it first');Te.exports.AbortController=ne.AbortController},8570:(Te,ne,g)=>{"use strict";const t=g(8467),_=g(2635),C=g(3321),E=g(3718),b=Symbol("encodeFragmentIdentifier");function d(M){if("string"!=typeof M||1!==M.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(M,w){return w.encode?w.strict?t(M):encodeURIComponent(M):M}function c(M,w){return w.decode?_(M):M}function o(M){return Array.isArray(M)?M.sort():"object"==typeof M?o(Object.keys(M)).sort((w,k)=>Number(w)-Number(k)).map(w=>M[w]):M}function r(M){const w=M.indexOf("#");return-1!==w&&(M=M.slice(0,w)),M}function p(M){const w=(M=r(M)).indexOf("?");return-1===w?"":M.slice(w+1)}function v(M,w){return w.parseNumbers&&!Number.isNaN(Number(M))&&"string"==typeof M&&""!==M.trim()?M=Number(M):w.parseBooleans&&null!==M&&("true"===M.toLowerCase()||"false"===M.toLowerCase())&&(M="true"===M.toLowerCase()),M}function y(M,w){d((w=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},w)).arrayFormatSeparator);const k=function f(M){let w;switch(M.arrayFormat){case"index":return(k,I,D)=>{w=/\[(\d*)\]$/.exec(k),k=k.replace(/\[\d*\]$/,""),w?(void 0===D[k]&&(D[k]={}),D[k][w[1]]=I):D[k]=I};case"bracket":return(k,I,D)=>{w=/(\[\])$/.exec(k),D[k=k.replace(/\[\]$/,"")]=w?void 0!==D[k]?[].concat(D[k],I):[I]:I};case"colon-list-separator":return(k,I,D)=>{w=/(:list)$/.exec(k),D[k=k.replace(/:list$/,"")]=w?void 0!==D[k]?[].concat(D[k],I):[I]:I};case"comma":case"separator":return(k,I,D)=>{const O="string"==typeof I&&I.includes(M.arrayFormatSeparator),T="string"==typeof I&&!O&&c(I,M).includes(M.arrayFormatSeparator);I=T?c(I,M):I;const U=O||T?I.split(M.arrayFormatSeparator).map(S=>c(S,M)):null===I?I:c(I,M);D[k]=U};case"bracket-separator":return(k,I,D)=>{const O=/(\[\])$/.test(k);if(k=k.replace(/\[\]$/,""),!O)return void(D[k]=I&&c(I,M));const T=null===I?[]:I.split(M.arrayFormatSeparator).map(U=>c(U,M));D[k]=void 0!==D[k]?[].concat(D[k],T):T};default:return(k,I,D)=>{D[k]=void 0!==D[k]?[].concat(D[k],I):I}}}(w),I=Object.create(null);if("string"!=typeof M||!(M=M.trim().replace(/^[?#&]/,"")))return I;for(const D of M.split("&")){if(""===D)continue;let[O,T]=C(w.decode?D.replace(/\+/g," "):D,"=");T=void 0===T?null:["comma","separator","bracket-separator"].includes(w.arrayFormat)?T:c(T,w),k(c(O,w),T,I)}for(const D of Object.keys(I)){const O=I[D];if("object"==typeof O&&null!==O)for(const T of Object.keys(O))O[T]=v(O[T],w);else I[D]=v(O,w)}return!1===w.sort?I:(!0===w.sort?Object.keys(I).sort():Object.keys(I).sort(w.sort)).reduce((D,O)=>{const T=I[O];return D[O]=T&&"object"==typeof T&&!Array.isArray(T)?o(T):T,D},Object.create(null))}ne.extract=p,ne.parse=y,ne.stringify=(M,w)=>{if(!M)return"";d((w=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},w)).arrayFormatSeparator);const k=T=>w.skipNull&&(M=>null==M)(M[T])||w.skipEmptyString&&""===M[T],I=function s(M){switch(M.arrayFormat){case"index":return w=>(k,I)=>{const D=k.length;return void 0===I||M.skipNull&&null===I||M.skipEmptyString&&""===I?k:null===I?[...k,[l(w,M),"[",D,"]"].join("")]:[...k,[l(w,M),"[",l(D,M),"]=",l(I,M)].join("")]};case"bracket":return w=>(k,I)=>void 0===I||M.skipNull&&null===I||M.skipEmptyString&&""===I?k:null===I?[...k,[l(w,M),"[]"].join("")]:[...k,[l(w,M),"[]=",l(I,M)].join("")];case"colon-list-separator":return w=>(k,I)=>void 0===I||M.skipNull&&null===I||M.skipEmptyString&&""===I?k:null===I?[...k,[l(w,M),":list="].join("")]:[...k,[l(w,M),":list=",l(I,M)].join("")];case"comma":case"separator":case"bracket-separator":{const w="bracket-separator"===M.arrayFormat?"[]=":"=";return k=>(I,D)=>void 0===D||M.skipNull&&null===D||M.skipEmptyString&&""===D?I:(D=null===D?"":D,0===I.length?[[l(k,M),w,l(D,M)].join("")]:[[I,l(D,M)].join(M.arrayFormatSeparator)])}default:return w=>(k,I)=>void 0===I||M.skipNull&&null===I||M.skipEmptyString&&""===I?k:null===I?[...k,l(w,M)]:[...k,[l(w,M),"=",l(I,M)].join("")]}}(w),D={};for(const T of Object.keys(M))k(T)||(D[T]=M[T]);const O=Object.keys(D);return!1!==w.sort&&O.sort(w.sort),O.map(T=>{const U=M[T];return void 0===U?"":null===U?l(T,w):Array.isArray(U)?0===U.length&&"bracket-separator"===w.arrayFormat?l(T,w)+"[]":U.reduce(I(T),[]).join("&"):l(T,w)+"="+l(U,w)}).filter(T=>T.length>0).join("&")},ne.parseUrl=(M,w)=>{w=Object.assign({decode:!0},w);const[k,I]=C(M,"#");return Object.assign({url:k.split("?")[0]||"",query:y(p(M),w)},w&&w.parseFragmentIdentifier&&I?{fragmentIdentifier:c(I,w)}:{})},ne.stringifyUrl=(M,w)=>{w=Object.assign({encode:!0,strict:!0,[b]:!0},w);const k=r(M.url).split("?")[0]||"",I=ne.extract(M.url),D=ne.parse(I,{sort:!1}),O=Object.assign(D,M.query);let T=ne.stringify(O,w);T&&(T=`?${T}`);let U=function h(M){let w="";const k=M.indexOf("#");return-1!==k&&(w=M.slice(k)),w}(M.url);return M.fragmentIdentifier&&(U=`#${w[b]?l(M.fragmentIdentifier,w):M.fragmentIdentifier}`),`${k}${T}${U}`},ne.pick=(M,w,k)=>{k=Object.assign({parseFragmentIdentifier:!0,[b]:!1},k);const{url:I,query:D,fragmentIdentifier:O}=ne.parseUrl(M,k);return ne.stringifyUrl({url:I,query:E(D,w),fragmentIdentifier:O},k)},ne.exclude=(M,w,k)=>{const I=Array.isArray(w)?D=>!w.includes(D):(D,O)=>!w(D,O);return ne.pick(M,I,k)}},4412:(Te,ne,g)=>{"use strict";g.d(ne,{t:()=>_});var t=g(1413);class _ extends t.B{constructor(E){super(),this._value=E}get value(){return this.getValue()}_subscribe(E){const u=super._subscribe(E);return!u.closed&&E.next(this._value),u}getValue(){const{hasError:E,thrownError:u,_value:b}=this;if(E)throw u;return this._throwIfClosed(),b}next(E){super.next(this._value=E)}}},1985:(Te,ne,g)=>{"use strict";g.d(ne,{c:()=>f});var t=g(7707),_=g(8359),C=g(3494),E=g(1203),u=g(1026),b=g(8071),s=g(9786);let f=(()=>{class o{constructor(h){h&&(this._subscribe=h)}lift(h){const p=new o;return p.source=this,p.operator=h,p}subscribe(h,p,v){const y=function c(o){return o&&o instanceof t.vU||function l(o){return o&&(0,b.T)(o.next)&&(0,b.T)(o.error)&&(0,b.T)(o.complete)}(o)&&(0,_.Uv)(o)}(h)?h:new t.Ms(h,p,v);return(0,s.Y)(()=>{const{operator:M,source:w}=this;y.add(M?M.call(y,w):w?this._subscribe(y):this._trySubscribe(y))}),y}_trySubscribe(h){try{return this._subscribe(h)}catch(p){h.error(p)}}forEach(h,p){return new(p=d(p))((v,y)=>{const M=new t.Ms({next:w=>{try{h(w)}catch(k){y(k),M.unsubscribe()}},error:y,complete:v});this.subscribe(M)})}_subscribe(h){var p;return null===(p=this.source)||void 0===p?void 0:p.subscribe(h)}[C.s](){return this}pipe(...h){return(0,E.m)(h)(this)}toPromise(h){return new(h=d(h))((p,v)=>{let y;this.subscribe(M=>y=M,M=>v(M),()=>p(y))})}}return o.create=r=>new o(r),o})();function d(o){var r;return null!==(r=o??u.$.Promise)&&void 0!==r?r:Promise}},2771:(Te,ne,g)=>{"use strict";g.d(ne,{m:()=>C});var t=g(1413),_=g(6129);class C extends t.B{constructor(u=1/0,b=1/0,s=_.U){super(),this._bufferSize=u,this._windowTime=b,this._timestampProvider=s,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=b===1/0,this._bufferSize=Math.max(1,u),this._windowTime=Math.max(1,b)}next(u){const{isStopped:b,_buffer:s,_infiniteTimeWindow:f,_timestampProvider:d,_windowTime:l}=this;b||(s.push(u),!f&&s.push(d.now()+l)),this._trimBuffer(),super.next(u)}_subscribe(u){this._throwIfClosed(),this._trimBuffer();const b=this._innerSubscribe(u),{_infiniteTimeWindow:s,_buffer:f}=this,d=f.slice();for(let l=0;l{"use strict";g.d(ne,{B:()=>s});var t=g(1985),_=g(8359);const E=(0,g(1853).L)(d=>function(){d(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var u=g(7908),b=g(9786);let s=(()=>{class d extends t.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(c){const o=new f(this,this);return o.operator=c,o}_throwIfClosed(){if(this.closed)throw new E}next(c){(0,b.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const o of this.currentObservers)o.next(c)}})}error(c){(0,b.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=c;const{observers:o}=this;for(;o.length;)o.shift().error(c)}})}complete(){(0,b.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:c}=this;for(;c.length;)c.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var c;return(null===(c=this.observers)||void 0===c?void 0:c.length)>0}_trySubscribe(c){return this._throwIfClosed(),super._trySubscribe(c)}_subscribe(c){return this._throwIfClosed(),this._checkFinalizedStatuses(c),this._innerSubscribe(c)}_innerSubscribe(c){const{hasError:o,isStopped:r,observers:h}=this;return o||r?_.Kn:(this.currentObservers=null,h.push(c),new _.yU(()=>{this.currentObservers=null,(0,u.o)(h,c)}))}_checkFinalizedStatuses(c){const{hasError:o,thrownError:r,isStopped:h}=this;o?c.error(r):h&&c.complete()}asObservable(){const c=new t.c;return c.source=this,c}}return d.create=(l,c)=>new f(l,c),d})();class f extends s{constructor(l,c){super(),this.destination=l,this.source=c}next(l){var c,o;null===(o=null===(c=this.destination)||void 0===c?void 0:c.next)||void 0===o||o.call(c,l)}error(l){var c,o;null===(o=null===(c=this.destination)||void 0===c?void 0:c.error)||void 0===o||o.call(c,l)}complete(){var l,c;null===(c=null===(l=this.destination)||void 0===l?void 0:l.complete)||void 0===c||c.call(l)}_subscribe(l){var c,o;return null!==(o=null===(c=this.source)||void 0===c?void 0:c.subscribe(l))&&void 0!==o?o:_.Kn}}},7707:(Te,ne,g)=>{"use strict";g.d(ne,{Ms:()=>v,vU:()=>o});var t=g(8071),_=g(8359),C=g(1026),E=g(5334),u=g(5343);const b=d("C",void 0,void 0);function d(I,D,O){return{kind:I,value:D,error:O}}var l=g(9270),c=g(9786);class o extends _.yU{constructor(D){super(),this.isStopped=!1,D?(this.destination=D,(0,_.Uv)(D)&&D.add(this)):this.destination=k}static create(D,O,T){return new v(D,O,T)}next(D){this.isStopped?w(function f(I){return d("N",I,void 0)}(D),this):this._next(D)}error(D){this.isStopped?w(function s(I){return d("E",void 0,I)}(D),this):(this.isStopped=!0,this._error(D))}complete(){this.isStopped?w(b,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(D){this.destination.next(D)}_error(D){try{this.destination.error(D)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const r=Function.prototype.bind;function h(I,D){return r.call(I,D)}class p{constructor(D){this.partialObserver=D}next(D){const{partialObserver:O}=this;if(O.next)try{O.next(D)}catch(T){y(T)}}error(D){const{partialObserver:O}=this;if(O.error)try{O.error(D)}catch(T){y(T)}else y(D)}complete(){const{partialObserver:D}=this;if(D.complete)try{D.complete()}catch(O){y(O)}}}class v extends o{constructor(D,O,T){let U;if(super(),(0,t.T)(D)||!D)U={next:D??void 0,error:O??void 0,complete:T??void 0};else{let S;this&&C.$.useDeprecatedNextContext?(S=Object.create(D),S.unsubscribe=()=>this.unsubscribe(),U={next:D.next&&h(D.next,S),error:D.error&&h(D.error,S),complete:D.complete&&h(D.complete,S)}):U=D}this.destination=new p(U)}}function y(I){C.$.useDeprecatedSynchronousErrorHandling?(0,c.l)(I):(0,E.m)(I)}function w(I,D){const{onStoppedNotification:O}=C.$;O&&l.f.setTimeout(()=>O(I,D))}const k={closed:!0,next:u.l,error:function M(I){throw I},complete:u.l}},8359:(Te,ne,g)=>{"use strict";g.d(ne,{Kn:()=>b,yU:()=>u,Uv:()=>s});var t=g(8071);const C=(0,g(1853).L)(d=>function(c){d(this),this.message=c?`${c.length} errors occurred during unsubscription:\n${c.map((o,r)=>`${r+1}) ${o.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=c});var E=g(7908);class u{constructor(l){this.initialTeardown=l,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let l;if(!this.closed){this.closed=!0;const{_parentage:c}=this;if(c)if(this._parentage=null,Array.isArray(c))for(const h of c)h.remove(this);else c.remove(this);const{initialTeardown:o}=this;if((0,t.T)(o))try{o()}catch(h){l=h instanceof C?h.errors:[h]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const h of r)try{f(h)}catch(p){l=l??[],p instanceof C?l=[...l,...p.errors]:l.push(p)}}if(l)throw new C(l)}}add(l){var c;if(l&&l!==this)if(this.closed)f(l);else{if(l instanceof u){if(l.closed||l._hasParent(this))return;l._addParent(this)}(this._finalizers=null!==(c=this._finalizers)&&void 0!==c?c:[]).push(l)}}_hasParent(l){const{_parentage:c}=this;return c===l||Array.isArray(c)&&c.includes(l)}_addParent(l){const{_parentage:c}=this;this._parentage=Array.isArray(c)?(c.push(l),c):c?[c,l]:l}_removeParent(l){const{_parentage:c}=this;c===l?this._parentage=null:Array.isArray(c)&&(0,E.o)(c,l)}remove(l){const{_finalizers:c}=this;c&&(0,E.o)(c,l),l instanceof u&&l._removeParent(this)}}u.EMPTY=(()=>{const d=new u;return d.closed=!0,d})();const b=u.EMPTY;function s(d){return d instanceof u||d&&"closed"in d&&(0,t.T)(d.remove)&&(0,t.T)(d.add)&&(0,t.T)(d.unsubscribe)}function f(d){(0,t.T)(d)?d():d.unsubscribe()}},1026:(Te,ne,g)=>{"use strict";g.d(ne,{$:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},17:(Te,ne,g)=>{"use strict";g.d(ne,{G:()=>b});var t=g(1985),_=g(8359),C=g(9898),E=g(4360),u=g(9974);class b extends t.c{constructor(f,d){super(),this.source=f,this.subjectFactory=d,this._subject=null,this._refCount=0,this._connection=null,(0,u.S)(f)&&(this.lift=f.lift)}_subscribe(f){return this.getSubject().subscribe(f)}getSubject(){const f=this._subject;return(!f||f.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:f}=this;this._subject=this._connection=null,f?.unsubscribe()}connect(){let f=this._connection;if(!f){f=this._connection=new _.yU;const d=this.getSubject();f.add(this.source.subscribe((0,E._)(d,void 0,()=>{this._teardown(),d.complete()},l=>{this._teardown(),d.error(l)},()=>this._teardown()))),f.closed&&(this._connection=null,f=_.yU.EMPTY)}return f}refCount(){return(0,C.B)()(this)}}},4572:(Te,ne,g)=>{"use strict";g.d(ne,{P:()=>c,z:()=>l});var t=g(1985),_=g(3073),C=g(8455),E=g(3669),u=g(6450),b=g(9326),s=g(8496),f=g(4360),d=g(5225);function l(...r){const h=(0,b.lI)(r),p=(0,b.ms)(r),{args:v,keys:y}=(0,_.D)(r);if(0===v.length)return(0,C.H)([],h);const M=new t.c(c(v,h,y?w=>(0,s.e)(y,w):E.D));return p?M.pipe((0,u.I)(p)):M}function c(r,h,p=E.D){return v=>{o(h,()=>{const{length:y}=r,M=new Array(y);let w=y,k=y;for(let I=0;I{const D=(0,C.H)(r[I],h);let O=!1;D.subscribe((0,f._)(v,T=>{M[I]=T,O||(O=!0,k--),k||v.next(p(M.slice()))},()=>{--w||v.complete()}))},v)},v)}}function o(r,h,p){r?(0,d.N)(p,r,h):h()}},2688:(Te,ne,g)=>{"use strict";g.d(ne,{x:()=>E});var t=g(9131),_=g(9326),C=g(8455);function E(...u){return(0,t.K)()((0,C.H)(u,(0,_.lI)(u)))}},9030:(Te,ne,g)=>{"use strict";g.d(ne,{v:()=>C});var t=g(1985),_=g(8750);function C(E){return new t.c(u=>{(0,_.Tg)(E()).subscribe(u)})}},983:(Te,ne,g)=>{"use strict";g.d(ne,{w:()=>_});const _=new(g(1985).c)(u=>u.complete())},7468:(Te,ne,g)=>{"use strict";g.d(ne,{p:()=>f});var t=g(1985),_=g(3073),C=g(8750),E=g(9326),u=g(4360),b=g(6450),s=g(8496);function f(...d){const l=(0,E.ms)(d),{args:c,keys:o}=(0,_.D)(d),r=new t.c(h=>{const{length:p}=c;if(!p)return void h.complete();const v=new Array(p);let y=p,M=p;for(let w=0;w{k||(k=!0,M--),v[w]=I},()=>y--,void 0,()=>{(!y||!k)&&(M||h.next(o?(0,s.e)(o,v):v),h.complete())}))}});return l?r.pipe((0,b.I)(l)):r}},8455:(Te,ne,g)=>{"use strict";g.d(ne,{H:()=>D});var t=g(8750),_=g(941),C=g(6745),b=g(1985),f=g(4761),d=g(8071),l=g(5225);function o(O,T){if(!O)throw new Error("Iterable cannot be null");return new b.c(U=>{(0,l.N)(U,T,()=>{const S=O[Symbol.asyncIterator]();(0,l.N)(U,T,()=>{S.next().then(R=>{R.done?U.complete():U.next(R.value)})},0,!0)})})}var r=g(5055),h=g(9858),p=g(7441),v=g(5397),y=g(7953),M=g(591),w=g(5196);function D(O,T){return T?function I(O,T){if(null!=O){if((0,r.l)(O))return function E(O,T){return(0,t.Tg)(O).pipe((0,C._)(T),(0,_.Q)(T))}(O,T);if((0,p.X)(O))return function s(O,T){return new b.c(U=>{let S=0;return T.schedule(function(){S===O.length?U.complete():(U.next(O[S++]),U.closed||this.schedule())})})}(O,T);if((0,h.y)(O))return function u(O,T){return(0,t.Tg)(O).pipe((0,C._)(T),(0,_.Q)(T))}(O,T);if((0,y.T)(O))return o(O,T);if((0,v.x)(O))return function c(O,T){return new b.c(U=>{let S;return(0,l.N)(U,T,()=>{S=O[f.l](),(0,l.N)(U,T,()=>{let R,N;try{({value:R,done:N}=S.next())}catch(A){return void U.error(A)}N?U.complete():U.next(R)},0,!0)}),()=>(0,d.T)(S?.return)&&S.return()})}(O,T);if((0,w.U)(O))return function k(O,T){return o((0,w.C)(O),T)}(O,T)}throw(0,M.L)(O)}(O,T):(0,t.Tg)(O)}},3726:(Te,ne,g)=>{"use strict";g.d(ne,{R:()=>l});var t=g(8750),_=g(1985),C=g(3028),E=g(7441),u=g(8071),b=g(6450);const s=["addListener","removeListener"],f=["addEventListener","removeEventListener"],d=["on","off"];function l(p,v,y,M){if((0,u.T)(y)&&(M=y,y=void 0),M)return l(p,v,y).pipe((0,b.I)(M));const[w,k]=function h(p){return(0,u.T)(p.addEventListener)&&(0,u.T)(p.removeEventListener)}(p)?f.map(I=>D=>p[I](v,D,y)):function o(p){return(0,u.T)(p.addListener)&&(0,u.T)(p.removeListener)}(p)?s.map(c(p,v)):function r(p){return(0,u.T)(p.on)&&(0,u.T)(p.off)}(p)?d.map(c(p,v)):[];if(!w&&(0,E.X)(p))return(0,C.Z)(I=>l(I,v,y))((0,t.Tg)(p));if(!w)throw new TypeError("Invalid event target");return new _.c(I=>{const D=(...O)=>I.next(1k(D)})}function c(p,v){return y=>M=>p[y](v,M)}},8750:(Te,ne,g)=>{"use strict";g.d(ne,{Tg:()=>r});var t=g(5215),_=g(7441),C=g(9858),E=g(1985),u=g(5055),b=g(7953),s=g(591),f=g(5397),d=g(5196),l=g(8071),c=g(5334),o=g(3494);function r(I){if(I instanceof E.c)return I;if(null!=I){if((0,u.l)(I))return function h(I){return new E.c(D=>{const O=I[o.s]();if((0,l.T)(O.subscribe))return O.subscribe(D);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(I);if((0,_.X)(I))return function p(I){return new E.c(D=>{for(let O=0;O{I.then(O=>{D.closed||(D.next(O),D.complete())},O=>D.error(O)).then(null,c.m)})}(I);if((0,b.T)(I))return M(I);if((0,f.x)(I))return function y(I){return new E.c(D=>{for(const O of I)if(D.next(O),D.closed)return;D.complete()})}(I);if((0,d.U)(I))return function w(I){return M((0,d.C)(I))}(I)}throw(0,s.L)(I)}function M(I){return new E.c(D=>{(function k(I,D){var O,T,U,S;return(0,t.__awaiter)(this,void 0,void 0,function*(){try{for(O=(0,t.__asyncValues)(I);!(T=yield O.next()).done;)if(D.next(T.value),D.closed)return}catch(R){U={error:R}}finally{try{T&&!T.done&&(S=O.return)&&(yield S.call(O))}finally{if(U)throw U.error}}D.complete()})})(I,D).catch(O=>D.error(O))})}},7786:(Te,ne,g)=>{"use strict";g.d(ne,{h:()=>b});var t=g(6365),_=g(8750),C=g(983),E=g(9326),u=g(8455);function b(...s){const f=(0,E.lI)(s),d=(0,E.R0)(s,1/0),l=s;return l.length?1===l.length?(0,_.Tg)(l[0]):(0,t.U)(d)((0,u.H)(l,f)):C.w}},7673:(Te,ne,g)=>{"use strict";g.d(ne,{of:()=>C});var t=g(9326),_=g(8455);function C(...E){const u=(0,t.lI)(E);return(0,_.H)(E,u)}},1033:(Te,ne,g)=>{"use strict";g.d(ne,{O:()=>u,w:()=>b});var t=g(1985),_=g(8750),C=g(9945),E=g(4360);function u(...s){return 1===(s=(0,C.K)(s)).length?(0,_.Tg)(s[0]):new t.c(b(s))}function b(s){return f=>{let d=[];for(let l=0;d&&!f.closed&&l{if(d){for(let o=0;o{"use strict";g.d(ne,{$:()=>C});var t=g(1985),_=g(8071);function C(E,u){const b=(0,_.T)(E)?E:()=>E,s=f=>f.error(b());return new t.c(u?f=>u.schedule(s,0,f):s)}},1807:(Te,ne,g)=>{"use strict";g.d(ne,{O:()=>u});var t=g(1985),_=g(3236),C=g(9470),E=g(8211);function u(b=0,s,f=_.b){let d=-1;return null!=s&&((0,C.m)(s)?f=s:d=s),new t.c(l=>{let c=(0,E.v)(b)?+b-f.now():b;c<0&&(c=0);let o=0;return f.schedule(function(){l.closed||(l.next(o++),0<=d?this.schedule(void 0,d):l.complete())},c)})}},4437:(Te,ne,g)=>{"use strict";g.d(ne,{y:()=>s});var t=g(1985),_=g(8750),C=g(9945),E=g(983),u=g(4360),b=g(9326);function s(...f){const d=(0,b.ms)(f),l=(0,C.K)(f);return l.length?new t.c(c=>{let o=l.map(()=>[]),r=l.map(()=>!1);c.add(()=>{o=r=null});for(let h=0;!c.closed&&h{if(o[h].push(p),o.every(v=>v.length)){const v=o.map(y=>y.shift());c.next(d?d(...v):v),o.some((y,M)=>!y.length&&r[M])&&c.complete()}},()=>{r[h]=!0,!o[h].length&&c.complete()}));return()=>{o=r=null}}):E.w}},4360:(Te,ne,g)=>{"use strict";g.d(ne,{H:()=>C,_:()=>_});var t=g(7707);function _(E,u,b,s,f){return new C(E,u,b,s,f)}class C extends t.vU{constructor(u,b,s,f,d,l){super(u),this.onFinalize=d,this.shouldUnsubscribe=l,this._next=b?function(c){try{b(c)}catch(o){u.error(o)}}:super._next,this._error=f?function(c){try{f(c)}catch(o){u.error(o)}finally{this.unsubscribe()}}:super._error,this._complete=s?function(){try{s()}catch(c){u.error(c)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var u;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:b}=this;super.unsubscribe(),!b&&(null===(u=this.onFinalize)||void 0===u||u.call(this))}}}},5135:(Te,ne,g)=>{"use strict";g.d(ne,{s:()=>E});var t=g(9974),_=g(8750),C=g(4360);function E(u){return(0,t.N)((b,s)=>{let f=!1,d=null,l=null,c=!1;const o=()=>{if(l?.unsubscribe(),l=null,f){f=!1;const h=d;d=null,s.next(h)}c&&s.complete()},r=()=>{l=null,c&&s.complete()};b.subscribe((0,C._)(s,h=>{f=!0,d=h,l||(0,_.Tg)(u(h)).subscribe(l=(0,C._)(s,o,r))},()=>{c=!0,(!f||!l||l.closed)&&s.complete()}))})}},3578:(Te,ne,g)=>{"use strict";g.d(ne,{Z:()=>E});var t=g(3236),_=g(5135),C=g(1807);function E(u,b=t.E){return(0,_.s)(()=>(0,C.O)(u,b))}},9437:(Te,ne,g)=>{"use strict";g.d(ne,{W:()=>E});var t=g(8750),_=g(4360),C=g(9974);function E(u){return(0,C.N)((b,s)=>{let l,f=null,d=!1;f=b.subscribe((0,_._)(s,void 0,void 0,c=>{l=(0,t.Tg)(u(c,E(u)(b))),f?(f.unsubscribe(),f=null,l.subscribe(s)):d=!0})),d&&(f.unsubscribe(),f=null,l.subscribe(s))})}},9131:(Te,ne,g)=>{"use strict";g.d(ne,{K:()=>_});var t=g(6365);function _(){return(0,t.U)(1)}},274:(Te,ne,g)=>{"use strict";g.d(ne,{H:()=>C});var t=g(3028),_=g(8071);function C(E,u){return(0,_.T)(u)?(0,t.Z)(E,u,1):(0,t.Z)(E,1)}},152:(Te,ne,g)=>{"use strict";g.d(ne,{B:()=>E});var t=g(3236),_=g(9974),C=g(4360);function E(u,b=t.E){return(0,_.N)((s,f)=>{let d=null,l=null,c=null;const o=()=>{if(d){d.unsubscribe(),d=null;const h=l;l=null,f.next(h)}};function r(){const h=c+u,p=b.now();if(p{l=h,c=b.now(),d||(d=b.schedule(r,u),f.add(d))},()=>{o(),f.complete()},void 0,()=>{l=d=null}))})}},9901:(Te,ne,g)=>{"use strict";g.d(ne,{U:()=>C});var t=g(9974),_=g(4360);function C(E){return(0,t.N)((u,b)=>{let s=!1;u.subscribe((0,_._)(b,f=>{s=!0,b.next(f)},()=>{s||b.next(E),b.complete()}))})}},3103:(Te,ne,g)=>{"use strict";g.d(ne,{c:()=>E});var t=g(3236),_=g(3183),C=g(1807);function E(u,b=t.E){const s=(0,C.O)(u,b);return(0,_.o)(()=>s)}},3183:(Te,ne,g)=>{"use strict";g.d(ne,{o:()=>s});var t=g(2688),_=g(6697),C=g(3557),E=g(3703),u=g(3028),b=g(8750);function s(f,d){return d?l=>(0,t.x)(d.pipe((0,_.s)(1),(0,C.w)()),l.pipe(s(f))):(0,u.Z)((l,c)=>(0,b.Tg)(f(l,c)).pipe((0,_.s)(1),(0,E.u)(l)))}},3294:(Te,ne,g)=>{"use strict";g.d(ne,{F:()=>E});var t=g(3669),_=g(9974),C=g(4360);function E(b,s=t.D){return b=b??u,(0,_.N)((f,d)=>{let l,c=!0;f.subscribe((0,C._)(d,o=>{const r=s(o);(c||!b(l,r))&&(c=!1,l=r,d.next(o))}))})}function u(b,s){return b===s}},5964:(Te,ne,g)=>{"use strict";g.d(ne,{p:()=>C});var t=g(9974),_=g(4360);function C(E,u){return(0,t.N)((b,s)=>{let f=0;b.subscribe((0,_._)(s,d=>E.call(u,d,f++)&&s.next(d)))})}},980:(Te,ne,g)=>{"use strict";g.d(ne,{j:()=>_});var t=g(9974);function _(C){return(0,t.N)((E,u)=>{try{E.subscribe(u)}finally{u.add(C)}})}},1594:(Te,ne,g)=>{"use strict";g.d(ne,{$:()=>s});var t=g(9350),_=g(5964),C=g(6697),E=g(9901),u=g(3774),b=g(3669);function s(f,d){const l=arguments.length>=2;return c=>c.pipe(f?(0,_.p)((o,r)=>f(o,r,c)):b.D,(0,C.s)(1),l?(0,E.U)(d):(0,u.v)(()=>new t.G))}},3557:(Te,ne,g)=>{"use strict";g.d(ne,{w:()=>E});var t=g(9974),_=g(4360),C=g(5343);function E(){return(0,t.N)((u,b)=>{u.subscribe((0,_._)(b,C.l))})}},7018:(Te,ne,g)=>{"use strict";g.d(ne,{H:()=>s});var t=g(9350),_=g(5964),C=g(5109),E=g(3774),u=g(9901),b=g(3669);function s(f,d){const l=arguments.length>=2;return c=>c.pipe(f?(0,_.p)((o,r)=>f(o,r,c)):b.D,(0,C.o)(1),l?(0,u.U)(d):(0,E.v)(()=>new t.G))}},6354:(Te,ne,g)=>{"use strict";g.d(ne,{T:()=>C});var t=g(9974),_=g(4360);function C(E,u){return(0,t.N)((b,s)=>{let f=0;b.subscribe((0,_._)(s,d=>{s.next(E.call(u,d,f++))}))})}},3703:(Te,ne,g)=>{"use strict";g.d(ne,{u:()=>_});var t=g(6354);function _(C){return(0,t.T)(()=>C)}},6365:(Te,ne,g)=>{"use strict";g.d(ne,{U:()=>C});var t=g(3028),_=g(3669);function C(E=1/0){return(0,t.Z)(_.D,E)}},5412:(Te,ne,g)=>{"use strict";g.d(ne,{h:()=>E});var t=g(8750),_=g(5225),C=g(4360);function E(u,b,s,f,d,l,c,o){const r=[];let h=0,p=0,v=!1;const y=()=>{v&&!r.length&&!h&&b.complete()},M=k=>h{l&&b.next(k),h++;let I=!1;(0,t.Tg)(s(k,p++)).subscribe((0,C._)(b,D=>{d?.(D),l?M(D):b.next(D)},()=>{I=!0},void 0,()=>{if(I)try{for(h--;r.length&&hw(D)):w(D)}y()}catch(D){b.error(D)}}))};return u.subscribe((0,C._)(b,M,()=>{v=!0,y()})),()=>{o?.()}}},3028:(Te,ne,g)=>{"use strict";g.d(ne,{Z:()=>b});var t=g(6354),_=g(8750),C=g(9974),E=g(5412),u=g(8071);function b(s,f,d=1/0){return(0,u.T)(f)?b((l,c)=>(0,t.T)((o,r)=>f(l,o,c,r))((0,_.Tg)(s(l,c))),d):("number"==typeof f&&(d=f),(0,C.N)((l,c)=>(0,E.h)(l,c,s,d)))}},941:(Te,ne,g)=>{"use strict";g.d(ne,{Q:()=>E});var t=g(5225),_=g(9974),C=g(4360);function E(u,b=0){return(0,_.N)((s,f)=>{s.subscribe((0,C._)(f,d=>(0,t.N)(f,u,()=>f.next(d),b),()=>(0,t.N)(f,u,()=>f.complete(),b),d=>(0,t.N)(f,u,()=>f.error(d),b)))})}},9898:(Te,ne,g)=>{"use strict";g.d(ne,{B:()=>C});var t=g(9974),_=g(4360);function C(){return(0,t.N)((E,u)=>{let b=null;E._refCount++;const s=(0,_._)(u,void 0,void 0,void 0,()=>{if(!E||E._refCount<=0||0<--E._refCount)return void(b=null);const f=E._connection,d=b;b=null,f&&(!d||f===d)&&f.unsubscribe(),u.unsubscribe()});E.subscribe(s),s.closed||(b=E.connect())})}},1943:(Te,ne,g)=>{"use strict";g.d(ne,{S:()=>C});var t=g(9974),_=g(6649);function C(E,u){return(0,t.N)((0,_.S)(E,u,arguments.length>=2,!0))}},6649:(Te,ne,g)=>{"use strict";g.d(ne,{S:()=>_});var t=g(4360);function _(C,E,u,b,s){return(f,d)=>{let l=u,c=E,o=0;f.subscribe((0,t._)(d,r=>{const h=o++;c=l?C(c,r,h):(l=!0,r),b&&d.next(c)},s&&(()=>{l&&d.next(c),d.complete()})))}}},7647:(Te,ne,g)=>{"use strict";g.d(ne,{u:()=>u});var t=g(8750),_=g(1413),C=g(7707),E=g(9974);function u(s={}){const{connector:f=(()=>new _.B),resetOnError:d=!0,resetOnComplete:l=!0,resetOnRefCountZero:c=!0}=s;return o=>{let r,h,p,v=0,y=!1,M=!1;const w=()=>{h?.unsubscribe(),h=void 0},k=()=>{w(),r=p=void 0,y=M=!1},I=()=>{const D=r;k(),D?.unsubscribe()};return(0,E.N)((D,O)=>{v++,!M&&!y&&w();const T=p=p??f();O.add(()=>{v--,0===v&&!M&&!y&&(h=b(I,c))}),T.subscribe(O),!r&&v>0&&(r=new C.Ms({next:U=>T.next(U),error:U=>{M=!0,w(),h=b(k,d,U),T.error(U)},complete:()=>{y=!0,w(),h=b(k,l),T.complete()}}),(0,t.Tg)(D).subscribe(r))})(o)}}function b(s,f,...d){if(!0===f)return void s();if(!1===f)return;const l=new C.Ms({next:()=>{l.unsubscribe(),s()}});return(0,t.Tg)(f(...d)).subscribe(l)}},4668:(Te,ne,g)=>{"use strict";g.d(ne,{t:()=>C});var t=g(2771),_=g(7647);function C(E,u,b){let s,f=!1;return E&&"object"==typeof E?({bufferSize:s=1/0,windowTime:u=1/0,refCount:f=!1,scheduler:b}=E):s=E??1/0,(0,_.u)({connector:()=>new t.m(s,u,b),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:f})}},5245:(Te,ne,g)=>{"use strict";g.d(ne,{i:()=>_});var t=g(5964);function _(C){return(0,t.p)((E,u)=>C<=u)}},9172:(Te,ne,g)=>{"use strict";g.d(ne,{Z:()=>E});var t=g(2688),_=g(9326),C=g(9974);function E(...u){const b=(0,_.lI)(u);return(0,C.N)((s,f)=>{(b?(0,t.x)(u,s,b):(0,t.x)(u,s)).subscribe(f)})}},6745:(Te,ne,g)=>{"use strict";g.d(ne,{_:()=>_});var t=g(9974);function _(C,E=0){return(0,t.N)((u,b)=>{b.add(C.schedule(()=>u.subscribe(b),E))})}},5558:(Te,ne,g)=>{"use strict";g.d(ne,{n:()=>E});var t=g(8750),_=g(9974),C=g(4360);function E(u,b){return(0,_.N)((s,f)=>{let d=null,l=0,c=!1;const o=()=>c&&!d&&f.complete();s.subscribe((0,C._)(f,r=>{d?.unsubscribe();let h=0;const p=l++;(0,t.Tg)(u(r,p)).subscribe(d=(0,C._)(f,v=>f.next(b?b(r,v,p,h++):v),()=>{d=null,o()}))},()=>{c=!0,o()}))})}},6697:(Te,ne,g)=>{"use strict";g.d(ne,{s:()=>E});var t=g(983),_=g(9974),C=g(4360);function E(u){return u<=0?()=>t.w:(0,_.N)((b,s)=>{let f=0;b.subscribe((0,C._)(s,d=>{++f<=u&&(s.next(d),u<=f&&s.complete())}))})}},5109:(Te,ne,g)=>{"use strict";g.d(ne,{o:()=>E});var t=g(983),_=g(9974),C=g(4360);function E(u){return u<=0?()=>t.w:(0,_.N)((b,s)=>{let f=[];b.subscribe((0,C._)(s,d=>{f.push(d),u{for(const d of f)s.next(d);s.complete()},void 0,()=>{f=null}))})}},6977:(Te,ne,g)=>{"use strict";g.d(ne,{Q:()=>u});var t=g(9974),_=g(4360),C=g(8750),E=g(5343);function u(b){return(0,t.N)((s,f)=>{(0,C.Tg)(b).subscribe((0,_._)(f,()=>f.complete(),E.l)),!f.closed&&s.subscribe(f)})}},7048:(Te,ne,g)=>{"use strict";g.d(ne,{v:()=>C});var t=g(9974),_=g(4360);function C(E,u=!1){return(0,t.N)((b,s)=>{let f=0;b.subscribe((0,_._)(s,d=>{const l=E(d,f++);(l||u)&&s.next(d),!l&&s.complete()}))})}},8141:(Te,ne,g)=>{"use strict";g.d(ne,{M:()=>u});var t=g(8071),_=g(9974),C=g(4360),E=g(3669);function u(b,s,f){const d=(0,t.T)(b)||s||f?{next:b,error:s,complete:f}:b;return d?(0,_.N)((l,c)=>{var o;null===(o=d.subscribe)||void 0===o||o.call(d);let r=!0;l.subscribe((0,C._)(c,h=>{var p;null===(p=d.next)||void 0===p||p.call(d,h),c.next(h)},()=>{var h;r=!1,null===(h=d.complete)||void 0===h||h.call(d),c.complete()},h=>{var p;r=!1,null===(p=d.error)||void 0===p||p.call(d,h),c.error(h)},()=>{var h,p;r&&(null===(h=d.unsubscribe)||void 0===h||h.call(d)),null===(p=d.finalize)||void 0===p||p.call(d)}))}):E.D}},3774:(Te,ne,g)=>{"use strict";g.d(ne,{v:()=>E});var t=g(9350),_=g(9974),C=g(4360);function E(b=u){return(0,_.N)((s,f)=>{let d=!1;s.subscribe((0,C._)(f,l=>{d=!0,f.next(l)},()=>d?f.complete():f.error(b())))})}function u(){return new t.G}},2087:(Te,ne,g)=>{"use strict";g.d(ne,{w:()=>d});var t=g(3236),_=g(8211),C=g(9974),E=g(8750),u=g(1853),b=g(4360),s=g(5225);const f=(0,u.L)(c=>function(r=null){c(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r});function d(c,o){const{first:r,each:h,with:p=l,scheduler:v=o??t.E,meta:y=null}=(0,_.v)(c)?{first:c}:"number"==typeof c?{each:c}:c;if(null==r&&null==h)throw new TypeError("No timeout provided.");return(0,C.N)((M,w)=>{let k,I,D=null,O=0;const T=U=>{I=(0,s.N)(w,v,()=>{try{k.unsubscribe(),(0,E.Tg)(p({meta:y,lastValue:D,seen:O})).subscribe(w)}catch(S){w.error(S)}},U)};k=M.subscribe((0,b._)(w,U=>{I?.unsubscribe(),O++,w.next(D=U),h>0&&T(h)},void 0,void 0,()=>{I?.closed||I?.unsubscribe(),D=null})),!O&&T(null!=r?"number"==typeof r?r:+r-v.now():h)})}function l(c){throw new f(c)}},6780:(Te,ne,g)=>{"use strict";g.d(ne,{R:()=>u});var t=g(8359);class _ extends t.yU{constructor(s,f){super()}schedule(s,f=0){return this}}const C={setInterval(b,s,...f){const{delegate:d}=C;return d?.setInterval?d.setInterval(b,s,...f):setInterval(b,s,...f)},clearInterval(b){const{delegate:s}=C;return(s?.clearInterval||clearInterval)(b)},delegate:void 0};var E=g(7908);class u extends _{constructor(s,f){super(s,f),this.scheduler=s,this.work=f,this.pending=!1}schedule(s,f=0){var d;if(this.closed)return this;this.state=s;const l=this.id,c=this.scheduler;return null!=l&&(this.id=this.recycleAsyncId(c,l,f)),this.pending=!0,this.delay=f,this.id=null!==(d=this.id)&&void 0!==d?d:this.requestAsyncId(c,this.id,f),this}requestAsyncId(s,f,d=0){return C.setInterval(s.flush.bind(s,this),d)}recycleAsyncId(s,f,d=0){if(null!=d&&this.delay===d&&!1===this.pending)return f;null!=f&&C.clearInterval(f)}execute(s,f){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const d=this._execute(s,f);if(d)return d;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(s,f){let l,d=!1;try{this.work(s)}catch(c){d=!0,l=c||new Error("Scheduled action threw falsy error")}if(d)return this.unsubscribe(),l}unsubscribe(){if(!this.closed){const{id:s,scheduler:f}=this,{actions:d}=f;this.work=this.state=this.scheduler=null,this.pending=!1,(0,E.o)(d,this),null!=s&&(this.id=this.recycleAsyncId(f,s,null)),this.delay=null,super.unsubscribe()}}}},9687:(Te,ne,g)=>{"use strict";g.d(ne,{q:()=>C});var t=g(6129);class _{constructor(u,b=_.now){this.schedulerActionCtor=u,this.now=b}schedule(u,b=0,s){return new this.schedulerActionCtor(this,u).schedule(s,b)}}_.now=t.U.now;class C extends _{constructor(u,b=_.now){super(u,b),this.actions=[],this._active=!1}flush(u){const{actions:b}=this;if(this._active)return void b.push(u);let s;this._active=!0;do{if(s=u.execute(u.state,u.delay))break}while(u=b.shift());if(this._active=!1,s){for(;u=b.shift();)u.unsubscribe();throw s}}}},536:(Te,ne,g)=>{"use strict";g.d(ne,{X:()=>s});var t=g(6780),_=g(8359);const C={schedule(d){let l=requestAnimationFrame,c=cancelAnimationFrame;const{delegate:o}=C;o&&(l=o.requestAnimationFrame,c=o.cancelAnimationFrame);const r=l(h=>{c=void 0,d(h)});return new _.yU(()=>c?.(r))},requestAnimationFrame(...d){const{delegate:l}=C;return(l?.requestAnimationFrame||requestAnimationFrame)(...d)},cancelAnimationFrame(...d){const{delegate:l}=C;return(l?.cancelAnimationFrame||cancelAnimationFrame)(...d)},delegate:void 0};var u=g(9687);const s=new class b extends u.q{flush(l){this._active=!0;const c=this._scheduled;this._scheduled=void 0;const{actions:o}=this;let r;l=l||o.shift();do{if(r=l.execute(l.state,l.delay))break}while((l=o[0])&&l.id===c&&o.shift());if(this._active=!1,r){for(;(l=o[0])&&l.id===c&&o.shift();)l.unsubscribe();throw r}}}(class E extends t.R{constructor(l,c){super(l,c),this.scheduler=l,this.work=c}requestAsyncId(l,c,o=0){return null!==o&&o>0?super.requestAsyncId(l,c,o):(l.actions.push(this),l._scheduled||(l._scheduled=C.requestAnimationFrame(()=>l.flush(void 0))))}recycleAsyncId(l,c,o=0){var r;if(null!=o?o>0:this.delay>0)return super.recycleAsyncId(l,c,o);const{actions:h}=l;null!=c&&(null===(r=h[h.length-1])||void 0===r?void 0:r.id)!==c&&(C.cancelAnimationFrame(c),l._scheduled=void 0)}})},5007:(Te,ne,g)=>{"use strict";g.d(ne,{$:()=>h});var t=g(6780);let C,_=1;const E={};function u(v){return v in E&&(delete E[v],!0)}const b={setImmediate(v){const y=_++;return E[y]=!0,C||(C=Promise.resolve()),C.then(()=>u(y)&&v()),y},clearImmediate(v){u(v)}},{setImmediate:f,clearImmediate:d}=b,l={setImmediate(...v){const{delegate:y}=l;return(y?.setImmediate||f)(...v)},clearImmediate(v){const{delegate:y}=l;return(y?.clearImmediate||d)(v)},delegate:void 0};var o=g(9687);const h=new class r extends o.q{flush(y){this._active=!0;const M=this._scheduled;this._scheduled=void 0;const{actions:w}=this;let k;y=y||w.shift();do{if(k=y.execute(y.state,y.delay))break}while((y=w[0])&&y.id===M&&w.shift());if(this._active=!1,k){for(;(y=w[0])&&y.id===M&&w.shift();)y.unsubscribe();throw k}}}(class c extends t.R{constructor(y,M){super(y,M),this.scheduler=y,this.work=M}requestAsyncId(y,M,w=0){return null!==w&&w>0?super.requestAsyncId(y,M,w):(y.actions.push(this),y._scheduled||(y._scheduled=l.setImmediate(y.flush.bind(y,void 0))))}recycleAsyncId(y,M,w=0){var k;if(null!=w?w>0:this.delay>0)return super.recycleAsyncId(y,M,w);const{actions:I}=y;null!=M&&(null===(k=I[I.length-1])||void 0===k?void 0:k.id)!==M&&(l.clearImmediate(M),y._scheduled===M&&(y._scheduled=void 0))}})},3236:(Te,ne,g)=>{"use strict";g.d(ne,{E:()=>C,b:()=>E});var t=g(6780);const C=new(g(9687).q)(t.R),E=C},6129:(Te,ne,g)=>{"use strict";g.d(ne,{U:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},9270:(Te,ne,g)=>{"use strict";g.d(ne,{f:()=>t});const t={setTimeout(_,C,...E){const{delegate:u}=t;return u?.setTimeout?u.setTimeout(_,C,...E):setTimeout(_,C,...E)},clearTimeout(_){const{delegate:C}=t;return(C?.clearTimeout||clearTimeout)(_)},delegate:void 0}},4761:(Te,ne,g)=>{"use strict";g.d(ne,{l:()=>_});const _=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Te,ne,g)=>{"use strict";g.d(ne,{s:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(Te,ne,g)=>{"use strict";g.d(ne,{G:()=>_});const _=(0,g(1853).L)(C=>function(){C(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(Te,ne,g)=>{"use strict";g.d(ne,{R0:()=>b,lI:()=>u,ms:()=>E});var t=g(8071),_=g(9470);function C(s){return s[s.length-1]}function E(s){return(0,t.T)(C(s))?s.pop():void 0}function u(s){return(0,_.m)(C(s))?s.pop():void 0}function b(s,f){return"number"==typeof C(s)?s.pop():f}},3073:(Te,ne,g)=>{"use strict";g.d(ne,{D:()=>u});const{isArray:t}=Array,{getPrototypeOf:_,prototype:C,keys:E}=Object;function u(s){if(1===s.length){const f=s[0];if(t(f))return{args:f,keys:null};if(function b(s){return s&&"object"==typeof s&&_(s)===C}(f)){const d=E(f);return{args:d.map(l=>f[l]),keys:d}}}return{args:s,keys:null}}},9945:(Te,ne,g)=>{"use strict";g.d(ne,{K:()=>_});const{isArray:t}=Array;function _(C){return 1===C.length&&t(C[0])?C[0]:C}},7908:(Te,ne,g)=>{"use strict";function t(_,C){if(_){const E=_.indexOf(C);0<=E&&_.splice(E,1)}}g.d(ne,{o:()=>t})},1853:(Te,ne,g)=>{"use strict";function t(_){const E=_(u=>{Error.call(u),u.stack=(new Error).stack});return E.prototype=Object.create(Error.prototype),E.prototype.constructor=E,E}g.d(ne,{L:()=>t})},8496:(Te,ne,g)=>{"use strict";function t(_,C){return _.reduce((E,u,b)=>(E[u]=C[b],E),{})}g.d(ne,{e:()=>t})},9786:(Te,ne,g)=>{"use strict";g.d(ne,{Y:()=>C,l:()=>E});var t=g(1026);let _=null;function C(u){if(t.$.useDeprecatedSynchronousErrorHandling){const b=!_;if(b&&(_={errorThrown:!1,error:null}),u(),b){const{errorThrown:s,error:f}=_;if(_=null,s)throw f}}else u()}function E(u){t.$.useDeprecatedSynchronousErrorHandling&&_&&(_.errorThrown=!0,_.error=u)}},5225:(Te,ne,g)=>{"use strict";function t(_,C,E,u=0,b=!1){const s=C.schedule(function(){E(),b?_.add(this.schedule(null,u)):this.unsubscribe()},u);if(_.add(s),!b)return s}g.d(ne,{N:()=>t})},3669:(Te,ne,g)=>{"use strict";function t(_){return _}g.d(ne,{D:()=>t})},7441:(Te,ne,g)=>{"use strict";g.d(ne,{X:()=>t});const t=_=>_&&"number"==typeof _.length&&"function"!=typeof _},7953:(Te,ne,g)=>{"use strict";g.d(ne,{T:()=>_});var t=g(8071);function _(C){return Symbol.asyncIterator&&(0,t.T)(C?.[Symbol.asyncIterator])}},8211:(Te,ne,g)=>{"use strict";function t(_){return _ instanceof Date&&!isNaN(_)}g.d(ne,{v:()=>t})},8071:(Te,ne,g)=>{"use strict";function t(_){return"function"==typeof _}g.d(ne,{T:()=>t})},5055:(Te,ne,g)=>{"use strict";g.d(ne,{l:()=>C});var t=g(3494),_=g(8071);function C(E){return(0,_.T)(E[t.s])}},5397:(Te,ne,g)=>{"use strict";g.d(ne,{x:()=>C});var t=g(4761),_=g(8071);function C(E){return(0,_.T)(E?.[t.l])}},4402:(Te,ne,g)=>{"use strict";g.d(ne,{A:()=>C});var t=g(1985),_=g(8071);function C(E){return!!E&&(E instanceof t.c||(0,_.T)(E.lift)&&(0,_.T)(E.subscribe))}},9858:(Te,ne,g)=>{"use strict";g.d(ne,{y:()=>_});var t=g(8071);function _(C){return(0,t.T)(C?.then)}},5196:(Te,ne,g)=>{"use strict";g.d(ne,{C:()=>C,U:()=>E});var t=g(5215),_=g(8071);function C(u){return(0,t.__asyncGenerator)(this,arguments,function*(){const s=u.getReader();try{for(;;){const{value:f,done:d}=yield(0,t.__await)(s.read());if(d)return yield(0,t.__await)(void 0);yield yield(0,t.__await)(f)}}finally{s.releaseLock()}})}function E(u){return(0,_.T)(u?.getReader)}},9470:(Te,ne,g)=>{"use strict";g.d(ne,{m:()=>_});var t=g(8071);function _(C){return C&&(0,t.T)(C.schedule)}},9974:(Te,ne,g)=>{"use strict";g.d(ne,{N:()=>C,S:()=>_});var t=g(8071);function _(E){return(0,t.T)(E?.lift)}function C(E){return u=>{if(_(u))return u.lift(function(b){try{return E(b,this)}catch(s){this.error(s)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Te,ne,g)=>{"use strict";g.d(ne,{I:()=>E});var t=g(6354);const{isArray:_}=Array;function E(u){return(0,t.T)(b=>function C(u,b){return _(b)?u(...b):u(b)}(u,b))}},5343:(Te,ne,g)=>{"use strict";function t(){}g.d(ne,{l:()=>t})},1203:(Te,ne,g)=>{"use strict";g.d(ne,{F:()=>_,m:()=>C});var t=g(3669);function _(...E){return C(E)}function C(E){return 0===E.length?t.D:1===E.length?E[0]:function(b){return E.reduce((s,f)=>f(s),b)}}},5334:(Te,ne,g)=>{"use strict";g.d(ne,{m:()=>C});var t=g(1026),_=g(9270);function C(E){_.f.setTimeout(()=>{const{onUnhandledError:u}=t.$;if(!u)throw E;u(E)})}},591:(Te,ne,g)=>{"use strict";function t(_){return new TypeError(`You provided ${null!==_&&"object"==typeof _?"an invalid object":`'${_}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}g.d(ne,{L:()=>t})},2326:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{audit:()=>t.s,auditTime:()=>_.Z,buffer:()=>s,bufferCount:()=>d,bufferTime:()=>h,bufferToggle:()=>p,bufferWhen:()=>v,catchError:()=>y.W,combineAll:()=>A,combineLatest:()=>Y,combineLatestAll:()=>N,combineLatestWith:()=>ee,concat:()=>j,concatAll:()=>ie.K,concatMap:()=>G.H,concatMapTo:()=>W,concatWith:()=>K,connect:()=>pt,count:()=>ct,debounce:()=>Ct,debounceTime:()=>We.B,defaultIfEmpty:()=>Ne.U,delay:()=>Ie.c,delayWhen:()=>rt.o,dematerialize:()=>bt,distinct:()=>it,distinctUntilChanged:()=>ye.F,distinctUntilKeyChanged:()=>He,elementAt:()=>un,endWith:()=>cn,every:()=>rn,exhaust:()=>_e,exhaustAll:()=>Bt,exhaustMap:()=>Nt,expand:()=>Qe,filter:()=>xt.p,finalize:()=>Ot.j,find:()=>tt,findIndex:()=>Le,first:()=>fe.$,flatMap:()=>Lt,groupBy:()=>Ge,ignoreElements:()=>te.w,isEmpty:()=>de,last:()=>ke.H,map:()=>hn.T,mapTo:()=>nt.u,materialize:()=>It,max:()=>Gt,merge:()=>_t,mergeAll:()=>an.U,mergeMap:()=>D.Z,mergeMapTo:()=>Je,mergeScan:()=>Fe,mergeWith:()=>et,min:()=>je,multicast:()=>At,observeOn:()=>qt.Q,onErrorResumeNext:()=>Oi,pairwise:()=>Ei,partition:()=>at,pluck:()=>Jt,publish:()=>Be,publishBehavior:()=>Et,publishLast:()=>_n,publishReplay:()=>ut,race:()=>xe,raceWith:()=>mt,reduce:()=>T,refCount:()=>wt.B,repeat:()=>H,repeatWhen:()=>me,retry:()=>le,retryWhen:()=>$e,sample:()=>ln,sampleTime:()=>Jn,scan:()=>ti.S,sequenceEqual:()=>In,share:()=>yi.u,shareReplay:()=>ar.t,single:()=>Ri,skip:()=>On.i,skipLast:()=>yn,skipUntil:()=>$i,skipWhile:()=>qn,startWith:()=>Zn.Z,subscribeOn:()=>ii._,switchAll:()=>Ui,switchMap:()=>Wi.n,switchMapTo:()=>Un,switchScan:()=>vn,take:()=>Xt.s,takeLast:()=>Dn.o,takeUntil:()=>Rn.Q,takeWhile:()=>Hn.v,tap:()=>ji.M,throttle:()=>Ji,throttleTime:()=>Gi,throwIfEmpty:()=>jt.v,timeInterval:()=>lr,timeout:()=>Tr.w,timeoutWith:()=>_s,timestamp:()=>Fr,toArray:()=>S,window:()=>Ur,windowCount:()=>mr,windowTime:()=>es,windowToggle:()=>Li,windowWhen:()=>ts,withLatestFrom:()=>Bn,zip:()=>us,zipAll:()=>br,zipWith:()=>vs});var t=g(5135),_=g(3578),C=g(9974),E=g(5343),u=g(4360),b=g(8750);function s(Dt){return(0,C.N)((vt,Tt)=>{let kt=[];return vt.subscribe((0,u._)(Tt,$t=>kt.push($t),()=>{Tt.next(kt),Tt.complete()})),(0,b.Tg)(Dt).subscribe((0,u._)(Tt,()=>{const $t=kt;kt=[],Tt.next($t)},E.l)),()=>{kt=null}})}var f=g(7908);function d(Dt,vt=null){return vt=vt??Dt,(0,C.N)((Tt,kt)=>{let $t=[],Wt=0;Tt.subscribe((0,u._)(kt,sn=>{let fn=null;Wt++%vt==0&&$t.push([]);for(const bn of $t)bn.push(sn),Dt<=bn.length&&(fn=fn??[],fn.push(bn));if(fn)for(const bn of fn)(0,f.o)($t,bn),kt.next(bn)},()=>{for(const sn of $t)kt.next(sn);kt.complete()},void 0,()=>{$t=null}))})}var l=g(8359),c=g(3236),o=g(9326),r=g(5225);function h(Dt,...vt){var Tt,kt;const $t=null!==(Tt=(0,o.lI)(vt))&&void 0!==Tt?Tt:c.E,Wt=null!==(kt=vt[0])&&void 0!==kt?kt:null,sn=vt[1]||1/0;return(0,C.N)((fn,bn)=>{let Tn=[],$n=!1;const Mi=Vn=>{const{buffer:ri,subs:li}=Vn;li.unsubscribe(),(0,f.o)(Tn,Vn),bn.next(ri),$n&&Xn()},Xn=()=>{if(Tn){const Vn=new l.yU;bn.add(Vn);const li={buffer:[],subs:Vn};Tn.push(li),(0,r.N)(Vn,$t,()=>Mi(li),Dt)}};null!==Wt&&Wt>=0?(0,r.N)(bn,$t,Xn,Wt,!0):$n=!0,Xn();const Ti=(0,u._)(bn,Vn=>{const ri=Tn.slice();for(const li of ri){const{buffer:ur}=li;ur.push(Vn),sn<=ur.length&&Mi(li)}},()=>{for(;Tn?.length;)bn.next(Tn.shift().buffer);Ti?.unsubscribe(),bn.complete(),bn.unsubscribe()},void 0,()=>Tn=null);fn.subscribe(Ti)})}function p(Dt,vt){return(0,C.N)((Tt,kt)=>{const $t=[];(0,b.Tg)(Dt).subscribe((0,u._)(kt,Wt=>{const sn=[];$t.push(sn);const fn=new l.yU;fn.add((0,b.Tg)(vt(Wt)).subscribe((0,u._)(kt,()=>{(0,f.o)($t,sn),kt.next(sn),fn.unsubscribe()},E.l)))},E.l)),Tt.subscribe((0,u._)(kt,Wt=>{for(const sn of $t)sn.push(Wt)},()=>{for(;$t.length>0;)kt.next($t.shift());kt.complete()}))})}function v(Dt){return(0,C.N)((vt,Tt)=>{let kt=null,$t=null;const Wt=()=>{$t?.unsubscribe();const sn=kt;kt=[],sn&&Tt.next(sn),(0,b.Tg)(Dt()).subscribe($t=(0,u._)(Tt,Wt,E.l))};Wt(),vt.subscribe((0,u._)(Tt,sn=>kt?.push(sn),()=>{kt&&Tt.next(kt),Tt.complete()},void 0,()=>kt=$t=null))})}var y=g(9437),M=g(4572),w=g(3669),k=g(6450),I=g(1203),D=g(3028),O=g(6649);function T(Dt,vt){return(0,C.N)((0,O.S)(Dt,vt,arguments.length>=2,!1,!0))}const U=(Dt,vt)=>(Dt.push(vt),Dt);function S(){return(0,C.N)((Dt,vt)=>{T(U,[])(Dt).subscribe(vt)})}function R(Dt,vt){return(0,I.F)(S(),(0,D.Z)(Tt=>Dt(Tt)),vt?(0,k.I)(vt):w.D)}function N(Dt){return R(M.z,Dt)}const A=N;var F=g(9945);function Y(...Dt){const vt=(0,o.ms)(Dt);return vt?(0,I.F)(Y(...Dt),(0,k.I)(vt)):(0,C.N)((Tt,kt)=>{(0,M.P)([Tt,...(0,F.K)(Dt)])(kt)})}function ee(...Dt){return Y(...Dt)}var ie=g(9131),$=g(8455);function j(...Dt){const vt=(0,o.lI)(Dt);return(0,C.N)((Tt,kt)=>{(0,ie.K)()((0,$.H)([Tt,...Dt],vt)).subscribe(kt)})}var G=g(274),V=g(8071);function W(Dt,vt){return(0,V.T)(vt)?(0,G.H)(()=>Dt,vt):(0,G.H)(()=>Dt)}function K(...Dt){return j(...Dt)}var ce=g(1413),ue=g(1985);const Ye={connector:()=>new ce.B};function pt(Dt,vt=Ye){const{connector:Tt}=vt;return(0,C.N)((kt,$t)=>{const Wt=Tt();(0,b.Tg)(Dt(function ve(Dt){return new ue.c(vt=>Dt.subscribe(vt))}(Wt))).subscribe($t),$t.add(kt.subscribe(Wt))})}function ct(Dt){return T((vt,Tt,kt)=>!Dt||Dt(Tt,kt)?vt+1:vt,0)}function Ct(Dt){return(0,C.N)((vt,Tt)=>{let kt=!1,$t=null,Wt=null;const sn=()=>{if(Wt?.unsubscribe(),Wt=null,kt){kt=!1;const fn=$t;$t=null,Tt.next(fn)}};vt.subscribe((0,u._)(Tt,fn=>{Wt?.unsubscribe(),kt=!0,$t=fn,Wt=(0,u._)(Tt,sn,E.l),(0,b.Tg)(Dt(fn)).subscribe(Wt)},()=>{sn(),Tt.complete()},void 0,()=>{$t=Wt=null}))})}var We=g(152),Ne=g(9901),Ie=g(3103),rt=g(3183),Ee=g(983),be=g(7673),Se=g(8810);class pe{constructor(vt,Tt,kt){this.kind=vt,this.value=Tt,this.error=kt,this.hasValue="N"===vt}observe(vt){return Re(this,vt)}do(vt,Tt,kt){const{kind:$t,value:Wt,error:sn}=this;return"N"===$t?vt?.(Wt):"E"===$t?Tt?.(sn):kt?.()}accept(vt,Tt,kt){var $t;return(0,V.T)(null===($t=vt)||void 0===$t?void 0:$t.next)?this.observe(vt):this.do(vt,Tt,kt)}toObservable(){const{kind:vt,value:Tt,error:kt}=this,$t="N"===vt?(0,be.of)(Tt):"E"===vt?(0,Se.$)(()=>kt):"C"===vt?Ee.w:0;if(!$t)throw new TypeError(`Unexpected notification kind ${vt}`);return $t}static createNext(vt){return new pe("N",vt)}static createError(vt){return new pe("E",void 0,vt)}static createComplete(){return pe.completeNotification}}function Re(Dt,vt){var Tt,kt,$t;const{kind:Wt,value:sn,error:fn}=Dt;if("string"!=typeof Wt)throw new TypeError('Invalid notification, missing "kind"');"N"===Wt?null===(Tt=vt.next)||void 0===Tt||Tt.call(vt,sn):"E"===Wt?null===(kt=vt.error)||void 0===kt||kt.call(vt,fn):null===($t=vt.complete)||void 0===$t||$t.call(vt)}function bt(){return(0,C.N)((Dt,vt)=>{Dt.subscribe((0,u._)(vt,Tt=>Re(Tt,vt)))})}function it(Dt,vt){return(0,C.N)((Tt,kt)=>{const $t=new Set;Tt.subscribe((0,u._)(kt,Wt=>{const sn=Dt?Dt(Wt):Wt;$t.has(sn)||($t.add(sn),kt.next(Wt))})),vt&&(0,b.Tg)(vt).subscribe((0,u._)(kt,()=>$t.clear(),E.l))})}pe.completeNotification=new pe("C");var ye=g(3294);function He(Dt,vt){return(0,ye.F)((Tt,kt)=>vt?vt(Tt[Dt],kt[Dt]):Tt[Dt]===kt[Dt])}var De=g(1853);const st=(0,De.L)(Dt=>function(){Dt(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"});var xt=g(5964),jt=g(3774),Xt=g(6697);function un(Dt,vt){if(Dt<0)throw new st;const Tt=arguments.length>=2;return kt=>kt.pipe((0,xt.p)(($t,Wt)=>Wt===Dt),(0,Xt.s)(1),Tt?(0,Ne.U)(vt):(0,jt.v)(()=>new st))}var dn=g(2688);function cn(...Dt){return vt=>(0,dn.x)(vt,(0,be.of)(...Dt))}function rn(Dt,vt){return(0,C.N)((Tt,kt)=>{let $t=0;Tt.subscribe((0,u._)(kt,Wt=>{Dt.call(vt,Wt,$t++,Tt)||(kt.next(!1),kt.complete())},()=>{kt.next(!0),kt.complete()}))})}var hn=g(6354);function Nt(Dt,vt){return vt?Tt=>Tt.pipe(Nt((kt,$t)=>(0,b.Tg)(Dt(kt,$t)).pipe((0,hn.T)((Wt,sn)=>vt(kt,Wt,$t,sn))))):(0,C.N)((Tt,kt)=>{let $t=0,Wt=null,sn=!1;Tt.subscribe((0,u._)(kt,fn=>{Wt||(Wt=(0,u._)(kt,void 0,()=>{Wt=null,sn&&kt.complete()}),(0,b.Tg)(Dt(fn,$t++)).subscribe(Wt))},()=>{sn=!0,!Wt&&kt.complete()}))})}function Bt(){return Nt(w.D)}const _e=Bt;var Ze=g(5412);function Qe(Dt,vt=1/0,Tt){return vt=(vt||0)<1?1/0:vt,(0,C.N)((kt,$t)=>(0,Ze.h)(kt,$t,Dt,vt,void 0,!0,Tt))}var Ot=g(980);function tt(Dt,vt){return(0,C.N)(ft(Dt,vt,"value"))}function ft(Dt,vt,Tt){const kt="index"===Tt;return($t,Wt)=>{let sn=0;$t.subscribe((0,u._)(Wt,fn=>{const bn=sn++;Dt.call(vt,fn,bn,$t)&&(Wt.next(kt?bn:fn),Wt.complete())},()=>{Wt.next(kt?-1:void 0),Wt.complete()}))}}function Le(Dt,vt){return(0,C.N)(ft(Dt,vt,"index"))}var fe=g(1594);function Ge(Dt,vt,Tt,kt){return(0,C.N)(($t,Wt)=>{let sn;vt&&"function"!=typeof vt?({duration:Tt,element:sn,connector:kt}=vt):sn=vt;const fn=new Map,bn=Vn=>{fn.forEach(Vn),Vn(Wt)},Tn=Vn=>bn(ri=>ri.error(Vn));let $n=0,Mi=!1;const Xn=new u.H(Wt,Vn=>{try{const ri=Dt(Vn);let li=fn.get(ri);if(!li){fn.set(ri,li=kt?kt():new ce.B);const ur=function Ti(Vn,ri){const li=new ue.c(ur=>{$n++;const Bi=ri.subscribe(ur);return()=>{Bi.unsubscribe(),0==--$n&&Mi&&Xn.unsubscribe()}});return li.key=Vn,li}(ri,li);if(Wt.next(ur),Tt){const Bi=(0,u._)(li,()=>{li.complete(),Bi?.unsubscribe()},void 0,void 0,()=>fn.delete(ri));Xn.add((0,b.Tg)(Tt(ur)).subscribe(Bi))}}li.next(sn?sn(Vn):Vn)}catch(ri){Tn(ri)}},()=>bn(Vn=>Vn.complete()),Tn,()=>fn.clear(),()=>(Mi=!0,0===$n));$t.subscribe(Xn)})}var te=g(3557);function de(){return(0,C.N)((Dt,vt)=>{Dt.subscribe((0,u._)(vt,()=>{vt.next(!1),vt.complete()},()=>{vt.next(!0),vt.complete()}))})}var ke=g(7018),nt=g(3703);function It(){return(0,C.N)((Dt,vt)=>{Dt.subscribe((0,u._)(vt,Tt=>{vt.next(pe.createNext(Tt))},()=>{vt.next(pe.createComplete()),vt.complete()},Tt=>{vt.next(pe.createError(Tt)),vt.complete()}))})}function Gt(Dt){return T((0,V.T)(Dt)?(vt,Tt)=>Dt(vt,Tt)>0?vt:Tt:(vt,Tt)=>vt>Tt?vt:Tt)}var an=g(6365);function _t(...Dt){const vt=(0,o.lI)(Dt),Tt=(0,o.R0)(Dt,1/0);return Dt=(0,F.K)(Dt),(0,C.N)((kt,$t)=>{(0,an.U)(Tt)((0,$.H)([kt,...Dt],vt)).subscribe($t)})}const Lt=D.Z;function Je(Dt,vt,Tt=1/0){return(0,V.T)(vt)?(0,D.Z)(()=>Dt,vt,Tt):("number"==typeof vt&&(Tt=vt),(0,D.Z)(()=>Dt,Tt))}function Fe(Dt,vt,Tt=1/0){return(0,C.N)((kt,$t)=>{let Wt=vt;return(0,Ze.h)(kt,$t,(sn,fn)=>Dt(Wt,sn,fn),Tt,sn=>{Wt=sn},!1,void 0,()=>Wt=null)})}function et(...Dt){return _t(...Dt)}function je(Dt){return T((0,V.T)(Dt)?(vt,Tt)=>Dt(vt,Tt)<0?vt:Tt:(vt,Tt)=>vtDt;return(0,V.T)(vt)?pt(vt,{connector:Tt}):kt=>new dt.G(kt,Tt)}var qt=g(941);const Oi=function Ln(...Dt){const vt=(0,F.K)(Dt);return Tt=>function Cn(...Dt){const vt=(0,F.K)(Dt);return new ue.c(Tt=>{let kt=0;const $t=()=>{if(kt{let Tt,kt=!1;Dt.subscribe((0,u._)(vt,$t=>{const Wt=Tt;Tt=$t,kt&&vt.next([Wt,$t]),kt=!0}))})}function jn(Dt,vt){return(Tt,kt)=>!Dt.call(vt,Tt,kt)}function at(Dt,vt){return Tt=>[(0,xt.p)(Dt,vt)(Tt),(0,xt.p)(jn(Dt,vt))(Tt)]}function Jt(...Dt){const vt=Dt.length;if(0===vt)throw new Error("list of properties cannot be empty.");return(0,hn.T)(Tt=>{let kt=Tt;for(let $t=0;$tpt(Dt)(vt):vt=>At(new ce.B)(vt)}var lt=g(4412);function Et(Dt){return vt=>{const Tt=new lt.t(Dt);return new dt.G(vt,()=>Tt)}}class nn extends ce.B{constructor(){super(...arguments),this._value=null,this._hasValue=!1,this._isComplete=!1}_checkFinalizedStatuses(vt){const{hasError:Tt,_hasValue:kt,_value:$t,thrownError:Wt,isStopped:sn,_isComplete:fn}=this;Tt?vt.error(Wt):(sn||fn)&&(kt&&vt.next($t),vt.complete())}next(vt){this.isStopped||(this._value=vt,this._hasValue=!0)}complete(){const{_hasValue:vt,_value:Tt,_isComplete:kt}=this;kt||(this._isComplete=!0,vt&&super.next(Tt),super.complete())}}function _n(){return Dt=>{const vt=new nn;return new dt.G(Dt,()=>vt)}}var Ue=g(2771);function ut(Dt,vt,Tt,kt){Tt&&!(0,V.T)(Tt)&&(kt=Tt);const $t=(0,V.T)(Tt)?Tt:void 0;return Wt=>At(new Ue.m(Dt,vt,kt),$t)(Wt)}var Ke=g(1033);function mt(...Dt){return Dt.length?(0,C.N)((vt,Tt)=>{(0,Ke.w)([vt,...Dt])(Tt)}):w.D}function xe(...Dt){return mt(...(0,F.K)(Dt))}var Mt=g(1807);function H(Dt){let Tt,vt=1/0;return null!=Dt&&("object"==typeof Dt?({count:vt=1/0,delay:Tt}=Dt):vt=Dt),vt<=0?()=>Ee.w:(0,C.N)((kt,$t)=>{let sn,Wt=0;const fn=()=>{if(sn?.unsubscribe(),sn=null,null!=Tt){const Tn="number"==typeof Tt?(0,Mt.O)(Tt):(0,b.Tg)(Tt(Wt)),$n=(0,u._)($t,()=>{$n.unsubscribe(),bn()});Tn.subscribe($n)}else bn()},bn=()=>{let Tn=!1;sn=kt.subscribe((0,u._)($t,void 0,()=>{++Wt{let kt,Wt,$t=!1,sn=!1,fn=!1;const bn=()=>fn&&sn&&(Tt.complete(),!0),$n=()=>{fn=!1,kt=vt.subscribe((0,u._)(Tt,void 0,()=>{fn=!0,!bn()&&(Wt||(Wt=new ce.B,(0,b.Tg)(Dt(Wt)).subscribe((0,u._)(Tt,()=>{kt?$n():$t=!0},()=>{sn=!0,bn()}))),Wt).next()})),$t&&(kt.unsubscribe(),kt=null,$t=!1,$n())};$n()})}function le(Dt=1/0){let vt;vt=Dt&&"object"==typeof Dt?Dt:{count:Dt};const{count:Tt=1/0,delay:kt,resetOnSuccess:$t=!1}=vt;return Tt<=0?w.D:(0,C.N)((Wt,sn)=>{let bn,fn=0;const Tn=()=>{let $n=!1;bn=Wt.subscribe((0,u._)(sn,Mi=>{$t&&(fn=0),sn.next(Mi)},void 0,Mi=>{if(fn++{bn?(bn.unsubscribe(),bn=null,Tn()):$n=!0};if(null!=kt){const Ti="number"==typeof kt?(0,Mt.O)(kt):(0,b.Tg)(kt(Mi,fn)),Vn=(0,u._)(sn,()=>{Vn.unsubscribe(),Xn()},()=>{sn.complete()});Ti.subscribe(Vn)}else Xn()}else sn.error(Mi)})),$n&&(bn.unsubscribe(),bn=null,Tn())};Tn()})}function $e(Dt){return(0,C.N)((vt,Tt)=>{let kt,Wt,$t=!1;const sn=()=>{kt=vt.subscribe((0,u._)(Tt,void 0,void 0,fn=>{Wt||(Wt=new ce.B,(0,b.Tg)(Dt(Wt)).subscribe((0,u._)(Tt,()=>kt?sn():$t=!0))),Wt&&Wt.next(fn)})),$t&&(kt.unsubscribe(),kt=null,$t=!1,sn())};sn()})}var wt=g(9898);function ln(Dt){return(0,C.N)((vt,Tt)=>{let kt=!1,$t=null;vt.subscribe((0,u._)(Tt,Wt=>{kt=!0,$t=Wt})),(0,b.Tg)(Dt).subscribe((0,u._)(Tt,()=>{if(kt){kt=!1;const Wt=$t;$t=null,Tt.next(Wt)}},E.l))})}function Jn(Dt,vt=c.E){return ln(function Gn(Dt=0,vt=c.E){return Dt<0&&(Dt=0),(0,Mt.O)(Dt,Dt,vt)}(Dt,vt))}var ti=g(1943);function In(Dt,vt=((Tt,kt)=>Tt===kt)){return(0,C.N)((Tt,kt)=>{const $t={buffer:[],complete:!1},Wt={buffer:[],complete:!1},sn=bn=>{kt.next(bn),kt.complete()},fn=(bn,Tn)=>{const $n=(0,u._)(kt,Mi=>{const{buffer:Xn,complete:Ti}=Tn;0===Xn.length?Ti?sn(!1):bn.buffer.push(Mi):!vt(Mi,Xn.shift())&&sn(!1)},()=>{bn.complete=!0;const{complete:Mi,buffer:Xn}=Tn;Mi&&sn(0===Xn.length),$n?.unsubscribe()});return $n};Tt.subscribe(fn($t,Wt)),(0,b.Tg)(Dt).subscribe(fn(Wt,$t))})}var yi=g(7647),ar=g(4668),_i=g(9350);const hi=(0,De.L)(Dt=>function(Tt){Dt(this),this.name="SequenceError",this.message=Tt}),xi=(0,De.L)(Dt=>function(Tt){Dt(this),this.name="NotFoundError",this.message=Tt});function Ri(Dt){return(0,C.N)((vt,Tt)=>{let $t,kt=!1,Wt=!1,sn=0;vt.subscribe((0,u._)(Tt,fn=>{Wt=!0,(!Dt||Dt(fn,sn++,vt))&&(kt&&Tt.error(new hi("Too many matching values")),kt=!0,$t=fn)},()=>{kt?(Tt.next($t),Tt.complete()):Tt.error(Wt?new xi("No matching values"):new _i.G)}))})}var On=g(5245);function yn(Dt){return Dt<=0?w.D:(0,C.N)((vt,Tt)=>{let kt=new Array(Dt),$t=0;return vt.subscribe((0,u._)(Tt,Wt=>{const sn=$t++;if(sn{kt=null}})}function $i(Dt){return(0,C.N)((vt,Tt)=>{let kt=!1;const $t=(0,u._)(Tt,()=>{$t?.unsubscribe(),kt=!0},E.l);(0,b.Tg)(Dt).subscribe($t),vt.subscribe((0,u._)(Tt,Wt=>kt&&Tt.next(Wt)))})}function qn(Dt){return(0,C.N)((vt,Tt)=>{let kt=!1,$t=0;vt.subscribe((0,u._)(Tt,Wt=>(kt||(kt=!Dt(Wt,$t++)))&&Tt.next(Wt)))})}var Zn=g(9172),ii=g(6745),Wi=g(5558);function Ui(){return(0,Wi.n)(w.D)}function Un(Dt,vt){return(0,V.T)(vt)?(0,Wi.n)(()=>Dt,vt):(0,Wi.n)(()=>Dt)}function vn(Dt,vt){return(0,C.N)((Tt,kt)=>{let $t=vt;return(0,Wi.n)((Wt,sn)=>Dt($t,Wt,sn),(Wt,sn)=>($t=sn,sn))(Tt).subscribe(kt),()=>{$t=null}})}var Dn=g(5109),Rn=g(6977),Hn=g(7048),ji=g(8141);function Ji(Dt,vt){return(0,C.N)((Tt,kt)=>{const{leading:$t=!0,trailing:Wt=!1}=vt??{};let sn=!1,fn=null,bn=null,Tn=!1;const $n=()=>{bn?.unsubscribe(),bn=null,Wt&&(Ti(),Tn&&kt.complete())},Mi=()=>{bn=null,Tn&&kt.complete()},Xn=Vn=>bn=(0,b.Tg)(Dt(Vn)).subscribe((0,u._)(kt,$n,Mi)),Ti=()=>{if(sn){sn=!1;const Vn=fn;fn=null,kt.next(Vn),!Tn&&Xn(Vn)}};Tt.subscribe((0,u._)(kt,Vn=>{sn=!0,fn=Vn,(!bn||bn.closed)&&($t?Ti():Xn(Vn))},()=>{Tn=!0,(!(Wt&&sn&&bn)||bn.closed)&&kt.complete()}))})}function Gi(Dt,vt=c.E,Tt){const kt=(0,Mt.O)(Dt,vt);return Ji(()=>kt,Tt)}function lr(Dt=c.E){return(0,C.N)((vt,Tt)=>{let kt=Dt.now();vt.subscribe((0,u._)(Tt,$t=>{const Wt=Dt.now(),sn=Wt-kt;kt=Wt,Tt.next(new Hr($t,sn))}))})}class Hr{constructor(vt,Tt){this.value=vt,this.interval=Tt}}var Tr=g(2087),wr=g(8211);function _s(Dt,vt,Tt){let kt,$t,Wt;if(Tt=Tt??c.b,(0,wr.v)(Dt)?kt=Dt:"number"==typeof Dt&&($t=Dt),!vt)throw new TypeError("No observable provided to switch to");if(Wt=()=>vt,null==kt&&null==$t)throw new TypeError("No timeout provided.");return(0,Tr.w)({first:kt,each:$t,scheduler:Tt,with:Wt})}var Sr=g(6129);function Fr(Dt=Sr.U){return(0,hn.T)(vt=>({value:vt,timestamp:Dt.now()}))}function Ur(Dt){return(0,C.N)((vt,Tt)=>{let kt=new ce.B;Tt.next(kt.asObservable());const $t=Wt=>{kt.error(Wt),Tt.error(Wt)};return vt.subscribe((0,u._)(Tt,Wt=>kt?.next(Wt),()=>{kt.complete(),Tt.complete()},$t)),(0,b.Tg)(Dt).subscribe((0,u._)(Tt,()=>{kt.complete(),Tt.next(kt=new ce.B)},E.l,$t)),()=>{kt?.unsubscribe(),kt=null}})}function mr(Dt,vt=0){const Tt=vt>0?vt:Dt;return(0,C.N)((kt,$t)=>{let Wt=[new ce.B],sn=[],fn=0;$t.next(Wt[0].asObservable()),kt.subscribe((0,u._)($t,bn=>{for(const $n of Wt)$n.next(bn);const Tn=fn-Dt+1;if(Tn>=0&&Tn%Tt==0&&Wt.shift().complete(),++fn%Tt==0){const $n=new ce.B;Wt.push($n),$t.next($n.asObservable())}},()=>{for(;Wt.length>0;)Wt.shift().complete();$t.complete()},bn=>{for(;Wt.length>0;)Wt.shift().error(bn);$t.error(bn)},()=>{sn=null,Wt=null}))})}function es(Dt,...vt){var Tt,kt;const $t=null!==(Tt=(0,o.lI)(vt))&&void 0!==Tt?Tt:c.E,Wt=null!==(kt=vt[0])&&void 0!==kt?kt:null,sn=vt[1]||1/0;return(0,C.N)((fn,bn)=>{let Tn=[],$n=!1;const Mi=ri=>{const{window:li,subs:ur}=ri;li.complete(),ur.unsubscribe(),(0,f.o)(Tn,ri),$n&&Xn()},Xn=()=>{if(Tn){const ri=new l.yU;bn.add(ri);const li=new ce.B,ur={window:li,subs:ri,seen:0};Tn.push(ur),bn.next(li.asObservable()),(0,r.N)(ri,$t,()=>Mi(ur),Dt)}};null!==Wt&&Wt>=0?(0,r.N)(bn,$t,Xn,Wt,!0):$n=!0,Xn();const Ti=ri=>Tn.slice().forEach(ri),Vn=ri=>{Ti(({window:li})=>ri(li)),ri(bn),bn.unsubscribe()};return fn.subscribe((0,u._)(bn,ri=>{Ti(li=>{li.window.next(ri),sn<=++li.seen&&Mi(li)})},()=>Vn(ri=>ri.complete()),ri=>Vn(li=>li.error(ri)))),()=>{Tn=null}})}function Li(Dt,vt){return(0,C.N)((Tt,kt)=>{const $t=[],Wt=sn=>{for(;0<$t.length;)$t.shift().error(sn);kt.error(sn)};(0,b.Tg)(Dt).subscribe((0,u._)(kt,sn=>{const fn=new ce.B;$t.push(fn);const bn=new l.yU;let $n;try{$n=(0,b.Tg)(vt(sn))}catch(Mi){return void Wt(Mi)}kt.next(fn.asObservable()),bn.add($n.subscribe((0,u._)(kt,()=>{(0,f.o)($t,fn),fn.complete(),bn.unsubscribe()},E.l,Wt)))},E.l)),Tt.subscribe((0,u._)(kt,sn=>{const fn=$t.slice();for(const bn of fn)bn.next(sn)},()=>{for(;0<$t.length;)$t.shift().complete();kt.complete()},Wt,()=>{for(;0<$t.length;)$t.shift().unsubscribe()}))})}function ts(Dt){return(0,C.N)((vt,Tt)=>{let kt,$t;const Wt=fn=>{kt.error(fn),Tt.error(fn)},sn=()=>{let fn;$t?.unsubscribe(),kt?.complete(),kt=new ce.B,Tt.next(kt.asObservable());try{fn=(0,b.Tg)(Dt())}catch(bn){return void Wt(bn)}fn.subscribe($t=(0,u._)(Tt,sn,sn,Wt))};sn(),vt.subscribe((0,u._)(Tt,fn=>kt.next(fn),()=>{kt.complete(),Tt.complete()},Wt,()=>{$t?.unsubscribe(),kt=null}))})}function Bn(...Dt){const vt=(0,o.ms)(Dt);return(0,C.N)((Tt,kt)=>{const $t=Dt.length,Wt=new Array($t);let sn=Dt.map(()=>!1),fn=!1;for(let bn=0;bn<$t;bn++)(0,b.Tg)(Dt[bn]).subscribe((0,u._)(kt,Tn=>{Wt[bn]=Tn,!fn&&!sn[bn]&&(sn[bn]=!0,(fn=sn.every(w.D))&&(sn=null))},E.l));Tt.subscribe((0,u._)(kt,bn=>{if(fn){const Tn=[bn,...Wt];kt.next(vt?vt(...Tn):Tn)}}))})}var zr=g(4437);function us(...Dt){return(0,C.N)((vt,Tt)=>{(0,zr.y)(vt,...Dt).subscribe(Tt)})}function br(Dt){return R(zr.y,Dt)}function vs(...Dt){return us(...Dt)}},3321:Te=>{"use strict";Te.exports=(ne,g)=>{if("string"!=typeof ne||"string"!=typeof g)throw new TypeError("Expected the arguments to be of type `string`");if(""===g)return[ne];const t=ne.indexOf(g);return-1===t?[ne]:[ne.slice(0,t),ne.slice(t+g.length)]}},8467:Te=>{"use strict";Te.exports=ne=>encodeURIComponent(ne).replace(/[!'()*]/g,g=>`%${g.charCodeAt(0).toString(16).toUpperCase()}`)},5215:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{__addDisposableResource:()=>ee,__assign:()=>C,__asyncDelegator:()=>O,__asyncGenerator:()=>D,__asyncValues:()=>T,__await:()=>I,__awaiter:()=>o,__classPrivateFieldGet:()=>A,__classPrivateFieldIn:()=>Y,__classPrivateFieldSet:()=>F,__createBinding:()=>h,__decorate:()=>u,__disposeResources:()=>$,__esDecorate:()=>s,__exportStar:()=>p,__extends:()=>_,__generator:()=>r,__importDefault:()=>N,__importStar:()=>R,__makeTemplateObject:()=>U,__metadata:()=>c,__param:()=>b,__propKey:()=>d,__read:()=>y,__rest:()=>E,__runInitializers:()=>f,__setFunctionName:()=>l,__spread:()=>M,__spreadArray:()=>k,__spreadArrays:()=>w,__values:()=>v,default:()=>j});var t=function(G,V){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,K){W.__proto__=K}||function(W,K){for(var ce in K)Object.prototype.hasOwnProperty.call(K,ce)&&(W[ce]=K[ce])})(G,V)};function _(G,V){if("function"!=typeof V&&null!==V)throw new TypeError("Class extends value "+String(V)+" is not a constructor or null");function W(){this.constructor=G}t(G,V),G.prototype=null===V?Object.create(V):(W.prototype=V.prototype,new W)}var C=function(){return C=Object.assign||function(V){for(var W,K=1,ce=arguments.length;K=0;Ye--)(ve=G[Ye])&&(ue=(ce<3?ve(ue):ce>3?ve(V,W,ue):ve(V,W))||ue);return ce>3&&ue&&Object.defineProperty(V,W,ue),ue}function b(G,V){return function(W,K){V(W,K,G)}}function s(G,V,W,K,ce,ue){function ve(Se){if(void 0!==Se&&"function"!=typeof Se)throw new TypeError("Function expected");return Se}for(var We,Ye=K.kind,pt="getter"===Ye?"get":"setter"===Ye?"set":"value",ct=!V&&G?K.static?G:G.prototype:null,Ct=V||(ct?Object.getOwnPropertyDescriptor(ct,K.name):{}),Ne=!1,Ie=W.length-1;Ie>=0;Ie--){var rt={};for(var Ee in K)rt[Ee]="access"===Ee?{}:K[Ee];for(var Ee in K.access)rt.access[Ee]=K.access[Ee];rt.addInitializer=function(Se){if(Ne)throw new TypeError("Cannot add initializers after decoration has completed");ue.push(ve(Se||null))};var be=(0,W[Ie])("accessor"===Ye?{get:Ct.get,set:Ct.set}:Ct[pt],rt);if("accessor"===Ye){if(void 0===be)continue;if(null===be||"object"!=typeof be)throw new TypeError("Object expected");(We=ve(be.get))&&(Ct.get=We),(We=ve(be.set))&&(Ct.set=We),(We=ve(be.init))&&ce.unshift(We)}else(We=ve(be))&&("field"===Ye?ce.unshift(We):Ct[pt]=We)}ct&&Object.defineProperty(ct,K.name,Ct),Ne=!0}function f(G,V,W){for(var K=arguments.length>2,ce=0;ce0&&ue[ue.length-1])&&(6===ct[0]||2===ct[0])){W=0;continue}if(3===ct[0]&&(!ue||ct[1]>ue[0]&&ct[1]=G.length&&(G=void 0),{value:G&&G[K++],done:!G}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(G,V){var W="function"==typeof Symbol&&G[Symbol.iterator];if(!W)return G;var ce,ve,K=W.call(G),ue=[];try{for(;(void 0===V||V-- >0)&&!(ce=K.next()).done;)ue.push(ce.value)}catch(Ye){ve={error:Ye}}finally{try{ce&&!ce.done&&(W=K.return)&&W.call(K)}finally{if(ve)throw ve.error}}return ue}function M(){for(var G=[],V=0;V1||Ye(Ne,Ie)})})}function Ye(Ne,Ie){try{!function pt(Ne){Ne.value instanceof I?Promise.resolve(Ne.value.v).then(ct,Ct):We(ue[0][2],Ne)}(K[Ne](Ie))}catch(rt){We(ue[0][3],rt)}}function ct(Ne){Ye("next",Ne)}function Ct(Ne){Ye("throw",Ne)}function We(Ne,Ie){Ne(Ie),ue.shift(),ue.length&&Ye(ue[0][0],ue[0][1])}}function O(G){var V,W;return V={},K("next"),K("throw",function(ce){throw ce}),K("return"),V[Symbol.iterator]=function(){return this},V;function K(ce,ue){V[ce]=G[ce]?function(ve){return(W=!W)?{value:I(G[ce](ve)),done:!1}:ue?ue(ve):ve}:ue}}function T(G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var W,V=G[Symbol.asyncIterator];return V?V.call(G):(G=v(G),W={},K("next"),K("throw"),K("return"),W[Symbol.asyncIterator]=function(){return this},W);function K(ue){W[ue]=G[ue]&&function(ve){return new Promise(function(Ye,pt){!function ce(ue,ve,Ye,pt){Promise.resolve(pt).then(function(ct){ue({value:ct,done:Ye})},ve)}(Ye,pt,(ve=G[ue](ve)).done,ve.value)})}}}function U(G,V){return Object.defineProperty?Object.defineProperty(G,"raw",{value:V}):G.raw=V,G}var S=Object.create?function(G,V){Object.defineProperty(G,"default",{enumerable:!0,value:V})}:function(G,V){G.default=V};function R(G){if(G&&G.__esModule)return G;var V={};if(null!=G)for(var W in G)"default"!==W&&Object.prototype.hasOwnProperty.call(G,W)&&h(V,G,W);return S(V,G),V}function N(G){return G&&G.__esModule?G:{default:G}}function A(G,V,W,K){if("a"===W&&!K)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof V?G!==V||!K:!V.has(G))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===W?K:"a"===W?K.call(G):K?K.value:V.get(G)}function F(G,V,W,K,ce){if("m"===K)throw new TypeError("Private method is not writable");if("a"===K&&!ce)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof V?G!==V||!ce:!V.has(G))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===K?ce.call(G,W):ce?ce.value=W:V.set(G,W),W}function Y(G,V){if(null===V||"object"!=typeof V&&"function"!=typeof V)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof G?V===G:G.has(V)}function ee(G,V,W){if(null!=V){if("object"!=typeof V&&"function"!=typeof V)throw new TypeError("Object expected.");var K;if(W){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");K=V[Symbol.asyncDispose]}if(void 0===K){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");K=V[Symbol.dispose]}if("function"!=typeof K)throw new TypeError("Object not disposable.");G.stack.push({value:V,dispose:K,async:W})}else W&&G.stack.push({async:!0});return V}var ie="function"==typeof SuppressedError?SuppressedError:function(G,V,W){var K=new Error(W);return K.name="SuppressedError",K.error=G,K.suppressed=V,K};function $(G){function V(K){G.error=G.hasError?new ie(K,G.error,"An error was suppressed during disposal."):K,G.hasError=!0}return function W(){for(;G.stack.length;){var K=G.stack.pop();try{var ce=K.dispose&&K.dispose.call(K.value);if(K.async)return Promise.resolve(ce).then(W,function(ue){return V(ue),W()})}catch(ue){V(ue)}}if(G.hasError)throw G.error}()}const j={__extends:_,__assign:C,__rest:E,__decorate:u,__param:b,__metadata:c,__awaiter:o,__generator:r,__createBinding:h,__exportStar:p,__values:v,__read:y,__spread:M,__spreadArrays:w,__spreadArray:k,__await:I,__asyncGenerator:D,__asyncDelegator:O,__asyncValues:T,__makeTemplateObject:U,__importStar:R,__importDefault:N,__classPrivateFieldGet:A,__classPrivateFieldSet:F,__classPrivateFieldIn:Y,__addDisposableResource:ee,__disposeResources:$}},6653:Te=>{function ne(Le){return Le instanceof Map?Le.clear=Le.delete=Le.set=function(){throw new Error("map is read-only")}:Le instanceof Set&&(Le.add=Le.clear=Le.delete=function(){throw new Error("set is read-only")}),Object.freeze(Le),Object.getOwnPropertyNames(Le).forEach(fe=>{const Ge=Le[fe],te=typeof Ge;("object"===te||"function"===te)&&!Object.isFrozen(Ge)&&ne(Ge)}),Le}class g{constructor(fe){void 0===fe.data&&(fe.data={}),this.data=fe.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function t(Le){return Le.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function _(Le,...fe){const Ge=Object.create(null);for(const te in Le)Ge[te]=Le[te];return fe.forEach(function(te){for(const de in te)Ge[de]=te[de]}),Ge}const E=Le=>!!Le.scope;class b{constructor(fe,Ge){this.buffer="",this.classPrefix=Ge.classPrefix,fe.walk(this)}addText(fe){this.buffer+=t(fe)}openNode(fe){if(!E(fe))return;const Ge=((Le,{prefix:fe})=>{if(Le.startsWith("language:"))return Le.replace("language:","language-");if(Le.includes(".")){const Ge=Le.split(".");return[`${fe}${Ge.shift()}`,...Ge.map((te,de)=>`${te}${"_".repeat(de+1)}`)].join(" ")}return`${fe}${Le}`})(fe.scope,{prefix:this.classPrefix});this.span(Ge)}closeNode(fe){E(fe)&&(this.buffer+="")}value(){return this.buffer}span(fe){this.buffer+=``}}const s=(Le={})=>{const fe={children:[]};return Object.assign(fe,Le),fe};class f{constructor(){this.rootNode=s(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(fe){this.top.children.push(fe)}openNode(fe){const Ge=s({scope:fe});this.add(Ge),this.stack.push(Ge)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(fe){return this.constructor._walk(fe,this.rootNode)}static _walk(fe,Ge){return"string"==typeof Ge?fe.addText(Ge):Ge.children&&(fe.openNode(Ge),Ge.children.forEach(te=>this._walk(fe,te)),fe.closeNode(Ge)),fe}static _collapse(fe){"string"!=typeof fe&&fe.children&&(fe.children.every(Ge=>"string"==typeof Ge)?fe.children=[fe.children.join("")]:fe.children.forEach(Ge=>{f._collapse(Ge)}))}}class d extends f{constructor(fe){super(),this.options=fe}addText(fe){""!==fe&&this.add(fe)}startScope(fe){this.openNode(fe)}endScope(){this.closeNode()}__addSublanguage(fe,Ge){const te=fe.root;Ge&&(te.scope=`language:${Ge}`),this.add(te)}toHTML(){return new b(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function l(Le){return Le?"string"==typeof Le?Le:Le.source:null}function c(Le){return h("(?=",Le,")")}function o(Le){return h("(?:",Le,")*")}function r(Le){return h("(?:",Le,")?")}function h(...Le){return Le.map(Ge=>l(Ge)).join("")}function v(...Le){return"("+(function p(Le){const fe=Le[Le.length-1];return"object"==typeof fe&&fe.constructor===Object?(Le.splice(Le.length-1,1),fe):{}}(Le).capture?"":"?:")+Le.map(te=>l(te)).join("|")+")"}function y(Le){return new RegExp(Le.toString()+"|").exec("").length-1}const w=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function k(Le,{joinWith:fe}){let Ge=0;return Le.map(te=>{Ge+=1;const de=Ge;let ke=l(te),nt="";for(;ke.length>0;){const It=w.exec(ke);if(!It){nt+=ke;break}nt+=ke.substring(0,It.index),ke=ke.substring(It.index+It[0].length),"\\"===It[0][0]&&It[1]?nt+="\\"+String(Number(It[1])+de):(nt+=It[0],"("===It[0]&&Ge++)}return nt}).map(te=>`(${te})`).join(fe)}const D="[a-zA-Z]\\w*",O="[a-zA-Z_]\\w*",T="\\b\\d+(\\.\\d+)?",U="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",S="\\b(0b[01]+)",A={begin:"\\\\[\\s\\S]",relevance:0},F={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[A]},Y={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[A]},ie=function(Le,fe,Ge={}){const te=_({scope:"comment",begin:Le,end:fe,contains:[]},Ge);te.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const de=v("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return te.contains.push({begin:h(/[ ]+/,"(",de,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),te},$=ie("//","$"),j=ie("/\\*","\\*/"),G=ie("#","$");var ct=Object.freeze({__proto__:null,APOS_STRING_MODE:F,BACKSLASH_ESCAPE:A,BINARY_NUMBER_MODE:{scope:"number",begin:S,relevance:0},BINARY_NUMBER_RE:S,COMMENT:ie,C_BLOCK_COMMENT_MODE:j,C_LINE_COMMENT_MODE:$,C_NUMBER_MODE:{scope:"number",begin:U,relevance:0},C_NUMBER_RE:U,END_SAME_AS_BEGIN:function(Le){return Object.assign(Le,{"on:begin":(fe,Ge)=>{Ge.data._beginMatch=fe[1]},"on:end":(fe,Ge)=>{Ge.data._beginMatch!==fe[1]&&Ge.ignoreMatch()}})},HASH_COMMENT_MODE:G,IDENT_RE:D,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:{begin:"\\.\\s*"+O,relevance:0},NUMBER_MODE:{scope:"number",begin:T,relevance:0},NUMBER_RE:T,PHRASAL_WORDS_MODE:{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/},QUOTE_STRING_MODE:Y,REGEXP_MODE:{scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[A,{begin:/\[/,end:/\]/,relevance:0,contains:[A]}]},RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(Le={})=>{const fe=/^#![ ]*\//;return Le.binary&&(Le.begin=h(fe,/.*\b/,Le.binary,/\b.*/)),_({scope:"meta",begin:fe,end:/$/,relevance:0,"on:begin":(Ge,te)=>{0!==Ge.index&&te.ignoreMatch()}},Le)},TITLE_MODE:{scope:"title",begin:D,relevance:0},UNDERSCORE_IDENT_RE:O,UNDERSCORE_TITLE_MODE:{scope:"title",begin:O,relevance:0}});function Ct(Le,fe){"."===Le.input[Le.index-1]&&fe.ignoreMatch()}function We(Le,fe){void 0!==Le.className&&(Le.scope=Le.className,delete Le.className)}function Ne(Le,fe){fe&&Le.beginKeywords&&(Le.begin="\\b("+Le.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",Le.__beforeBegin=Ct,Le.keywords=Le.keywords||Le.beginKeywords,delete Le.beginKeywords,void 0===Le.relevance&&(Le.relevance=0))}function Ie(Le,fe){Array.isArray(Le.illegal)&&(Le.illegal=v(...Le.illegal))}function rt(Le,fe){if(Le.match){if(Le.begin||Le.end)throw new Error("begin & end are not supported with match");Le.begin=Le.match,delete Le.match}}function Ee(Le,fe){void 0===Le.relevance&&(Le.relevance=1)}const be=(Le,fe)=>{if(!Le.beforeMatch)return;if(Le.starts)throw new Error("beforeMatch cannot be used with starts");const Ge=Object.assign({},Le);Object.keys(Le).forEach(te=>{delete Le[te]}),Le.keywords=Ge.keywords,Le.begin=h(Ge.beforeMatch,c(Ge.begin)),Le.starts={relevance:0,contains:[Object.assign(Ge,{endsParent:!0})]},Le.relevance=0,delete Ge.beforeMatch},Se=["of","and","for","in","not","or","if","then","parent","list","value"],Q="keyword";function pe(Le,fe,Ge=Q){const te=Object.create(null);return"string"==typeof Le?de(Ge,Le.split(" ")):Array.isArray(Le)?de(Ge,Le):Object.keys(Le).forEach(function(ke){Object.assign(te,pe(Le[ke],fe,ke))}),te;function de(ke,nt){fe&&(nt=nt.map(It=>It.toLowerCase())),nt.forEach(function(It){const Gt=It.split("|");te[Gt[0]]=[ke,Re(Gt[0],Gt[1])]})}}function Re(Le,fe){return fe?Number(fe):function bt(Le){return Se.includes(Le.toLowerCase())}(Le)?0:1}const it={},ye=Le=>{console.error(Le)},He=(Le,...fe)=>{console.log(`WARN: ${Le}`,...fe)},De=(Le,fe)=>{it[`${Le}/${fe}`]||(console.log(`Deprecated as of ${Le}. ${fe}`),it[`${Le}/${fe}`]=!0)},st=new Error;function xt(Le,fe,{key:Ge}){let te=0;const de=Le[Ge],ke={},nt={};for(let It=1;It<=fe.length;It++)nt[It+te]=de[It],ke[It+te]=!0,te+=y(fe[It-1]);Le[Ge]=nt,Le[Ge]._emit=ke,Le[Ge]._multi=!0}function dn(Le){(function un(Le){Le.scope&&"object"==typeof Le.scope&&null!==Le.scope&&(Le.beginScope=Le.scope,delete Le.scope)})(Le),"string"==typeof Le.beginScope&&(Le.beginScope={_wrap:Le.beginScope}),"string"==typeof Le.endScope&&(Le.endScope={_wrap:Le.endScope}),function jt(Le){if(Array.isArray(Le.begin)){if(Le.skip||Le.excludeBegin||Le.returnBegin)throw ye("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),st;if("object"!=typeof Le.beginScope||null===Le.beginScope)throw ye("beginScope must be object"),st;xt(Le,Le.begin,{key:"beginScope"}),Le.begin=k(Le.begin,{joinWith:""})}}(Le),function Xt(Le){if(Array.isArray(Le.end)){if(Le.skip||Le.excludeEnd||Le.returnEnd)throw ye("skip, excludeEnd, returnEnd not compatible with endScope: {}"),st;if("object"!=typeof Le.endScope||null===Le.endScope)throw ye("endScope must be object"),st;xt(Le,Le.end,{key:"endScope"}),Le.end=k(Le.end,{joinWith:""})}}(Le)}function cn(Le){function fe(nt,It){return new RegExp(l(nt),"m"+(Le.case_insensitive?"i":"")+(Le.unicodeRegex?"u":"")+(It?"g":""))}class Ge{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(It,Gt){Gt.position=this.position++,this.matchIndexes[this.matchAt]=Gt,this.regexes.push([Gt,It]),this.matchAt+=y(It)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const It=this.regexes.map(Gt=>Gt[1]);this.matcherRe=fe(k(It,{joinWith:"|"}),!0),this.lastIndex=0}exec(It){this.matcherRe.lastIndex=this.lastIndex;const Gt=this.matcherRe.exec(It);if(!Gt)return null;const an=Gt.findIndex((Lt,Je)=>Je>0&&void 0!==Lt),_t=this.matchIndexes[an];return Gt.splice(0,an),Object.assign(Gt,_t)}}class te{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(It){if(this.multiRegexes[It])return this.multiRegexes[It];const Gt=new Ge;return this.rules.slice(It).forEach(([an,_t])=>Gt.addRule(an,_t)),Gt.compile(),this.multiRegexes[It]=Gt,Gt}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(It,Gt){this.rules.push([It,Gt]),"begin"===Gt.type&&this.count++}exec(It){const Gt=this.getMatcher(this.regexIndex);Gt.lastIndex=this.lastIndex;let an=Gt.exec(It);if(this.resumingScanAtSamePosition()&&(!an||an.index!==this.lastIndex)){const _t=this.getMatcher(0);_t.lastIndex=this.lastIndex+1,an=_t.exec(It)}return an&&(this.regexIndex+=an.position+1,this.regexIndex===this.count&&this.considerAll()),an}}if(Le.compilerExtensions||(Le.compilerExtensions=[]),Le.contains&&Le.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return Le.classNameAliases=_(Le.classNameAliases||{}),function ke(nt,It){const Gt=nt;if(nt.isCompiled)return Gt;[We,rt,dn,be].forEach(_t=>_t(nt,It)),Le.compilerExtensions.forEach(_t=>_t(nt,It)),nt.__beforeBegin=null,[Ne,Ie,Ee].forEach(_t=>_t(nt,It)),nt.isCompiled=!0;let an=null;return"object"==typeof nt.keywords&&nt.keywords.$pattern&&(nt.keywords=Object.assign({},nt.keywords),an=nt.keywords.$pattern,delete nt.keywords.$pattern),an=an||/\w+/,nt.keywords&&(nt.keywords=pe(nt.keywords,Le.case_insensitive)),Gt.keywordPatternRe=fe(an,!0),It&&(nt.begin||(nt.begin=/\B|\b/),Gt.beginRe=fe(Gt.begin),!nt.end&&!nt.endsWithParent&&(nt.end=/\B|\b/),nt.end&&(Gt.endRe=fe(Gt.end)),Gt.terminatorEnd=l(Gt.end)||"",nt.endsWithParent&&It.terminatorEnd&&(Gt.terminatorEnd+=(nt.end?"|":"")+It.terminatorEnd)),nt.illegal&&(Gt.illegalRe=fe(nt.illegal)),nt.contains||(nt.contains=[]),nt.contains=[].concat(...nt.contains.map(function(_t){return function hn(Le){return Le.variants&&!Le.cachedVariants&&(Le.cachedVariants=Le.variants.map(function(fe){return _(Le,{variants:null},fe)})),Le.cachedVariants?Le.cachedVariants:rn(Le)?_(Le,{starts:Le.starts?_(Le.starts):null}):Object.isFrozen(Le)?_(Le):Le}("self"===_t?nt:_t)})),nt.contains.forEach(function(_t){ke(_t,Gt)}),nt.starts&&ke(nt.starts,It),Gt.matcher=function de(nt){const It=new te;return nt.contains.forEach(Gt=>It.addRule(Gt.begin,{rule:Gt,type:"begin"})),nt.terminatorEnd&&It.addRule(nt.terminatorEnd,{type:"end"}),nt.illegal&&It.addRule(nt.illegal,{type:"illegal"}),It}(Gt),Gt}(Le)}function rn(Le){return!!Le&&(Le.endsWithParent||rn(Le.starts))}class Bt extends Error{constructor(fe,Ge){super(fe),this.name="HTMLInjectionError",this.html=Ge}}const _e=t,Ze=_,Qe=Symbol("nomatch"),tt=function(Le){const fe=Object.create(null),Ge=Object.create(null),te=[];let de=!0;const ke="Could not find the language '{}', did you forget to load/include a language module?",nt={disableAutodetect:!0,name:"Plain text",contains:[]};let It={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:d};function Gt(Ke){return It.noHighlightRe.test(Ke)}function _t(Ke,mt,xe){let Mt="",H="";"object"==typeof mt?(Mt=Ke,xe=mt.ignoreIllegals,H=mt.language):(De("10.7.0","highlight(lang, code, ...args) has been deprecated."),De("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),H=Ke,Mt=mt),void 0===xe&&(xe=!0);const me={code:Mt,language:H};Ue("before:highlight",me);const le=me.result?me.result:Lt(me.language,me.code,xe);return le.code=me.code,Ue("after:highlight",le),le}function Lt(Ke,mt,xe,Mt){const H=Object.create(null);function me(vn,Dn){return vn.keywords[Dn]}function le(){if(!yn.keywords)return void qn.addText(Zn);let vn=0;yn.keywordPatternRe.lastIndex=0;let Dn=yn.keywordPatternRe.exec(Zn),Rn="";for(;Dn;){Rn+=Zn.substring(vn,Dn.index);const Hn=xi.case_insensitive?Dn[0].toLowerCase():Dn[0],ji=me(yn,Hn);if(ji){const[Ji,Gi]=ji;qn.addText(Rn),Rn="",H[Hn]=(H[Hn]||0)+1,H[Hn]<=7&&(ii+=Gi),Ji.startsWith("_")?Rn+=Dn[0]:ln(Dn[0],xi.classNameAliases[Ji]||Ji)}else Rn+=Dn[0];vn=yn.keywordPatternRe.lastIndex,Dn=yn.keywordPatternRe.exec(Zn)}Rn+=Zn.substring(vn),qn.addText(Rn)}function wt(){null!=yn.subLanguage?function $e(){if(""===Zn)return;let vn=null;if("string"==typeof yn.subLanguage){if(!fe[yn.subLanguage])return void qn.addText(Zn);vn=Lt(yn.subLanguage,Zn,!0,$i[yn.subLanguage]),$i[yn.subLanguage]=vn._top}else vn=Fe(Zn,yn.subLanguage.length?yn.subLanguage:null);yn.relevance>0&&(ii+=vn.relevance),qn.__addSublanguage(vn._emitter,vn.language)}():le(),Zn=""}function ln(vn,Dn){""!==vn&&(qn.startScope(Dn),qn.addText(vn),qn.endScope())}function Gn(vn,Dn){let Rn=1;const Hn=Dn.length-1;for(;Rn<=Hn;){if(!vn._emit[Rn]){Rn++;continue}const ji=xi.classNameAliases[vn[Rn]]||vn[Rn],Ji=Dn[Rn];ji?ln(Ji,ji):(Zn=Ji,le(),Zn=""),Rn++}}function Jn(vn,Dn){return vn.scope&&"string"==typeof vn.scope&&qn.openNode(xi.classNameAliases[vn.scope]||vn.scope),vn.beginScope&&(vn.beginScope._wrap?(ln(Zn,xi.classNameAliases[vn.beginScope._wrap]||vn.beginScope._wrap),Zn=""):vn.beginScope._multi&&(Gn(vn.beginScope,Dn),Zn="")),yn=Object.create(vn,{parent:{value:yn}}),yn}function ti(vn,Dn,Rn){let Hn=function M(Le,fe){const Ge=Le&&Le.exec(fe);return Ge&&0===Ge.index}(vn.endRe,Rn);if(Hn){if(vn["on:end"]){const ji=new g(vn);vn["on:end"](Dn,ji),ji.isMatchIgnored&&(Hn=!1)}if(Hn){for(;vn.endsParent&&vn.parent;)vn=vn.parent;return vn}}if(vn.endsWithParent)return ti(vn.parent,Dn,Rn)}function In(vn){return 0===yn.matcher.regexIndex?(Zn+=vn[0],1):(Un=!0,0)}function yi(vn){const Dn=vn[0],Rn=mt.substring(vn.index),Hn=ti(yn,vn,Rn);if(!Hn)return Qe;const ji=yn;yn.endScope&&yn.endScope._wrap?(wt(),ln(Dn,yn.endScope._wrap)):yn.endScope&&yn.endScope._multi?(wt(),Gn(yn.endScope,vn)):ji.skip?Zn+=Dn:(ji.returnEnd||ji.excludeEnd||(Zn+=Dn),wt(),ji.excludeEnd&&(Zn=Dn));do{yn.scope&&qn.closeNode(),!yn.skip&&!yn.subLanguage&&(ii+=yn.relevance),yn=yn.parent}while(yn!==Hn.parent);return Hn.starts&&Jn(Hn.starts,vn),ji.returnEnd?0:Dn.length}let _i={};function hi(vn,Dn){const Rn=Dn&&Dn[0];if(Zn+=vn,null==Rn)return wt(),0;if("begin"===_i.type&&"end"===Dn.type&&_i.index===Dn.index&&""===Rn){if(Zn+=mt.slice(Dn.index,Dn.index+1),!de){const Hn=new Error(`0 width match regex (${Ke})`);throw Hn.languageName=Ke,Hn.badRule=_i.rule,Hn}return 1}if(_i=Dn,"begin"===Dn.type)return function Fn(vn){const Dn=vn[0],Rn=vn.rule,Hn=new g(Rn),ji=[Rn.__beforeBegin,Rn["on:begin"]];for(const Ji of ji)if(Ji&&(Ji(vn,Hn),Hn.isMatchIgnored))return In(Dn);return Rn.skip?Zn+=Dn:(Rn.excludeBegin&&(Zn+=Dn),wt(),!Rn.returnBegin&&!Rn.excludeBegin&&(Zn=Dn)),Jn(Rn,vn),Rn.returnBegin?0:Dn.length}(Dn);if("illegal"===Dn.type&&!xe){const Hn=new Error('Illegal lexeme "'+Rn+'" for mode "'+(yn.scope||"")+'"');throw Hn.mode=yn,Hn}if("end"===Dn.type){const Hn=yi(Dn);if(Hn!==Qe)return Hn}if("illegal"===Dn.type&&""===Rn)return 1;if(Ui>1e5&&Ui>3*Dn.index)throw new Error("potential infinite loop, way more iterations than matches");return Zn+=Rn,Rn.length}const xi=Jt(Ke);if(!xi)throw ye(ke.replace("{}",Ke)),new Error('Unknown language: "'+Ke+'"');const Ri=cn(xi);let On="",yn=Mt||Ri;const $i={},qn=new It.__emitter(It);!function ar(){const vn=[];for(let Dn=yn;Dn!==xi;Dn=Dn.parent)Dn.scope&&vn.unshift(Dn.scope);vn.forEach(Dn=>qn.openNode(Dn))}();let Zn="",ii=0,Wi=0,Ui=0,Un=!1;try{if(xi.__emitTokens)xi.__emitTokens(mt,qn);else{for(yn.matcher.considerAll();;){Ui++,Un?Un=!1:yn.matcher.considerAll(),yn.matcher.lastIndex=Wi;const vn=yn.matcher.exec(mt);if(!vn)break;const Rn=hi(mt.substring(Wi,vn.index),vn);Wi=vn.index+Rn}hi(mt.substring(Wi))}return qn.finalize(),On=qn.toHTML(),{language:Ke,value:On,relevance:ii,illegal:!1,_emitter:qn,_top:yn}}catch(vn){if(vn.message&&vn.message.includes("Illegal"))return{language:Ke,value:_e(mt),illegal:!0,relevance:0,_illegalBy:{message:vn.message,index:Wi,context:mt.slice(Wi-100,Wi+100),mode:vn.mode,resultSoFar:On},_emitter:qn};if(de)return{language:Ke,value:_e(mt),illegal:!1,relevance:0,errorRaised:vn,_emitter:qn,_top:yn};throw vn}}function Fe(Ke,mt){mt=mt||It.languages||Object.keys(fe);const xe=function Je(Ke){const mt={value:_e(Ke),illegal:!1,relevance:0,_top:nt,_emitter:new It.__emitter(It)};return mt._emitter.addText(Ke),mt}(Ke),Mt=mt.filter(Jt).filter(lt).map(wt=>Lt(wt,Ke,!1));Mt.unshift(xe);const H=Mt.sort((wt,ln)=>{if(wt.relevance!==ln.relevance)return ln.relevance-wt.relevance;if(wt.language&&ln.language){if(Jt(wt.language).supersetOf===ln.language)return 1;if(Jt(ln.language).supersetOf===wt.language)return-1}return 0}),[me,le]=H,$e=me;return $e.secondBest=le,$e}function je(Ke){let mt=null;const xe=function an(Ke){let mt=Ke.className+" ";mt+=Ke.parentNode?Ke.parentNode.className:"";const xe=It.languageDetectRe.exec(mt);if(xe){const Mt=Jt(xe[1]);return Mt||(He(ke.replace("{}",xe[1])),He("Falling back to no-highlight mode for this block.",Ke)),Mt?xe[1]:"no-highlight"}return mt.split(/\s+/).find(Mt=>Gt(Mt)||Jt(Mt))}(Ke);if(Gt(xe))return;if(Ue("before:highlightElement",{el:Ke,language:xe}),Ke.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Ke);if(Ke.children.length>0&&(It.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Ke)),It.throwUnescapedHTML))throw new Bt("One of your code blocks includes unescaped HTML.",Ke.innerHTML);mt=Ke;const Mt=mt.textContent,H=xe?_t(Mt,{language:xe,ignoreIllegals:!0}):Fe(Mt);Ke.innerHTML=H.value,Ke.dataset.highlighted="yes",function et(Ke,mt,xe){const Mt=mt&&Ge[mt]||xe;Ke.classList.add("hljs"),Ke.classList.add(`language-${Mt}`)}(Ke,xe,H.language),Ke.result={language:H.language,re:H.relevance,relevance:H.relevance},H.secondBest&&(Ke.secondBest={language:H.secondBest.language,relevance:H.secondBest.relevance}),Ue("after:highlightElement",{el:Ke,result:H,text:Mt})}let Cn=!1;function Ln(){"loading"!==document.readyState?document.querySelectorAll(It.cssSelector).forEach(je):Cn=!0}function Jt(Ke){return Ke=(Ke||"").toLowerCase(),fe[Ke]||fe[Ge[Ke]]}function Be(Ke,{languageName:mt}){"string"==typeof Ke&&(Ke=[Ke]),Ke.forEach(xe=>{Ge[xe.toLowerCase()]=mt})}function lt(Ke){const mt=Jt(Ke);return mt&&!mt.disableAutodetect}function Ue(Ke,mt){const xe=Ke;te.forEach(function(Mt){Mt[xe]&&Mt[xe](mt)})}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",function Oi(){Cn&&Ln()},!1),Object.assign(Le,{highlight:_t,highlightAuto:Fe,highlightAll:Ln,highlightElement:je,highlightBlock:function ut(Ke){return De("10.7.0","highlightBlock will be removed entirely in v12.0"),De("10.7.0","Please use highlightElement now."),je(Ke)},configure:function dt(Ke){It=Ze(It,Ke)},initHighlighting:()=>{Ln(),De("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function qt(){Ln(),De("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function Ei(Ke,mt){let xe=null;try{xe=mt(Le)}catch(Mt){if(ye("Language definition for '{}' could not be registered.".replace("{}",Ke)),!de)throw Mt;ye(Mt),xe=nt}xe.name||(xe.name=Ke),fe[Ke]=xe,xe.rawDefinition=mt.bind(null,Le),xe.aliases&&Be(xe.aliases,{languageName:Ke})},unregisterLanguage:function jn(Ke){delete fe[Ke];for(const mt of Object.keys(Ge))Ge[mt]===Ke&&delete Ge[mt]},listLanguages:function at(){return Object.keys(fe)},getLanguage:Jt,registerAliases:Be,autoDetection:lt,inherit:Ze,addPlugin:function nn(Ke){(function Et(Ke){Ke["before:highlightBlock"]&&!Ke["before:highlightElement"]&&(Ke["before:highlightElement"]=mt=>{Ke["before:highlightBlock"](Object.assign({block:mt.el},mt))}),Ke["after:highlightBlock"]&&!Ke["after:highlightElement"]&&(Ke["after:highlightElement"]=mt=>{Ke["after:highlightBlock"](Object.assign({block:mt.el},mt))})})(Ke),te.push(Ke)},removePlugin:function _n(Ke){const mt=te.indexOf(Ke);-1!==mt&&te.splice(mt,1)}}),Le.debugMode=function(){de=!1},Le.safeMode=function(){de=!0},Le.versionString="11.9.0",Le.regex={concat:h,lookahead:c,either:v,optional:r,anyNumberOfTimes:o};for(const Ke in ct)"object"==typeof ct[Ke]&&ne(ct[Ke]);return Object.assign(Le,ct),Le},ft=tt({});ft.newInstance=()=>tt({}),Te.exports=ft,ft.HighlightJS=ft,ft.default=ft},8028:Te=>{Te.exports=function ne(g){const C=["true","false","null"],E={scope:"literal",beginKeywords:C.join(" ")};return{name:"JSON",keywords:{literal:C},contains:[{className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},{match:/[{}[\],:]/,className:"punctuation",relevance:0},g.QUOTE_STRING_MODE,E,g.C_NUMBER_MODE,g.C_LINE_COMMENT_MODE,g.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}},8133:Te=>{Te.exports=function ne(g){const t=g.regex,_=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),E={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},u={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},b=g.inherit(u,{begin:/\(/,end:/\)/}),s=g.inherit(g.APOS_STRING_MODE,{className:"string"}),f=g.inherit(g.QUOTE_STRING_MODE,{className:"string"}),d={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[u,f,s,b,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[u,b,f,s]}]}]},g.COMMENT(//,{relevance:10}),{begin://,relevance:10},E,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[f]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[d],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[d],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:_,relevance:0,starts:d}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(_,/>/))),contains:[{className:"name",begin:_,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}},9293:Te=>{function ne(t,_,C,E,u,b,s){try{var f=t[b](s),d=f.value}catch(l){return void C(l)}f.done?_(d):Promise.resolve(d).then(E,u)}Te.exports=function g(t){return function(){var _=this,C=arguments;return new Promise(function(E,u){var b=t.apply(_,C);function s(d){ne(b,E,u,s,f,"next",d)}function f(d){ne(b,E,u,s,f,"throw",d)}s(void 0)})}},Te.exports.__esModule=!0,Te.exports.default=Te.exports},9969:(Te,ne,g)=>{"use strict";g.d(ne,{MA:()=>o,Os:()=>u,P:()=>h,hZ:()=>C,i0:()=>E,i7:()=>d,iF:()=>s,kY:()=>l,wk:()=>f});var t=function(R){return R[R.State=0]="State",R[R.Transition=1]="Transition",R[R.Sequence=2]="Sequence",R[R.Group=3]="Group",R[R.Animate=4]="Animate",R[R.Keyframes=5]="Keyframes",R[R.Style=6]="Style",R[R.Trigger=7]="Trigger",R[R.Reference=8]="Reference",R[R.AnimateChild=9]="AnimateChild",R[R.AnimateRef=10]="AnimateRef",R[R.Query=11]="Query",R[R.Stagger=12]="Stagger",R}(t||{});function C(R,N){return{type:t.Trigger,name:R,definitions:N,options:{}}}function E(R,N=null){return{type:t.Animate,styles:N,timings:R}}function u(R,N=null){return{type:t.Group,steps:R,options:N}}function s(R){return{type:t.Style,styles:R,offset:null}}function f(R,N,A){return{type:t.State,name:R,styles:N,options:A}}function d(R){return{type:t.Keyframes,steps:R}}function l(R,N,A=null){return{type:t.Transition,expr:R,animation:N,options:A}}function o(R=null){return{type:t.AnimateChild,options:R}}function h(R,N,A=null){return{type:t.Query,selector:R,animation:N,options:A}}},6039:(Te,ne,g)=>{"use strict";g.d(ne,{Pd:()=>Je,Au:()=>pt,vr:()=>ce,vR:()=>nt,kB:()=>st,Bu:()=>ct,FN:()=>ke,Q_:()=>Lt,Ai:()=>Le,px:()=>ie,_G:()=>cn,w6:()=>rn,Ae:()=>$});var t=g(177),_=g(4438),C=g(6860),E=g(1413),u=g(8359),b=g(4412),s=g(7673),f=g(7336),d=g(8141),l=g(152),c=g(5964),o=g(6354),r=g(6697),h=g(5245),p=g(3294),v=g(6977),y=g(2318),M=g(4085),w=g(4572),k=g(2688),I=g(1985),D=g(9172);const T=new Set;let U,S=(()=>{class Fe{constructor(je,dt){this._platform=je,this._nonce=dt,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):N}matchMedia(je){return(this._platform.WEBKIT||this._platform.BLINK)&&function R(Fe,et){if(!T.has(Fe))try{U||(U=document.createElement("style"),et&&U.setAttribute("nonce",et),U.setAttribute("type","text/css"),document.head.appendChild(U)),U.sheet&&(U.sheet.insertRule(`@media ${Fe} {body{ }}`,0),T.add(Fe))}catch(je){console.error(je)}}(je,this._nonce),this._matchMedia(je)}static#e=this.\u0275fac=function(dt){return new(dt||Fe)(_.\u0275\u0275inject(C.OD),_.\u0275\u0275inject(_.CSP_NONCE,8))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac,providedIn:"root"})}return Fe})();function N(Fe){return{matches:"all"===Fe||""===Fe,media:Fe,addListener:()=>{},removeListener:()=>{}}}let A=(()=>{class Fe{constructor(je,dt){this._mediaMatcher=je,this._zone=dt,this._queries=new Map,this._destroySubject=new E.B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(je){return F((0,M.FG)(je)).some(At=>this._registerQuery(At).mql.matches)}observe(je){const At=F((0,M.FG)(je)).map(Cn=>this._registerQuery(Cn).observable);let qt=(0,w.z)(At);return qt=(0,k.x)(qt.pipe((0,r.s)(1)),qt.pipe((0,h.i)(1),(0,l.B)(0))),qt.pipe((0,o.T)(Cn=>{const Ln={matches:!1,breakpoints:{}};return Cn.forEach(({matches:Oi,query:Ei})=>{Ln.matches=Ln.matches||Oi,Ln.breakpoints[Ei]=Oi}),Ln}))}_registerQuery(je){if(this._queries.has(je))return this._queries.get(je);const dt=this._mediaMatcher.matchMedia(je),qt={observable:new I.c(Cn=>{const Ln=Oi=>this._zone.run(()=>Cn.next(Oi));return dt.addListener(Ln),()=>{dt.removeListener(Ln)}}).pipe((0,D.Z)(dt),(0,o.T)(({matches:Cn})=>({query:je,matches:Cn})),(0,v.Q)(this._destroySubject)),mql:dt};return this._queries.set(je,qt),qt}static#e=this.\u0275fac=function(dt){return new(dt||Fe)(_.\u0275\u0275inject(S),_.\u0275\u0275inject(_.NgZone))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac,providedIn:"root"})}return Fe})();function F(Fe){return Fe.map(et=>et.split(",")).reduce((et,je)=>et.concat(je)).map(et=>et.trim())}const ee=" ";function ie(Fe,et,je){const dt=j(Fe,et);je=je.trim(),!dt.some(At=>At.trim()===je)&&(dt.push(je),Fe.setAttribute(et,dt.join(ee)))}function $(Fe,et,je){const dt=j(Fe,et);je=je.trim();const At=dt.filter(qt=>qt!==je);At.length?Fe.setAttribute(et,At.join(ee)):Fe.removeAttribute(et)}function j(Fe,et){return Fe.getAttribute(et)?.match(/\S+/g)??[]}const V="cdk-describedby-message",W="cdk-describedby-host";let K=0,ce=(()=>{class Fe{constructor(je,dt){this._platform=dt,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+K++,this._document=je,this._id=(0,_.inject)(_.APP_ID)+"-"+K++}describe(je,dt,At){if(!this._canBeDescribed(je,dt))return;const qt=ue(dt,At);"string"!=typeof dt?(ve(dt,this._id),this._messageRegistry.set(qt,{messageElement:dt,referenceCount:0})):this._messageRegistry.has(qt)||this._createMessageElement(dt,At),this._isElementDescribedByMessage(je,qt)||this._addMessageReference(je,qt)}removeDescription(je,dt,At){if(!dt||!this._isElementNode(je))return;const qt=ue(dt,At);if(this._isElementDescribedByMessage(je,qt)&&this._removeMessageReference(je,qt),"string"==typeof dt){const Cn=this._messageRegistry.get(qt);Cn&&0===Cn.referenceCount&&this._deleteMessageElement(qt)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const je=this._document.querySelectorAll(`[${W}="${this._id}"]`);for(let dt=0;dt0!=At.indexOf(V));je.setAttribute("aria-describedby",dt.join(" "))}_addMessageReference(je,dt){const At=this._messageRegistry.get(dt);ie(je,"aria-describedby",At.messageElement.id),je.setAttribute(W,this._id),At.referenceCount++}_removeMessageReference(je,dt){const At=this._messageRegistry.get(dt);At.referenceCount--,$(je,"aria-describedby",At.messageElement.id),je.removeAttribute(W)}_isElementDescribedByMessage(je,dt){const At=j(je,"aria-describedby"),qt=this._messageRegistry.get(dt),Cn=qt&&qt.messageElement.id;return!!Cn&&-1!=At.indexOf(Cn)}_canBeDescribed(je,dt){if(!this._isElementNode(je))return!1;if(dt&&"object"==typeof dt)return!0;const At=null==dt?"":`${dt}`.trim(),qt=je.getAttribute("aria-label");return!(!At||qt&&qt.trim()===At)}_isElementNode(je){return je.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(dt){return new(dt||Fe)(_.\u0275\u0275inject(t.DOCUMENT),_.\u0275\u0275inject(C.OD))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac,providedIn:"root"})}return Fe})();function ue(Fe,et){return"string"==typeof Fe?`${et||""}/${Fe}`:Fe}function ve(Fe,et){Fe.id||(Fe.id=`${V}-${et}-${K++}`)}class Ye{constructor(et,je){this._items=et,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new E.B,this._typeaheadSubscription=u.yU.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=dt=>dt.disabled,this._pressedLetters=[],this.tabOut=new E.B,this.change=new E.B,et instanceof _.QueryList?this._itemChangesSubscription=et.changes.subscribe(dt=>this._itemsChanged(dt.toArray())):(0,_.isSignal)(et)&&(this._effectRef=(0,_.effect)(()=>this._itemsChanged(et()),{injector:je}))}skipPredicate(et){return this._skipPredicateFn=et,this}withWrap(et=!0){return this._wrap=et,this}withVerticalOrientation(et=!0){return this._vertical=et,this}withHorizontalOrientation(et){return this._horizontal=et,this}withAllowedModifierKeys(et){return this._allowedModifierKeys=et,this}withTypeAhead(et=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,d.M)(je=>this._pressedLetters.push(je)),(0,l.B)(et),(0,c.p)(()=>this._pressedLetters.length>0),(0,o.T)(()=>this._pressedLetters.join(""))).subscribe(je=>{const dt=this._getItemsArray();for(let At=1;At!et[qt]||this._allowedModifierKeys.indexOf(qt)>-1);switch(je){case f.wn:return void this.tabOut.next();case f.n6:if(this._vertical&&At){this.setNextItemActive();break}return;case f.i7:if(this._vertical&&At){this.setPreviousItemActive();break}return;case f.LE:if(this._horizontal&&At){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case f.UQ:if(this._horizontal&&At){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case f.yZ:if(this._homeAndEnd&&At){this.setFirstItemActive();break}return;case f.Kp:if(this._homeAndEnd&&At){this.setLastItemActive();break}return;case f.w_:if(this._pageUpAndDown.enabled&&At){const qt=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(qt>0?qt:0,1);break}return;case f.dB:if(this._pageUpAndDown.enabled&&At){const qt=this._activeItemIndex+this._pageUpAndDown.delta,Cn=this._getItemsArray().length;this._setActiveItemByIndex(qt=f.A&&je<=f.Z||je>=f.f2&&je<=f.bn)&&this._letterKeyStream.next(String.fromCharCode(je))))}this._pressedLetters=[],et.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(et){const je=this._getItemsArray(),dt="number"==typeof et?et:je.indexOf(et);this._activeItem=je[dt]??null,this._activeItemIndex=dt}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(et){this._wrap?this._setActiveInWrapMode(et):this._setActiveInDefaultMode(et)}_setActiveInWrapMode(et){const je=this._getItemsArray();for(let dt=1;dt<=je.length;dt++){const At=(this._activeItemIndex+et*dt+je.length)%je.length;if(!this._skipPredicateFn(je[At]))return void this.setActiveItem(At)}}_setActiveInDefaultMode(et){this._setActiveItemByIndex(this._activeItemIndex+et,et)}_setActiveItemByIndex(et,je){const dt=this._getItemsArray();if(dt[et]){for(;this._skipPredicateFn(dt[et]);)if(!dt[et+=je])return;this.setActiveItem(et)}}_getItemsArray(){return(0,_.isSignal)(this._items)?this._items():this._items instanceof _.QueryList?this._items.toArray():this._items}_itemsChanged(et){if(this._activeItem){const je=et.indexOf(this._activeItem);je>-1&&je!==this._activeItemIndex&&(this._activeItemIndex=je)}}}class pt extends Ye{setActiveItem(et){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(et),this.activeItem&&this.activeItem.setActiveStyles()}}class ct extends Ye{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(et){return this._origin=et,this}setActiveItem(et){super.setActiveItem(et),this.activeItem&&this.activeItem.focus(this._origin)}}let We=(()=>{class Fe{constructor(je){this._platform=je}isDisabled(je){return je.hasAttribute("disabled")}isVisible(je){return function Ie(Fe){return!!(Fe.offsetWidth||Fe.offsetHeight||"function"==typeof Fe.getClientRects&&Fe.getClientRects().length)}(je)&&"visible"===getComputedStyle(je).visibility}isTabbable(je){if(!this._platform.isBrowser)return!1;const dt=function Ne(Fe){try{return Fe.frameElement}catch{return null}}(function ye(Fe){return Fe.ownerDocument&&Fe.ownerDocument.defaultView||window}(je));if(dt&&(-1===Re(dt)||!this.isVisible(dt)))return!1;let At=je.nodeName.toLowerCase(),qt=Re(je);return je.hasAttribute("contenteditable")?-1!==qt:!("iframe"===At||"object"===At||this._platform.WEBKIT&&this._platform.IOS&&!function bt(Fe){let et=Fe.nodeName.toLowerCase(),je="input"===et&&Fe.type;return"text"===je||"password"===je||"select"===et||"textarea"===et}(je))&&("audio"===At?!!je.hasAttribute("controls")&&-1!==qt:"video"===At?-1!==qt&&(null!==qt||this._platform.FIREFOX||je.hasAttribute("controls")):je.tabIndex>=0)}isFocusable(je,dt){return function it(Fe){return!function Ee(Fe){return function Se(Fe){return"input"==Fe.nodeName.toLowerCase()}(Fe)&&"hidden"==Fe.type}(Fe)&&(function rt(Fe){let et=Fe.nodeName.toLowerCase();return"input"===et||"select"===et||"button"===et||"textarea"===et}(Fe)||function be(Fe){return function Q(Fe){return"a"==Fe.nodeName.toLowerCase()}(Fe)&&Fe.hasAttribute("href")}(Fe)||Fe.hasAttribute("contenteditable")||pe(Fe))}(je)&&!this.isDisabled(je)&&(dt?.ignoreVisibility||this.isVisible(je))}static#e=this.\u0275fac=function(dt){return new(dt||Fe)(_.\u0275\u0275inject(C.OD))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac,providedIn:"root"})}return Fe})();function pe(Fe){if(!Fe.hasAttribute("tabindex")||void 0===Fe.tabIndex)return!1;let et=Fe.getAttribute("tabindex");return!(!et||isNaN(parseInt(et,10)))}function Re(Fe){if(!pe(Fe))return null;const et=parseInt(Fe.getAttribute("tabindex")||"",10);return isNaN(et)?-1:et}class He{get enabled(){return this._enabled}set enabled(et){this._enabled=et,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(et,this._startAnchor),this._toggleAnchorTabIndex(et,this._endAnchor))}constructor(et,je,dt,At,qt=!1){this._element=et,this._checker=je,this._ngZone=dt,this._document=At,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,qt||this.attachAnchors()}destroy(){const et=this._startAnchor,je=this._endAnchor;et&&(et.removeEventListener("focus",this.startAnchorListener),et.remove()),je&&(je.removeEventListener("focus",this.endAnchorListener),je.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(et){return new Promise(je=>{this._executeOnStable(()=>je(this.focusInitialElement(et)))})}focusFirstTabbableElementWhenReady(et){return new Promise(je=>{this._executeOnStable(()=>je(this.focusFirstTabbableElement(et)))})}focusLastTabbableElementWhenReady(et){return new Promise(je=>{this._executeOnStable(()=>je(this.focusLastTabbableElement(et)))})}_getRegionBoundary(et){const je=this._element.querySelectorAll(`[cdk-focus-region-${et}], [cdkFocusRegion${et}], [cdk-focus-${et}]`);return"start"==et?je.length?je[0]:this._getFirstTabbableElement(this._element):je.length?je[je.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(et){const je=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(je){if(!this._checker.isFocusable(je)){const dt=this._getFirstTabbableElement(je);return dt?.focus(et),!!dt}return je.focus(et),!0}return this.focusFirstTabbableElement(et)}focusFirstTabbableElement(et){const je=this._getRegionBoundary("start");return je&&je.focus(et),!!je}focusLastTabbableElement(et){const je=this._getRegionBoundary("end");return je&&je.focus(et),!!je}hasAttached(){return this._hasAttached}_getFirstTabbableElement(et){if(this._checker.isFocusable(et)&&this._checker.isTabbable(et))return et;const je=et.children;for(let dt=0;dt=0;dt--){const At=je[dt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(je[dt]):null;if(At)return At}return null}_createAnchor(){const et=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,et),et.classList.add("cdk-visually-hidden"),et.classList.add("cdk-focus-trap-anchor"),et.setAttribute("aria-hidden","true"),et}_toggleAnchorTabIndex(et,je){et?je.setAttribute("tabindex","0"):je.removeAttribute("tabindex")}toggleAnchors(et){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(et,this._startAnchor),this._toggleAnchorTabIndex(et,this._endAnchor))}_executeOnStable(et){this._ngZone.isStable?et():this._ngZone.onStable.pipe((0,r.s)(1)).subscribe(et)}}let De=(()=>{class Fe{constructor(je,dt,At){this._checker=je,this._ngZone=dt,this._document=At}create(je,dt=!1){return new He(je,this._checker,this._ngZone,this._document,dt)}static#e=this.\u0275fac=function(dt){return new(dt||Fe)(_.\u0275\u0275inject(We),_.\u0275\u0275inject(_.NgZone),_.\u0275\u0275inject(t.DOCUMENT))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac,providedIn:"root"})}return Fe})(),st=(()=>{class Fe{get enabled(){return this.focusTrap?.enabled||!1}set enabled(je){this.focusTrap&&(this.focusTrap.enabled=je)}constructor(je,dt,At){this._elementRef=je,this._focusTrapFactory=dt,this._previouslyFocusedElement=null,(0,_.inject)(C.OD).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(je){const dt=je.autoCapture;dt&&!dt.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,C.vc)(),this.focusTrap?.focusInitialElementWhenReady()}static#e=this.\u0275fac=function(dt){return new(dt||Fe)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(De),_.\u0275\u0275directiveInject(t.DOCUMENT))};static#t=this.\u0275dir=_.\u0275\u0275defineDirective({type:Fe,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[_.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkTrapFocus","enabled",_.booleanAttribute],autoCapture:[_.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkTrapFocusAutoCapture","autoCapture",_.booleanAttribute]},exportAs:["cdkTrapFocus"],standalone:!0,features:[_.\u0275\u0275InputTransformsFeature,_.\u0275\u0275NgOnChangesFeature]})}return Fe})();function cn(Fe){return 0===Fe.buttons||0===Fe.detail}function rn(Fe){const et=Fe.touches&&Fe.touches[0]||Fe.changedTouches&&Fe.changedTouches[0];return!(!et||-1!==et.identifier||null!=et.radiusX&&1!==et.radiusX||null!=et.radiusY&&1!==et.radiusY)}const hn=new _.InjectionToken("cdk-input-modality-detector-options"),Nt={ignoreKeys:[f.A$,f.W3,f.eg,f.Ge,f.FX]},_e=(0,C.BQ)({passive:!0,capture:!0});let Ze=(()=>{class Fe{get mostRecentModality(){return this._modality.value}constructor(je,dt,At,qt){this._platform=je,this._mostRecentTarget=null,this._modality=new b.t(null),this._lastTouchMs=0,this._onKeydown=Cn=>{this._options?.ignoreKeys?.some(Ln=>Ln===Cn.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,C.Fb)(Cn))},this._onMousedown=Cn=>{Date.now()-this._lastTouchMs<650||(this._modality.next(cn(Cn)?"keyboard":"mouse"),this._mostRecentTarget=(0,C.Fb)(Cn))},this._onTouchstart=Cn=>{rn(Cn)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,C.Fb)(Cn))},this._options={...Nt,...qt},this.modalityDetected=this._modality.pipe((0,h.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,p.F)()),je.isBrowser&&dt.runOutsideAngular(()=>{At.addEventListener("keydown",this._onKeydown,_e),At.addEventListener("mousedown",this._onMousedown,_e),At.addEventListener("touchstart",this._onTouchstart,_e)})}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))}static#e=this.\u0275fac=function(dt){return new(dt||Fe)(_.\u0275\u0275inject(C.OD),_.\u0275\u0275inject(_.NgZone),_.\u0275\u0275inject(t.DOCUMENT),_.\u0275\u0275inject(hn,8))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac,providedIn:"root"})}return Fe})();const Qe=new _.InjectionToken("liveAnnouncerElement",{providedIn:"root",factory:function Ot(){return null}}),tt=new _.InjectionToken("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ft=0,Le=(()=>{class Fe{constructor(je,dt,At,qt){this._ngZone=dt,this._defaultOptions=qt,this._document=At,this._liveElement=je||this._createLiveElement()}announce(je,...dt){const At=this._defaultOptions;let qt,Cn;return 1===dt.length&&"number"==typeof dt[0]?Cn=dt[0]:[qt,Cn]=dt,this.clear(),clearTimeout(this._previousTimeout),qt||(qt=At&&At.politeness?At.politeness:"polite"),null==Cn&&At&&(Cn=At.duration),this._liveElement.setAttribute("aria-live",qt),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Ln=>this._currentResolve=Ln)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=je,"number"==typeof Cn&&(this._previousTimeout=setTimeout(()=>this.clear(),Cn)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const je="cdk-live-announcer-element",dt=this._document.getElementsByClassName(je),At=this._document.createElement("div");for(let qt=0;qt .cdk-overlay-container [aria-modal="true"]');for(let At=0;At{class Fe{constructor(je,dt,At,qt,Cn){this._ngZone=je,this._platform=dt,this._inputModalityDetector=At,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=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new E.B,this._rootNodeFocusAndBlurListener=Ln=>{for(let Ei=(0,C.Fb)(Ln);Ei;Ei=Ei.parentElement)"focus"===Ln.type?this._onFocus(Ln,Ei):this._onBlur(Ln,Ei)},this._document=qt,this._detectionMode=Cn?.detectionMode||Ge.IMMEDIATE}monitor(je,dt=!1){const At=(0,M.i8)(je);if(!this._platform.isBrowser||1!==At.nodeType)return(0,s.of)();const qt=(0,C.KT)(At)||this._getDocument(),Cn=this._elementInfo.get(At);if(Cn)return dt&&(Cn.checkChildren=!0),Cn.subject;const Ln={checkChildren:dt,subject:new E.B,rootNode:qt};return this._elementInfo.set(At,Ln),this._registerGlobalListeners(Ln),Ln.subject}stopMonitoring(je){const dt=(0,M.i8)(je),At=this._elementInfo.get(dt);At&&(At.subject.complete(),this._setClasses(dt),this._elementInfo.delete(dt),this._removeGlobalListeners(At))}focusVia(je,dt,At){const qt=(0,M.i8)(je);qt===this._getDocument().activeElement?this._getClosestElementsInfo(qt).forEach(([Ln,Oi])=>this._originChanged(Ln,dt,Oi)):(this._setOrigin(dt),"function"==typeof qt.focus&&qt.focus(At))}ngOnDestroy(){this._elementInfo.forEach((je,dt)=>this.stopMonitoring(dt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(je){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(je)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:je&&this._isLastInteractionFromInputLabel(je)?"mouse":"program"}_shouldBeAttributedToTouch(je){return this._detectionMode===Ge.EVENTUAL||!!je?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(je,dt){je.classList.toggle("cdk-focused",!!dt),je.classList.toggle("cdk-touch-focused","touch"===dt),je.classList.toggle("cdk-keyboard-focused","keyboard"===dt),je.classList.toggle("cdk-mouse-focused","mouse"===dt),je.classList.toggle("cdk-program-focused","program"===dt)}_setOrigin(je,dt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=je,this._originFromTouchInteraction="touch"===je&&dt,this._detectionMode===Ge.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(je,dt){const At=this._elementInfo.get(dt),qt=(0,C.Fb)(je);!At||!At.checkChildren&&dt!==qt||this._originChanged(dt,this._getFocusOrigin(qt),At)}_onBlur(je,dt){const At=this._elementInfo.get(dt);!At||At.checkChildren&&je.relatedTarget instanceof Node&&dt.contains(je.relatedTarget)||(this._setClasses(dt),this._emitOrigin(At,null))}_emitOrigin(je,dt){je.subject.observers.length&&this._ngZone.run(()=>je.subject.next(dt))}_registerGlobalListeners(je){if(!this._platform.isBrowser)return;const dt=je.rootNode,At=this._rootNodeFocusListenerCount.get(dt)||0;At||this._ngZone.runOutsideAngular(()=>{dt.addEventListener("focus",this._rootNodeFocusAndBlurListener,de),dt.addEventListener("blur",this._rootNodeFocusAndBlurListener,de)}),this._rootNodeFocusListenerCount.set(dt,At+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,v.Q)(this._stopInputModalityDetector)).subscribe(qt=>{this._setOrigin(qt,!0)}))}_removeGlobalListeners(je){const dt=je.rootNode;if(this._rootNodeFocusListenerCount.has(dt)){const At=this._rootNodeFocusListenerCount.get(dt);At>1?this._rootNodeFocusListenerCount.set(dt,At-1):(dt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,de),dt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,de),this._rootNodeFocusListenerCount.delete(dt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(je,dt,At){this._setClasses(je,dt),this._emitOrigin(At,dt),this._lastFocusOrigin=dt}_getClosestElementsInfo(je){const dt=[];return this._elementInfo.forEach((At,qt)=>{(qt===je||At.checkChildren&&qt.contains(je))&&dt.push([qt,At])}),dt}_isLastInteractionFromInputLabel(je){const{_mostRecentTarget:dt,mostRecentModality:At}=this._inputModalityDetector;if("mouse"!==At||!dt||dt===je||"INPUT"!==je.nodeName&&"TEXTAREA"!==je.nodeName||je.disabled)return!1;const qt=je.labels;if(qt)for(let Cn=0;Cn{class Fe{constructor(je,dt){this._elementRef=je,this._focusMonitor=dt,this._focusOrigin=null,this.cdkFocusChange=new _.EventEmitter}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const je=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(je,1===je.nodeType&&je.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(dt=>{this._focusOrigin=dt,this.cdkFocusChange.emit(dt)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(dt){return new(dt||Fe)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(ke))};static#t=this.\u0275dir=_.\u0275\u0275defineDirective({type:Fe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0})}return Fe})();var It=function(Fe){return Fe[Fe.NONE=0]="NONE",Fe[Fe.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",Fe[Fe.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",Fe}(It||{});const Gt="cdk-high-contrast-black-on-white",an="cdk-high-contrast-white-on-black",_t="cdk-high-contrast-active";let Lt=(()=>{class Fe{constructor(je,dt){this._platform=je,this._document=dt,this._breakpointSubscription=(0,_.inject)(A).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return It.NONE;const je=this._document.createElement("div");je.style.backgroundColor="rgb(1,2,3)",je.style.position="absolute",this._document.body.appendChild(je);const dt=this._document.defaultView||window,At=dt&&dt.getComputedStyle?dt.getComputedStyle(je):null,qt=(At&&At.backgroundColor||"").replace(/ /g,"");switch(je.remove(),qt){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return It.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return It.BLACK_ON_WHITE}return It.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const je=this._document.body.classList;je.remove(_t,Gt,an),this._hasCheckedHighContrastMode=!0;const dt=this.getHighContrastMode();dt===It.BLACK_ON_WHITE?je.add(_t,Gt):dt===It.WHITE_ON_BLACK&&je.add(_t,an)}}static#e=this.\u0275fac=function(dt){return new(dt||Fe)(_.\u0275\u0275inject(C.OD),_.\u0275\u0275inject(t.DOCUMENT))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac,providedIn:"root"})}return Fe})(),Je=(()=>{class Fe{constructor(je){je._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(dt){return new(dt||Fe)(_.\u0275\u0275inject(Lt))};static#t=this.\u0275mod=_.\u0275\u0275defineNgModule({type:Fe});static#n=this.\u0275inj=_.\u0275\u0275defineInjector({imports:[y.w5]})}return Fe})()},8203:(Te,ne,g)=>{"use strict";g.d(ne,{dS:()=>s,jI:()=>d});var t=g(4438),_=g(177);const C=new t.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function E(){return(0,t.inject)(_.DOCUMENT)}}),u=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let s=(()=>{class l{constructor(o){this.value="ltr",this.change=new t.EventEmitter,o&&(this.value=function b(l){const c=l?.toLowerCase()||"";return"auto"===c&&typeof navigator<"u"&&navigator?.language?u.test(navigator.language)?"rtl":"ltr":"rtl"===c?"rtl":"ltr"}((o.body?o.body.dir:null)||(o.documentElement?o.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(r){return new(r||l)(t.\u0275\u0275inject(C,8))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),d=(()=>{class l{static#e=this.\u0275fac=function(r){return new(r||l)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:l});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({})}return l})()},4085:(Te,ne,g)=>{"use strict";g.d(ne,{FG:()=>u,OE:()=>C,a1:()=>b,cc:()=>f,he:()=>_,i8:()=>s,o1:()=>E});var t=g(4438);function _(d){return null!=d&&"false"!=`${d}`}function C(d,l=0){return E(d)?Number(d):l}function E(d){return!isNaN(parseFloat(d))&&!isNaN(Number(d))}function u(d){return Array.isArray(d)?d:[d]}function b(d){return null==d?"":"string"==typeof d?d:`${d}px`}function s(d){return d instanceof t.ElementRef?d.nativeElement:d}function f(d,l=/\s+/){const c=[];if(null!=d){const o=Array.isArray(d)?d:`${d}`.split(l);for(const r of o){const h=`${r}`.trim();h&&c.push(h)}}return c}},5024:(Te,ne,g)=>{"use strict";g.d(ne,{CB:()=>r,DQ:()=>o,Q3:()=>d,qS:()=>b,sL:()=>l,xn:()=>c,y4:()=>s,zP:()=>p});var t=g(17),E=(g(4402),g(7673),g(1413)),u=g(4438);class b{}function s(v){return v&&"function"==typeof v.connect&&!(v instanceof t.G)}var d=function(v){return v[v.REPLACED=0]="REPLACED",v[v.INSERTED=1]="INSERTED",v[v.MOVED=2]="MOVED",v[v.REMOVED=3]="REMOVED",v}(d||{});const l=new u.InjectionToken("_ViewRepeater");class c{applyChanges(y,M,w,k,I){y.forEachOperation((D,O,T)=>{let U,S;if(null==D.previousIndex){const R=w(D,O,T);U=M.createEmbeddedView(R.templateRef,R.context,R.index),S=d.INSERTED}else null==T?(M.remove(O),S=d.REMOVED):(U=M.get(O),M.move(U,T),S=d.MOVED);I&&I({context:U?.context,operation:S,record:D})})}detach(){}}class o{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(y,M,w,k,I){y.forEachOperation((D,O,T)=>{let U,S;null==D.previousIndex?(U=this._insertView(()=>w(D,O,T),T,M,k(D)),S=U?d.INSERTED:d.REPLACED):null==T?(this._detachAndCacheView(O,M),S=d.REMOVED):(U=this._moveView(O,T,M,k(D)),S=d.MOVED),I&&I({context:U?.context,operation:S,record:D})})}detach(){for(const y of this._viewCache)y.destroy();this._viewCache=[]}_insertView(y,M,w,k){const I=this._insertViewFromCache(M,w);if(I)return void(I.context.$implicit=k);const D=y();return w.createEmbeddedView(D.templateRef,D.context,D.index)}_detachAndCacheView(y,M){const w=M.detach(y);this._maybeCacheView(w,M)}_moveView(y,M,w,k){const I=w.get(y);return w.move(I,M),I.context.$implicit=k,I}_maybeCacheView(y,M){if(this._viewCache.lengththis._markSelected(I)):this._markSelected(M[0]),this._selectedToEmit.length=0)}select(...y){this._verifyValueAssignment(y),y.forEach(w=>this._markSelected(w));const M=this._hasQueuedChanges();return this._emitChangeEvent(),M}deselect(...y){this._verifyValueAssignment(y),y.forEach(w=>this._unmarkSelected(w));const M=this._hasQueuedChanges();return this._emitChangeEvent(),M}setSelection(...y){this._verifyValueAssignment(y);const M=this.selected,w=new Set(y);y.forEach(I=>this._markSelected(I)),M.filter(I=>!w.has(this._getConcreteValue(I,w))).forEach(I=>this._unmarkSelected(I));const k=this._hasQueuedChanges();return this._emitChangeEvent(),k}toggle(y){return this.isSelected(y)?this.deselect(y):this.select(y)}clear(y=!0){this._unmarkAll();const M=this._hasQueuedChanges();return y&&this._emitChangeEvent(),M}isSelected(y){return this._selection.has(this._getConcreteValue(y))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(y){this._multiple&&this.selected&&this._selected.sort(y)}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(y){y=this._getConcreteValue(y),this.isSelected(y)||(this._multiple||this._unmarkAll(),this.isSelected(y)||this._selection.add(y),this._emitChanges&&this._selectedToEmit.push(y))}_unmarkSelected(y){y=this._getConcreteValue(y),this.isSelected(y)&&(this._selection.delete(y),this._emitChanges&&this._deselectedToEmit.push(y))}_unmarkAll(){this.isEmpty()||this._selection.forEach(y=>this._unmarkSelected(y))}_verifyValueAssignment(y){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(y,M){if(this.compareWith){M=M??this._selection;for(let w of M)if(this.compareWith(y,w))return w;return y}return y}}let p=(()=>{class v{constructor(){this._listeners=[]}notify(M,w){for(let k of this._listeners)k(M,w)}listen(M){return this._listeners.push(M),()=>{this._listeners=this._listeners.filter(w=>M!==w)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(w){return new(w||v)};static#t=this.\u0275prov=u.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})()},7336:(Te,ne,g)=>{"use strict";g.d(ne,{A:()=>K,A$:()=>f,FX:()=>b,Fm:()=>u,G_:()=>_,Ge:()=>Xt,Kp:()=>p,LE:()=>w,UQ:()=>y,W3:()=>s,Z:()=>jt,_f:()=>c,bn:()=>$,dB:()=>h,eg:()=>$e,f2:()=>U,i7:()=>M,n6:()=>k,rp:()=>wt,t6:()=>o,w_:()=>r,wn:()=>C,yZ:()=>v});const _=8,C=9,u=13,b=16,s=17,f=18,c=27,o=32,r=33,h=34,p=35,v=36,y=37,M=38,w=39,k=40,U=48,$=57,K=65,jt=90,Xt=91,$e=224;function wt(ln,...Gn){return Gn.length?Gn.some(Jn=>ln[Jn]):ln.altKey||ln.shiftKey||ln.ctrlKey||ln.metaKey}},2318:(Te,ne,g)=>{"use strict";g.d(ne,{Wv:()=>f,w5:()=>d});var t=g(4085),_=g(4438),C=g(1985),E=g(1413),u=g(152);let b=(()=>{class l{create(o){return typeof MutationObserver>"u"?null:new MutationObserver(o)}static#e=this.\u0275fac=function(r){return new(r||l)};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),s=(()=>{class l{constructor(o){this._mutationObserverFactory=o,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((o,r)=>this._cleanupObserver(r))}observe(o){const r=(0,t.i8)(o);return new C.c(h=>{const v=this._observeElement(r).subscribe(h);return()=>{v.unsubscribe(),this._unobserveElement(r)}})}_observeElement(o){if(this._observedElements.has(o))this._observedElements.get(o).count++;else{const r=new E.B,h=this._mutationObserverFactory.create(p=>r.next(p));h&&h.observe(o,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(o,{observer:h,stream:r,count:1})}return this._observedElements.get(o).stream}_unobserveElement(o){this._observedElements.has(o)&&(this._observedElements.get(o).count--,this._observedElements.get(o).count||this._cleanupObserver(o))}_cleanupObserver(o){if(this._observedElements.has(o)){const{observer:r,stream:h}=this._observedElements.get(o);r&&r.disconnect(),h.complete(),this._observedElements.delete(o)}}static#e=this.\u0275fac=function(r){return new(r||l)(_.\u0275\u0275inject(b))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),f=(()=>{class l{get disabled(){return this._disabled}set disabled(o){this._disabled=o,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(o){this._debounce=(0,t.OE)(o),this._subscribe()}constructor(o,r,h){this._contentObserver=o,this._elementRef=r,this._ngZone=h,this.event=new _.EventEmitter,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const o=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?o.pipe((0,u.B)(this.debounce)):o).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||l)(_.\u0275\u0275directiveInject(s),_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(_.NgZone))};static#t=this.\u0275dir=_.\u0275\u0275defineDirective({type:l,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[_.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkObserveContentDisabled","disabled",_.booleanAttribute],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[_.\u0275\u0275InputTransformsFeature]})}return l})(),d=(()=>{class l{static#e=this.\u0275fac=function(r){return new(r||l)};static#t=this.\u0275mod=_.\u0275\u0275defineNgModule({type:l});static#n=this.\u0275inj=_.\u0275\u0275defineInjector({providers:[b]})}return l})()},7987:(Te,ne,g)=>{"use strict";g.d(ne,{$Q:()=>be,WB:()=>Se,hJ:()=>Ie,rR:()=>U,rW:()=>W,z_:()=>Re});var t=g(5478),_=g(177),C=g(4438),E=g(4085),u=g(6860),b=g(5964),s=g(6697),f=g(6977),d=g(7048),l=g(8203),c=g(6939),o=g(1413),r=g(8359),h=g(7786),p=g(7336);const v=(0,u.CZ)();class y{constructor(ye,He){this._viewportRuler=ye,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=He}attach(){}enable(){if(this._canBeEnabled()){const ye=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=ye.style.left||"",this._previousHTMLStyles.top=ye.style.top||"",ye.style.left=(0,E.a1)(-this._previousScrollPosition.left),ye.style.top=(0,E.a1)(-this._previousScrollPosition.top),ye.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const ye=this._document.documentElement,De=ye.style,st=this._document.body.style,xt=De.scrollBehavior||"",jt=st.scrollBehavior||"";this._isEnabled=!1,De.left=this._previousHTMLStyles.left,De.top=this._previousHTMLStyles.top,ye.classList.remove("cdk-global-scrollblock"),v&&(De.scrollBehavior=st.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),v&&(De.scrollBehavior=xt,st.scrollBehavior=jt)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const He=this._document.body,De=this._viewportRuler.getViewportSize();return He.scrollHeight>De.height||He.scrollWidth>De.width}}class w{constructor(ye,He,De,st){this._scrollDispatcher=ye,this._ngZone=He,this._viewportRuler=De,this._config=st,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(ye){this._overlayRef=ye}enable(){if(this._scrollSubscription)return;const ye=this._scrollDispatcher.scrolled(0).pipe((0,b.p)(He=>!He||!this._overlayRef.overlayElement.contains(He.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ye.subscribe(()=>{const He=this._viewportRuler.getViewportScrollPosition().top;Math.abs(He-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=ye.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class k{enable(){}disable(){}attach(){}}function I(it,ye){return ye.some(He=>it.bottomHe.bottom||it.rightHe.right)}function D(it,ye){return ye.some(He=>it.topHe.bottom||it.leftHe.right)}class O{constructor(ye,He,De,st){this._scrollDispatcher=ye,this._viewportRuler=He,this._ngZone=De,this._config=st,this._scrollSubscription=null}attach(ye){this._overlayRef=ye}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 He=this._overlayRef.overlayElement.getBoundingClientRect(),{width:De,height:st}=this._viewportRuler.getViewportSize();I(He,[{width:De,height:st,bottom:st,right:De,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let T=(()=>{class it{constructor(He,De,st,xt){this._scrollDispatcher=He,this._viewportRuler=De,this._ngZone=st,this.noop=()=>new k,this.close=jt=>new w(this._scrollDispatcher,this._ngZone,this._viewportRuler,jt),this.block=()=>new y(this._viewportRuler,this._document),this.reposition=jt=>new O(this._scrollDispatcher,this._viewportRuler,this._ngZone,jt),this._document=xt}static#e=this.\u0275fac=function(De){return new(De||it)(C.\u0275\u0275inject(t.R),C.\u0275\u0275inject(t.Xj),C.\u0275\u0275inject(C.NgZone),C.\u0275\u0275inject(_.DOCUMENT))};static#t=this.\u0275prov=C.\u0275\u0275defineInjectable({token:it,factory:it.\u0275fac,providedIn:"root"})}return it})();class U{constructor(ye){if(this.scrollStrategy=new k,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,ye){const He=Object.keys(ye);for(const De of He)void 0!==ye[De]&&(this[De]=ye[De])}}}class N{constructor(ye,He){this.connectionPair=ye,this.scrollableViewProperties=He}}let Y=(()=>{class it{constructor(He){this._attachedOverlays=[],this._document=He}ngOnDestroy(){this.detach()}add(He){this.remove(He),this._attachedOverlays.push(He)}remove(He){const De=this._attachedOverlays.indexOf(He);De>-1&&this._attachedOverlays.splice(De,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(De){return new(De||it)(C.\u0275\u0275inject(_.DOCUMENT))};static#t=this.\u0275prov=C.\u0275\u0275defineInjectable({token:it,factory:it.\u0275fac,providedIn:"root"})}return it})(),ee=(()=>{class it extends Y{constructor(He,De){super(He),this._ngZone=De,this._keydownListener=st=>{const xt=this._attachedOverlays;for(let jt=xt.length-1;jt>-1;jt--)if(xt[jt]._keydownEvents.observers.length>0){const Xt=xt[jt]._keydownEvents;this._ngZone?this._ngZone.run(()=>Xt.next(st)):Xt.next(st);break}}}add(He){super.add(He),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(De){return new(De||it)(C.\u0275\u0275inject(_.DOCUMENT),C.\u0275\u0275inject(C.NgZone,8))};static#t=this.\u0275prov=C.\u0275\u0275defineInjectable({token:it,factory:it.\u0275fac,providedIn:"root"})}return it})(),ie=(()=>{class it extends Y{constructor(He,De,st){super(He),this._platform=De,this._ngZone=st,this._cursorStyleIsSet=!1,this._pointerDownListener=xt=>{this._pointerDownEventTarget=(0,u.Fb)(xt)},this._clickListener=xt=>{const jt=(0,u.Fb)(xt),Xt="click"===xt.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:jt;this._pointerDownEventTarget=null;const un=this._attachedOverlays.slice();for(let dn=un.length-1;dn>-1;dn--){const cn=un[dn];if(cn._outsidePointerEvents.observers.length<1||!cn.hasAttached())continue;if(cn.overlayElement.contains(jt)||cn.overlayElement.contains(Xt))break;const rn=cn._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>rn.next(xt)):rn.next(xt)}}}add(He){if(super.add(He),!this._isAttached){const De=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(De)):this._addEventListeners(De),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=De.style.cursor,De.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const He=this._document.body;He.removeEventListener("pointerdown",this._pointerDownListener,!0),He.removeEventListener("click",this._clickListener,!0),He.removeEventListener("auxclick",this._clickListener,!0),He.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(He.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(He){He.addEventListener("pointerdown",this._pointerDownListener,!0),He.addEventListener("click",this._clickListener,!0),He.addEventListener("auxclick",this._clickListener,!0),He.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(De){return new(De||it)(C.\u0275\u0275inject(_.DOCUMENT),C.\u0275\u0275inject(u.OD),C.\u0275\u0275inject(C.NgZone,8))};static#t=this.\u0275prov=C.\u0275\u0275defineInjectable({token:it,factory:it.\u0275fac,providedIn:"root"})}return it})(),$=(()=>{class it{constructor(He,De){this._platform=De,this._document=He}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const He="cdk-overlay-container";if(this._platform.isBrowser||(0,u.v8)()){const st=this._document.querySelectorAll(`.${He}[platform="server"], .${He}[platform="test"]`);for(let xt=0;xtthis._backdropClick.next(rn),this._backdropTransitionendHandler=rn=>{this._disposeBackdrop(rn.target)},this._keydownEvents=new o.B,this._outsidePointerEvents=new o.B,st.scrollStrategy&&(this._scrollStrategy=st.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=st.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(ye){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const He=this._portalOutlet.attach(ye);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,s.s)(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),"function"==typeof He?.onDestroy&&He.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),He}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const ye=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),ye}dispose(){const ye=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),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,ye&&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(ye){ye!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=ye,this.hasAttached()&&(ye.attach(this),this.updatePosition()))}updateSize(ye){this._config={...this._config,...ye},this._updateElementSize()}setDirection(ye){this._config={...this._config,direction:ye},this._updateElementDirection()}addPanelClass(ye){this._pane&&this._toggleClasses(this._pane,ye,!0)}removePanelClass(ye){this._pane&&this._toggleClasses(this._pane,ye,!1)}getDirection(){const ye=this._config.direction;return ye?"string"==typeof ye?ye:ye.value:"ltr"}updateScrollStrategy(ye){ye!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=ye,this.hasAttached()&&(ye.attach(this),ye.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const ye=this._pane.style;ye.width=(0,E.a1)(this._config.width),ye.height=(0,E.a1)(this._config.height),ye.minWidth=(0,E.a1)(this._config.minWidth),ye.minHeight=(0,E.a1)(this._config.minHeight),ye.maxWidth=(0,E.a1)(this._config.maxWidth),ye.maxHeight=(0,E.a1)(this._config.maxHeight)}_togglePointerEvents(ye){this._pane.style.pointerEvents=ye?"":"none"}_attachBackdrop(){const ye="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(ye)})}):this._backdropElement.classList.add(ye)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const ye=this._backdropElement;if(ye){if(this._animationsDisabled)return void this._disposeBackdrop(ye);ye.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{ye.addEventListener("transitionend",this._backdropTransitionendHandler)}),ye.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(ye)},500))}}_toggleClasses(ye,He,De){const st=(0,E.FG)(He||[]).filter(xt=>!!xt);st.length&&(De?ye.classList.add(...st):ye.classList.remove(...st))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const ye=this._ngZone.onStable.pipe((0,f.Q)((0,h.h)(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()),ye.unsubscribe())})})}_disposeScrollStrategy(){const ye=this._scrollStrategy;ye&&(ye.disable(),ye.detach&&ye.detach())}_disposeBackdrop(ye){ye&&(ye.removeEventListener("click",this._backdropClickHandler),ye.removeEventListener("transitionend",this._backdropTransitionendHandler),ye.remove(),this._backdropElement===ye&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const G="cdk-overlay-connected-position-bounding-box",V=/([A-Za-z%]+)$/;class W{get positions(){return this._preferredPositions}constructor(ye,He,De,st,xt){this._viewportRuler=He,this._document=De,this._platform=st,this._overlayContainer=xt,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new o.B,this._resizeSubscription=r.yU.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(ye)}attach(ye){this._validatePositions(),ye.hostElement.classList.add(G),this._overlayRef=ye,this._boundingBox=ye.hostElement,this._pane=ye.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ye=this._originRect,He=this._overlayRect,De=this._viewportRect,st=this._containerRect,xt=[];let jt;for(let Xt of this._preferredPositions){let un=this._getOriginPoint(ye,st,Xt),dn=this._getOverlayPoint(un,He,Xt),cn=this._getOverlayFit(dn,He,De,Xt);if(cn.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Xt,un);this._canFitWithFlexibleDimensions(cn,dn,De)?xt.push({position:Xt,origin:un,overlayRect:He,boundingBoxRect:this._calculateBoundingBoxRect(un,Xt)}):(!jt||jt.overlayFit.visibleAreaun&&(un=cn,Xt=dn)}return this._isPushed=!1,void this._applyPosition(Xt.position,Xt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(jt.position,jt.originPoint);this._applyPosition(jt.position,jt.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&K(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(G),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const ye=this._lastPosition;if(ye){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const He=this._getOriginPoint(this._originRect,this._containerRect,ye);this._applyPosition(ye,He)}else this.apply()}withScrollableContainers(ye){return this._scrollables=ye,this}withPositions(ye){return this._preferredPositions=ye,-1===ye.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(ye){return this._viewportMargin=ye,this}withFlexibleDimensions(ye=!0){return this._hasFlexibleDimensions=ye,this}withGrowAfterOpen(ye=!0){return this._growAfterOpen=ye,this}withPush(ye=!0){return this._canPush=ye,this}withLockedPosition(ye=!0){return this._positionLocked=ye,this}setOrigin(ye){return this._origin=ye,this}withDefaultOffsetX(ye){return this._offsetX=ye,this}withDefaultOffsetY(ye){return this._offsetY=ye,this}withTransformOriginOn(ye){return this._transformOriginSelector=ye,this}_getOriginPoint(ye,He,De){let st,xt;if("center"==De.originX)st=ye.left+ye.width/2;else{const jt=this._isRtl()?ye.right:ye.left,Xt=this._isRtl()?ye.left:ye.right;st="start"==De.originX?jt:Xt}return He.left<0&&(st-=He.left),xt="center"==De.originY?ye.top+ye.height/2:"top"==De.originY?ye.top:ye.bottom,He.top<0&&(xt-=He.top),{x:st,y:xt}}_getOverlayPoint(ye,He,De){let st,xt;return st="center"==De.overlayX?-He.width/2:"start"===De.overlayX?this._isRtl()?-He.width:0:this._isRtl()?0:-He.width,xt="center"==De.overlayY?-He.height/2:"top"==De.overlayY?0:-He.height,{x:ye.x+st,y:ye.y+xt}}_getOverlayFit(ye,He,De,st){const xt=ue(He);let{x:jt,y:Xt}=ye,un=this._getOffset(st,"x"),dn=this._getOffset(st,"y");un&&(jt+=un),dn&&(Xt+=dn);let hn=0-Xt,Nt=Xt+xt.height-De.height,Bt=this._subtractOverflows(xt.width,0-jt,jt+xt.width-De.width),_e=this._subtractOverflows(xt.height,hn,Nt),Ze=Bt*_e;return{visibleArea:Ze,isCompletelyWithinViewport:xt.width*xt.height===Ze,fitsInViewportVertically:_e===xt.height,fitsInViewportHorizontally:Bt==xt.width}}_canFitWithFlexibleDimensions(ye,He,De){if(this._hasFlexibleDimensions){const st=De.bottom-He.y,xt=De.right-He.x,jt=ce(this._overlayRef.getConfig().minHeight),Xt=ce(this._overlayRef.getConfig().minWidth);return(ye.fitsInViewportVertically||null!=jt&&jt<=st)&&(ye.fitsInViewportHorizontally||null!=Xt&&Xt<=xt)}return!1}_pushOverlayOnScreen(ye,He,De){if(this._previousPushAmount&&this._positionLocked)return{x:ye.x+this._previousPushAmount.x,y:ye.y+this._previousPushAmount.y};const st=ue(He),xt=this._viewportRect,jt=Math.max(ye.x+st.width-xt.width,0),Xt=Math.max(ye.y+st.height-xt.height,0),un=Math.max(xt.top-De.top-ye.y,0),dn=Math.max(xt.left-De.left-ye.x,0);let cn=0,rn=0;return cn=st.width<=xt.width?dn||-jt:ye.xBt&&!this._isInitialRender&&!this._growAfterOpen&&(jt=ye.y-Bt/2)}if("end"===He.overlayX&&!st||"start"===He.overlayX&&st)hn=De.width-ye.x+2*this._viewportMargin,cn=ye.x-this._viewportMargin;else if("start"===He.overlayX&&!st||"end"===He.overlayX&&st)rn=ye.x,cn=De.right-ye.x;else{const Nt=Math.min(De.right-ye.x+De.left,ye.x),Bt=this._lastBoundingBoxSize.width;cn=2*Nt,rn=ye.x-Nt,cn>Bt&&!this._isInitialRender&&!this._growAfterOpen&&(rn=ye.x-Bt/2)}return{top:jt,left:rn,bottom:Xt,right:hn,width:cn,height:xt}}_setBoundingBoxStyles(ye,He){const De=this._calculateBoundingBoxRect(ye,He);!this._isInitialRender&&!this._growAfterOpen&&(De.height=Math.min(De.height,this._lastBoundingBoxSize.height),De.width=Math.min(De.width,this._lastBoundingBoxSize.width));const st={};if(this._hasExactPosition())st.top=st.left="0",st.bottom=st.right=st.maxHeight=st.maxWidth="",st.width=st.height="100%";else{const xt=this._overlayRef.getConfig().maxHeight,jt=this._overlayRef.getConfig().maxWidth;st.height=(0,E.a1)(De.height),st.top=(0,E.a1)(De.top),st.bottom=(0,E.a1)(De.bottom),st.width=(0,E.a1)(De.width),st.left=(0,E.a1)(De.left),st.right=(0,E.a1)(De.right),st.alignItems="center"===He.overlayX?"center":"end"===He.overlayX?"flex-end":"flex-start",st.justifyContent="center"===He.overlayY?"center":"bottom"===He.overlayY?"flex-end":"flex-start",xt&&(st.maxHeight=(0,E.a1)(xt)),jt&&(st.maxWidth=(0,E.a1)(jt))}this._lastBoundingBoxSize=De,K(this._boundingBox.style,st)}_resetBoundingBoxStyles(){K(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){K(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(ye,He){const De={},st=this._hasExactPosition(),xt=this._hasFlexibleDimensions,jt=this._overlayRef.getConfig();if(st){const cn=this._viewportRuler.getViewportScrollPosition();K(De,this._getExactOverlayY(He,ye,cn)),K(De,this._getExactOverlayX(He,ye,cn))}else De.position="static";let Xt="",un=this._getOffset(He,"x"),dn=this._getOffset(He,"y");un&&(Xt+=`translateX(${un}px) `),dn&&(Xt+=`translateY(${dn}px)`),De.transform=Xt.trim(),jt.maxHeight&&(st?De.maxHeight=(0,E.a1)(jt.maxHeight):xt&&(De.maxHeight="")),jt.maxWidth&&(st?De.maxWidth=(0,E.a1)(jt.maxWidth):xt&&(De.maxWidth="")),K(this._pane.style,De)}_getExactOverlayY(ye,He,De){let st={top:"",bottom:""},xt=this._getOverlayPoint(He,this._overlayRect,ye);return this._isPushed&&(xt=this._pushOverlayOnScreen(xt,this._overlayRect,De)),"bottom"===ye.overlayY?st.bottom=this._document.documentElement.clientHeight-(xt.y+this._overlayRect.height)+"px":st.top=(0,E.a1)(xt.y),st}_getExactOverlayX(ye,He,De){let jt,st={left:"",right:""},xt=this._getOverlayPoint(He,this._overlayRect,ye);return this._isPushed&&(xt=this._pushOverlayOnScreen(xt,this._overlayRect,De)),jt=this._isRtl()?"end"===ye.overlayX?"left":"right":"end"===ye.overlayX?"right":"left","right"===jt?st.right=this._document.documentElement.clientWidth-(xt.x+this._overlayRect.width)+"px":st.left=(0,E.a1)(xt.x),st}_getScrollVisibility(){const ye=this._getOriginRect(),He=this._pane.getBoundingClientRect(),De=this._scrollables.map(st=>st.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:D(ye,De),isOriginOutsideView:I(ye,De),isOverlayClipped:D(He,De),isOverlayOutsideView:I(He,De)}}_subtractOverflows(ye,...He){return He.reduce((De,st)=>De-Math.max(st,0),ye)}_getNarrowedViewportRect(){const ye=this._document.documentElement.clientWidth,He=this._document.documentElement.clientHeight,De=this._viewportRuler.getViewportScrollPosition();return{top:De.top+this._viewportMargin,left:De.left+this._viewportMargin,right:De.left+ye-this._viewportMargin,bottom:De.top+He-this._viewportMargin,width:ye-2*this._viewportMargin,height:He-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(ye,He){return"x"===He?null==ye.offsetX?this._offsetX:ye.offsetX:null==ye.offsetY?this._offsetY:ye.offsetY}_validatePositions(){}_addPanelClasses(ye){this._pane&&(0,E.FG)(ye).forEach(He=>{""!==He&&-1===this._appliedPanelClasses.indexOf(He)&&(this._appliedPanelClasses.push(He),this._pane.classList.add(He))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(ye=>{this._pane.classList.remove(ye)}),this._appliedPanelClasses=[])}_getOriginRect(){const ye=this._origin;if(ye instanceof C.ElementRef)return ye.nativeElement.getBoundingClientRect();if(ye instanceof Element)return ye.getBoundingClientRect();const He=ye.width||0,De=ye.height||0;return{top:ye.y,bottom:ye.y+De,left:ye.x,right:ye.x+He,height:De,width:He}}}function K(it,ye){for(let He in ye)ye.hasOwnProperty(He)&&(it[He]=ye[He]);return it}function ce(it){if("number"!=typeof it&&null!=it){const[ye,He]=it.split(V);return He&&"px"!==He?null:parseFloat(ye)}return it||null}function ue(it){return{top:Math.floor(it.top),right:Math.floor(it.right),bottom:Math.floor(it.bottom),left:Math.floor(it.left),width:Math.floor(it.width),height:Math.floor(it.height)}}const ct="cdk-global-overlay-wrapper";class Ct{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(ye){const He=ye.getConfig();this._overlayRef=ye,this._width&&!He.width&&ye.updateSize({width:this._width}),this._height&&!He.height&&ye.updateSize({height:this._height}),ye.hostElement.classList.add(ct),this._isDisposed=!1}top(ye=""){return this._bottomOffset="",this._topOffset=ye,this._alignItems="flex-start",this}left(ye=""){return this._xOffset=ye,this._xPosition="left",this}bottom(ye=""){return this._topOffset="",this._bottomOffset=ye,this._alignItems="flex-end",this}right(ye=""){return this._xOffset=ye,this._xPosition="right",this}start(ye=""){return this._xOffset=ye,this._xPosition="start",this}end(ye=""){return this._xOffset=ye,this._xPosition="end",this}width(ye=""){return this._overlayRef?this._overlayRef.updateSize({width:ye}):this._width=ye,this}height(ye=""){return this._overlayRef?this._overlayRef.updateSize({height:ye}):this._height=ye,this}centerHorizontally(ye=""){return this.left(ye),this._xPosition="center",this}centerVertically(ye=""){return this.top(ye),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const ye=this._overlayRef.overlayElement.style,He=this._overlayRef.hostElement.style,De=this._overlayRef.getConfig(),{width:st,height:xt,maxWidth:jt,maxHeight:Xt}=De,un=!("100%"!==st&&"100vw"!==st||jt&&"100%"!==jt&&"100vw"!==jt),dn=!("100%"!==xt&&"100vh"!==xt||Xt&&"100%"!==Xt&&"100vh"!==Xt),cn=this._xPosition,rn=this._xOffset,hn="rtl"===this._overlayRef.getConfig().direction;let Nt="",Bt="",_e="";un?_e="flex-start":"center"===cn?(_e="center",hn?Bt=rn:Nt=rn):hn?"left"===cn||"end"===cn?(_e="flex-end",Nt=rn):("right"===cn||"start"===cn)&&(_e="flex-start",Bt=rn):"left"===cn||"start"===cn?(_e="flex-start",Nt=rn):("right"===cn||"end"===cn)&&(_e="flex-end",Bt=rn),ye.position=this._cssPosition,ye.marginLeft=un?"0":Nt,ye.marginTop=dn?"0":this._topOffset,ye.marginBottom=this._bottomOffset,ye.marginRight=un?"0":Bt,He.justifyContent=_e,He.alignItems=dn?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const ye=this._overlayRef.overlayElement.style,He=this._overlayRef.hostElement,De=He.style;He.classList.remove(ct),De.justifyContent=De.alignItems=ye.marginTop=ye.marginBottom=ye.marginLeft=ye.marginRight=ye.position="",this._overlayRef=null,this._isDisposed=!0}}let We=(()=>{class it{constructor(He,De,st,xt){this._viewportRuler=He,this._document=De,this._platform=st,this._overlayContainer=xt}global(){return new Ct}flexibleConnectedTo(He){return new W(He,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(De){return new(De||it)(C.\u0275\u0275inject(t.Xj),C.\u0275\u0275inject(_.DOCUMENT),C.\u0275\u0275inject(u.OD),C.\u0275\u0275inject($))};static#t=this.\u0275prov=C.\u0275\u0275defineInjectable({token:it,factory:it.\u0275fac,providedIn:"root"})}return it})(),Ne=0,Ie=(()=>{class it{constructor(He,De,st,xt,jt,Xt,un,dn,cn,rn,hn,Nt){this.scrollStrategies=He,this._overlayContainer=De,this._componentFactoryResolver=st,this._positionBuilder=xt,this._keyboardDispatcher=jt,this._injector=Xt,this._ngZone=un,this._document=dn,this._directionality=cn,this._location=rn,this._outsideClickDispatcher=hn,this._animationsModuleType=Nt}create(He){const De=this._createHostElement(),st=this._createPaneElement(De),xt=this._createPortalOutlet(st),jt=new U(He);return jt.direction=jt.direction||this._directionality.value,new j(xt,De,st,jt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(He){const De=this._document.createElement("div");return De.id="cdk-overlay-"+Ne++,De.classList.add("cdk-overlay-pane"),He.appendChild(De),De}_createHostElement(){const He=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(He),He}_createPortalOutlet(He){return this._appRef||(this._appRef=this._injector.get(C.ApplicationRef)),new c.aI(He,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(De){return new(De||it)(C.\u0275\u0275inject(T),C.\u0275\u0275inject($),C.\u0275\u0275inject(C.ComponentFactoryResolver),C.\u0275\u0275inject(We),C.\u0275\u0275inject(ee),C.\u0275\u0275inject(C.Injector),C.\u0275\u0275inject(C.NgZone),C.\u0275\u0275inject(_.DOCUMENT),C.\u0275\u0275inject(l.dS),C.\u0275\u0275inject(_.Location),C.\u0275\u0275inject(ie),C.\u0275\u0275inject(C.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275prov=C.\u0275\u0275defineInjectable({token:it,factory:it.\u0275fac,providedIn:"root"})}return it})();const rt=[{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"}],Ee=new C.InjectionToken("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const it=(0,C.inject)(Ie);return()=>it.scrollStrategies.reposition()}});let be=(()=>{class it{constructor(He){this.elementRef=He}static#e=this.\u0275fac=function(De){return new(De||it)(C.\u0275\u0275directiveInject(C.ElementRef))};static#t=this.\u0275dir=C.\u0275\u0275defineDirective({type:it,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return it})(),Se=(()=>{class it{get offsetX(){return this._offsetX}set offsetX(He){this._offsetX=He,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(He){this._offsetY=He,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(He){this._disposeOnNavigation=He}constructor(He,De,st,xt,jt){this._overlay=He,this._dir=jt,this._backdropSubscription=r.yU.EMPTY,this._attachSubscription=r.yU.EMPTY,this._detachSubscription=r.yU.EMPTY,this._positionSubscription=r.yU.EMPTY,this._disposeOnNavigation=!1,this._ngZone=(0,C.inject)(C.NgZone),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new C.EventEmitter,this.positionChange=new C.EventEmitter,this.attach=new C.EventEmitter,this.detach=new C.EventEmitter,this.overlayKeydown=new C.EventEmitter,this.overlayOutsideClick=new C.EventEmitter,this._templatePortal=new c.VA(De,st),this._scrollStrategyFactory=xt,this.scrollStrategy=this._scrollStrategyFactory()}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(He){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),He.origin&&this.open&&this._position.apply()),He.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=rt);const He=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=He.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=He.detachments().subscribe(()=>this.detach.emit()),He.keydownEvents().subscribe(De=>{this.overlayKeydown.next(De),De.keyCode===p._f&&!this.disableClose&&!(0,p.rp)(De)&&(De.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(De=>{this.overlayOutsideClick.next(De)})}_buildConfig(){const He=this._position=this.positionStrategy||this._createPositionStrategy(),De=new U({direction:this._dir,positionStrategy:He,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(De.width=this.width),(this.height||0===this.height)&&(De.height=this.height),(this.minWidth||0===this.minWidth)&&(De.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(De.minHeight=this.minHeight),this.backdropClass&&(De.backdropClass=this.backdropClass),this.panelClass&&(De.panelClass=this.panelClass),De}_updatePositionStrategy(He){const De=this.positions.map(st=>({originX:st.originX,originY:st.originY,overlayX:st.overlayX,overlayY:st.overlayY,offsetX:st.offsetX||this.offsetX,offsetY:st.offsetY||this.offsetY,panelClass:st.panelClass||void 0}));return He.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(De).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const He=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(He),He}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof be?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(He=>{this.backdropClick.emit(He)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,d.v)(()=>this.positionChange.observers.length>0)).subscribe(He=>{this._ngZone.run(()=>this.positionChange.emit(He)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#e=this.\u0275fac=function(De){return new(De||it)(C.\u0275\u0275directiveInject(Ie),C.\u0275\u0275directiveInject(C.TemplateRef),C.\u0275\u0275directiveInject(C.ViewContainerRef),C.\u0275\u0275directiveInject(Ee),C.\u0275\u0275directiveInject(l.dS,8))};static#t=this.\u0275dir=C.\u0275\u0275defineDirective({type:it,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayOrigin","origin"],positions:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayPositions","positions"],positionStrategy:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayOffsetY","offsetY"],width:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayWidth","width"],height:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayHeight","height"],minWidth:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayOpen","open"],disableClose:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[C.\u0275\u0275InputFlags.None,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkConnectedOverlayHasBackdrop","hasBackdrop",C.booleanAttribute],lockPosition:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkConnectedOverlayLockPosition","lockPosition",C.booleanAttribute],flexibleDimensions:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",C.booleanAttribute],growAfterOpen:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",C.booleanAttribute],push:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkConnectedOverlayPush","push",C.booleanAttribute],disposeOnNavigation:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",C.booleanAttribute]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[C.\u0275\u0275InputTransformsFeature,C.\u0275\u0275NgOnChangesFeature]})}return it})();const pe={provide:Ee,deps:[Ie],useFactory:function Q(it){return()=>it.scrollStrategies.reposition()}};let Re=(()=>{class it{static#e=this.\u0275fac=function(De){return new(De||it)};static#t=this.\u0275mod=C.\u0275\u0275defineNgModule({type:it});static#n=this.\u0275inj=C.\u0275\u0275defineInjector({providers:[Ie,pe],imports:[l.jI,c.jc,t.E9,t.E9]})}return it})()},6860:(Te,ne,g)=>{"use strict";g.d(ne,{BD:()=>v,BQ:()=>c,CZ:()=>p,Fb:()=>I,KT:()=>w,MU:()=>f,OD:()=>E,r5:()=>o,v8:()=>D,vc:()=>k});var t=g(4438),_=g(177);let C;try{C=typeof Intl<"u"&&Intl.v8BreakIterator}catch{C=!1}let b,E=(()=>{class O{constructor(U){this._platformId=U,this.isBrowser=this._platformId?(0,_.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&&!C)&&typeof CSS<"u"&&!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}static#e=this.\u0275fac=function(S){return new(S||O)(t.\u0275\u0275inject(t.PLATFORM_ID))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac,providedIn:"root"})}return O})();const s=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function f(){if(b)return b;if("object"!=typeof document||!document)return b=new Set(s),b;let O=document.createElement("input");return b=new Set(s.filter(T=>(O.setAttribute("type",T),O.type===T))),b}let d;function c(O){return function l(){if(null==d&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>d=!0}))}finally{d=d||!1}return d}()?O:!!O.capture}var o=function(O){return O[O.NORMAL=0]="NORMAL",O[O.NEGATED=1]="NEGATED",O[O.INVERTED=2]="INVERTED",O}(o||{});let r,h,y;function p(){if(null==h){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return h=!1,h;if("scrollBehavior"in document.documentElement.style)h=!0;else{const O=Element.prototype.scrollTo;h=!!O&&!/\{\s*\[native code\]\s*\}/.test(O.toString())}}return h}function v(){if("object"!=typeof document||!document)return o.NORMAL;if(null==r){const O=document.createElement("div"),T=O.style;O.dir="rtl",T.width="1px",T.overflow="auto",T.visibility="hidden",T.pointerEvents="none",T.position="absolute";const U=document.createElement("div"),S=U.style;S.width="2px",S.height="1px",O.appendChild(U),document.body.appendChild(O),r=o.NORMAL,0===O.scrollLeft&&(O.scrollLeft=1,r=0===O.scrollLeft?o.NEGATED:o.INVERTED),O.remove()}return r}function w(O){if(function M(){if(null==y){const O=typeof document<"u"?document.head:null;y=!(!O||!O.createShadowRoot&&!O.attachShadow)}return y}()){const T=O.getRootNode?O.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&T instanceof ShadowRoot)return T}return null}function k(){let O=typeof document<"u"&&document?document.activeElement:null;for(;O&&O.shadowRoot;){const T=O.shadowRoot.activeElement;if(T===O)break;O=T}return O}function I(O){return O.composedPath?O.composedPath()[0]:O.target}function D(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6939:(Te,ne,g)=>{"use strict";g.d(ne,{A8:()=>l,I3:()=>w,VA:()=>c,aI:()=>p,bV:()=>y,jc:()=>I});var t=g(4438),_=g(177);class d{attach(T){return this._attachedHost=T,T.attach(this)}detach(){let T=this._attachedHost;null!=T&&(this._attachedHost=null,T.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(T){this._attachedHost=T}}class l extends d{constructor(T,U,S,R,N){super(),this.component=T,this.viewContainerRef=U,this.injector=S,this.componentFactoryResolver=R,this.projectableNodes=N}}class c extends d{constructor(T,U,S,R){super(),this.templateRef=T,this.viewContainerRef=U,this.context=S,this.injector=R}get origin(){return this.templateRef.elementRef}attach(T,U=this.context){return this.context=U,super.attach(T)}detach(){return this.context=void 0,super.detach()}}class o extends d{constructor(T){super(),this.element=T instanceof t.ElementRef?T.nativeElement:T}}class r{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(T){return T instanceof l?(this._attachedPortal=T,this.attachComponentPortal(T)):T instanceof c?(this._attachedPortal=T,this.attachTemplatePortal(T)):this.attachDomPortal&&T instanceof o?(this._attachedPortal=T,this.attachDomPortal(T)):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(T){this._disposeFn=T}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class p extends r{constructor(T,U,S,R,N){super(),this.outletElement=T,this._componentFactoryResolver=U,this._appRef=S,this._defaultInjector=R,this.attachDomPortal=A=>{const F=A.element,Y=this._document.createComment("dom-portal");F.parentNode.insertBefore(Y,F),this.outletElement.appendChild(F),this._attachedPortal=A,super.setDisposeFn(()=>{Y.parentNode&&Y.parentNode.replaceChild(F,Y)})},this._document=N}attachComponentPortal(T){const S=(T.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(T.component);let R;return T.viewContainerRef?(R=T.viewContainerRef.createComponent(S,T.viewContainerRef.length,T.injector||T.viewContainerRef.injector,T.projectableNodes||void 0),this.setDisposeFn(()=>R.destroy())):(R=S.create(T.injector||this._defaultInjector||t.Injector.NULL),this._appRef.attachView(R.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(R.hostView),R.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(R)),this._attachedPortal=T,R}attachTemplatePortal(T){let U=T.viewContainerRef,S=U.createEmbeddedView(T.templateRef,T.context,{injector:T.injector});return S.rootNodes.forEach(R=>this.outletElement.appendChild(R)),S.detectChanges(),this.setDisposeFn(()=>{let R=U.indexOf(S);-1!==R&&U.remove(R)}),this._attachedPortal=T,S}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(T){return T.hostView.rootNodes[0]}}let y=(()=>{class O extends c{constructor(U,S){super(U,S)}static#e=this.\u0275fac=function(S){return new(S||O)(t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.ViewContainerRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:O,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature]})}return O})(),w=(()=>{class O extends r{constructor(U,S,R){super(),this._componentFactoryResolver=U,this._viewContainerRef=S,this._isInitialized=!1,this.attached=new t.EventEmitter,this.attachDomPortal=N=>{const A=N.element,F=this._document.createComment("dom-portal");N.setAttachedHost(this),A.parentNode.insertBefore(F,A),this._getRootNode().appendChild(A),this._attachedPortal=N,super.setDisposeFn(()=>{F.parentNode&&F.parentNode.replaceChild(A,F)})},this._document=R}get portal(){return this._attachedPortal}set portal(U){this.hasAttached()&&!U&&!this._isInitialized||(this.hasAttached()&&super.detach(),U&&super.attach(U),this._attachedPortal=U||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(U){U.setAttachedHost(this);const S=null!=U.viewContainerRef?U.viewContainerRef:this._viewContainerRef,N=(U.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(U.component),A=S.createComponent(N,S.length,U.injector||S.injector,U.projectableNodes||void 0);return S!==this._viewContainerRef&&this._getRootNode().appendChild(A.hostView.rootNodes[0]),super.setDisposeFn(()=>A.destroy()),this._attachedPortal=U,this._attachedRef=A,this.attached.emit(A),A}attachTemplatePortal(U){U.setAttachedHost(this);const S=this._viewContainerRef.createEmbeddedView(U.templateRef,U.context,{injector:U.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=U,this._attachedRef=S,this.attached.emit(S),S}_getRootNode(){const U=this._viewContainerRef.element.nativeElement;return U.nodeType===U.ELEMENT_NODE?U:U.parentNode}static#e=this.\u0275fac=function(S){return new(S||O)(t.\u0275\u0275directiveInject(t.ComponentFactoryResolver),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(_.DOCUMENT))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:O,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[t.\u0275\u0275InputFlags.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature]})}return O})(),I=(()=>{class O{static#e=this.\u0275fac=function(S){return new(S||O)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:O});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({})}return O})()},5478:(Te,ne,g)=>{"use strict";g.d(ne,{E9:()=>G,Gj:()=>j,R:()=>D,Xj:()=>U,uv:()=>O});var t=g(4085),_=g(4438),C=g(1413),E=g(7673),u=g(1985),b=g(3726),d=(g(536),g(5007),g(3578)),l=g(5964),c=g(6977),o=g(6860),r=g(177),h=g(8203);let D=(()=>{class V{constructor(K,ce,ue){this._ngZone=K,this._platform=ce,this._scrolled=new C.B,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ue}register(K){this.scrollContainers.has(K)||this.scrollContainers.set(K,K.elementScrolled().subscribe(()=>this._scrolled.next(K)))}deregister(K){const ce=this.scrollContainers.get(K);ce&&(ce.unsubscribe(),this.scrollContainers.delete(K))}scrolled(K=20){return this._platform.isBrowser?new u.c(ce=>{this._globalSubscription||this._addGlobalListener();const ue=K>0?this._scrolled.pipe((0,d.Z)(K)).subscribe(ce):this._scrolled.subscribe(ce);return this._scrolledCount++,()=>{ue.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,E.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((K,ce)=>this.deregister(ce)),this._scrolled.complete()}ancestorScrolled(K,ce){const ue=this.getAncestorScrollContainers(K);return this.scrolled(ce).pipe((0,l.p)(ve=>!ve||ue.indexOf(ve)>-1))}getAncestorScrollContainers(K){const ce=[];return this.scrollContainers.forEach((ue,ve)=>{this._scrollableContainsElement(ve,K)&&ce.push(ve)}),ce}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(K,ce){let ue=(0,t.i8)(ce),ve=K.getElementRef().nativeElement;do{if(ue==ve)return!0}while(ue=ue.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const K=this._getWindow();return(0,b.R)(K.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(ce){return new(ce||V)(_.\u0275\u0275inject(_.NgZone),_.\u0275\u0275inject(o.OD),_.\u0275\u0275inject(r.DOCUMENT,8))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:V,factory:V.\u0275fac,providedIn:"root"})}return V})(),O=(()=>{class V{constructor(K,ce,ue,ve){this.elementRef=K,this.scrollDispatcher=ce,this.ngZone=ue,this.dir=ve,this._destroyed=new C.B,this._elementScrolled=new u.c(Ye=>this.ngZone.runOutsideAngular(()=>(0,b.R)(this.elementRef.nativeElement,"scroll").pipe((0,c.Q)(this._destroyed)).subscribe(Ye)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(K){const ce=this.elementRef.nativeElement,ue=this.dir&&"rtl"==this.dir.value;null==K.left&&(K.left=ue?K.end:K.start),null==K.right&&(K.right=ue?K.start:K.end),null!=K.bottom&&(K.top=ce.scrollHeight-ce.clientHeight-K.bottom),ue&&(0,o.BD)()!=o.r5.NORMAL?(null!=K.left&&(K.right=ce.scrollWidth-ce.clientWidth-K.left),(0,o.BD)()==o.r5.INVERTED?K.left=K.right:(0,o.BD)()==o.r5.NEGATED&&(K.left=K.right?-K.right:K.right)):null!=K.right&&(K.left=ce.scrollWidth-ce.clientWidth-K.right),this._applyScrollToOptions(K)}_applyScrollToOptions(K){const ce=this.elementRef.nativeElement;(0,o.CZ)()?ce.scrollTo(K):(null!=K.top&&(ce.scrollTop=K.top),null!=K.left&&(ce.scrollLeft=K.left))}measureScrollOffset(K){const ce="left",ve=this.elementRef.nativeElement;if("top"==K)return ve.scrollTop;if("bottom"==K)return ve.scrollHeight-ve.clientHeight-ve.scrollTop;const Ye=this.dir&&"rtl"==this.dir.value;return"start"==K?K=Ye?"right":ce:"end"==K&&(K=Ye?ce:"right"),Ye&&(0,o.BD)()==o.r5.INVERTED?K==ce?ve.scrollWidth-ve.clientWidth-ve.scrollLeft:ve.scrollLeft:Ye&&(0,o.BD)()==o.r5.NEGATED?K==ce?ve.scrollLeft+ve.scrollWidth-ve.clientWidth:-ve.scrollLeft:K==ce?ve.scrollLeft:ve.scrollWidth-ve.clientWidth-ve.scrollLeft}static#e=this.\u0275fac=function(ce){return new(ce||V)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(D),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(h.dS,8))};static#t=this.\u0275dir=_.\u0275\u0275defineDirective({type:V,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return V})(),U=(()=>{class V{constructor(K,ce,ue){this._platform=K,this._change=new C.B,this._changeListener=ve=>{this._change.next(ve)},this._document=ue,ce.runOutsideAngular(()=>{if(K.isBrowser){const ve=this._getWindow();ve.addEventListener("resize",this._changeListener),ve.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const K=this._getWindow();K.removeEventListener("resize",this._changeListener),K.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const K={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),K}getViewportRect(){const K=this.getViewportScrollPosition(),{width:ce,height:ue}=this.getViewportSize();return{top:K.top,left:K.left,bottom:K.top+ue,right:K.left+ce,height:ue,width:ce}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const K=this._document,ce=this._getWindow(),ue=K.documentElement,ve=ue.getBoundingClientRect();return{top:-ve.top||K.body.scrollTop||ce.scrollY||ue.scrollTop||0,left:-ve.left||K.body.scrollLeft||ce.scrollX||ue.scrollLeft||0}}change(K=20){return K>0?this._change.pipe((0,d.Z)(K)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const K=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:K.innerWidth,height:K.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(ce){return new(ce||V)(_.\u0275\u0275inject(o.OD),_.\u0275\u0275inject(_.NgZone),_.\u0275\u0275inject(r.DOCUMENT,8))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:V,factory:V.\u0275fac,providedIn:"root"})}return V})(),j=(()=>{class V{static#e=this.\u0275fac=function(ce){return new(ce||V)};static#t=this.\u0275mod=_.\u0275\u0275defineNgModule({type:V});static#n=this.\u0275inj=_.\u0275\u0275defineInjector({})}return V})(),G=(()=>{class V{static#e=this.\u0275fac=function(ce){return new(ce||V)};static#t=this.\u0275mod=_.\u0275\u0275defineNgModule({type:V});static#n=this.\u0275inj=_.\u0275\u0275defineInjector({imports:[h.jI,j,h.jI,j]})}return V})()},177:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{APP_BASE_HREF:()=>p,AsyncPipe:()=>Ui,BrowserPlatformLocation:()=>l,CommonModule:()=>us,CurrencyPipe:()=>es,DATE_PIPE_DEFAULT_OPTIONS:()=>Ji,DATE_PIPE_DEFAULT_TIMEZONE:()=>ji,DOCUMENT:()=>s,DatePipe:()=>Gi,DecimalPipe:()=>Ur,FormStyle:()=>S,FormatWidth:()=>N,HashLocationStrategy:()=>y,I18nPluralPipe:()=>Hr,I18nSelectPipe:()=>Tr,IMAGE_CONFIG:()=>t.\u0275IMAGE_CONFIG,IMAGE_LOADER:()=>Wr,JsonPipe:()=>wr,KeyValuePipe:()=>Sr,LOCATION_INITIALIZED:()=>d,Location:()=>M,LocationStrategy:()=>h,LowerCasePipe:()=>Un,NgClass:()=>mt,NgComponentOutlet:()=>xe,NgFor:()=>me,NgForOf:()=>me,NgForOfContext:()=>H,NgIf:()=>wt,NgIfContext:()=>ln,NgLocaleLocalization:()=>nn,NgLocalization:()=>lt,NgOptimizedImage:()=>zo,NgPlural:()=>hi,NgPluralCase:()=>xi,NgStyle:()=>Ri,NgSwitch:()=>In,NgSwitchCase:()=>Fn,NgSwitchDefault:()=>yi,NgTemplateOutlet:()=>On,NumberFormatStyle:()=>T,NumberSymbol:()=>A,PRECONNECT_CHECK_BLOCKLIST:()=>Vo,PathLocationStrategy:()=>v,PercentPipe:()=>mr,PlatformLocation:()=>f,Plural:()=>U,SlicePipe:()=>Bn,TitleCasePipe:()=>Dn,TranslationWidth:()=>R,UpperCasePipe:()=>Rn,VERSION:()=>sn,ViewportScroller:()=>fn,WeekDay:()=>F,XhrFactory:()=>Mi,formatCurrency:()=>Cn,formatDate:()=>xt,formatNumber:()=>Oi,formatPercent:()=>Ln,getCurrencySymbol:()=>Q,getLocaleCurrencyCode:()=>ct,getLocaleCurrencyName:()=>pt,getLocaleCurrencySymbol:()=>Ye,getLocaleDateFormat:()=>W,getLocaleDateTimeFormat:()=>ce,getLocaleDayNames:()=>ie,getLocaleDayPeriods:()=>ee,getLocaleDirection:()=>Ee,getLocaleEraNames:()=>j,getLocaleExtraDayPeriodRules:()=>Ie,getLocaleExtraDayPeriods:()=>rt,getLocaleFirstDayOfWeek:()=>G,getLocaleId:()=>Y,getLocaleMonthNames:()=>$,getLocaleNumberFormat:()=>ve,getLocaleNumberSymbol:()=>ue,getLocalePluralCase:()=>We,getLocaleTimeFormat:()=>K,getLocaleWeekEndRange:()=>V,getNumberOfCurrencyDigits:()=>Re,isPlatformBrowser:()=>Tt,isPlatformServer:()=>kt,isPlatformWorkerApp:()=>$t,isPlatformWorkerUi:()=>Wt,provideCloudflareLoader:()=>di,provideCloudinaryLoader:()=>Yr,provideImageKitLoader:()=>Ae,provideImgixLoader:()=>ni,provideNetlifyLoader:()=>Bo,registerLocaleData:()=>_n,\u0275DomAdapter:()=>u,\u0275NullViewportScroller:()=>$n,\u0275PLATFORM_BROWSER_ID:()=>br,\u0275PLATFORM_SERVER_ID:()=>vs,\u0275PLATFORM_WORKER_APP_ID:()=>Dt,\u0275PLATFORM_WORKER_UI_ID:()=>vt,\u0275PlatformNavigation:()=>b,\u0275getDOM:()=>C,\u0275normalizeQueryParams:()=>r,\u0275parseCookieValue:()=>Ue,\u0275setRootDomAdapter:()=>E});var t=g(4438);let _=null;function C(){return _}function E(J){_??=J}class u{}let b=(()=>{class J{static#e=this.\u0275fac=function(ge){return new(ge||J)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:J,factory:()=>window.navigation,providedIn:"platform"})}return J})();const s=new t.InjectionToken("");let f=(()=>{class J{historyGo(oe){throw new Error("")}static#e=this.\u0275fac=function(ge){return new(ge||J)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:J,factory:()=>(0,t.inject)(l),providedIn:"platform"})}return J})();const d=new t.InjectionToken("");let l=(()=>{class J extends f{constructor(){super(),this._doc=(0,t.inject)(s),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return C().getBaseHref(this._doc)}onPopState(oe){const ge=C().getGlobalEventTarget(this._doc,"window");return ge.addEventListener("popstate",oe,!1),()=>ge.removeEventListener("popstate",oe)}onHashChange(oe){const ge=C().getGlobalEventTarget(this._doc,"window");return ge.addEventListener("hashchange",oe,!1),()=>ge.removeEventListener("hashchange",oe)}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(oe){this._location.pathname=oe}pushState(oe,ge,ot){this._history.pushState(oe,ge,ot)}replaceState(oe,ge,ot){this._history.replaceState(oe,ge,ot)}forward(){this._history.forward()}back(){this._history.back()}historyGo(oe=0){this._history.go(oe)}getState(){return this._history.state}static#e=this.\u0275fac=function(ge){return new(ge||J)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:J,factory:()=>new J,providedIn:"platform"})}return J})();function c(J,Pe){if(0==J.length)return Pe;if(0==Pe.length)return J;let oe=0;return J.endsWith("/")&&oe++,Pe.startsWith("/")&&oe++,2==oe?J+Pe.substring(1):1==oe?J+Pe:J+"/"+Pe}function o(J){const Pe=J.match(/#|\?|$/),oe=Pe&&Pe.index||J.length;return J.slice(0,oe-("/"===J[oe-1]?1:0))+J.slice(oe)}function r(J){return J&&"?"!==J[0]?"?"+J:J}let h=(()=>{class J{historyGo(oe){throw new Error("")}static#e=this.\u0275fac=function(ge){return new(ge||J)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:J,factory:()=>(0,t.inject)(v),providedIn:"root"})}return J})();const p=new t.InjectionToken("");let v=(()=>{class J extends h{constructor(oe,ge){super(),this._platformLocation=oe,this._removeListenerFns=[],this._baseHref=ge??this._platformLocation.getBaseHrefFromDOM()??(0,t.inject)(s).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(oe){this._removeListenerFns.push(this._platformLocation.onPopState(oe),this._platformLocation.onHashChange(oe))}getBaseHref(){return this._baseHref}prepareExternalUrl(oe){return c(this._baseHref,oe)}path(oe=!1){const ge=this._platformLocation.pathname+r(this._platformLocation.search),ot=this._platformLocation.hash;return ot&&oe?`${ge}${ot}`:ge}pushState(oe,ge,ot,Ht){const Qt=this.prepareExternalUrl(ot+r(Ht));this._platformLocation.pushState(oe,ge,Qt)}replaceState(oe,ge,ot,Ht){const Qt=this.prepareExternalUrl(ot+r(Ht));this._platformLocation.replaceState(oe,ge,Qt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(oe=0){this._platformLocation.historyGo?.(oe)}static#e=this.\u0275fac=function(ge){return new(ge||J)(t.\u0275\u0275inject(f),t.\u0275\u0275inject(p,8))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:J,factory:J.\u0275fac,providedIn:"root"})}return J})(),y=(()=>{class J extends h{constructor(oe,ge){super(),this._platformLocation=oe,this._baseHref="",this._removeListenerFns=[],null!=ge&&(this._baseHref=ge)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(oe){this._removeListenerFns.push(this._platformLocation.onPopState(oe),this._platformLocation.onHashChange(oe))}getBaseHref(){return this._baseHref}path(oe=!1){const ge=this._platformLocation.hash??"#";return ge.length>0?ge.substring(1):ge}prepareExternalUrl(oe){const ge=c(this._baseHref,oe);return ge.length>0?"#"+ge:ge}pushState(oe,ge,ot,Ht){let Qt=this.prepareExternalUrl(ot+r(Ht));0==Qt.length&&(Qt=this._platformLocation.pathname),this._platformLocation.pushState(oe,ge,Qt)}replaceState(oe,ge,ot,Ht){let Qt=this.prepareExternalUrl(ot+r(Ht));0==Qt.length&&(Qt=this._platformLocation.pathname),this._platformLocation.replaceState(oe,ge,Qt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(oe=0){this._platformLocation.historyGo?.(oe)}static#e=this.\u0275fac=function(ge){return new(ge||J)(t.\u0275\u0275inject(f),t.\u0275\u0275inject(p,8))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:J,factory:J.\u0275fac})}return J})(),M=(()=>{class J{constructor(oe){this._subject=new t.EventEmitter,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=oe;const ge=this._locationStrategy.getBaseHref();this._basePath=function D(J){if(new RegExp("^(https?:)?//").test(J)){const[,oe]=J.split(/\/\/[^\/]+/);return oe}return J}(o(I(ge))),this._locationStrategy.onPopState(ot=>{this._subject.emit({url:this.path(!0),pop:!0,state:ot.state,type:ot.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(oe=!1){return this.normalize(this._locationStrategy.path(oe))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(oe,ge=""){return this.path()==this.normalize(oe+r(ge))}normalize(oe){return J.stripTrailingSlash(function k(J,Pe){if(!J||!Pe.startsWith(J))return Pe;const oe=Pe.substring(J.length);return""===oe||["/",";","?","#"].includes(oe[0])?oe:Pe}(this._basePath,I(oe)))}prepareExternalUrl(oe){return oe&&"/"!==oe[0]&&(oe="/"+oe),this._locationStrategy.prepareExternalUrl(oe)}go(oe,ge="",ot=null){this._locationStrategy.pushState(ot,"",oe,ge),this._notifyUrlChangeListeners(this.prepareExternalUrl(oe+r(ge)),ot)}replaceState(oe,ge="",ot=null){this._locationStrategy.replaceState(ot,"",oe,ge),this._notifyUrlChangeListeners(this.prepareExternalUrl(oe+r(ge)),ot)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(oe=0){this._locationStrategy.historyGo?.(oe)}onUrlChange(oe){return this._urlChangeListeners.push(oe),this._urlChangeSubscription??=this.subscribe(ge=>{this._notifyUrlChangeListeners(ge.url,ge.state)}),()=>{const ge=this._urlChangeListeners.indexOf(oe);this._urlChangeListeners.splice(ge,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(oe="",ge){this._urlChangeListeners.forEach(ot=>ot(oe,ge))}subscribe(oe,ge,ot){return this._subject.subscribe({next:oe,error:ge,complete:ot})}static#e=this.normalizeQueryParams=r;static#t=this.joinWithSlash=c;static#n=this.stripTrailingSlash=o;static#i=this.\u0275fac=function(ge){return new(ge||J)(t.\u0275\u0275inject(h))};static#r=this.\u0275prov=t.\u0275\u0275defineInjectable({token:J,factory:()=>function w(){return new M((0,t.\u0275\u0275inject)(h))}(),providedIn:"root"})}return J})();function I(J){return J.replace(/\/index.html$/,"")}const O={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,void 0,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"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],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 T=function(J){return J[J.Decimal=0]="Decimal",J[J.Percent=1]="Percent",J[J.Currency=2]="Currency",J[J.Scientific=3]="Scientific",J}(T||{}),U=function(J){return J[J.Zero=0]="Zero",J[J.One=1]="One",J[J.Two=2]="Two",J[J.Few=3]="Few",J[J.Many=4]="Many",J[J.Other=5]="Other",J}(U||{}),S=function(J){return J[J.Format=0]="Format",J[J.Standalone=1]="Standalone",J}(S||{}),R=function(J){return J[J.Narrow=0]="Narrow",J[J.Abbreviated=1]="Abbreviated",J[J.Wide=2]="Wide",J[J.Short=3]="Short",J}(R||{}),N=function(J){return J[J.Short=0]="Short",J[J.Medium=1]="Medium",J[J.Long=2]="Long",J[J.Full=3]="Full",J}(N||{});const A={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};var F=function(J){return 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}(F||{});function Y(J){return(0,t.\u0275findLocaleData)(J)[t.\u0275LocaleDataIndex.LocaleId]}function ee(J,Pe,oe){const ge=(0,t.\u0275findLocaleData)(J),Ht=be([ge[t.\u0275LocaleDataIndex.DayPeriodsFormat],ge[t.\u0275LocaleDataIndex.DayPeriodsStandalone]],Pe);return be(Ht,oe)}function ie(J,Pe,oe){const ge=(0,t.\u0275findLocaleData)(J),Ht=be([ge[t.\u0275LocaleDataIndex.DaysFormat],ge[t.\u0275LocaleDataIndex.DaysStandalone]],Pe);return be(Ht,oe)}function $(J,Pe,oe){const ge=(0,t.\u0275findLocaleData)(J),Ht=be([ge[t.\u0275LocaleDataIndex.MonthsFormat],ge[t.\u0275LocaleDataIndex.MonthsStandalone]],Pe);return be(Ht,oe)}function j(J,Pe){return be((0,t.\u0275findLocaleData)(J)[t.\u0275LocaleDataIndex.Eras],Pe)}function G(J){return(0,t.\u0275findLocaleData)(J)[t.\u0275LocaleDataIndex.FirstDayOfWeek]}function V(J){return(0,t.\u0275findLocaleData)(J)[t.\u0275LocaleDataIndex.WeekendRange]}function W(J,Pe){return be((0,t.\u0275findLocaleData)(J)[t.\u0275LocaleDataIndex.DateFormat],Pe)}function K(J,Pe){return be((0,t.\u0275findLocaleData)(J)[t.\u0275LocaleDataIndex.TimeFormat],Pe)}function ce(J,Pe){return be((0,t.\u0275findLocaleData)(J)[t.\u0275LocaleDataIndex.DateTimeFormat],Pe)}function ue(J,Pe){const oe=(0,t.\u0275findLocaleData)(J),ge=oe[t.\u0275LocaleDataIndex.NumberSymbols][Pe];if(typeof ge>"u"){if(Pe===A.CurrencyDecimal)return oe[t.\u0275LocaleDataIndex.NumberSymbols][A.Decimal];if(Pe===A.CurrencyGroup)return oe[t.\u0275LocaleDataIndex.NumberSymbols][A.Group]}return ge}function ve(J,Pe){return(0,t.\u0275findLocaleData)(J)[t.\u0275LocaleDataIndex.NumberFormats][Pe]}function Ye(J){return(0,t.\u0275findLocaleData)(J)[t.\u0275LocaleDataIndex.CurrencySymbol]||null}function pt(J){return(0,t.\u0275findLocaleData)(J)[t.\u0275LocaleDataIndex.CurrencyName]||null}function ct(J){return(0,t.\u0275getLocaleCurrencyCode)(J)}const We=t.\u0275getLocalePluralCase;function Ne(J){if(!J[t.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${J[t.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ie(J){const Pe=(0,t.\u0275findLocaleData)(J);return Ne(Pe),(Pe[t.\u0275LocaleDataIndex.ExtraData][2]||[]).map(ge=>"string"==typeof ge?Se(ge):[Se(ge[0]),Se(ge[1])])}function rt(J,Pe,oe){const ge=(0,t.\u0275findLocaleData)(J);Ne(ge);const Ht=be([ge[t.\u0275LocaleDataIndex.ExtraData][0],ge[t.\u0275LocaleDataIndex.ExtraData][1]],Pe)||[];return be(Ht,oe)||[]}function Ee(J){return(0,t.\u0275findLocaleData)(J)[t.\u0275LocaleDataIndex.Directionality]}function be(J,Pe){for(let oe=Pe;oe>-1;oe--)if(typeof J[oe]<"u")return J[oe];throw new Error("Locale data API: locale data undefined")}function Se(J){const[Pe,oe]=J.split(":");return{hours:+Pe,minutes:+oe}}function Q(J,Pe,oe="en"){const ge=function Ct(J){return(0,t.\u0275findLocaleData)(J)[t.\u0275LocaleDataIndex.Currencies]}(oe)[J]||O[J]||[],ot=ge[1];return"narrow"===Pe&&"string"==typeof ot?ot:ge[0]||J}const pe=2;function Re(J){let Pe;const oe=O[J];return oe&&(Pe=oe[2]),"number"==typeof Pe?Pe:pe}const bt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,it={},ye=/((?:[^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 He=function(J){return J[J.Short=0]="Short",J[J.ShortGMT=1]="ShortGMT",J[J.Long=2]="Long",J[J.Extended=3]="Extended",J}(He||{}),De=function(J){return J[J.FullYear=0]="FullYear",J[J.Month=1]="Month",J[J.Date=2]="Date",J[J.Hours=3]="Hours",J[J.Minutes=4]="Minutes",J[J.Seconds=5]="Seconds",J[J.FractionalSeconds=6]="FractionalSeconds",J[J.Day=7]="Day",J}(De||{}),st=function(J){return J[J.DayPeriods=0]="DayPeriods",J[J.Days=1]="Days",J[J.Months=2]="Months",J[J.Eras=3]="Eras",J}(st||{});function xt(J,Pe,oe,ge){let ot=function nt(J){if(Gt(J))return J;if("number"==typeof J&&!isNaN(J))return new Date(J);if("string"==typeof J){if(J=J.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(J)){const[ot,Ht=1,Qt=1]=J.split("-").map(wn=>+wn);return jt(ot,Ht-1,Qt)}const oe=parseFloat(J);if(!isNaN(J-oe))return new Date(oe);let ge;if(ge=J.match(bt))return function It(J){const Pe=new Date(0);let oe=0,ge=0;const ot=J[8]?Pe.setUTCFullYear:Pe.setFullYear,Ht=J[8]?Pe.setUTCHours:Pe.setHours;J[9]&&(oe=Number(J[9]+J[10]),ge=Number(J[9]+J[11])),ot.call(Pe,Number(J[1]),Number(J[2])-1,Number(J[3]));const Qt=Number(J[4]||0)-oe,wn=Number(J[5]||0)-ge,ci=Number(J[6]||0),Si=Math.floor(1e3*parseFloat("0."+(J[7]||0)));return Ht.call(Pe,Qt,wn,ci,Si),Pe}(ge)}const Pe=new Date(J);if(!Gt(Pe))throw new Error(`Unable to convert "${J}" into a date`);return Pe}(J);Pe=Xt(oe,Pe)||Pe;let wn,Qt=[];for(;Pe;){if(wn=ye.exec(Pe),!wn){Qt.push(Pe);break}{Qt=Qt.concat(wn.slice(1));const Di=Qt.pop();if(!Di)break;Pe=Di}}let ci=ot.getTimezoneOffset();ge&&(ci=te(ge,ci),ot=function ke(J,Pe,oe){const ge=oe?-1:1,ot=J.getTimezoneOffset();return function de(J,Pe){return(J=new Date(J.getTime())).setMinutes(J.getMinutes()+Pe),J}(J,ge*(te(Pe,ot)-ot))}(ot,ge,!0));let Si="";return Qt.forEach(Di=>{const Qn=function Ge(J){if(fe[J])return fe[J];let Pe;switch(J){case"G":case"GG":case"GGG":Pe=Nt(st.Eras,R.Abbreviated);break;case"GGGG":Pe=Nt(st.Eras,R.Wide);break;case"GGGGG":Pe=Nt(st.Eras,R.Narrow);break;case"y":Pe=rn(De.FullYear,1,0,!1,!0);break;case"yy":Pe=rn(De.FullYear,2,0,!0,!0);break;case"yyy":Pe=rn(De.FullYear,3,0,!1,!0);break;case"yyyy":Pe=rn(De.FullYear,4,0,!1,!0);break;case"Y":Pe=Le(1);break;case"YY":Pe=Le(2,!0);break;case"YYY":Pe=Le(3);break;case"YYYY":Pe=Le(4);break;case"M":case"L":Pe=rn(De.Month,1,1);break;case"MM":case"LL":Pe=rn(De.Month,2,1);break;case"MMM":Pe=Nt(st.Months,R.Abbreviated);break;case"MMMM":Pe=Nt(st.Months,R.Wide);break;case"MMMMM":Pe=Nt(st.Months,R.Narrow);break;case"LLL":Pe=Nt(st.Months,R.Abbreviated,S.Standalone);break;case"LLLL":Pe=Nt(st.Months,R.Wide,S.Standalone);break;case"LLLLL":Pe=Nt(st.Months,R.Narrow,S.Standalone);break;case"w":Pe=ft(1);break;case"ww":Pe=ft(2);break;case"W":Pe=ft(1,!0);break;case"d":Pe=rn(De.Date,1);break;case"dd":Pe=rn(De.Date,2);break;case"c":case"cc":Pe=rn(De.Day,1);break;case"ccc":Pe=Nt(st.Days,R.Abbreviated,S.Standalone);break;case"cccc":Pe=Nt(st.Days,R.Wide,S.Standalone);break;case"ccccc":Pe=Nt(st.Days,R.Narrow,S.Standalone);break;case"cccccc":Pe=Nt(st.Days,R.Short,S.Standalone);break;case"E":case"EE":case"EEE":Pe=Nt(st.Days,R.Abbreviated);break;case"EEEE":Pe=Nt(st.Days,R.Wide);break;case"EEEEE":Pe=Nt(st.Days,R.Narrow);break;case"EEEEEE":Pe=Nt(st.Days,R.Short);break;case"a":case"aa":case"aaa":Pe=Nt(st.DayPeriods,R.Abbreviated);break;case"aaaa":Pe=Nt(st.DayPeriods,R.Wide);break;case"aaaaa":Pe=Nt(st.DayPeriods,R.Narrow);break;case"b":case"bb":case"bbb":Pe=Nt(st.DayPeriods,R.Abbreviated,S.Standalone,!0);break;case"bbbb":Pe=Nt(st.DayPeriods,R.Wide,S.Standalone,!0);break;case"bbbbb":Pe=Nt(st.DayPeriods,R.Narrow,S.Standalone,!0);break;case"B":case"BB":case"BBB":Pe=Nt(st.DayPeriods,R.Abbreviated,S.Format,!0);break;case"BBBB":Pe=Nt(st.DayPeriods,R.Wide,S.Format,!0);break;case"BBBBB":Pe=Nt(st.DayPeriods,R.Narrow,S.Format,!0);break;case"h":Pe=rn(De.Hours,1,-12);break;case"hh":Pe=rn(De.Hours,2,-12);break;case"H":Pe=rn(De.Hours,1);break;case"HH":Pe=rn(De.Hours,2);break;case"m":Pe=rn(De.Minutes,1);break;case"mm":Pe=rn(De.Minutes,2);break;case"s":Pe=rn(De.Seconds,1);break;case"ss":Pe=rn(De.Seconds,2);break;case"S":Pe=rn(De.FractionalSeconds,1);break;case"SS":Pe=rn(De.FractionalSeconds,2);break;case"SSS":Pe=rn(De.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Pe=_e(He.Short);break;case"ZZZZZ":Pe=_e(He.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Pe=_e(He.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Pe=_e(He.Long);break;default:return null}return fe[J]=Pe,Pe}(Di);Si+=Qn?Qn(ot,oe,ci):"''"===Di?"'":Di.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Si}function jt(J,Pe,oe){const ge=new Date(0);return ge.setFullYear(J,Pe,oe),ge.setHours(0,0,0),ge}function Xt(J,Pe){const oe=Y(J);if(it[oe]??={},it[oe][Pe])return it[oe][Pe];let ge="";switch(Pe){case"shortDate":ge=W(J,N.Short);break;case"mediumDate":ge=W(J,N.Medium);break;case"longDate":ge=W(J,N.Long);break;case"fullDate":ge=W(J,N.Full);break;case"shortTime":ge=K(J,N.Short);break;case"mediumTime":ge=K(J,N.Medium);break;case"longTime":ge=K(J,N.Long);break;case"fullTime":ge=K(J,N.Full);break;case"short":const ot=Xt(J,"shortTime"),Ht=Xt(J,"shortDate");ge=un(ce(J,N.Short),[ot,Ht]);break;case"medium":const Qt=Xt(J,"mediumTime"),wn=Xt(J,"mediumDate");ge=un(ce(J,N.Medium),[Qt,wn]);break;case"long":const ci=Xt(J,"longTime"),Si=Xt(J,"longDate");ge=un(ce(J,N.Long),[ci,Si]);break;case"full":const Di=Xt(J,"fullTime"),Qn=Xt(J,"fullDate");ge=un(ce(J,N.Full),[Di,Qn])}return ge&&(it[oe][Pe]=ge),ge}function un(J,Pe){return Pe&&(J=J.replace(/\{([^}]+)}/g,function(oe,ge){return null!=Pe&&ge in Pe?Pe[ge]:oe})),J}function dn(J,Pe,oe="-",ge,ot){let Ht="";(J<0||ot&&J<=0)&&(ot?J=1-J:(J=-J,Ht=oe));let Qt=String(J);for(;Qt.length0||wn>-oe)&&(wn+=oe),J===De.Hours)0===wn&&-12===oe&&(wn=12);else if(J===De.FractionalSeconds)return function cn(J,Pe){return dn(J,3).substring(0,Pe)}(wn,Pe);const ci=ue(Qt,A.MinusSign);return dn(wn,Pe,ci,ge,ot)}}function Nt(J,Pe,oe=S.Format,ge=!1){return function(ot,Ht){return function Bt(J,Pe,oe,ge,ot,Ht){switch(oe){case st.Months:return $(Pe,ot,ge)[J.getMonth()];case st.Days:return ie(Pe,ot,ge)[J.getDay()];case st.DayPeriods:const Qt=J.getHours(),wn=J.getMinutes();if(Ht){const Si=Ie(Pe),Di=rt(Pe,ot,ge),Qn=Si.findIndex(Yi=>{if(Array.isArray(Yi)){const[Ci,tr]=Yi,jr=Qt>=Ci.hours&&wn>=Ci.minutes,fi=Qt0?Math.floor(ot/60):Math.ceil(ot/60);switch(J){case He.Short:return(ot>=0?"+":"")+dn(Qt,2,Ht)+dn(Math.abs(ot%60),2,Ht);case He.ShortGMT:return"GMT"+(ot>=0?"+":"")+dn(Qt,1,Ht);case He.Long:return"GMT"+(ot>=0?"+":"")+dn(Qt,2,Ht)+":"+dn(Math.abs(ot%60),2,Ht);case He.Extended:return 0===ge?"Z":(ot>=0?"+":"")+dn(Qt,2,Ht)+":"+dn(Math.abs(ot%60),2,Ht);default:throw new Error(`Unknown zone width "${J}"`)}}}const Ze=0,Qe=4;function tt(J){const Pe=J.getDay(),oe=0===Pe?-3:Qe-Pe;return jt(J.getFullYear(),J.getMonth(),J.getDate()+oe)}function ft(J,Pe=!1){return function(oe,ge){let ot;if(Pe){const Ht=new Date(oe.getFullYear(),oe.getMonth(),1).getDay()-1,Qt=oe.getDate();ot=1+Math.floor((Qt+Ht)/7)}else{const Ht=tt(oe),Qt=function Ot(J){const Pe=jt(J,Ze,1).getDay();return jt(J,0,1+(Pe<=Qe?Qe:Qe+7)-Pe)}(Ht.getFullYear()),wn=Ht.getTime()-Qt.getTime();ot=1+Math.round(wn/6048e5)}return dn(ot,J,ue(ge,A.MinusSign))}}function Le(J,Pe=!1){return function(oe,ge){return dn(tt(oe).getFullYear(),J,ue(ge,A.MinusSign),Pe)}}const fe={};function te(J,Pe){J=J.replace(/:/g,"");const oe=Date.parse("Jan 01, 1970 00:00:00 "+J)/6e4;return isNaN(oe)?Pe:oe}function Gt(J){return J instanceof Date&&!isNaN(J.valueOf())}const an=/^(\d+)?\.((\d+)(-(\d+))?)?$/,_t=22,Lt=".",Je="0",Fe=";",et=",",je="#",dt="\xa4",At="%";function qt(J,Pe,oe,ge,ot,Ht,Qt=!1){let wn="",ci=!1;if(isFinite(J)){let Si=function at(J){let ge,ot,Ht,Qt,wn,Pe=Math.abs(J)+"",oe=0;for((ot=Pe.indexOf(Lt))>-1&&(Pe=Pe.replace(Lt,"")),(Ht=Pe.search(/e/i))>0?(ot<0&&(ot=Ht),ot+=+Pe.slice(Ht+1),Pe=Pe.substring(0,Ht)):ot<0&&(ot=Pe.length),Ht=0;Pe.charAt(Ht)===Je;Ht++);if(Ht===(wn=Pe.length))ge=[0],ot=1;else{for(wn--;Pe.charAt(wn)===Je;)wn--;for(ot-=Ht,ge=[],Qt=0;Ht<=wn;Ht++,Qt++)ge[Qt]=Number(Pe.charAt(Ht))}return ot>_t&&(ge=ge.splice(0,_t-1),oe=ot-1,ot=1),{digits:ge,exponent:oe,integerLen:ot}}(J);Qt&&(Si=function jn(J){if(0===J.digits[0])return J;const Pe=J.digits.length-J.integerLen;return J.exponent?J.exponent+=2:(0===Pe?J.digits.push(0,0):1===Pe&&J.digits.push(0),J.integerLen+=2),J}(Si));let Di=Pe.minInt,Qn=Pe.minFrac,Yi=Pe.maxFrac;if(Ht){const kn=Ht.match(an);if(null===kn)throw new Error(`${Ht} is not a valid digit info`);const Ai=kn[1],cr=kn[3],nr=kn[5];null!=Ai&&(Di=Be(Ai)),null!=cr&&(Qn=Be(cr)),null!=nr?Yi=Be(nr):null!=cr&&Qn>Yi&&(Yi=Qn)}!function Jt(J,Pe,oe){if(Pe>oe)throw new Error(`The minimum number of digits after fraction (${Pe}) is higher than the maximum (${oe}).`);let ge=J.digits,ot=ge.length-J.integerLen;const Ht=Math.min(Math.max(Pe,ot),oe);let Qt=Ht+J.integerLen,wn=ge[Qt];if(Qt>0){ge.splice(Math.max(J.integerLen,Qt));for(let Qn=Qt;Qn=5)if(Qt-1<0){for(let Qn=0;Qn>Qt;Qn--)ge.unshift(0),J.integerLen++;ge.unshift(1),J.integerLen++}else ge[Qt-1]++;for(;ot=Si?tr.pop():ci=!1),Yi>=10?1:0},0);Di&&(ge.unshift(Di),J.integerLen++)}(Si,Qn,Yi);let Ci=Si.digits,tr=Si.integerLen;const jr=Si.exponent;let fi=[];for(ci=Ci.every(kn=>!kn);tr0?fi=Ci.splice(tr,Ci.length):(fi=Ci,Ci=[0]);const mn=[];for(Ci.length>=Pe.lgSize&&mn.unshift(Ci.splice(-Pe.lgSize,Ci.length).join(""));Ci.length>Pe.gSize;)mn.unshift(Ci.splice(-Pe.gSize,Ci.length).join(""));Ci.length&&mn.unshift(Ci.join("")),wn=mn.join(ue(oe,ge)),fi.length&&(wn+=ue(oe,ot)+fi.join("")),jr&&(wn+=ue(oe,A.Exponential)+"+"+jr)}else wn=ue(oe,A.Infinity);return wn=J<0&&!ci?Pe.negPre+wn+Pe.negSuf:Pe.posPre+wn+Pe.posSuf,wn}function Cn(J,Pe,oe,ge,ot){const Qt=Ei(ve(Pe,T.Currency),ue(Pe,A.MinusSign));return Qt.minFrac=Re(ge),Qt.maxFrac=Qt.minFrac,qt(J,Qt,Pe,A.CurrencyGroup,A.CurrencyDecimal,ot).replace(dt,oe).replace(dt,"").trim()}function Ln(J,Pe,oe){return qt(J,Ei(ve(Pe,T.Percent),ue(Pe,A.MinusSign)),Pe,A.Group,A.Decimal,oe,!0).replace(new RegExp(At,"g"),ue(Pe,A.PercentSign))}function Oi(J,Pe,oe){return qt(J,Ei(ve(Pe,T.Decimal),ue(Pe,A.MinusSign)),Pe,A.Group,A.Decimal,oe)}function Ei(J,Pe="-"){const oe={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ge=J.split(Fe),ot=ge[0],Ht=ge[1],Qt=-1!==ot.indexOf(Lt)?ot.split(Lt):[ot.substring(0,ot.lastIndexOf(Je)+1),ot.substring(ot.lastIndexOf(Je)+1)],wn=Qt[0],ci=Qt[1]||"";oe.posPre=wn.substring(0,wn.indexOf(je));for(let Di=0;Di{class J{static#e=this.\u0275fac=function(ge){return new(ge||J)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:J,factory:function(ge){let ot=null;return ge?ot=new ge:(Ht=t.\u0275\u0275inject(t.LOCALE_ID),ot=new nn(Ht)),ot;var Ht},providedIn:"root"})}return J})();function Et(J,Pe,oe,ge){let ot=`=${J}`;if(Pe.indexOf(ot)>-1||(ot=oe.getPluralCategory(J,ge),Pe.indexOf(ot)>-1))return ot;if(Pe.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${J}"`)}let nn=(()=>{class J extends lt{constructor(oe){super(),this.locale=oe}getPluralCategory(oe,ge){switch(We(ge||this.locale)(oe)){case U.Zero:return"zero";case U.One:return"one";case U.Two:return"two";case U.Few:return"few";case U.Many:return"many";default:return"other"}}static#e=this.\u0275fac=function(ge){return new(ge||J)(t.\u0275\u0275inject(t.LOCALE_ID))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:J,factory:J.\u0275fac})}return J})();function _n(J,Pe,oe){return(0,t.\u0275registerLocaleData)(J,Pe,oe)}function Ue(J,Pe){Pe=encodeURIComponent(Pe);for(const oe of J.split(";")){const ge=oe.indexOf("="),[ot,Ht]=-1==ge?[oe,""]:[oe.slice(0,ge),oe.slice(ge+1)];if(ot.trim()===Pe)return decodeURIComponent(Ht)}return null}const ut=/\s+/,Ke=[];let mt=(()=>{class J{constructor(oe,ge){this._ngEl=oe,this._renderer=ge,this.initialClasses=Ke,this.stateMap=new Map}set klass(oe){this.initialClasses=null!=oe?oe.trim().split(ut):Ke}set ngClass(oe){this.rawClass="string"==typeof oe?oe.trim().split(ut):oe}ngDoCheck(){for(const ge of this.initialClasses)this._updateState(ge,!0);const oe=this.rawClass;if(Array.isArray(oe)||oe instanceof Set)for(const ge of oe)this._updateState(ge,!0);else if(null!=oe)for(const ge of Object.keys(oe))this._updateState(ge,!!oe[ge]);this._applyStateDiff()}_updateState(oe,ge){const ot=this.stateMap.get(oe);void 0!==ot?(ot.enabled!==ge&&(ot.changed=!0,ot.enabled=ge),ot.touched=!0):this.stateMap.set(oe,{enabled:ge,changed:!0,touched:!0})}_applyStateDiff(){for(const oe of this.stateMap){const ge=oe[0],ot=oe[1];ot.changed?(this._toggleClass(ge,ot.enabled),ot.changed=!1):ot.touched||(ot.enabled&&this._toggleClass(ge,!1),this.stateMap.delete(ge)),ot.touched=!1}}_toggleClass(oe,ge){(oe=oe.trim()).length>0&&oe.split(ut).forEach(ot=>{ge?this._renderer.addClass(this._ngEl.nativeElement,ot):this._renderer.removeClass(this._ngEl.nativeElement,ot)})}static#e=this.\u0275fac=function(ge){return new(ge||J)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:J,selectors:[["","ngClass",""]],inputs:{klass:[t.\u0275\u0275InputFlags.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return J})(),xe=(()=>{class J{constructor(oe){this._viewContainerRef=oe,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(oe){return void 0!==oe.ngComponentOutletNgModule||void 0!==oe.ngComponentOutletNgModuleFactory}_needToReCreateComponentInstance(oe){return void 0!==oe.ngComponentOutlet||void 0!==oe.ngComponentOutletContent||void 0!==oe.ngComponentOutletInjector||this._needToReCreateNgModuleInstance(oe)}ngOnChanges(oe){if(this._needToReCreateComponentInstance(oe)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){const ge=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(oe)&&(this._moduleRef?.destroy(),this._moduleRef=this.ngComponentOutletNgModule?(0,t.createNgModule)(this.ngComponentOutletNgModule,Mt(ge)):this.ngComponentOutletNgModuleFactory?this.ngComponentOutletNgModuleFactory.create(Mt(ge)):void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:ge,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(const oe of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(oe,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(oe){for(const[ge,ot]of this._inputsUsed)ot?(oe.setInput(ge,this.ngComponentOutletInputs[ge]),this._inputsUsed.set(ge,!1)):(oe.setInput(ge,void 0),this._inputsUsed.delete(ge))}static#e=this.\u0275fac=function(ge){return new(ge||J)(t.\u0275\u0275directiveInject(t.ViewContainerRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:J,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[t.\u0275\u0275NgOnChangesFeature]})}return J})();function Mt(J){return J.get(t.NgModuleRef).injector}class H{constructor(Pe,oe,ge,ot){this.$implicit=Pe,this.ngForOf=oe,this.index=ge,this.count=ot}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 me=(()=>{class J{set ngForOf(oe){this._ngForOf=oe,this._ngForOfDirty=!0}set ngForTrackBy(oe){this._trackByFn=oe}get ngForTrackBy(){return this._trackByFn}constructor(oe,ge,ot){this._viewContainer=oe,this._template=ge,this._differs=ot,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(oe){oe&&(this._template=oe)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const oe=this._ngForOf;!this._differ&&oe&&(this._differ=this._differs.find(oe).create(this.ngForTrackBy))}if(this._differ){const oe=this._differ.diff(this._ngForOf);oe&&this._applyChanges(oe)}}_applyChanges(oe){const ge=this._viewContainer;oe.forEachOperation((ot,Ht,Qt)=>{if(null==ot.previousIndex)ge.createEmbeddedView(this._template,new H(ot.item,this._ngForOf,-1,-1),null===Qt?void 0:Qt);else if(null==Qt)ge.remove(null===Ht?void 0:Ht);else if(null!==Ht){const wn=ge.get(Ht);ge.move(wn,Qt),le(wn,ot)}});for(let ot=0,Ht=ge.length;ot{le(ge.get(ot.currentIndex),ot)})}static ngTemplateContextGuard(oe,ge){return!0}static#e=this.\u0275fac=function(ge){return new(ge||J)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.IterableDiffers))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:J,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return J})();function le(J,Pe){J.context.$implicit=Pe.item}let wt=(()=>{class J{constructor(oe,ge){this._viewContainer=oe,this._context=new ln,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ge}set ngIf(oe){this._context.$implicit=this._context.ngIf=oe,this._updateView()}set ngIfThen(oe){Gn("ngIfThen",oe),this._thenTemplateRef=oe,this._thenViewRef=null,this._updateView()}set ngIfElse(oe){Gn("ngIfElse",oe),this._elseTemplateRef=oe,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(oe,ge){return!0}static#e=this.\u0275fac=function(ge){return new(ge||J)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.TemplateRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:J,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return J})();class ln{constructor(){this.$implicit=null,this.ngIf=null}}function Gn(J,Pe){if(Pe&&!Pe.createEmbeddedView)throw new Error(`${J} must be a TemplateRef, but received '${(0,t.\u0275stringify)(Pe)}'.`)}class ti{constructor(Pe,oe){this._viewContainerRef=Pe,this._templateRef=oe,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Pe){Pe&&!this._created?this.create():!Pe&&this._created&&this.destroy()}}let In=(()=>{class J{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(oe){this._ngSwitch=oe,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(oe){this._defaultViews.push(oe)}_matchCase(oe){const ge=oe===this._ngSwitch;return this._lastCasesMatched||=ge,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ge}_updateDefaultCases(oe){if(this._defaultViews.length>0&&oe!==this._defaultUsed){this._defaultUsed=oe;for(const ge of this._defaultViews)ge.enforceState(oe)}}static#e=this.\u0275fac=function(ge){return new(ge||J)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:J,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return J})(),Fn=(()=>{class J{constructor(oe,ge,ot){this.ngSwitch=ot,ot._addCase(),this._view=new ti(oe,ge)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(ge){return new(ge||J)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(In,9))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:J,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return J})(),yi=(()=>{class J{constructor(oe,ge,ot){ot._addDefault(new ti(oe,ge))}static#e=this.\u0275fac=function(ge){return new(ge||J)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(In,9))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:J,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return J})(),hi=(()=>{class J{constructor(oe){this._localization=oe,this._caseViews={}}set ngPlural(oe){this._updateView(oe)}addCase(oe,ge){this._caseViews[oe]=ge}_updateView(oe){this._clearViews();const ot=Et(oe,Object.keys(this._caseViews),this._localization);this._activateView(this._caseViews[ot])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(oe){oe&&(this._activeView=oe,this._activeView.create())}static#e=this.\u0275fac=function(ge){return new(ge||J)(t.\u0275\u0275directiveInject(lt))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:J,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0})}return J})(),xi=(()=>{class J{constructor(oe,ge,ot,Ht){this.value=oe;const Qt=!isNaN(Number(oe));Ht.addCase(Qt?`=${oe}`:oe,new ti(ot,ge))}static#e=this.\u0275fac=function(ge){return new(ge||J)(t.\u0275\u0275injectAttribute("ngPluralCase"),t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(hi,1))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:J,selectors:[["","ngPluralCase",""]],standalone:!0})}return J})(),Ri=(()=>{class J{constructor(oe,ge,ot){this._ngEl=oe,this._differs=ge,this._renderer=ot,this._ngStyle=null,this._differ=null}set ngStyle(oe){this._ngStyle=oe,!this._differ&&oe&&(this._differ=this._differs.find(oe).create())}ngDoCheck(){if(this._differ){const oe=this._differ.diff(this._ngStyle);oe&&this._applyChanges(oe)}}_setStyle(oe,ge){const[ot,Ht]=oe.split("."),Qt=-1===ot.indexOf("-")?void 0:t.RendererStyleFlags2.DashCase;null!=ge?this._renderer.setStyle(this._ngEl.nativeElement,ot,Ht?`${ge}${Ht}`:ge,Qt):this._renderer.removeStyle(this._ngEl.nativeElement,ot,Qt)}_applyChanges(oe){oe.forEachRemovedItem(ge=>this._setStyle(ge.key,null)),oe.forEachAddedItem(ge=>this._setStyle(ge.key,ge.currentValue)),oe.forEachChangedItem(ge=>this._setStyle(ge.key,ge.currentValue))}static#e=this.\u0275fac=function(ge){return new(ge||J)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.KeyValueDiffers),t.\u0275\u0275directiveInject(t.Renderer2))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:J,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return J})(),On=(()=>{class J{constructor(oe){this._viewContainerRef=oe,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(oe){if(this._shouldRecreateView(oe)){const ge=this._viewContainerRef;if(this._viewRef&&ge.remove(ge.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const ot=this._createContextForwardProxy();this._viewRef=ge.createEmbeddedView(this.ngTemplateOutlet,ot,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(oe){return!!oe.ngTemplateOutlet||!!oe.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(oe,ge,ot)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,ge,ot),get:(oe,ge,ot)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,ge,ot)}})}static#e=this.\u0275fac=function(ge){return new(ge||J)(t.\u0275\u0275directiveInject(t.ViewContainerRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:J,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[t.\u0275\u0275NgOnChangesFeature]})}return J})();function $i(J,Pe){return new t.\u0275RuntimeError(2100,!1)}class qn{createSubscription(Pe,oe){return(0,t.untracked)(()=>Pe.subscribe({next:oe,error:ge=>{throw ge}}))}dispose(Pe){(0,t.untracked)(()=>Pe.unsubscribe())}}class Zn{createSubscription(Pe,oe){return Pe.then(oe,ge=>{throw ge})}dispose(Pe){}}const ii=new Zn,Wi=new qn;let Ui=(()=>{class J{constructor(oe){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=oe}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(oe){if(!this._obj){if(oe)try{this.markForCheckOnValueUpdate=!1,this._subscribe(oe)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return oe!==this._obj?(this._dispose(),this.transform(oe)):this._latestValue}_subscribe(oe){this._obj=oe,this._strategy=this._selectStrategy(oe),this._subscription=this._strategy.createSubscription(oe,ge=>this._updateLatestValue(oe,ge))}_selectStrategy(oe){if((0,t.\u0275isPromise)(oe))return ii;if((0,t.\u0275isSubscribable)(oe))return Wi;throw $i()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(oe,ge){oe===this._obj&&(this._latestValue=ge,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static#e=this.\u0275fac=function(ge){return new(ge||J)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef,16))};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"async",type:J,pure:!1,standalone:!0})}return J})(),Un=(()=>{class J{transform(oe){if(null==oe)return null;if("string"!=typeof oe)throw $i();return oe.toLowerCase()}static#e=this.\u0275fac=function(ge){return new(ge||J)};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"lowercase",type:J,pure:!0,standalone:!0})}return J})();const vn=/(?:[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 Dn=(()=>{class J{transform(oe){if(null==oe)return null;if("string"!=typeof oe)throw $i();return oe.replace(vn,ge=>ge[0].toUpperCase()+ge.slice(1).toLowerCase())}static#e=this.\u0275fac=function(ge){return new(ge||J)};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"titlecase",type:J,pure:!0,standalone:!0})}return J})(),Rn=(()=>{class J{transform(oe){if(null==oe)return null;if("string"!=typeof oe)throw $i();return oe.toUpperCase()}static#e=this.\u0275fac=function(ge){return new(ge||J)};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"uppercase",type:J,pure:!0,standalone:!0})}return J})();const ji=new t.InjectionToken(""),Ji=new t.InjectionToken("");let Gi=(()=>{class J{constructor(oe,ge,ot){this.locale=oe,this.defaultTimezone=ge,this.defaultOptions=ot}transform(oe,ge,ot,Ht){if(null==oe||""===oe||oe!=oe)return null;try{return xt(oe,ge??this.defaultOptions?.dateFormat??"mediumDate",Ht||this.locale,ot??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Qt){throw $i()}}static#e=this.\u0275fac=function(ge){return new(ge||J)(t.\u0275\u0275directiveInject(t.LOCALE_ID,16),t.\u0275\u0275directiveInject(ji,24),t.\u0275\u0275directiveInject(Ji,24))};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"date",type:J,pure:!0,standalone:!0})}return J})();const lr=/#/g;let Hr=(()=>{class J{constructor(oe){this._localization=oe}transform(oe,ge,ot){if(null==oe)return"";if("object"!=typeof ge||null===ge)throw $i();return ge[Et(oe,Object.keys(ge),this._localization,ot)].replace(lr,oe.toString())}static#e=this.\u0275fac=function(ge){return new(ge||J)(t.\u0275\u0275directiveInject(lt,16))};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"i18nPlural",type:J,pure:!0,standalone:!0})}return J})(),Tr=(()=>{class J{transform(oe,ge){if(null==oe)return"";if("object"!=typeof ge||"string"!=typeof oe)throw $i();return ge.hasOwnProperty(oe)?ge[oe]:ge.hasOwnProperty("other")?ge.other:""}static#e=this.\u0275fac=function(ge){return new(ge||J)};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"i18nSelect",type:J,pure:!0,standalone:!0})}return J})(),wr=(()=>{class J{transform(oe){return JSON.stringify(oe,null,2)}static#e=this.\u0275fac=function(ge){return new(ge||J)};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"json",type:J,pure:!1,standalone:!0})}return J})(),Sr=(()=>{class J{constructor(oe){this.differs=oe,this.keyValues=[],this.compareFn=Fr}transform(oe,ge=Fr){if(!oe||!(oe instanceof Map)&&"object"!=typeof oe)return null;this.differ??=this.differs.find(oe).create();const ot=this.differ.diff(oe),Ht=ge!==this.compareFn;return ot&&(this.keyValues=[],ot.forEachItem(Qt=>{this.keyValues.push(function _s(J,Pe){return{key:J,value:Pe}}(Qt.key,Qt.currentValue))})),(ot||Ht)&&(this.keyValues.sort(ge),this.compareFn=ge),this.keyValues}static#e=this.\u0275fac=function(ge){return new(ge||J)(t.\u0275\u0275directiveInject(t.KeyValueDiffers,16))};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"keyvalue",type:J,pure:!1,standalone:!0})}return J})();function Fr(J,Pe){const oe=J.key,ge=Pe.key;if(oe===ge)return 0;if(void 0===oe)return 1;if(void 0===ge)return-1;if(null===oe)return 1;if(null===ge)return-1;if("string"==typeof oe&&"string"==typeof ge)return oe{class J{constructor(oe){this._locale=oe}transform(oe,ge,ot){if(!Li(oe))return null;ot||=this._locale;try{return Oi(ts(oe),ot,ge)}catch(Ht){throw $i()}}static#e=this.\u0275fac=function(ge){return new(ge||J)(t.\u0275\u0275directiveInject(t.LOCALE_ID,16))};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"number",type:J,pure:!0,standalone:!0})}return J})(),mr=(()=>{class J{constructor(oe){this._locale=oe}transform(oe,ge,ot){if(!Li(oe))return null;ot||=this._locale;try{return Ln(ts(oe),ot,ge)}catch(Ht){throw $i()}}static#e=this.\u0275fac=function(ge){return new(ge||J)(t.\u0275\u0275directiveInject(t.LOCALE_ID,16))};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"percent",type:J,pure:!0,standalone:!0})}return J})(),es=(()=>{class J{constructor(oe,ge="USD"){this._locale=oe,this._defaultCurrencyCode=ge}transform(oe,ge=this._defaultCurrencyCode,ot="symbol",Ht,Qt){if(!Li(oe))return null;Qt||=this._locale,"boolean"==typeof ot&&(ot=ot?"symbol":"code");let wn=ge||this._defaultCurrencyCode;"code"!==ot&&(wn="symbol"===ot||"symbol-narrow"===ot?Q(wn,"symbol"===ot?"wide":"narrow",Qt):ot);try{return Cn(ts(oe),Qt,wn,ge,Ht)}catch(ci){throw $i()}}static#e=this.\u0275fac=function(ge){return new(ge||J)(t.\u0275\u0275directiveInject(t.LOCALE_ID,16),t.\u0275\u0275directiveInject(t.DEFAULT_CURRENCY_CODE,16))};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"currency",type:J,pure:!0,standalone:!0})}return J})();function Li(J){return!(null==J||""===J||J!=J)}function ts(J){if("string"==typeof J&&!isNaN(Number(J)-parseFloat(J)))return Number(J);if("number"!=typeof J)throw new Error(`${J} is not a number`);return J}let Bn=(()=>{class J{transform(oe,ge,ot){if(null==oe)return null;if(!this.supports(oe))throw $i();return oe.slice(ge,ot)}supports(oe){return"string"==typeof oe||Array.isArray(oe)}static#e=this.\u0275fac=function(ge){return new(ge||J)};static#t=this.\u0275pipe=t.\u0275\u0275definePipe({name:"slice",type:J,pure:!1,standalone:!0})}return J})(),us=(()=>{class J{static#e=this.\u0275fac=function(ge){return new(ge||J)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:J});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({})}return J})();const br="browser",vs="server",Dt="browserWorkerApp",vt="browserWorkerUi";function Tt(J){return J===br}function kt(J){return J===vs}function $t(J){return J===Dt}function Wt(J){return J===vt}const sn=new t.Version("17.3.3");let fn=(()=>{class J{static#e=this.\u0275prov=(0,t.\u0275\u0275defineInjectable)({token:J,providedIn:"root",factory:()=>Tt((0,t.inject)(t.PLATFORM_ID))?new bn((0,t.inject)(s),window):new $n})}return J})();class bn{constructor(Pe,oe){this.document=Pe,this.window=oe,this.offset=()=>[0,0]}setOffset(Pe){this.offset=Array.isArray(Pe)?()=>Pe:Pe}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(Pe){this.window.scrollTo(Pe[0],Pe[1])}scrollToAnchor(Pe){const oe=function Tn(J,Pe){const oe=J.getElementById(Pe)||J.getElementsByName(Pe)[0];if(oe)return oe;if("function"==typeof J.createTreeWalker&&J.body&&"function"==typeof J.body.attachShadow){const ge=J.createTreeWalker(J.body,NodeFilter.SHOW_ELEMENT);let ot=ge.currentNode;for(;ot;){const Ht=ot.shadowRoot;if(Ht){const Qt=Ht.getElementById(Pe)||Ht.querySelector(`[name="${Pe}"]`);if(Qt)return Qt}ot=ge.nextNode()}}return null}(this.document,Pe);oe&&(this.scrollToElement(oe),oe.focus())}setHistoryScrollRestoration(Pe){this.window.history.scrollRestoration=Pe}scrollToElement(Pe){const oe=Pe.getBoundingClientRect(),ge=oe.left+this.window.pageXOffset,ot=oe.top+this.window.pageYOffset,Ht=this.offset();this.window.scrollTo(ge-Ht[0],ot-Ht[1])}}class $n{setOffset(Pe){}getScrollPosition(){return[0,0]}scrollToPosition(Pe){}scrollToAnchor(Pe){}setHistoryScrollRestoration(Pe){}}class Mi{}const Xn="20";function Vn(J){return/^https?:\/\//.test(J)}function li(J){if("string"!=typeof J||""===J.trim())return!1;try{return new URL(J),!0}catch{return!1}}function Bi(J){return J.startsWith("/")?J.slice(1):J}const Ar=J=>J.src,Wr=new t.InjectionToken("",{providedIn:"root",factory:()=>Ar});function to(J,Pe){return function(ge){return li(ge)||function Br(J,Pe){throw new t.\u0275RuntimeError(2959,!1)}(),ge=function ur(J){return J.endsWith("/")?J.slice(0,-1):J}(ge),[{provide:Wr,useValue:Qt=>(Vn(Qt.src)&&function qi(J,Pe){throw new t.\u0275RuntimeError(2959,!1)}(),J(ge,{...Qt,src:Bi(Qt.src)}))}]}}const di=to(ns);function ns(J,Pe){let oe="format=auto";return Pe.width&&(oe+=`,width=${Pe.width}`),Pe.isPlaceholder&&(oe+=`,quality=${Xn}`),`${J}/cdn-cgi/image/${oe}/${Pe.src}`}const Yr=to(Zr);function Zr(J,Pe){let ge="f_auto,"+(Pe.isPlaceholder?"q_auto:low":"q_auto");return Pe.width&&(ge+=`,w_${Pe.width}`),`${J}/image/upload/${ge}/${Pe.src}`}const Ae=to(ae);function ae(J,Pe){const{src:oe,width:ge}=Pe;let ot;ot=ge?[J,`tr:w-${ge}`,oe]:[J,oe];const Ht=new URL(ot.join("/"));return Pe.isPlaceholder&&Ht.searchParams.set("q",Xn),Ht.href}const ni=to(Er);function Er(J,Pe){const oe=new URL(`${J}/${Pe.src}`);return oe.searchParams.set("auto","format"),Pe.width&&oe.searchParams.set("w",Pe.width.toString()),Pe.isPlaceholder&&oe.searchParams.set("q",Xn),oe.href}function Bo(J){if(J&&!li(J))throw new t.\u0275RuntimeError(2959,!1);return J&&(J=new URL(J).origin),[{provide:Wr,useValue:ge=>function Io(J,Pe){const oe=new URL(Pe??"https://a/");oe.pathname="/.netlify/images",!Vn(J.src)&&!J.src.startsWith("/")&&(J.src="/"+J.src),oe.searchParams.set("url",J.src),J.width&&oe.searchParams.set("w",J.width.toString());J.isPlaceholder&&!(J.loaderParams?.quality??J.loaderParams?.q)&&oe.searchParams.set("q",Xn);for(const[ot,Ht]of Object.entries(J.loaderParams??{}))Ns.has(ot)&&oe.searchParams.set(Ns.get(ot),Ht.toString());return"a"===oe.hostname?oe.href.replace(oe.origin,""):oe.href}(ge,J)}]}const Ns=new Map([["height","h"],["fit","fit"],["quality","q"],["q","q"],["position","position"]]),Vo=new t.InjectionToken(""),Us=new t.InjectionToken("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:()=>new Set});let Bs=(()=>{class J{constructor(){this.preloadedImages=(0,t.inject)(Us),this.document=(0,t.inject)(s)}createPreloadLinkTag(oe,ge,ot,Ht){if(this.preloadedImages.has(ge))return;this.preloadedImages.add(ge);const Qt=oe.createElement("link");oe.setAttribute(Qt,"as","image"),oe.setAttribute(Qt,"href",ge),oe.setAttribute(Qt,"rel","preload"),oe.setAttribute(Qt,"fetchpriority","high"),Ht&&oe.setAttribute(Qt,"imageSizes",Ht),ot&&oe.setAttribute(Qt,"imageSrcset",ot),oe.appendChild(this.document.head,Qt)}static#e=this.\u0275fac=function(ge){return new(ge||J)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:J,factory:J.\u0275fac,providedIn:"root"})}return J})();const To=/^((\s*\d+w\s*(,|$)){1,})$/,Or=[1,2];let zo=(()=>{class J{constructor(){this.imageLoader=(0,t.inject)(Wr),this.config=function js(J){let Pe={};return J.breakpoints&&(Pe.breakpoints=J.breakpoints.sort((oe,ge)=>oe-ge)),Object.assign({},t.\u0275IMAGE_CONFIG_DEFAULTS,J,Pe)}((0,t.inject)(t.\u0275IMAGE_CONFIG)),this.renderer=(0,t.inject)(t.Renderer2),this.imgElement=(0,t.inject)(t.ElementRef).nativeElement,this.injector=(0,t.inject)(t.Injector),this.isServer=kt((0,t.inject)(t.PLATFORM_ID)),this.preloadLinkCreator=(0,t.inject)(Bs),this.lcpObserver=null,this._renderedSrc=null,this.priority=!1,this.disableOptimizedSrcset=!1,this.fill=!1}ngOnInit(){(0,t.\u0275performanceMarkFeature)("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");const oe=this.updateSrcAndSrcset();this.sizes&&this.setHostAttribute("sizes",this.sizes),this.isServer&&this.priority&&this.preloadLinkCreator.createPreloadLinkTag(this.renderer,this.getRewrittenSrc(),oe,this.sizes)}ngOnChanges(oe){if(oe.ngSrc&&!oe.ngSrc.isFirstChange()){const ge=this._renderedSrc;this.updateSrcAndSrcset(!0);const ot=this._renderedSrc;null!==this.lcpObserver&&ge&&ot&&ge!==ot&&this.injector.get(t.NgZone).runOutsideAngular(()=>{this.lcpObserver?.updateImage(ge,ot)})}}callImageLoader(oe){let ge=oe;return this.loaderParams&&(ge.loaderParams=this.loaderParams),this.imageLoader(ge)}getLoadingBehavior(){return this.priority||void 0===this.loading?this.priority?"eager":"lazy":this.loading}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){return this._renderedSrc||(this._renderedSrc=this.callImageLoader({src:this.ngSrc})),this._renderedSrc}getRewrittenSrcset(){const oe=To.test(this.ngSrcset);return this.ngSrcset.split(",").filter(ot=>""!==ot).map(ot=>{ot=ot.trim();const Ht=oe?parseFloat(ot):parseFloat(ot)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:Ht})} ${ot}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){const{breakpoints:oe}=this.config;let ge=oe;return"100vw"===this.sizes?.trim()&&(ge=oe.filter(Ht=>Ht>=640)),ge.map(Ht=>`${this.callImageLoader({src:this.ngSrc,width:Ht})} ${Ht}w`).join(", ")}updateSrcAndSrcset(oe=!1){oe&&(this._renderedSrc=null);const ge=this.getRewrittenSrc();let ot;return this.setHostAttribute("src",ge),this.ngSrcset?ot=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(ot=this.getAutomaticSrcset()),ot&&this.setHostAttribute("srcset",ot),ot}getFixedSrcset(){return Or.map(ge=>`${this.callImageLoader({src:this.ngSrc,width:this.width*ge})} ${ge}x`).join(", ")}shouldGenerateAutomaticSrcset(){let oe=!1;return this.sizes||(oe=this.width>1920||this.height>1080),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==Ar&&!oe}generatePlaceholder(oe){const{placeholderResolution:ge}=this.config;return!0===oe?`url(${this.callImageLoader({src:this.ngSrc,width:ge,isPlaceholder:!0})})`:"string"==typeof oe&&oe.startsWith("data:")?`url(${oe})`:null}shouldBlurPlaceholder(oe){return!oe||!oe.hasOwnProperty("blur")||!!oe.blur}removePlaceholderOnLoad(oe){const ge=()=>{const Qt=this.injector.get(t.ChangeDetectorRef);ot(),Ht(),this.placeholder=!1,Qt.markForCheck()},ot=this.renderer.listen(oe,"load",ge),Ht=this.renderer.listen(oe,"error",ge)}ngOnDestroy(){}setHostAttribute(oe,ge){this.renderer.setAttribute(this.imgElement,oe,ge)}static#e=this.\u0275fac=function(ge){return new(ge||J)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:J,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(ge,ot){2&ge&&t.\u0275\u0275styleProp("position",ot.fill?"absolute":null)("width",ot.fill?"100%":null)("height",ot.fill?"100%":null)("inset",ot.fill?"0":null)("background-size",ot.placeholder?"cover":null)("background-position",ot.placeholder?"50% 50%":null)("background-repeat",ot.placeholder?"no-repeat":null)("background-image",ot.placeholder?ot.generatePlaceholder(ot.placeholder):null)("filter",ot.placeholder&&ot.shouldBlurPlaceholder(ot.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"ngSrc","ngSrc",uo],ngSrcset:"ngSrcset",sizes:"sizes",width:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"width","width",t.numberAttribute],height:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"height","height",t.numberAttribute],loading:"loading",priority:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"priority","priority",t.booleanAttribute],loaderParams:"loaderParams",disableOptimizedSrcset:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableOptimizedSrcset","disableOptimizedSrcset",t.booleanAttribute],fill:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"fill","fill",t.booleanAttribute],placeholder:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"placeholder","placeholder",Ko],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275NgOnChangesFeature]})}return J})();function uo(J){return"string"==typeof J?J:(0,t.\u0275unwrapSafeValue)(J)}function Ko(J){return"string"==typeof J&&J.startsWith("data:")?J:(0,t.booleanAttribute)(J)}},1626:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{FetchBackend:()=>Ye,HTTP_INTERCEPTORS:()=>rt,HttpBackend:()=>h,HttpClient:()=>K,HttpClientJsonpModule:()=>je,HttpClientModule:()=>et,HttpClientXsrfModule:()=>Fe,HttpContext:()=>U,HttpContextToken:()=>T,HttpErrorResponse:()=>G,HttpEventType:()=>ee,HttpFeatureKind:()=>Ge,HttpHandler:()=>r,HttpHeaderResponse:()=>$,HttpHeaders:()=>p,HttpParams:()=>O,HttpRequest:()=>Y,HttpResponse:()=>j,HttpResponseBase:()=>ie,HttpStatusCode:()=>V,HttpUrlEncodingCodec:()=>y,HttpXhrBackend:()=>Nt,HttpXsrfTokenExtractor:()=>tt,JsonpClientBackend:()=>un,JsonpInterceptor:()=>cn,provideHttpClient:()=>de,withFetch:()=>Je,withInterceptors:()=>ke,withInterceptorsFromDi:()=>It,withJsonpSupport:()=>_t,withNoXsrfProtection:()=>an,withRequestsMadeViaParent:()=>Lt,withXsrfConfiguration:()=>Gt,\u0275HTTP_ROOT_INTERCEPTOR_FNS:()=>be,\u0275HttpInterceptingHandler:()=>bt,\u0275HttpInterceptorHandler:()=>bt,\u0275PRIMARY_HTTP_BACKEND:()=>Se,\u0275withHttpTransferCache:()=>nn});var t=g(467),_=g(4438),C=g(7673),E=g(1985),u=g(8455),b=g(274),s=g(5964),f=g(6354),d=g(980),l=g(5558),c=g(8141),o=g(177);class r{}class h{}class p{constructor(ut){this.normalizedNames=new Map,this.lazyUpdate=null,ut?"string"==typeof ut?this.lazyInit=()=>{this.headers=new Map,ut.split("\n").forEach(Ke=>{const mt=Ke.indexOf(":");if(mt>0){const xe=Ke.slice(0,mt),Mt=xe.toLowerCase(),H=Ke.slice(mt+1).trim();this.maybeSetNormalizedName(xe,Mt),this.headers.has(Mt)?this.headers.get(Mt).push(H):this.headers.set(Mt,[H])}})}:typeof Headers<"u"&&ut instanceof Headers?(this.headers=new Map,ut.forEach((Ke,mt)=>{this.setHeaderEntries(mt,Ke)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(ut).forEach(([Ke,mt])=>{this.setHeaderEntries(Ke,mt)})}:this.headers=new Map}has(ut){return this.init(),this.headers.has(ut.toLowerCase())}get(ut){this.init();const Ke=this.headers.get(ut.toLowerCase());return Ke&&Ke.length>0?Ke[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ut){return this.init(),this.headers.get(ut.toLowerCase())||null}append(ut,Ke){return this.clone({name:ut,value:Ke,op:"a"})}set(ut,Ke){return this.clone({name:ut,value:Ke,op:"s"})}delete(ut,Ke){return this.clone({name:ut,value:Ke,op:"d"})}maybeSetNormalizedName(ut,Ke){this.normalizedNames.has(Ke)||this.normalizedNames.set(Ke,ut)}init(){this.lazyInit&&(this.lazyInit instanceof p?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ut=>this.applyUpdate(ut)),this.lazyUpdate=null))}copyFrom(ut){ut.init(),Array.from(ut.headers.keys()).forEach(Ke=>{this.headers.set(Ke,ut.headers.get(Ke)),this.normalizedNames.set(Ke,ut.normalizedNames.get(Ke))})}clone(ut){const Ke=new p;return Ke.lazyInit=this.lazyInit&&this.lazyInit instanceof p?this.lazyInit:this,Ke.lazyUpdate=(this.lazyUpdate||[]).concat([ut]),Ke}applyUpdate(ut){const Ke=ut.name.toLowerCase();switch(ut.op){case"a":case"s":let mt=ut.value;if("string"==typeof mt&&(mt=[mt]),0===mt.length)return;this.maybeSetNormalizedName(ut.name,Ke);const xe=("a"===ut.op?this.headers.get(Ke):void 0)||[];xe.push(...mt),this.headers.set(Ke,xe);break;case"d":const Mt=ut.value;if(Mt){let H=this.headers.get(Ke);if(!H)return;H=H.filter(me=>-1===Mt.indexOf(me)),0===H.length?(this.headers.delete(Ke),this.normalizedNames.delete(Ke)):this.headers.set(Ke,H)}else this.headers.delete(Ke),this.normalizedNames.delete(Ke)}}setHeaderEntries(ut,Ke){const mt=(Array.isArray(Ke)?Ke:[Ke]).map(Mt=>Mt.toString()),xe=ut.toLowerCase();this.headers.set(xe,mt),this.maybeSetNormalizedName(ut,xe)}forEach(ut){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ke=>ut(this.normalizedNames.get(Ke),this.headers.get(Ke)))}}class y{encodeKey(ut){return I(ut)}encodeValue(ut){return I(ut)}decodeKey(ut){return decodeURIComponent(ut)}decodeValue(ut){return decodeURIComponent(ut)}}const w=/%(\d[a-f0-9])/gi,k={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function I(Ue){return encodeURIComponent(Ue).replace(w,(ut,Ke)=>k[Ke]??ut)}function D(Ue){return`${Ue}`}class O{constructor(ut={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ut.encoder||new y,ut.fromString){if(ut.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function M(Ue,ut){const Ke=new Map;return Ue.length>0&&Ue.replace(/^\?/,"").split("&").forEach(xe=>{const Mt=xe.indexOf("="),[H,me]=-1==Mt?[ut.decodeKey(xe),""]:[ut.decodeKey(xe.slice(0,Mt)),ut.decodeValue(xe.slice(Mt+1))],le=Ke.get(H)||[];le.push(me),Ke.set(H,le)}),Ke}(ut.fromString,this.encoder)}else ut.fromObject?(this.map=new Map,Object.keys(ut.fromObject).forEach(Ke=>{const mt=ut.fromObject[Ke],xe=Array.isArray(mt)?mt.map(D):[D(mt)];this.map.set(Ke,xe)})):this.map=null}has(ut){return this.init(),this.map.has(ut)}get(ut){this.init();const Ke=this.map.get(ut);return Ke?Ke[0]:null}getAll(ut){return this.init(),this.map.get(ut)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ut,Ke){return this.clone({param:ut,value:Ke,op:"a"})}appendAll(ut){const Ke=[];return Object.keys(ut).forEach(mt=>{const xe=ut[mt];Array.isArray(xe)?xe.forEach(Mt=>{Ke.push({param:mt,value:Mt,op:"a"})}):Ke.push({param:mt,value:xe,op:"a"})}),this.clone(Ke)}set(ut,Ke){return this.clone({param:ut,value:Ke,op:"s"})}delete(ut,Ke){return this.clone({param:ut,value:Ke,op:"d"})}toString(){return this.init(),this.keys().map(ut=>{const Ke=this.encoder.encodeKey(ut);return this.map.get(ut).map(mt=>Ke+"="+this.encoder.encodeValue(mt)).join("&")}).filter(ut=>""!==ut).join("&")}clone(ut){const Ke=new O({encoder:this.encoder});return Ke.cloneFrom=this.cloneFrom||this,Ke.updates=(this.updates||[]).concat(ut),Ke}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ut=>this.map.set(ut,this.cloneFrom.map.get(ut))),this.updates.forEach(ut=>{switch(ut.op){case"a":case"s":const Ke=("a"===ut.op?this.map.get(ut.param):void 0)||[];Ke.push(D(ut.value)),this.map.set(ut.param,Ke);break;case"d":if(void 0===ut.value){this.map.delete(ut.param);break}{let mt=this.map.get(ut.param)||[];const xe=mt.indexOf(D(ut.value));-1!==xe&&mt.splice(xe,1),mt.length>0?this.map.set(ut.param,mt):this.map.delete(ut.param)}}}),this.cloneFrom=this.updates=null)}}class T{constructor(ut){this.defaultValue=ut}}class U{constructor(){this.map=new Map}set(ut,Ke){return this.map.set(ut,Ke),this}get(ut){return this.map.has(ut)||this.map.set(ut,ut.defaultValue()),this.map.get(ut)}delete(ut){return this.map.delete(ut),this}has(ut){return this.map.has(ut)}keys(){return this.map.keys()}}function R(Ue){return typeof ArrayBuffer<"u"&&Ue instanceof ArrayBuffer}function N(Ue){return typeof Blob<"u"&&Ue instanceof Blob}function A(Ue){return typeof FormData<"u"&&Ue instanceof FormData}class Y{constructor(ut,Ke,mt,xe){let Mt;if(this.url=Ke,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ut.toUpperCase(),function S(Ue){switch(Ue){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||xe?(this.body=void 0!==mt?mt:null,Mt=xe):Mt=mt,Mt&&(this.reportProgress=!!Mt.reportProgress,this.withCredentials=!!Mt.withCredentials,Mt.responseType&&(this.responseType=Mt.responseType),Mt.headers&&(this.headers=Mt.headers),Mt.context&&(this.context=Mt.context),Mt.params&&(this.params=Mt.params),this.transferCache=Mt.transferCache),this.headers??=new p,this.context??=new U,this.params){const H=this.params.toString();if(0===H.length)this.urlWithParams=Ke;else{const me=Ke.indexOf("?");this.urlWithParams=Ke+(-1===me?"?":meGn.set(Jn,ut.setHeaders[Jn]),$e)),ut.setParams&&(wt=Object.keys(ut.setParams).reduce((Gn,Jn)=>Gn.set(Jn,ut.setParams[Jn]),wt)),new Y(Ke,mt,H,{params:wt,headers:$e,context:ln,reportProgress:le,responseType:xe,withCredentials:me,transferCache:Mt})}}var ee=function(Ue){return Ue[Ue.Sent=0]="Sent",Ue[Ue.UploadProgress=1]="UploadProgress",Ue[Ue.ResponseHeader=2]="ResponseHeader",Ue[Ue.DownloadProgress=3]="DownloadProgress",Ue[Ue.Response=4]="Response",Ue[Ue.User=5]="User",Ue}(ee||{});class ie{constructor(ut,Ke=V.Ok,mt="OK"){this.headers=ut.headers||new p,this.status=void 0!==ut.status?ut.status:Ke,this.statusText=ut.statusText||mt,this.url=ut.url||null,this.ok=this.status>=200&&this.status<300}}class $ extends ie{constructor(ut={}){super(ut),this.type=ee.ResponseHeader}clone(ut={}){return new $({headers:ut.headers||this.headers,status:void 0!==ut.status?ut.status:this.status,statusText:ut.statusText||this.statusText,url:ut.url||this.url||void 0})}}class j extends ie{constructor(ut={}){super(ut),this.type=ee.Response,this.body=void 0!==ut.body?ut.body:null}clone(ut={}){return new j({body:void 0!==ut.body?ut.body:this.body,headers:ut.headers||this.headers,status:void 0!==ut.status?ut.status:this.status,statusText:ut.statusText||this.statusText,url:ut.url||this.url||void 0})}}class G extends ie{constructor(ut){super(ut,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ut.url||"(unknown url)"}`:`Http failure response for ${ut.url||"(unknown url)"}: ${ut.status} ${ut.statusText}`,this.error=ut.error||null}}var V=function(Ue){return Ue[Ue.Continue=100]="Continue",Ue[Ue.SwitchingProtocols=101]="SwitchingProtocols",Ue[Ue.Processing=102]="Processing",Ue[Ue.EarlyHints=103]="EarlyHints",Ue[Ue.Ok=200]="Ok",Ue[Ue.Created=201]="Created",Ue[Ue.Accepted=202]="Accepted",Ue[Ue.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",Ue[Ue.NoContent=204]="NoContent",Ue[Ue.ResetContent=205]="ResetContent",Ue[Ue.PartialContent=206]="PartialContent",Ue[Ue.MultiStatus=207]="MultiStatus",Ue[Ue.AlreadyReported=208]="AlreadyReported",Ue[Ue.ImUsed=226]="ImUsed",Ue[Ue.MultipleChoices=300]="MultipleChoices",Ue[Ue.MovedPermanently=301]="MovedPermanently",Ue[Ue.Found=302]="Found",Ue[Ue.SeeOther=303]="SeeOther",Ue[Ue.NotModified=304]="NotModified",Ue[Ue.UseProxy=305]="UseProxy",Ue[Ue.Unused=306]="Unused",Ue[Ue.TemporaryRedirect=307]="TemporaryRedirect",Ue[Ue.PermanentRedirect=308]="PermanentRedirect",Ue[Ue.BadRequest=400]="BadRequest",Ue[Ue.Unauthorized=401]="Unauthorized",Ue[Ue.PaymentRequired=402]="PaymentRequired",Ue[Ue.Forbidden=403]="Forbidden",Ue[Ue.NotFound=404]="NotFound",Ue[Ue.MethodNotAllowed=405]="MethodNotAllowed",Ue[Ue.NotAcceptable=406]="NotAcceptable",Ue[Ue.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",Ue[Ue.RequestTimeout=408]="RequestTimeout",Ue[Ue.Conflict=409]="Conflict",Ue[Ue.Gone=410]="Gone",Ue[Ue.LengthRequired=411]="LengthRequired",Ue[Ue.PreconditionFailed=412]="PreconditionFailed",Ue[Ue.PayloadTooLarge=413]="PayloadTooLarge",Ue[Ue.UriTooLong=414]="UriTooLong",Ue[Ue.UnsupportedMediaType=415]="UnsupportedMediaType",Ue[Ue.RangeNotSatisfiable=416]="RangeNotSatisfiable",Ue[Ue.ExpectationFailed=417]="ExpectationFailed",Ue[Ue.ImATeapot=418]="ImATeapot",Ue[Ue.MisdirectedRequest=421]="MisdirectedRequest",Ue[Ue.UnprocessableEntity=422]="UnprocessableEntity",Ue[Ue.Locked=423]="Locked",Ue[Ue.FailedDependency=424]="FailedDependency",Ue[Ue.TooEarly=425]="TooEarly",Ue[Ue.UpgradeRequired=426]="UpgradeRequired",Ue[Ue.PreconditionRequired=428]="PreconditionRequired",Ue[Ue.TooManyRequests=429]="TooManyRequests",Ue[Ue.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",Ue[Ue.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",Ue[Ue.InternalServerError=500]="InternalServerError",Ue[Ue.NotImplemented=501]="NotImplemented",Ue[Ue.BadGateway=502]="BadGateway",Ue[Ue.ServiceUnavailable=503]="ServiceUnavailable",Ue[Ue.GatewayTimeout=504]="GatewayTimeout",Ue[Ue.HttpVersionNotSupported=505]="HttpVersionNotSupported",Ue[Ue.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",Ue[Ue.InsufficientStorage=507]="InsufficientStorage",Ue[Ue.LoopDetected=508]="LoopDetected",Ue[Ue.NotExtended=510]="NotExtended",Ue[Ue.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",Ue}(V||{});function W(Ue,ut){return{body:ut,headers:Ue.headers,context:Ue.context,observe:Ue.observe,params:Ue.params,reportProgress:Ue.reportProgress,responseType:Ue.responseType,withCredentials:Ue.withCredentials,transferCache:Ue.transferCache}}let K=(()=>{class Ue{constructor(Ke){this.handler=Ke}request(Ke,mt,xe={}){let Mt;if(Ke instanceof Y)Mt=Ke;else{let le,$e;le=xe.headers instanceof p?xe.headers:new p(xe.headers),xe.params&&($e=xe.params instanceof O?xe.params:new O({fromObject:xe.params})),Mt=new Y(Ke,mt,void 0!==xe.body?xe.body:null,{headers:le,context:xe.context,params:$e,reportProgress:xe.reportProgress,responseType:xe.responseType||"json",withCredentials:xe.withCredentials,transferCache:xe.transferCache})}const H=(0,C.of)(Mt).pipe((0,b.H)(le=>this.handler.handle(le)));if(Ke instanceof Y||"events"===xe.observe)return H;const me=H.pipe((0,s.p)(le=>le instanceof j));switch(xe.observe||"body"){case"body":switch(Mt.responseType){case"arraybuffer":return me.pipe((0,f.T)(le=>{if(null!==le.body&&!(le.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return le.body}));case"blob":return me.pipe((0,f.T)(le=>{if(null!==le.body&&!(le.body instanceof Blob))throw new Error("Response is not a Blob.");return le.body}));case"text":return me.pipe((0,f.T)(le=>{if(null!==le.body&&"string"!=typeof le.body)throw new Error("Response is not a string.");return le.body}));default:return me.pipe((0,f.T)(le=>le.body))}case"response":return me;default:throw new Error(`Unreachable: unhandled observe type ${xe.observe}}`)}}delete(Ke,mt={}){return this.request("DELETE",Ke,mt)}get(Ke,mt={}){return this.request("GET",Ke,mt)}head(Ke,mt={}){return this.request("HEAD",Ke,mt)}jsonp(Ke,mt){return this.request("JSONP",Ke,{params:(new O).append(mt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ke,mt={}){return this.request("OPTIONS",Ke,mt)}patch(Ke,mt,xe={}){return this.request("PATCH",Ke,W(xe,mt))}post(Ke,mt,xe={}){return this.request("POST",Ke,W(xe,mt))}put(Ke,mt,xe={}){return this.request("PUT",Ke,W(xe,mt))}static#e=this.\u0275fac=function(mt){return new(mt||Ue)(_.\u0275\u0275inject(r))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac})}return Ue})();const ce=/^\)\]\}',?\n/;function ve(Ue){if(Ue.url)return Ue.url;const ut="X-Request-URL".toLocaleLowerCase();return Ue.headers.get(ut)}let Ye=(()=>{class Ue{constructor(){this.fetchImpl=(0,_.inject)(pt,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=(0,_.inject)(_.NgZone)}handle(Ke){return new E.c(mt=>{const xe=new AbortController;return this.doRequest(Ke,xe.signal,mt).then(ct,Mt=>mt.error(new G({error:Mt}))),()=>xe.abort()})}doRequest(Ke,mt,xe){var Mt=this;return(0,t.A)(function*(){const H=Mt.createRequestInit(Ke);let me;try{const ti=Mt.fetchImpl(Ke.urlWithParams,{signal:mt,...H});(function Ct(Ue){Ue.then(ct,ct)})(ti),xe.next({type:ee.Sent}),me=yield ti}catch(ti){return void xe.error(new G({error:ti,status:ti.status??0,statusText:ti.statusText,url:Ke.urlWithParams,headers:ti.headers}))}const le=new p(me.headers),$e=me.statusText,wt=ve(me)??Ke.urlWithParams;let ln=me.status,Gn=null;if(Ke.reportProgress&&xe.next(new $({headers:le,status:ln,statusText:$e,url:wt})),me.body){const ti=me.headers.get("content-length"),In=[],Fn=me.body.getReader();let ar,_i,yi=0;const hi=typeof Zone<"u"&&Zone.current;yield Mt.ngZone.runOutsideAngular((0,t.A)(function*(){for(;;){const{done:Ri,value:On}=yield Fn.read();if(Ri)break;if(In.push(On),yi+=On.length,Ke.reportProgress){_i="text"===Ke.responseType?(_i??"")+(ar??=new TextDecoder).decode(On,{stream:!0}):void 0;const yn=()=>xe.next({type:ee.DownloadProgress,total:ti?+ti:void 0,loaded:yi,partialText:_i});hi?hi.run(yn):yn()}}}));const xi=Mt.concatChunks(In,yi);try{const Ri=me.headers.get("Content-Type")??"";Gn=Mt.parseBody(Ke,xi,Ri)}catch(Ri){return void xe.error(new G({error:Ri,headers:new p(me.headers),status:me.status,statusText:me.statusText,url:ve(me)??Ke.urlWithParams}))}}0===ln&&(ln=Gn?V.Ok:0),ln>=200&&ln<300?(xe.next(new j({body:Gn,headers:le,status:ln,statusText:$e,url:wt})),xe.complete()):xe.error(new G({error:Gn,headers:le,status:ln,statusText:$e,url:wt}))})()}parseBody(Ke,mt,xe){switch(Ke.responseType){case"json":const Mt=(new TextDecoder).decode(mt).replace(ce,"");return""===Mt?null:JSON.parse(Mt);case"text":return(new TextDecoder).decode(mt);case"blob":return new Blob([mt],{type:xe});case"arraybuffer":return mt.buffer}}createRequestInit(Ke){const mt={},xe=Ke.withCredentials?"include":void 0;if(Ke.headers.forEach((Mt,H)=>mt[Mt]=H.join(",")),mt.Accept??="application/json, text/plain, */*",!mt["Content-Type"]){const Mt=Ke.detectContentTypeHeader();null!==Mt&&(mt["Content-Type"]=Mt)}return{body:Ke.serializeBody(),method:Ke.method,headers:mt,credentials:xe}}concatChunks(Ke,mt){const xe=new Uint8Array(mt);let Mt=0;for(const H of Ke)xe.set(H,Mt),Mt+=H.length;return xe}static#e=this.\u0275fac=function(mt){return new(mt||Ue)};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac})}return Ue})();class pt{}function ct(){}function We(Ue,ut){return ut(Ue)}function Ne(Ue,ut){return(Ke,mt)=>ut.intercept(Ke,{handle:xe=>Ue(xe,mt)})}const rt=new _.InjectionToken(""),Ee=new _.InjectionToken(""),be=new _.InjectionToken(""),Se=new _.InjectionToken("");function Q(){let Ue=null;return(ut,Ke)=>{null===Ue&&(Ue=((0,_.inject)(rt,{optional:!0})??[]).reduceRight(Ne,We));const mt=(0,_.inject)(_.\u0275PendingTasks),xe=mt.add();return Ue(ut,Ke).pipe((0,d.j)(()=>mt.remove(xe)))}}let ye,bt=(()=>{class Ue extends r{constructor(Ke,mt){super(),this.backend=Ke,this.injector=mt,this.chain=null,this.pendingTasks=(0,_.inject)(_.\u0275PendingTasks);const xe=(0,_.inject)(Se,{optional:!0});this.backend=xe??Ke}handle(Ke){if(null===this.chain){const xe=Array.from(new Set([...this.injector.get(Ee),...this.injector.get(be,[])]));this.chain=xe.reduceRight((Mt,H)=>function Ie(Ue,ut,Ke){return(mt,xe)=>(0,_.runInInjectionContext)(Ke,()=>ut(mt,Mt=>Ue(Mt,xe)))}(Mt,H,this.injector),We)}const mt=this.pendingTasks.add();return this.chain(Ke,xe=>this.backend.handle(xe)).pipe((0,d.j)(()=>this.pendingTasks.remove(mt)))}static#e=this.\u0275fac=function(mt){return new(mt||Ue)(_.\u0275\u0275inject(h),_.\u0275\u0275inject(_.EnvironmentInjector))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac})}return Ue})(),it=0;class jt{}function Xt(){return"object"==typeof window?window:{}}let un=(()=>{class Ue{constructor(Ke,mt){this.callbackMap=Ke,this.document=mt,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+it++}handle(Ke){if("JSONP"!==Ke.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==Ke.responseType)throw new Error("JSONP requests must use Json response type.");if(Ke.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new E.c(mt=>{const xe=this.nextCallback(),Mt=Ke.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${xe}$1`),H=this.document.createElement("script");H.src=Mt;let me=null,le=!1;this.callbackMap[xe]=Gn=>{delete this.callbackMap[xe],me=Gn,le=!0};const $e=()=>{H.parentNode&&H.parentNode.removeChild(H),delete this.callbackMap[xe]};return H.addEventListener("load",Gn=>{this.resolvedPromise.then(()=>{$e(),le?(mt.next(new j({body:me,status:V.Ok,statusText:"OK",url:Mt})),mt.complete()):mt.error(new G({url:Mt,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),H.addEventListener("error",Gn=>{$e(),mt.error(new G({error:Gn,status:0,statusText:"JSONP Error",url:Mt}))}),this.document.body.appendChild(H),mt.next({type:ee.Sent}),()=>{le||this.removeListeners(H),$e()}})}removeListeners(Ke){ye??=this.document.implementation.createHTMLDocument(),ye.adoptNode(Ke)}static#e=this.\u0275fac=function(mt){return new(mt||Ue)(_.\u0275\u0275inject(jt),_.\u0275\u0275inject(o.DOCUMENT))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac})}return Ue})();function dn(Ue,ut){return"JSONP"===Ue.method?(0,_.inject)(un).handle(Ue):ut(Ue)}let cn=(()=>{class Ue{constructor(Ke){this.injector=Ke}intercept(Ke,mt){return(0,_.runInInjectionContext)(this.injector,()=>dn(Ke,xe=>mt.handle(xe)))}static#e=this.\u0275fac=function(mt){return new(mt||Ue)(_.\u0275\u0275inject(_.EnvironmentInjector))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac})}return Ue})();const rn=/^\)\]\}',?\n/;let Nt=(()=>{class Ue{constructor(Ke){this.xhrFactory=Ke}handle(Ke){if("JSONP"===Ke.method)throw new _.\u0275RuntimeError(-2800,!1);const mt=this.xhrFactory;return(mt.\u0275loadImpl?(0,u.H)(mt.\u0275loadImpl()):(0,C.of)(null)).pipe((0,l.n)(()=>new E.c(Mt=>{const H=mt.build();if(H.open(Ke.method,Ke.urlWithParams),Ke.withCredentials&&(H.withCredentials=!0),Ke.headers.forEach((In,Fn)=>H.setRequestHeader(In,Fn.join(","))),Ke.headers.has("Accept")||H.setRequestHeader("Accept","application/json, text/plain, */*"),!Ke.headers.has("Content-Type")){const In=Ke.detectContentTypeHeader();null!==In&&H.setRequestHeader("Content-Type",In)}if(Ke.responseType){const In=Ke.responseType.toLowerCase();H.responseType="json"!==In?In:"text"}const me=Ke.serializeBody();let le=null;const $e=()=>{if(null!==le)return le;const In=H.statusText||"OK",Fn=new p(H.getAllResponseHeaders()),yi=function hn(Ue){return"responseURL"in Ue&&Ue.responseURL?Ue.responseURL:/^X-Request-URL:/m.test(Ue.getAllResponseHeaders())?Ue.getResponseHeader("X-Request-URL"):null}(H)||Ke.url;return le=new $({headers:Fn,status:H.status,statusText:In,url:yi}),le},wt=()=>{let{headers:In,status:Fn,statusText:yi,url:ar}=$e(),_i=null;Fn!==V.NoContent&&(_i=typeof H.response>"u"?H.responseText:H.response),0===Fn&&(Fn=_i?V.Ok:0);let hi=Fn>=200&&Fn<300;if("json"===Ke.responseType&&"string"==typeof _i){const xi=_i;_i=_i.replace(rn,"");try{_i=""!==_i?JSON.parse(_i):null}catch(Ri){_i=xi,hi&&(hi=!1,_i={error:Ri,text:_i})}}hi?(Mt.next(new j({body:_i,headers:In,status:Fn,statusText:yi,url:ar||void 0})),Mt.complete()):Mt.error(new G({error:_i,headers:In,status:Fn,statusText:yi,url:ar||void 0}))},ln=In=>{const{url:Fn}=$e(),yi=new G({error:In,status:H.status||0,statusText:H.statusText||"Unknown Error",url:Fn||void 0});Mt.error(yi)};let Gn=!1;const Jn=In=>{Gn||(Mt.next($e()),Gn=!0);let Fn={type:ee.DownloadProgress,loaded:In.loaded};In.lengthComputable&&(Fn.total=In.total),"text"===Ke.responseType&&H.responseText&&(Fn.partialText=H.responseText),Mt.next(Fn)},ti=In=>{let Fn={type:ee.UploadProgress,loaded:In.loaded};In.lengthComputable&&(Fn.total=In.total),Mt.next(Fn)};return H.addEventListener("load",wt),H.addEventListener("error",ln),H.addEventListener("timeout",ln),H.addEventListener("abort",ln),Ke.reportProgress&&(H.addEventListener("progress",Jn),null!==me&&H.upload&&H.upload.addEventListener("progress",ti)),H.send(me),Mt.next({type:ee.Sent}),()=>{H.removeEventListener("error",ln),H.removeEventListener("abort",ln),H.removeEventListener("load",wt),H.removeEventListener("timeout",ln),Ke.reportProgress&&(H.removeEventListener("progress",Jn),null!==me&&H.upload&&H.upload.removeEventListener("progress",ti)),H.readyState!==H.DONE&&H.abort()}})))}static#e=this.\u0275fac=function(mt){return new(mt||Ue)(_.\u0275\u0275inject(o.XhrFactory))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac})}return Ue})();const Bt=new _.InjectionToken(""),_e="XSRF-TOKEN",Ze=new _.InjectionToken("",{providedIn:"root",factory:()=>_e}),Qe="X-XSRF-TOKEN",Ot=new _.InjectionToken("",{providedIn:"root",factory:()=>Qe});class tt{}let ft=(()=>{class Ue{constructor(Ke,mt,xe){this.doc=Ke,this.platform=mt,this.cookieName=xe,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Ke=this.doc.cookie||"";return Ke!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,o.\u0275parseCookieValue)(Ke,this.cookieName),this.lastCookieString=Ke),this.lastToken}static#e=this.\u0275fac=function(mt){return new(mt||Ue)(_.\u0275\u0275inject(o.DOCUMENT),_.\u0275\u0275inject(_.PLATFORM_ID),_.\u0275\u0275inject(Ze))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac})}return Ue})();function Le(Ue,ut){const Ke=Ue.url.toLowerCase();if(!(0,_.inject)(Bt)||"GET"===Ue.method||"HEAD"===Ue.method||Ke.startsWith("http://")||Ke.startsWith("https://"))return ut(Ue);const mt=(0,_.inject)(tt).getToken(),xe=(0,_.inject)(Ot);return null!=mt&&!Ue.headers.has(xe)&&(Ue=Ue.clone({headers:Ue.headers.set(xe,mt)})),ut(Ue)}let fe=(()=>{class Ue{constructor(Ke){this.injector=Ke}intercept(Ke,mt){return(0,_.runInInjectionContext)(this.injector,()=>Le(Ke,xe=>mt.handle(xe)))}static#e=this.\u0275fac=function(mt){return new(mt||Ue)(_.\u0275\u0275inject(_.EnvironmentInjector))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac})}return Ue})();var Ge=function(Ue){return Ue[Ue.Interceptors=0]="Interceptors",Ue[Ue.LegacyInterceptors=1]="LegacyInterceptors",Ue[Ue.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ue[Ue.NoXsrfProtection=3]="NoXsrfProtection",Ue[Ue.JsonpSupport=4]="JsonpSupport",Ue[Ue.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ue[Ue.Fetch=6]="Fetch",Ue}(Ge||{});function te(Ue,ut){return{\u0275kind:Ue,\u0275providers:ut}}function de(...Ue){const ut=[K,Nt,bt,{provide:r,useExisting:bt},{provide:h,useExisting:Nt},{provide:Ee,useValue:Le,multi:!0},{provide:Bt,useValue:!0},{provide:tt,useClass:ft}];for(const Ke of Ue)ut.push(...Ke.\u0275providers);return(0,_.makeEnvironmentProviders)(ut)}function ke(Ue){return te(Ge.Interceptors,Ue.map(ut=>({provide:Ee,useValue:ut,multi:!0})))}const nt=new _.InjectionToken("");function It(){return te(Ge.LegacyInterceptors,[{provide:nt,useFactory:Q},{provide:Ee,useExisting:nt,multi:!0}])}function Gt({cookieName:Ue,headerName:ut}){const Ke=[];return void 0!==Ue&&Ke.push({provide:Ze,useValue:Ue}),void 0!==ut&&Ke.push({provide:Ot,useValue:ut}),te(Ge.CustomXsrfConfiguration,Ke)}function an(){return te(Ge.NoXsrfProtection,[{provide:Bt,useValue:!1}])}function _t(){return te(Ge.JsonpSupport,[un,{provide:jt,useFactory:Xt},{provide:Ee,useValue:dn,multi:!0}])}function Lt(){return te(Ge.RequestsMadeViaParent,[{provide:h,useFactory:()=>(0,_.inject)(r,{skipSelf:!0,optional:!0})}])}function Je(){return te(Ge.Fetch,[Ye,{provide:h,useExisting:Ye},{provide:Se,useExisting:Ye}])}let Fe=(()=>{class Ue{static disable(){return{ngModule:Ue,providers:[an().\u0275providers]}}static withOptions(Ke={}){return{ngModule:Ue,providers:Gt(Ke).\u0275providers}}static#e=this.\u0275fac=function(mt){return new(mt||Ue)};static#t=this.\u0275mod=_.\u0275\u0275defineNgModule({type:Ue});static#n=this.\u0275inj=_.\u0275\u0275defineInjector({providers:[fe,{provide:rt,useExisting:fe,multi:!0},{provide:tt,useClass:ft},Gt({cookieName:_e,headerName:Qe}).\u0275providers,{provide:Bt,useValue:!0}]})}return Ue})(),et=(()=>{class Ue{static#e=this.\u0275fac=function(mt){return new(mt||Ue)};static#t=this.\u0275mod=_.\u0275\u0275defineNgModule({type:Ue});static#n=this.\u0275inj=_.\u0275\u0275defineInjector({providers:[de(It())]})}return Ue})(),je=(()=>{class Ue{static#e=this.\u0275fac=function(mt){return new(mt||Ue)};static#t=this.\u0275mod=_.\u0275\u0275defineNgModule({type:Ue});static#n=this.\u0275inj=_.\u0275\u0275defineInjector({providers:[_t().\u0275providers]})}return Ue})();const dt="b",At="h",qt="s",Cn="st",Ln="u",Oi="rt",Ei=new _.InjectionToken(""),jn=["GET","HEAD"];function at(Ue,ut){const{isCacheActive:Ke,...mt}=(0,_.inject)(Ei),{transferCache:xe,method:Mt}=Ue;if(!Ke||"POST"===Mt&&!mt.includePostRequests&&!xe||"POST"!==Mt&&!jn.includes(Mt)||!1===xe||!1===mt.filter?.(Ue))return ut(Ue);const H=(0,_.inject)(_.TransferState),me=function lt(Ue){const{params:ut,method:Ke,responseType:mt,url:xe}=Ue,Mt=Be(ut);let H=Ue.serializeBody();H instanceof URLSearchParams?H=Be(H):"string"!=typeof H&&(H="");const le=function Et(Ue){let ut=0;for(const Ke of Ue)ut=Math.imul(31,ut)+Ke.charCodeAt(0)|0;return ut+=2147483648,ut.toString()}([Ke,mt,xe,H,Mt].join("|"));return(0,_.makeStateKey)(le)}(Ue),le=H.get(me,null);let $e=mt.includeHeaders;if("object"==typeof xe&&xe.includeHeaders&&($e=xe.includeHeaders),le){const{[dt]:wt,[Oi]:ln,[At]:Gn,[qt]:Jn,[Cn]:ti,[Ln]:In}=le;let Fn=wt;switch(ln){case"arraybuffer":Fn=(new TextEncoder).encode(wt).buffer;break;case"blob":Fn=new Blob([wt])}let yi=new p(Gn);return(0,C.of)(new j({body:Fn,headers:yi,status:Jn,statusText:ti,url:In}))}return ut(Ue).pipe((0,c.M)(wt=>{wt instanceof j&&H.set(me,{[dt]:wt.body,[At]:Jt(wt.headers,$e),[qt]:wt.status,[Cn]:wt.statusText,[Ln]:wt.url||"",[Oi]:Ue.responseType})}))}function Jt(Ue,ut){if(!ut)return{};const Ke={};for(const mt of ut){const xe=Ue.getAll(mt);null!==xe&&(Ke[mt]=xe)}return Ke}function Be(Ue){return[...Ue.keys()].sort().map(ut=>`${ut}=${Ue.getAll(ut)}`).join("&")}function nn(Ue){return[{provide:Ei,useFactory:()=>((0,_.\u0275performanceMarkFeature)("NgHttpTransferCache"),{isCacheActive:!0,...Ue})},{provide:be,useValue:at,multi:!0,deps:[_.TransferState,Ei]},{provide:_.APP_BOOTSTRAP_LISTENER,multi:!0,useFactory:()=>{const ut=(0,_.inject)(_.ApplicationRef),Ke=(0,_.inject)(Ei);return()=>{(0,_.\u0275whenStable)(ut).then(()=>{Ke.isCacheActive=!1})}}}]}},4438:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{ANIMATION_MODULE_TYPE:()=>Lw,APP_BOOTSTRAP_LISTENER:()=>Im,APP_ID:()=>e0,APP_INITIALIZER:()=>_1,AfterRenderPhase:()=>ta,ApplicationInitStatus:()=>Gu,ApplicationModule:()=>KS,ApplicationRef:()=>sa,Attribute:()=>xp,COMPILER_OPTIONS:()=>M1,CSP_NONCE:()=>Nw,CUSTOM_ELEMENTS_SCHEMA:()=>L0,ChangeDetectionStrategy:()=>Yr,ChangeDetectorRef:()=>Om,Compiler:()=>pS,CompilerFactory:()=>gS,Component:()=>RT,ComponentFactory:()=>uu,ComponentFactoryResolver:()=>ec,ComponentRef:()=>Rg,ContentChild:()=>$M,ContentChildren:()=>BM,DEFAULT_CURRENCY_CODE:()=>CS,DebugElement:()=>yc,DebugEventListener:()=>OS,DebugNode:()=>Rm,DefaultIterableDiffer:()=>H1,DestroyRef:()=>ga,Directive:()=>s1,ENVIRONMENT_INITIALIZER:()=>ns,ElementRef:()=>Al,EmbeddedViewRef:()=>kS,EnvironmentInjector:()=>Lr,ErrorHandler:()=>Lo,EventEmitter:()=>wo,Host:()=>sn,HostAttributeToken:()=>iw,HostBinding:()=>FT,HostListener:()=>UT,INJECTOR:()=>Gr,Inject:()=>Tt,InjectFlags:()=>Un,Injectable:()=>nw,InjectionToken:()=>xe,Injector:()=>xs,Input:()=>NT,IterableDiffers:()=>Um,KeyValueDiffers:()=>Bm,LOCALE_ID:()=>Zu,MissingTranslationStrategy:()=>k1,ModuleWithComponentFactories:()=>x1,NO_ERRORS_SCHEMA:()=>N0,NgModule:()=>BT,NgModuleFactory:()=>F_,NgModuleRef:()=>ya,NgProbeToken:()=>fS,NgZone:()=>gr,Optional:()=>kt,Output:()=>PT,OutputEmitterRef:()=>xd,PACKAGE_ROOT_URL:()=>Rw,PLATFORM_ID:()=>kd,PLATFORM_INITIALIZER:()=>t0,Pipe:()=>LT,PlatformRef:()=>Am,Query:()=>nc,QueryList:()=>Lc,Renderer2:()=>qx,RendererFactory2:()=>Ng,RendererStyleFlags2:()=>Yc,Sanitizer:()=>Pg,SecurityContext:()=>va,Self:()=>$t,SimpleChange:()=>An,SkipSelf:()=>Wt,TRANSLATIONS:()=>wS,TRANSLATIONS_FORMAT:()=>ES,TemplateRef:()=>Zl,Testability:()=>hS,TestabilityRegistry:()=>m1,TransferState:()=>Rl,Type:()=>Qt,VERSION:()=>$T,Version:()=>o1,ViewChild:()=>jM,ViewChildren:()=>VM,ViewContainerRef:()=>_u,ViewEncapsulation:()=>Zr,ViewRef:()=>B1,afterNextRender:()=>Hg,afterRender:()=>jg,asNativeElements:()=>RS,assertInInjectionContext:()=>J,assertNotInReactiveContext:()=>tM,assertPlatform:()=>N1,booleanAttribute:()=>IA,computed:()=>UA,contentChild:()=>NM,contentChildren:()=>PM,createComponent:()=>HA,createEnvironmentInjector:()=>zh,createNgModule:()=>U_,createNgModuleRef:()=>sD,createPlatform:()=>O1,createPlatformFactory:()=>R1,defineInjectable:()=>at,destroyPlatform:()=>xS,effect:()=>_C,enableProdMode:()=>IS,forwardRef:()=>Le,getDebugNode:()=>_l,getModuleFactory:()=>TS,getNgModuleById:()=>SS,getPlatform:()=>Qu,importProvidersFrom:()=>ro,inject:()=>Bn,input:()=>cw,isDevMode:()=>DS,isSignal:()=>$h,isStandalone:()=>Or,makeEnvironmentProviders:()=>ys,makeStateKey:()=>Pw,mergeApplicationConfig:()=>WA,model:()=>UM,numberAttribute:()=>TA,output:()=>aw,platformCore:()=>GS,provideZoneChangeDetection:()=>S1,reflectComponentType:()=>zA,resolveForwardRef:()=>fe,runInInjectionContext:()=>uo,setTestabilityGetter:()=>p1,signal:()=>d_,untracked:()=>BA,viewChild:()=>OM,viewChildren:()=>RM,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>km,\u0275AfterRenderEventManager:()=>Ga,\u0275CONTAINER_HEADER_OFFSET:()=>rr,\u0275ChangeDetectionScheduler:()=>cu,\u0275ComponentFactory:()=>uu,\u0275Console:()=>a1,\u0275DEFAULT_LOCALE_ID:()=>Ma,\u0275DEFER_BLOCK_CONFIG:()=>rv,\u0275DEFER_BLOCK_DEPENDENCY_INTERCEPTOR:()=>ID,\u0275DeferBlockBehavior:()=>Gh,\u0275DeferBlockState:()=>fr,\u0275EffectScheduler:()=>gC,\u0275IMAGE_CONFIG:()=>r0,\u0275IMAGE_CONFIG_DEFAULTS:()=>n0,\u0275INJECTOR_SCOPE:()=>Ws,\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE:()=>He,\u0275IS_HYDRATION_DOM_REUSE_ENABLED:()=>Ul,\u0275LContext:()=>Fp,\u0275LifecycleHooksFeature:()=>Xg,\u0275LocaleDataIndex:()=>pl,\u0275NG_COMP_DEF:()=>Fn,\u0275NG_DIR_DEF:()=>yi,\u0275NG_ELEMENT_ID:()=>xi,\u0275NG_INJ_DEF:()=>ut,\u0275NG_MOD_DEF:()=>_i,\u0275NG_PIPE_DEF:()=>ar,\u0275NG_PROV_DEF:()=>Ue,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>du,\u0275NO_CHANGE:()=>ai,\u0275NgModuleFactory:()=>Cu,\u0275NoopNgZone:()=>Sh,\u0275PendingTasks:()=>Qa,\u0275ReflectionCapabilities:()=>Ci,\u0275Render3ComponentFactory:()=>Ya,\u0275Render3ComponentRef:()=>Qg,\u0275Render3NgModuleRef:()=>yu,\u0275RuntimeError:()=>pe,\u0275SSR_CONTENT_INTEGRITY_MARKER:()=>s0,\u0275TESTABILITY:()=>h1,\u0275TESTABILITY_GETTER:()=>f1,\u0275USE_RUNTIME_DEPS_TRACKER_FOR_JIT:()=>mu,\u0275ViewRef:()=>za,\u0275XSS_SECURITY_URL:()=>Q,\u0275_sanitizeHtml:()=>D0,\u0275_sanitizeUrl:()=>zc,\u0275allowSanitizationBypassAndThrow:()=>Ua,\u0275annotateForHydration:()=>CA,\u0275bypassSanitizationTrustHtml:()=>Jw,\u0275bypassSanitizationTrustResourceUrl:()=>nE,\u0275bypassSanitizationTrustScript:()=>eE,\u0275bypassSanitizationTrustStyle:()=>qw,\u0275bypassSanitizationTrustUrl:()=>tE,\u0275clearResolutionOfComponentResourcesQueue:()=>D_,\u0275compileComponent:()=>Gy,\u0275compileDirective:()=>Em,\u0275compileNgModule:()=>$y,\u0275compileNgModuleDefs:()=>Vy,\u0275compileNgModuleFactory:()=>D1,\u0275compilePipe:()=>n1,\u0275convertToBitFlags:()=>zr,\u0275createInjector:()=>wd,\u0275defaultIterableDiffers:()=>zS,\u0275defaultKeyValueDiffers:()=>WS,\u0275depsTracker:()=>Ka,\u0275detectChangesInViewIfRequired:()=>E1,\u0275devModeEqual:()=>V_,\u0275findLocaleData:()=>Sf,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>Uy,\u0275formatRuntimeError:()=>Re,\u0275generateStandaloneInDeclarationsError:()=>jy,\u0275getAsyncClassMetadataFn:()=>lD,\u0275getDebugNode:()=>_l,\u0275getDeferBlocks:()=>jm,\u0275getDirectives:()=>Xp,\u0275getEnsureDirtyViewsAreAlwaysReachable:()=>gi,\u0275getHostElement:()=>Sd,\u0275getInjectableDef:()=>Be,\u0275getLContext:()=>ls,\u0275getLocaleCurrencyCode:()=>fI,\u0275getLocalePluralCase:()=>lb,\u0275getOutputDestroyRef:()=>ow,\u0275getSanitizationBypassType:()=>_0,\u0275getUnknownElementStrictMode:()=>xE,\u0275getUnknownPropertyStrictMode:()=>DE,\u0275global:()=>hn,\u0275injectChangeDetectorRef:()=>U1,\u0275internalAfterNextRender:()=>hu,\u0275internalCreateApplication:()=>cA,\u0275isBoundToModule:()=>b1,\u0275isComponentDefPendingResolution:()=>zM,\u0275isEnvironmentProviders:()=>In,\u0275isInjectable:()=>lt,\u0275isNgModule:()=>na,\u0275isPromise:()=>Dm,\u0275isSubscribable:()=>g1,\u0275noSideEffects:()=>st,\u0275patchComponentDefWithScope:()=>Cm,\u0275performanceMarkFeature:()=>Xs,\u0275provideZonelessChangeDetection:()=>dA,\u0275queueStateUpdate:()=>pC,\u0275readHydrationInfo:()=>c0,\u0275registerLocaleData:()=>hI,\u0275renderDeferBlockState:()=>Uo,\u0275resetCompiledComponents:()=>wT,\u0275resetJitOptions:()=>bT,\u0275resolveComponentResources:()=>x_,\u0275restoreComponentResolutionQueue:()=>WM,\u0275setAllowDuplicateNgModuleIdsForTest:()=>QM,\u0275setAlternateWeakRefImpl:()=>sA,\u0275setClassDebugInfo:()=>Fy,\u0275setClassMetadata:()=>$_,\u0275setClassMetadataAsync:()=>cD,\u0275setCurrentInjector:()=>mr,\u0275setDocument:()=>kw,\u0275setEnsureDirtyViewsAreAlwaysReachable:()=>ko,\u0275setInjectorProfilerContext:()=>me,\u0275setLocaleId:()=>Af,\u0275setUnknownElementStrictMode:()=>EE,\u0275setUnknownPropertyStrictMode:()=>ME,\u0275store:()=>Yb,\u0275stringify:()=>Qe,\u0275transitiveScopesFor:()=>Da,\u0275triggerResourceLoading:()=>Au,\u0275truncateMiddle:()=>tt,\u0275unregisterLocaleData:()=>mI,\u0275unwrapSafeValue:()=>No,\u0275unwrapWritableSignal:()=>SM,\u0275whenStable:()=>w1,\u0275withDomHydration:()=>mA,\u0275withI18nHydration:()=>pA,\u0275\u0275CopyDefinitionFeature:()=>k_,\u0275\u0275FactoryTarget:()=>Pe,\u0275\u0275HostDirectivesFeature:()=>O_,\u0275\u0275InheritDefinitionFeature:()=>Hh,\u0275\u0275InputFlags:()=>Qr,\u0275\u0275InputTransformsFeature:()=>P_,\u0275\u0275NgOnChangesFeature:()=>zn,\u0275\u0275ProvidersFeature:()=>cy,\u0275\u0275StandaloneFeature:()=>uy,\u0275\u0275advance:()=>rg,\u0275\u0275attribute:()=>tf,\u0275\u0275attributeInterpolate1:()=>nf,\u0275\u0275attributeInterpolate2:()=>rf,\u0275\u0275attributeInterpolate3:()=>sf,\u0275\u0275attributeInterpolate4:()=>af,\u0275\u0275attributeInterpolate5:()=>lf,\u0275\u0275attributeInterpolate6:()=>cf,\u0275\u0275attributeInterpolate7:()=>uf,\u0275\u0275attributeInterpolate8:()=>df,\u0275\u0275attributeInterpolateV:()=>hf,\u0275\u0275classMap:()=>Lv,\u0275\u0275classMapInterpolate1:()=>Vv,\u0275\u0275classMapInterpolate2:()=>jv,\u0275\u0275classMapInterpolate3:()=>Hv,\u0275\u0275classMapInterpolate4:()=>zv,\u0275\u0275classMapInterpolate5:()=>Wv,\u0275\u0275classMapInterpolate6:()=>Gv,\u0275\u0275classMapInterpolate7:()=>Kv,\u0275\u0275classMapInterpolate8:()=>Yv,\u0275\u0275classMapInterpolateV:()=>Zv,\u0275\u0275classProp:()=>bf,\u0275\u0275componentInstance:()=>Qv,\u0275\u0275conditional:()=>eb,\u0275\u0275contentQuery:()=>Vb,\u0275\u0275contentQuerySignal:()=>Wb,\u0275\u0275defer:()=>ov,\u0275\u0275deferEnableTimerScheduling:()=>sv,\u0275\u0275deferOnHover:()=>pv,\u0275\u0275deferOnIdle:()=>cv,\u0275\u0275deferOnImmediate:()=>dv,\u0275\u0275deferOnInteraction:()=>_v,\u0275\u0275deferOnTimer:()=>fv,\u0275\u0275deferOnViewport:()=>bv,\u0275\u0275deferPrefetchOnHover:()=>gv,\u0275\u0275deferPrefetchOnIdle:()=>uv,\u0275\u0275deferPrefetchOnImmediate:()=>hv,\u0275\u0275deferPrefetchOnInteraction:()=>vv,\u0275\u0275deferPrefetchOnTimer:()=>mv,\u0275\u0275deferPrefetchOnViewport:()=>yv,\u0275\u0275deferPrefetchWhen:()=>lv,\u0275\u0275deferWhen:()=>av,\u0275\u0275defineComponent:()=>jo,\u0275\u0275defineDirective:()=>Xr,\u0275\u0275defineInjectable:()=>jn,\u0275\u0275defineInjector:()=>Jt,\u0275\u0275defineNgModule:()=>Us,\u0275\u0275definePipe:()=>To,\u0275\u0275directiveInject:()=>Va,\u0275\u0275disableBindings:()=>Ym,\u0275\u0275element:()=>Mf,\u0275\u0275elementContainer:()=>Df,\u0275\u0275elementContainerEnd:()=>Pu,\u0275\u0275elementContainerStart:()=>Nu,\u0275\u0275elementEnd:()=>Lu,\u0275\u0275elementStart:()=>Ru,\u0275\u0275enableBindings:()=>Km,\u0275\u0275getComponentDepsFactory:()=>Py,\u0275\u0275getCurrentView:()=>ab,\u0275\u0275getInheritedFactory:()=>wp,\u0275\u0275hostProperty:()=>If,\u0275\u0275i18n:()=>Ob,\u0275\u0275i18nApply:()=>Lb,\u0275\u0275i18nAttributes:()=>Rb,\u0275\u0275i18nEnd:()=>Lf,\u0275\u0275i18nExp:()=>Nf,\u0275\u0275i18nPostprocess:()=>Nb,\u0275\u0275i18nStart:()=>Rf,\u0275\u0275inject:()=>Li,\u0275\u0275injectAttribute:()=>Oc,\u0275\u0275invalidFactory:()=>og,\u0275\u0275invalidFactoryDep:()=>ts,\u0275\u0275listener:()=>Pf,\u0275\u0275loadQuery:()=>zb,\u0275\u0275namespaceHTML:()=>lp,\u0275\u0275namespaceMathML:()=>ap,\u0275\u0275namespaceSVG:()=>op,\u0275\u0275nextContext:()=>Ub,\u0275\u0275ngDeclareClassMetadata:()=>AA,\u0275\u0275ngDeclareComponent:()=>kA,\u0275\u0275ngDeclareDirective:()=>SA,\u0275\u0275ngDeclareFactory:()=>OA,\u0275\u0275ngDeclareInjectable:()=>LA,\u0275\u0275ngDeclareInjector:()=>NA,\u0275\u0275ngDeclareNgModule:()=>PA,\u0275\u0275ngDeclarePipe:()=>FA,\u0275\u0275pipe:()=>Sy,\u0275\u0275pipeBind1:()=>Ay,\u0275\u0275pipeBind2:()=>ky,\u0275\u0275pipeBind3:()=>Oy,\u0275\u0275pipeBind4:()=>Ry,\u0275\u0275pipeBindV:()=>Ly,\u0275\u0275projection:()=>$b,\u0275\u0275projectionDef:()=>Bb,\u0275\u0275property:()=>gf,\u0275\u0275propertyInterpolate:()=>Bf,\u0275\u0275propertyInterpolate1:()=>Vu,\u0275\u0275propertyInterpolate2:()=>$f,\u0275\u0275propertyInterpolate3:()=>Vf,\u0275\u0275propertyInterpolate4:()=>jf,\u0275\u0275propertyInterpolate5:()=>Hf,\u0275\u0275propertyInterpolate6:()=>zf,\u0275\u0275propertyInterpolate7:()=>Wf,\u0275\u0275propertyInterpolate8:()=>Gf,\u0275\u0275propertyInterpolateV:()=>Kf,\u0275\u0275pureFunction0:()=>my,\u0275\u0275pureFunction1:()=>py,\u0275\u0275pureFunction2:()=>gy,\u0275\u0275pureFunction3:()=>_y,\u0275\u0275pureFunction4:()=>vy,\u0275\u0275pureFunction5:()=>by,\u0275\u0275pureFunction6:()=>yy,\u0275\u0275pureFunction7:()=>Cy,\u0275\u0275pureFunction8:()=>wy,\u0275\u0275pureFunctionV:()=>Ey,\u0275\u0275queryAdvance:()=>Kb,\u0275\u0275queryRefresh:()=>Hb,\u0275\u0275reference:()=>Zb,\u0275\u0275registerNgModuleType:()=>jh,\u0275\u0275repeater:()=>rb,\u0275\u0275repeaterCreate:()=>ib,\u0275\u0275repeaterTrackByIdentity:()=>nb,\u0275\u0275repeaterTrackByIndex:()=>tb,\u0275\u0275resetView:()=>Qm,\u0275\u0275resolveBody:()=>qd,\u0275\u0275resolveDocument:()=>B0,\u0275\u0275resolveWindow:()=>U0,\u0275\u0275restoreView:()=>Zm,\u0275\u0275sanitizeHtml:()=>I0,\u0275\u0275sanitizeResourceUrl:()=>Zd,\u0275\u0275sanitizeScript:()=>S0,\u0275\u0275sanitizeStyle:()=>T0,\u0275\u0275sanitizeUrl:()=>Yd,\u0275\u0275sanitizeUrlOrResourceUrl:()=>O0,\u0275\u0275setComponentScope:()=>dy,\u0275\u0275setNgModuleScope:()=>hy,\u0275\u0275styleMap:()=>Js,\u0275\u0275styleMapInterpolate1:()=>Qb,\u0275\u0275styleMapInterpolate2:()=>Xb,\u0275\u0275styleMapInterpolate3:()=>Jb,\u0275\u0275styleMapInterpolate4:()=>qb,\u0275\u0275styleMapInterpolate5:()=>ey,\u0275\u0275styleMapInterpolate6:()=>ty,\u0275\u0275styleMapInterpolate7:()=>ny,\u0275\u0275styleMapInterpolate8:()=>iy,\u0275\u0275styleMapInterpolateV:()=>ry,\u0275\u0275styleProp:()=>vf,\u0275\u0275stylePropInterpolate1:()=>Yf,\u0275\u0275stylePropInterpolate2:()=>Zf,\u0275\u0275stylePropInterpolate3:()=>Qf,\u0275\u0275stylePropInterpolate4:()=>Xf,\u0275\u0275stylePropInterpolate5:()=>Jf,\u0275\u0275stylePropInterpolate6:()=>qf,\u0275\u0275stylePropInterpolate7:()=>em,\u0275\u0275stylePropInterpolate8:()=>tm,\u0275\u0275stylePropInterpolateV:()=>nm,\u0275\u0275syntheticHostListener:()=>Ff,\u0275\u0275syntheticHostProperty:()=>Tf,\u0275\u0275template:()=>Xa,\u0275\u0275templateRefExtractor:()=>Ny,\u0275\u0275text:()=>sy,\u0275\u0275textInterpolate:()=>im,\u0275\u0275textInterpolate1:()=>ju,\u0275\u0275textInterpolate2:()=>rm,\u0275\u0275textInterpolate3:()=>sm,\u0275\u0275textInterpolate4:()=>om,\u0275\u0275textInterpolate5:()=>am,\u0275\u0275textInterpolate6:()=>lm,\u0275\u0275textInterpolate7:()=>cm,\u0275\u0275textInterpolate8:()=>um,\u0275\u0275textInterpolateV:()=>dm,\u0275\u0275trustConstantHtml:()=>A0,\u0275\u0275trustConstantResourceUrl:()=>k0,\u0275\u0275twoWayBindingSet:()=>ay,\u0275\u0275twoWayListener:()=>fm,\u0275\u0275twoWayProperty:()=>hm,\u0275\u0275validateIframeAttribute:()=>S_,\u0275\u0275viewQuery:()=>jb,\u0275\u0275viewQuerySignal:()=>Gb});var t=g(467);function _(e,n){return Object.is(e,n)}let C=null,E=!1,u=1;const b=Symbol("SIGNAL");function s(e){const n=C;return C=e,n}const c={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function o(e){if(E)throw new Error("");if(null===C)return;C.consumerOnSignalRead(e);const n=C.nextProducerIndex++;U(C),ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function k(e){U(e);for(let n=0;n0}function U(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function S(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function R(e){const n=Object.create(Y);n.computation=e;const i=()=>{if(h(n),o(n),n.value===F)throw n.error;return n.value};return i[b]=n,i}const N=Symbol("UNSET"),A=Symbol("COMPUTING"),F=Symbol("ERRORED"),Y={...c,value:N,dirty:!0,error:null,equal:_,producerMustRecompute:e=>e.value===N||e.value===A,producerRecomputeValue(e){if(e.value===A)throw new Error("Detected cycle in computations.");const n=e.value;e.value=A;const i=M(e);let a;try{a=e.computation()}catch(m){a=F,e.error=m}finally{w(e,i)}n!==N&&n!==F&&a!==F&&e.equal(n,a)?e.value=n:(e.value=a,e.version++)}};let ie=function ee(){throw new Error};function $(){ie()}let G=null;function ce(e,n){v()||$(),e.equal(e.value,n)||(e.value=n,function Ye(e){e.version++,function r(){u++}(),p(e),G?.()}(e))}const ve={...c,equal:_,value:void 0};const ct=()=>{},Ct={...c,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:ct};var Ne=g(1413),Ie=g(8359),rt=g(4412),Ee=g(6354),be=g(1594);const Q="https://g.co/ng/security#xss";class pe extends Error{constructor(n,i){super(Re(n,i)),this.code=n}}function Re(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}const bt=Symbol("InputSignalNode#UNSET"),it={...ve,transformFn:void 0,applyValueToInputSignal(e,n){ce(e,n)}},He=Symbol();function De(e,n){const i=Object.create(it);function a(){if(o(i),i.value===bt)throw new pe(-950,!1);return i.value}return i.value=e,i.transformFn=n?.transform,a[b]=i,a}function st(e){return{toString:e}.toString()}const xt="__annotations__",jt="__parameters__",Xt="__prop__metadata__";function un(e,n,i,a,m){return st(()=>{const x=dn(n);function P(...B){if(this instanceof P)return x.call(this,...B),this;const q=new P(...B);return function(Oe){return m&&m(Oe,...B),(Oe.hasOwnProperty(xt)?Oe[xt]:Object.defineProperty(Oe,xt,{value:[]})[xt]).push(q),a&&a(Oe),Oe}}return i&&(P.prototype=Object.create(i.prototype)),P.prototype.ngMetadataName=e,P.annotationCls=P,P})}function dn(e){return function(...i){if(e){const a=e(...i);for(const m in a)this[m]=a[m]}}}function cn(e,n,i){return st(()=>{const a=dn(n);function m(...x){if(this instanceof m)return a.apply(this,x),this;const P=new m(...x);return B.annotation=P,B;function B(q,he,Oe){const qe=q.hasOwnProperty(jt)?q[jt]:Object.defineProperty(q,jt,{value:[]})[jt];for(;qe.length<=Oe;)qe.push(null);return(qe[Oe]=qe[Oe]||[]).push(P),q}}return i&&(m.prototype=Object.create(i.prototype)),m.prototype.ngMetadataName=e,m.annotationCls=m,m})}function rn(e,n,i,a){return st(()=>{const m=dn(n);function x(...P){if(this instanceof x)return m.apply(this,P),this;const B=new x(...P);return function q(he,Oe){if(void 0===he)throw new Error("Standard Angular field decorators are not supported in JIT mode.");const qe=he.constructor,Rt=qe.hasOwnProperty(Xt)?qe[Xt]:Object.defineProperty(qe,Xt,{value:{}})[Xt];Rt[Oe]=Rt.hasOwnProperty(Oe)&&Rt[Oe]||[],Rt[Oe].unshift(B),a&&a(he,Oe,...P)}}return i&&(x.prototype=Object.create(i.prototype)),x.prototype.ngMetadataName=e,x.annotationCls=x,x})}const hn=globalThis;function _e(e){for(let n in e)if(e[n]===_e)return n;throw Error("Could not find renamed property on target object.")}function Ze(e,n){for(const i in n)n.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=n[i])}function Qe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Qe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const i=n.indexOf("\n");return-1===i?n:n.substring(0,i)}function Ot(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}function tt(e,n=100){if(!e||n<1||e.length<=n)return e;if(1==n)return e.substring(0,1)+"...";const i=Math.round(n/2);return e.substring(0,i)+"..."+e.substring(e.length-i)}const ft=_e({__forward_ref__:_e});function Le(e){return e.__forward_ref__=Le,e.toString=function(){return Qe(this())},e}function fe(e){return Ge(e)?e():e}function Ge(e){return"function"==typeof e&&e.hasOwnProperty(ft)&&e.__forward_ref__===Le}function At(e,n,i,a){throw new Error(`ASSERTION ERROR: ${e}`+(null==a?"":` [Expected=> ${i} ${a} ${n} <=Actual]`))}function jn(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const at=jn;function Jt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Be(e){return Et(e,Ue)||Et(e,Ke)}function lt(e){return null!==Be(e)}function Et(e,n){return e.hasOwnProperty(n)?e[n]:null}function _n(e){return e&&(e.hasOwnProperty(ut)||e.hasOwnProperty(mt))?e[ut]:null}const Ue=_e({\u0275prov:_e}),ut=_e({\u0275inj:_e}),Ke=_e({ngInjectableDef:_e}),mt=_e({ngInjectorDef:_e});class xe{constructor(n,i){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=jn({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}let Mt;function me(e){At("setInjectorProfilerContext should never be called in production mode");const n=Mt;return Mt=e,n}function In(e){return e&&!!e.\u0275providers}const Fn=_e({\u0275cmp:_e}),yi=_e({\u0275dir:_e}),ar=_e({\u0275pipe:_e}),_i=_e({\u0275mod:_e}),hi=_e({\u0275fac:_e}),xi=_e({__NG_ELEMENT_ID__:_e}),Ri=_e({__NG_ENV_ID__:_e});function On(e){return"string"==typeof e?e:null==e?"":String(e)}function yn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():On(e)}function Ui(e,n){throw new pe(-201,!1)}var Un=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Un||{});let vn;function Dn(){return vn}function Rn(e){const n=vn;return vn=e,n}function Hn(e,n,i){const a=Be(e);return a&&"root"==a.providedIn?void 0===a.value?a.value=a.factory():a.value:i&Un.Optional?null:void 0!==n?n:void Ui()}const Gi={},lr="__NG_DI_FLAG__",Hr="ngTempTokenPath",wr=/\n/gm,Sr="__source";let Fr;function mr(e){const n=Fr;return Fr=e,n}function es(e,n=Un.Default){if(void 0===Fr)throw new pe(-203,!1);return null===Fr?Hn(e,void 0,n):Fr.get(e,n&Un.Optional?null:void 0,n)}function Li(e,n=Un.Default){return(Dn()||es)(fe(e),n)}function ts(e){throw new pe(202,!1)}function Bn(e,n=Un.Default){return Li(e,zr(n))}function zr(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function us(e){const n=[];for(let i=0;i({token:e})),-1),kt=br(cn("Optional"),8),$t=br(cn("Self"),2),Wt=br(cn("SkipSelf"),4),sn=br(cn("Host"),1);function fn(e,n){return e.hasOwnProperty(hi)?e[hi]:null}function Tn(e){return e.flat(Number.POSITIVE_INFINITY)}function $n(e,n){e.forEach(i=>Array.isArray(i)?$n(i,n):n(i))}function Mi(e,n,i){n>=e.length?e.push(i):e.splice(n,0,i)}function Xn(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Ti(e,n){const i=[];for(let a=0;an;)e[m]=e[m-2],m--;e[n]=i,e[n+1]=a}}function Bi(e,n,i){let a=Wr(e,n);return a>=0?e[1|a]=i:(a=~a,li(e,a,n,i)),a}function Ar(e,n){const i=Wr(e,n);if(i>=0)return e[1|i]}function Wr(e,n){return function Br(e,n,i){let a=0,m=e.length>>i;for(;m!==a;){const x=a+(m-a>>1),P=e[x<n?m=x:a=x+1}return~(m<n){P=x-1;break}}}for(;x-1){let x;for(;++mx?"":m[Oe+1].toLowerCase(),2&a&&he!==qe){if(kr(a))return!1;P=!0}}}}else{if(!P&&!kr(a)&&!kr(q))return!1;if(P&&kr(q))continue;P=!1,a=q|1&a}}return kr(a)||P}function kr(e){return!(1&e)}function Bo(e,n,i,a){if(null===n)return-1;let m=0;if(a||!i){let x=!1;for(;m-1)for(i++;i0?'="'+B+'"':"")+"]"}else 8&a?m+="."+P:4&a&&(m+=" "+P);else""!==m&&!kr(P)&&(n+=bs(x,m),m=""),a=P,x=x||!kr(a);i++}return""!==m&&(n+=bs(x,m)),n}function jo(e){return st(()=>{const n=io(e),i={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Yr.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Zr.Emulated,styles:e.styles||di,_:null,schemas:e.schemas||null,tView:null,id:""};Ts(i);const a=e.dependencies;return i.directiveDefs=$s(a,!1),i.pipeDefs=$s(a,!0),i.id=function la(e){let n=0;const i=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const m of i)n=Math.imul(31,n)+m.charCodeAt(0)|0;return n+=2147483648,"c"+n}(i),i})}function Fs(e){return oi(e)||pi(e)}function aa(e){return null!==e}function Us(e){return st(()=>({type:e.type,bootstrap:e.bootstrap||di,declarations:e.declarations||di,imports:e.imports||di,exports:e.exports||di,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Bs(e,n){if(null==e)return qi;const i={};for(const a in e)if(e.hasOwnProperty(a)){const m=e[a];let x,P,B=Qr.None;Array.isArray(m)?(B=m[0],x=m[1],P=m[2]??x):(x=m,P=m),n?(i[x]=B!==Qr.None?[a,B]:a,n[x]=P):i[x]=a}return i}function Xr(e){return st(()=>{const n=io(e);return Ts(n),n})}function To(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function oi(e){return e[Fn]||null}function pi(e){return e[yi]||null}function er(e){return e[ar]||null}function Or(e){const n=oi(e)||pi(e)||er(e);return null!==n&&n.standalone}function dr(e,n){const i=e[_i]||null;if(!i&&!0===n)throw new Error(`Type ${Qe(e)} does not have '\u0275mod' property.`);return i}function io(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||qi,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||di,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Bs(e.inputs,n),outputs:Bs(e.outputs),debugInfo:null}}function Ts(e){e.features?.forEach(n=>n(e))}function $s(e,n){if(!e)return null;const i=n?er:Fs;return()=>("function"==typeof e?e():e).map(a=>i(a)).filter(aa)}const Ho=new Map;function ys(e){return{\u0275providers:e}}function ro(...e){return{\u0275providers:Vs(0,e),\u0275fromNgModule:!0}}function Vs(e,...n){const i=[],a=new Set;let m;const x=P=>{i.push(P)};return $n(n,P=>{const B=P;js(B,x,[],a)&&(m||=[],m.push(B))}),void 0!==m&&zo(m,x),i}function zo(e,n){for(let i=0;i{n(x,a)})}}function js(e,n,i,a){if(!(e=fe(e)))return!1;let m=null,x=_n(e);const P=!x&&oi(e);if(x||P){if(P&&!P.standalone)return!1;m=e}else{const q=e.ngModule;if(x=_n(q),!x)return!1;m=q}const B=a.has(m);if(P){if(B)return!1;if(a.add(m),P.dependencies){const q="function"==typeof P.dependencies?P.dependencies():P.dependencies;for(const he of q)js(he,n,i,a)}}else{if(!x)return!1;{if(null!=x.imports&&!B){let he;a.add(m);try{$n(x.imports,Oe=>{js(Oe,n,i,a)&&(he||=[],he.push(Oe))})}finally{}void 0!==he&&zo(he,n)}if(!B){const he=fn(m)||(()=>new m);n({provide:m,useFactory:he,deps:di},m),n({provide:$r,useValue:m,multi:!0},m),n({provide:ns,useValue:()=>Li(m),multi:!0},m)}const q=x.providers;if(null!=q&&!B){const he=e;Hs(q,Oe=>{n(Oe,he)})}}}return m!==e&&void 0!==e.providers}function Hs(e,n){for(let i of e)In(i)&&(i=i.\u0275providers),Array.isArray(i)?Hs(i,n):n(i)}const ds=_e({provide:String,useValue:_e});function zs(e){return null!==e&&"object"==typeof e&&ds in e}function hs(e){return"function"==typeof e}const Ws=new xe(""),Ss={},is={};let Rr;function Cs(){return void 0===Rr&&(Rr=new Kr),Rr}class Lr{}class As extends Lr{get destroyed(){return this._destroyed}constructor(n,i,a,m){super(),this.parent=i,this.source=a,this.scopes=m,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ks(n,P=>this.processProvider(P)),this.records.set(Gr,ws(void 0,this)),m.has("environment")&&this.records.set(Lr,ws(void 0,this));const x=this.records.get(Ws);null!=x&&"string"==typeof x.value&&this.scopes.add(x.value),this.injectorDefTypes=new Set(this.get($r,di,Un.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=s(null);try{for(const a of this._ngOnDestroyHooks)a.ngOnDestroy();const i=this._onDestroyHooks;this._onDestroyHooks=[];for(const a of i)a()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),s(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const i=mr(this),a=Rn(void 0);try{return n()}finally{mr(i),Rn(a)}}get(n,i=Gi,a=Un.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Ri))return n[Ri](this);a=zr(a);const x=mr(this),P=Rn(void 0);try{if(!(a&Un.SkipSelf)){let q=this.records.get(n);if(void 0===q){const he=function co(e){return"function"==typeof e||"object"==typeof e&&e instanceof xe}(n)&&Be(n);q=he&&this.injectableDefInScope(he)?ws(ao(n),Ss):null,this.records.set(n,q)}if(null!=q)return this.hydrate(n,q)}return(a&Un.Self?Cs():this.parent).get(n,i=a&Un.Optional&&i===Gi?null:i)}catch(B){if("NullInjectorError"===B.name){if((B[Hr]=B[Hr]||[]).unshift(Qe(n)),x)throw B;return function Dt(e,n,i,a){const m=e[Hr];throw n[Sr]&&m.unshift(n[Sr]),e.message=function vt(e,n,i,a=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let m=Qe(n);if(Array.isArray(n))m=n.map(Qe).join(" -> ");else if("object"==typeof n){let x=[];for(let P in n)if(n.hasOwnProperty(P)){let B=n[P];x.push(P+":"+("string"==typeof B?JSON.stringify(B):Qe(B)))}m=`{${x.join(", ")}}`}return`${i}${a?"("+a+")":""}[${m}]: ${e.replace(wr,"\n ")}`}("\n"+e.message,m,i,a),e.ngTokenPath=m,e[Hr]=null,e}(B,n,"R3InjectorError",this.source)}throw B}finally{Rn(P),mr(x)}}resolveInjectorInitializers(){const n=s(null),i=mr(this),a=Rn(void 0);try{const x=this.get(ns,di,Un.Self);for(const P of x)P()}finally{mr(i),Rn(a),s(n)}}toString(){const n=[],i=this.records;for(const a of i.keys())n.push(Qe(a));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new pe(205,!1)}processProvider(n){let i=hs(n=fe(n))?n:fe(n&&n.provide);const a=function Go(e){return zs(e)?ws(void 0,e.useValue):ws(So(e),Ss)}(n);if(!hs(n)&&!0===n.multi){let m=this.records.get(i);m||(m=ws(void 0,Ss,!0),m.factory=()=>us(m.multi),this.records.set(i,m)),i=n,m.multi.push(n)}this.records.set(i,a)}hydrate(n,i){const a=s(null);try{return i.value===Ss&&(i.value=is,i.value=i.factory()),"object"==typeof i.value&&i.value&&function ca(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}finally{s(a)}}injectableDefInScope(n){if(!n.providedIn)return!1;const i=fe(n.providedIn);return"string"==typeof i?"any"===i||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(n){const i=this._onDestroyHooks.indexOf(n);-1!==i&&this._onDestroyHooks.splice(i,1)}}function ao(e){const n=Be(e),i=null!==n?n.factory:fn(e);if(null!==i)return i;if(e instanceof xe)throw new pe(204,!1);if(e instanceof Function)return function lo(e){if(e.length>0)throw new pe(204,!1);const i=function nn(e){return e&&(e[Ue]||e[Ke])||null}(e);return null!==i?()=>i.factory(e):()=>new e}(e);throw new pe(204,!1)}function So(e,n,i){let a;if(hs(e)){const m=fe(e);return fn(m)||ao(m)}if(zs(e))a=()=>fe(e.useValue);else if(function so(e){return!(!e||!e.useFactory)}(e))a=()=>e.useFactory(...us(e.deps||[]));else if(function Wo(e){return!(!e||!e.useExisting)}(e))a=()=>Li(fe(e.useExisting));else{const m=fe(e&&(e.useClass||e.provide));if(!function Ki(e){return!!e.deps}(e))return fn(m)||ao(m);a=()=>new m(...us(e.deps))}return a}function ws(e,n,i=!1){return{factory:e,value:n,multi:i?[]:void 0}}function ks(e,n){for(const i of e)Array.isArray(i)?ks(i,n):i&&In(i)?ks(i.\u0275providers,n):n(i)}function uo(e,n){e instanceof As&&e.assertNotDestroyed();const a=mr(e),m=Rn(void 0);try{return n()}finally{mr(a),Rn(m)}}function Ko(){return void 0!==Dn()||null!=function Ur(){return Fr}()}function J(e){if(!Ko())throw new pe(-203,!1)}var Pe=function(e){return e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule",e}(Pe||{});function ot(e){const n=hn.ng;if(n&&n.\u0275compilerFacade)return n.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Ht={\u0275\u0275defineInjectable:jn,\u0275\u0275defineInjector:Jt,\u0275\u0275inject:Li,\u0275\u0275invalidFactoryDep:ts,resolveForwardRef:fe},Qt=Function;function wn(e){return"function"==typeof e}const ci=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,Si=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Di=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Qn=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class Ci{constructor(n){this._reflect=n||hn.Reflect}factory(n){return(...i)=>new n(...i)}_zipTypesAndAnnotations(n,i){let a;a=Ti(typeof n>"u"?i.length:n.length);for(let m=0;m"u"?[]:n[m]&&n[m]!=Object?[n[m]]:[],i&&null!=i[m]&&(a[m]=a[m].concat(i[m]));return a}_ownParameters(n,i){if(function Yi(e){return ci.test(e)||Qn.test(e)||Si.test(e)&&!Di.test(e)}(n.toString()))return null;if(n.parameters&&n.parameters!==i.parameters)return n.parameters;const m=n.ctorParameters;if(m&&m!==i.ctorParameters){const B="function"==typeof m?m():m,q=B.map(Oe=>Oe&&Oe.type),he=B.map(Oe=>Oe&&tr(Oe.decorators));return this._zipTypesAndAnnotations(q,he)}const x=n.hasOwnProperty(jt)&&n[jt],P=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",n);return P||x?this._zipTypesAndAnnotations(P,x):Ti(n.length)}parameters(n){if(!wn(n))return[];const i=jr(n);let a=this._ownParameters(n,i);return!a&&i!==Object&&(a=this.parameters(i)),a||[]}_ownAnnotations(n,i){if(n.annotations&&n.annotations!==i.annotations){let a=n.annotations;return"function"==typeof a&&a.annotations&&(a=a.annotations),a}return n.decorators&&n.decorators!==i.decorators?tr(n.decorators):n.hasOwnProperty(xt)?n[xt]:null}annotations(n){if(!wn(n))return[];const i=jr(n),a=this._ownAnnotations(n,i)||[];return(i!==Object?this.annotations(i):[]).concat(a)}_ownPropMetadata(n,i){if(n.propMetadata&&n.propMetadata!==i.propMetadata){let a=n.propMetadata;return"function"==typeof a&&a.propMetadata&&(a=a.propMetadata),a}if(n.propDecorators&&n.propDecorators!==i.propDecorators){const a=n.propDecorators,m={};return Object.keys(a).forEach(x=>{m[x]=tr(a[x])}),m}return n.hasOwnProperty(Xt)?n[Xt]:null}propMetadata(n){if(!wn(n))return{};const i=jr(n),a={};if(i!==Object){const x=this.propMetadata(i);Object.keys(x).forEach(P=>{a[P]=x[P]})}const m=this._ownPropMetadata(n,i);return m&&Object.keys(m).forEach(x=>{const P=[];a.hasOwnProperty(x)&&P.push(...a[x]),P.push(...m[x]),a[x]=P}),a}ownPropMetadata(n){return wn(n)&&this._ownPropMetadata(n,jr(n))||{}}hasLifecycleHook(n,i){return n instanceof Qt&&i in n.prototype}}function tr(e){return e?e.map(n=>new(0,n.type.annotationCls)(...n.args?n.args:[])):[]}function jr(e){const n=e.prototype?Object.getPrototypeOf(e.prototype):null;return(n?n.constructor:null)||Object}const fi=0,mn=1,kn=2,Ai=3,cr=4,nr=5,Hi=6,ho=7,Zi=8,pr=9,rs=10,Wn=11,Nr=12,Yo=13,Gs=14,Qi=15,Ao=16,Ks=17,Pr=18,Ys=19,Zo=20,Os=21,fo=22,Rs=23,Kn=25,mo=1,po=6,fs=7,go=9,rr=10;var ua=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(ua||{});function yr(e){return Array.isArray(e)&&"object"==typeof e[mo]}function hr(e){return Array.isArray(e)&&!0===e[mo]}function da(e){return!!(4&e.flags)}function Zs(e){return e.componentOffset>-1}function Xo(e){return!(1&~e.flags)}function ss(e){return!!e.template}function ha(e){return!!(512&e[kn])}function Cl(e){return!(16&~e.type)}function z(e){return!(256&~e[kn])}class An{constructor(n,i,a){this.previousValue=n,this.currentValue=i,this.firstChange=a}isFirstChange(){return this.firstChange}}function pn(e,n,i,a){null!==n?n.applyValueToInputSignal(n,a):e[i]=a}function zn(){return sr}function sr(e){return e.type.prototype.ngOnChanges&&(e.setInput=ui),wi}function wi(){const e=mi(this),n=e?.current;if(n){const i=e.previous;if(i===qi)e.previous=n;else for(let a in n)i[a]=n[a];e.current=null,this.ngOnChanges(n)}}function ui(e,n,i,a,m){const x=this.declaredInputs[a],P=mi(e)||function Sn(e,n){return e[Fi]=n}(e,{previous:qi,current:null}),B=P.current||(P.current={}),q=P.previous,he=q[x];B[x]=new An(he&&he.currentValue,i,q===qi),pn(e,n,m,i)}zn.ngInherit=!0;const Fi="__ngSimpleChanges__";function mi(e){return e[Fi]||null}const Pn=function(e,n,i){},zi="svg",vi="math";let si=!1;function gi(){return si}function ko(e){si=e}function Vi(e){for(;Array.isArray(e);)e=e[fi];return e}function Jo(e){for(;Array.isArray(e);){if("object"==typeof e[mo])return e;e=e[fi]}return null}function _o(e,n){return Vi(n[e])}function os(e,n){return Vi(n[e.index])}function El(e,n){return e.data[n]}function Sa(e,n){return e[n]}function Es(e,n){const i=n[e];return yr(i)?i:i[fi]}function id(e){return!(128&~e[kn])}function vo(e,n){return null==n?null:e[n]}function Hm(e){e[Ks]=0}function wC(e){1024&e[kn]||(e[kn]|=1024,id(e)&&xl(e))}function zm(e,n){for(;e>0;)n=n[Gs],e--;return n}function rd(e){return!!(9216&e[kn]||e[Rs]?.dirty)}function sd(e){e[rs].changeDetectionScheduler?.notify(1),rd(e)?xl(e):64&e[kn]&&(gi()?(e[kn]|=1024,xl(e)):e[rs].changeDetectionScheduler?.notify())}function xl(e){e[rs].changeDetectionScheduler?.notify();let n=fa(e);for(;null!==n&&!(8192&n[kn])&&(n[kn]|=8192,id(n));)n=fa(n)}function Ec(e,n){if(!(256&~e[kn]))throw new pe(911,!1);null===e[Os]&&(e[Os]=[]),e[Os].push(n)}function od(e,n){if(null===e[Os])return;const i=e[Os].indexOf(n);-1!==i&&e[Os].splice(i,1)}function fa(e){const n=e[Ai];return hr(n)?n[Ai]:n}const ei={lFrame:ip(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Gm(){return ei.bindingsEnabled}function Aa(){return null!==ei.skipHydrationRootTNode}function Km(){ei.bindingsEnabled=!0}function Ym(){ei.bindingsEnabled=!1}function tn(){return ei.lFrame.lView}function bi(){return ei.lFrame.tView}function Zm(e){return ei.lFrame.contextLView=e,e[Zi]}function Qm(e){return ei.lFrame.contextLView=null,e}function Xi(){let e=Xm();for(;null!==e&&64===e.type;)e=e.parent;return e}function Xm(){return ei.lFrame.currentTNode}function Ml(){const e=ei.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}function bo(e,n){const i=ei.lFrame;i.currentTNode=e,i.isParent=n}function ad(){return ei.lFrame.isParent}function ld(){ei.lFrame.isParent=!1}function as(){const e=ei.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Oo(){return ei.lFrame.bindingIndex}function qm(e){return ei.lFrame.bindingIndex=e}function Qs(){return ei.lFrame.bindingIndex++}function Ro(e){const n=ei.lFrame,i=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,i}function ep(e){ei.lFrame.inI18n=e}function kC(e,n){const i=ei.lFrame;i.bindingIndex=i.bindingRootIndex=e,cd(n)}function cd(e){ei.lFrame.currentDirectiveIndex=e}function ud(e){const n=ei.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}function dd(){return ei.lFrame.currentQueryIndex}function xc(e){ei.lFrame.currentQueryIndex=e}function RC(e){const n=e[mn];return 2===n.type?n.declTNode:1===n.type?e[nr]:null}function tp(e,n,i){if(i&Un.SkipSelf){let m=n,x=e;for(;!(m=m.parent,null!==m||i&Un.Host||(m=RC(x),null===m||(x=x[Gs],10&m.type))););if(null===m)return!1;n=m,e=x}const a=ei.lFrame=np();return a.currentTNode=n,a.lView=e,!0}function hd(e){const n=np(),i=e[mn];ei.lFrame=n,n.currentTNode=i.firstChild,n.lView=e,n.tView=i,n.contextLView=e,n.bindingIndex=i.bindingStartIndex,n.inI18n=!1}function np(){const e=ei.lFrame,n=null===e?null:e.child;return null===n?ip(e):n}function ip(e){const n={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=n),n}function rp(){const e=ei.lFrame;return ei.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const sp=rp;function fd(){const e=rp();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 Jr(){return ei.lFrame.selectedIndex}function ma(e){ei.lFrame.selectedIndex=e}function or(){const e=ei.lFrame;return El(e.tView,e.selectedIndex)}function op(){ei.lFrame.currentNamespace=zi}function ap(){ei.lFrame.currentNamespace=vi}function lp(){!function NC(){ei.lFrame.currentNamespace=null}()}function cp(){return ei.lFrame.currentNamespace}let up=!0;function Dl(){return up}function yo(e){up=e}function Mc(e,n){for(let i=n.directiveStart,a=n.directiveEnd;i=a)break}else n[q]<0&&(e[Ks]+=65536),(B>14>16&&(3&e[kn])===n&&(e[kn]+=16384,hp(B,x)):hp(B,x)}const ka=-1;class Il{constructor(n,i,a){this.factory=n,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=a}}function BC(e){return null!=e&&"object"==typeof e&&(null===e.insertBeforeIndex||"number"==typeof e.insertBeforeIndex||Array.isArray(e.insertBeforeIndex))}function gd(e){return e!==ka}function Tl(e){return 32767&e}function Sl(e,n){let i=function jC(e){return e>>16}(e),a=n;for(;i>0;)a=a[Gs],i--;return a}let _d=!0;function Tc(e){const n=_d;return _d=e,n}const fp=255,mp=5;let HC=0;const Co={};function Sc(e,n){const i=pp(e,n);if(-1!==i)return i;const a=n[mn];a.firstCreatePass&&(e.injectorIndex=n.length,vd(a.data,e),vd(n,null),vd(a.blueprint,null));const m=Ac(e,n),x=e.injectorIndex;if(gd(m)){const P=Tl(m),B=Sl(m,n),q=B[mn].data;for(let he=0;he<8;he++)n[x+he]=B[P+he]|q[P+he]}return n[x+8]=m,x}function vd(e,n){e.push(0,0,0,0,0,0,0,0,n)}function pp(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Ac(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let i=0,a=null,m=n;for(;null!==m;){if(a=Ep(m),null===a)return ka;if(i++,m=m[Gs],-1!==a.injectorIndex)return a.injectorIndex|i<<16}return ka}function bd(e,n,i){!function zC(e,n,i){let a;"string"==typeof i?a=i.charCodeAt(0)||0:i.hasOwnProperty(xi)&&(a=i[xi]),null==a&&(a=i[xi]=HC++);const m=a&fp;n.data[e+(m>>mp)]|=1<=0?n&fp:YC:n}(i);if("function"==typeof x){if(!tp(n,e,a))return a&Un.Host?gp(m,0,a):_p(n,i,a,m);try{let P;if(P=x(a),null!=P||a&Un.Optional)return P;Ui()}finally{sp()}}else if("number"==typeof x){let P=null,B=pp(e,n),q=ka,he=a&Un.Host?n[Qi][nr]:null;for((-1===B||a&Un.SkipSelf)&&(q=-1===B?Ac(e,n):n[B+8],q!==ka&&Cp(a,!1)?(P=n[mn],B=Tl(q),n=Sl(q,n)):B=-1);-1!==B;){const Oe=n[mn];if(yp(x,B,Oe.data)){const qe=GC(B,n,i,P,a,he);if(qe!==Co)return qe}q=n[B+8],q!==ka&&Cp(a,n[mn].data[B+8]===he)&&yp(x,B,n)?(P=Oe,B=Tl(q),n=Sl(q,n)):B=-1}}return m}function GC(e,n,i,a,m,x){const P=n[mn],B=P.data[e+8],Oe=kc(B,P,i,null==a?Zs(B)&&_d:a!=P&&!!(3&B.type),m&Un.Host&&x===B);return null!==Oe?pa(n,P,Oe,B):Co}function kc(e,n,i,a,m){const x=e.providerIndexes,P=n.data,B=1048575&x,q=e.directiveStart,Oe=x>>20,Rt=m?B+Oe:e.directiveEnd;for(let Ft=a?B:B+Oe;Ft=q&&Vt.type===i)return Ft}if(m){const Ft=P[q];if(Ft&&ss(Ft)&&Ft.type===i)return q}return null}function pa(e,n,i,a){let m=e[i];const x=n.data;if(function UC(e){return e instanceof Il}(m)){const P=m;P.resolving&&function Zn(e,n){throw n&&n.join(" > "),new pe(-200,e)}(yn(x[i]));const B=Tc(P.canSeeViewProviders);P.resolving=!0;const he=P.injectImpl?Rn(P.injectImpl):null;tp(e,a,Un.Default);try{m=e[i]=P.factory(void 0,x,e,a),n.firstCreatePass&&i>=a.directiveStart&&function PC(e,n,i){const{ngOnChanges:a,ngOnInit:m,ngDoCheck:x}=n.type.prototype;if(a){const P=sr(n);(i.preOrderHooks??=[]).push(e,P),(i.preOrderCheckHooks??=[]).push(e,P)}m&&(i.preOrderHooks??=[]).push(0-e,m),x&&((i.preOrderHooks??=[]).push(e,x),(i.preOrderCheckHooks??=[]).push(e,x))}(i,x[i],n)}finally{null!==he&&Rn(he),Tc(B),P.resolving=!1,sp()}}return m}function yp(e,n,i){return!!(i[n+(e>>mp)]&1<{const n=e.prototype.constructor,i=n[hi]||yd(n),a=Object.prototype;let m=Object.getPrototypeOf(e.prototype).constructor;for(;m&&m!==a;){const x=m[hi]||yd(m);if(x&&x!==i)return x;m=Object.getPrototypeOf(m)}return x=>new x})}function yd(e){return Ge(e)?()=>{const n=yd(fe(e));return n&&n()}:fn(e)}function Ep(e){const n=e[mn],i=n.type;return 2===i?n.declTNode:1===i?e[nr]:null}function Oc(e){return function WC(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const i=e.attrs;if(i){const a=i.length;let m=0;for(;m({attributeName:e,__NG_ELEMENT_ID__:()=>Oc(e)}));let Mp=null;function Cd(){return Mp=Mp||new Ci}function Rc(e){return Dp(Cd().parameters(e))}function Dp(e){return e.map(n=>function QC(e){const n={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let i=0;ifunction XC(e,n){let i=null,a=null;e.hasOwnProperty(Ue)||Object.defineProperty(e,Ue,{get:()=>(null===i&&(i=ot().compileInjectable(Ht,`ng:///${e.name}/\u0275prov.js`,function tw(e,n){const i=n||{providedIn:null},a={name:e.name,type:e,typeArgumentCount:0,providedIn:i.providedIn};return(Ip(i)||Tp(i))&&void 0!==i.deps&&(a.deps=Dp(i.deps)),Ip(i)?a.useClass=i.useClass:function qC(e){return JC in e}(i)?a.useValue=i.useValue:Tp(i)?a.useFactory=i.useFactory:function ew(e){return void 0!==e.useExisting}(i)&&(a.useExisting=i.useExisting),a}(e,n))),i)}),e.hasOwnProperty(hi)||Object.defineProperty(e,hi,{get:()=>{if(null===a){const m=ot();a=m.compileFactory(Ht,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:Rc(e),target:m.FactoryTarget.Injectable})}return a},configurable:!0})}(e,n));function wd(e,n=null,i=null,a){const m=Sp(e,n,i,a);return m.resolveInjectorInitializers(),m}function Sp(e,n=null,i=null,a,m=new Set){const x=[i||di,ro(e)];return a=a||("object"==typeof e?void 0:Qe(e)),new As(x,n||Cs(),a||null,m)}let xs=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=Gi;static#t=this.NULL=new Kr;static create(i,a){if(Array.isArray(i))return wd({name:""},a,i,"");{const m=i.name??"";return wd({name:m},i.parent,i.providers,m)}}static#n=this.\u0275prov=jn({token:e,providedIn:"any",factory:()=>Li(Gr)});static#i=this.__NG_ELEMENT_ID__=-1}return e})();class iw{constructor(n){this.attributeName=n,this.__NG_ELEMENT_ID__=()=>Oc(this.attributeName)}toString(){return`HostAttributeToken ${this.attributeName}`}}function Ed(e){return e.ngOriginalError}class Lo{constructor(){this._console=console}handleError(n){const i=this._findOriginalError(n);this._console.error("ERROR",n),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(n){let i=n&&Ed(n);for(;i&&Ed(i);)i=Ed(i);return i||null}}const kp=new xe("",{providedIn:"root",factory:()=>Bn(Lo).handleError.bind(void 0)});let ga=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=sw;static#t=this.__NG_ENV_ID__=i=>i}return e})();class rw extends ga{constructor(n){super(),this._lView=n}onDestroy(n){return Ec(this._lView,n),()=>od(this._lView,n)}}function sw(){return new rw(tn())}class xd{constructor(){this.destroyed=!1,this.listeners=null,this.errorHandler=Bn(Lo,{optional:!0}),this.destroyRef=Bn(ga),this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(n){if(this.destroyed)throw new pe(953,!1);return(this.listeners??=[]).push(n),{unsubscribe:()=>{const i=this.listeners?.indexOf(n);void 0!==i&&-1!==i&&this.listeners?.splice(i,1)}}}emit(n){if(this.destroyed)throw new pe(953,!1);if(null===this.listeners)return;const i=s(null);try{for(const a of this.listeners)try{a(n)}catch(m){this.errorHandler?.handleError(m)}}finally{s(i)}}}function ow(e){return e.destroyRef}function aw(e){return new xd}function Op(e,n){return De(e,n)}const cw=(Op.required=function lw(e){return De(bt,e)},Op);function uw(){return La(Xi(),tn())}function La(e,n){return new Al(os(e,n))}let Al=(()=>{class e{constructor(i){this.nativeElement=i}static#e=this.__NG_ELEMENT_ID__=uw}return e})();function Rp(e){return e instanceof Al?e.nativeElement:e}function Md(e){return n=>{setTimeout(e,void 0,n)}}const wo=class dw extends Ne.B{constructor(n=!1){super(),this.destroyRef=void 0,this.__isAsync=n,Ko()&&(this.destroyRef=Bn(ga,{optional:!0})??void 0)}emit(n){const i=s(null);try{super.next(n)}finally{s(i)}}subscribe(n,i,a){let m=n,x=i||(()=>null),P=a;if(n&&"object"==typeof n){const q=n;m=q.next?.bind(q),x=q.error?.bind(q),P=q.complete?.bind(q)}this.__isAsync&&(x=Md(x),m&&(m=Md(m)),P&&(P=Md(P)));const B=super.subscribe({next:m,error:x,complete:P});return n instanceof Ie.yU&&n.add(B),B}};function hw(){return this._results[Symbol.iterator]()}class Lc{static#e=Symbol.iterator;get changes(){return this._changes??=new wo}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const i=Lc.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=hw)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,i){return this._results.reduce(n,i)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,i){this.dirty=!1;const a=Tn(n);(this._changesDetected=!function bn(e,n,i){if(e.length!==n.length)return!1;for(let a=0;a=0){const B=Vi(x[P]),q=Id(x,P,B);qr(B,q),n=q;break}}}}return n||null}function Id(e,n,i){return new Fp(e[Ys],n,i)}const Td="__ngContext__";function qr(e,n){yr(n)?(e[Td]=n[Ys],function gw(e){Dd.set(e[Ys],e)}(n)):e[Td]=n}function Ol(e){const n=e[Td];return"number"==typeof n?Pp(n):n||null}function $p(e){return e&&e.constructor&&e.constructor.\u0275cmp}function Vp(e,n){const i=e[mn];for(let a=Kn;a-1?n[a+m]:null}(n.nodeIndex,i)}return n.component}function Xp(e){if(e instanceof Text)return[];const n=ls(e),i=n?n.lView:null;if(null===i)return[];const a=i[mn],m=n.nodeIndex;return a?.data[m]?(void 0===n.directives&&(n.directives=Hp(m,i)),null===n.directives?[]:[...n.directives]):[]}function Sd(e){return ls(e).native}function Tw(e,n){return e.name==n.name?0:e.nameOw}),Ow="ng",t0=new xe(""),kd=new xe("",{providedIn:"platform",factory:()=>"unknown"}),Rw=new xe(""),Lw=new xe(""),Nw=new xe("",{providedIn:"root",factory:()=>qo().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),n0={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},r0=new xe("",{providedIn:"root",factory:()=>n0});function Pw(e){return e}function Fw(){const e=new Rl;return"browser"===Bn(kd)&&(e.store=function Uw(e,n){const i=e.getElementById(n+"-state");if(i?.textContent)try{return JSON.parse(i.textContent)}catch(a){console.warn("Exception while restoring TransferState for app "+n,a)}return{}}(qo(),Bn(e0))),e}let Rl=(()=>{class e{constructor(){this.store={},this.onSerializeCallbacks={}}static#e=this.\u0275prov=jn({token:e,providedIn:"root",factory:Fw});get(i,a){return void 0!==this.store[i]?this.store[i]:a}set(i,a){this.store[i]=a}remove(i){delete this.store[i]}hasKey(i){return this.store.hasOwnProperty(i)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(i,a){this.onSerializeCallbacks[i]=a}toJson(){for(const i in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(i))try{this.store[i]=this.onSerializeCallbacks[i]()}catch(a){console.warn("Exception in onSerialize callback: ",a)}return JSON.stringify(this.store).replace(/null;function Bw(e,n,i=!1){let a=e.getAttribute(Nl);if(null==a)return null;const[m,x]=a.split("|");if(a=i?x:m,!a)return null;const B=i?m:x?`|${x}`:"";let q={};if(""!==a){const Oe=n.get(Rl,null,{optional:!0});null!==Oe&&(q=Oe.get(Ud,[])[Number(a)])}const he={data:q,firstChild:e.firstChild??null};return i&&(he.firstChild=e,$c(he,0,e.nextSibling)),B?e.setAttribute(Nl,B):e.removeAttribute(Nl),he}function Bd(e,n,i=!1){return o0(e,n,i)}function a0(e){let n=e._lView;return 2===n[mn].type?null:(ha(n)&&(n=n[Kn]),n)}const l0="__ngDebugHydrationInfo__";function c0(e){return e[l0]??null}function $c(e,n,i){e.segmentHeads??={},e.segmentHeads[n]=i}function Vd(e,n){return e.segmentHeads?.[n]??null}function u0(e,n){return e.data[Ll]?.[n]??null}function jd(e,n){const i=u0(e,n)??[];let a=0;for(let m of i)a+=m[Pa]*(m[Uc]??1);return a}function Vc(e,n){if(typeof e.disconnectedNodes>"u"){const i=e.data[Bc];e.disconnectedNodes=i?new Set(i):null}return!!e.disconnectedNodes?.has(n)}const Ul=new xe(""),h0=new xe("",{providedIn:"root",factory:()=>!1}),f0=new xe("");let jc,Hc;function Hd(){if(void 0===jc&&(jc=null,hn.trustedTypes))try{jc=hn.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return jc}function Fa(e){return Hd()?.createHTML(e)||e}function zd(){if(void 0===Hc&&(Hc=null,hn.trustedTypes))try{Hc=hn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Hc}function m0(e){return zd()?.createHTML(e)||e}function p0(e){return zd()?.createScript(e)||e}function g0(e){return zd()?.createScriptURL(e)||e}class _a{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Q})`}}class Kw extends _a{getTypeName(){return"HTML"}}class Yw extends _a{getTypeName(){return"Style"}}class Zw extends _a{getTypeName(){return"Script"}}class Qw extends _a{getTypeName(){return"URL"}}class Xw extends _a{getTypeName(){return"ResourceURL"}}function No(e){return e instanceof _a?e.changingThisBreaksApplicationSecurity:e}function Ua(e,n){const i=_0(e);if(null!=i&&i!==n){if("ResourceURL"===i&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${i} (see ${Q})`)}return i===n}function _0(e){return e instanceof _a&&e.getTypeName()||null}function Jw(e){return new Kw(e)}function qw(e){return new Yw(e)}function eE(e){return new Zw(e)}function tE(e){return new Qw(e)}function nE(e){return new Xw(e)}function v0(e){const n=new rE(e);return function sE(){try{return!!(new window.DOMParser).parseFromString(Fa(""),"text/html")}catch{return!1}}()?new iE(n):n}class iE{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const i=(new window.DOMParser).parseFromString(Fa(n),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(n):(i.removeChild(i.firstChild),i)}catch{return null}}}class rE{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const i=this.inertDocument.createElement("template");return i.innerHTML=Fa(n),i}}const oE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function zc(e){return(e=String(e)).match(oE)?e:"unsafe:"+e}function Po(e){const n={};for(const i of e.split(","))n[i]=!0;return n}function Bl(...e){const n={};for(const i of e)for(const a in i)i.hasOwnProperty(a)&&(n[a]=!0);return n}const b0=Po("area,br,col,hr,img,wbr"),y0=Po("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),C0=Po("rp,rt"),Wd=Bl(b0,Bl(y0,Po("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")),Bl(C0,Po("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")),Bl(C0,y0)),Gd=Po("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),w0=Bl(Gd,Po("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,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Po("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")),aE=Po("script,style,template");class lE{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let i=n.firstChild,a=!0,m=[];for(;i;)if(i.nodeType===Node.ELEMENT_NODE?a=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,a&&i.firstChild)m.push(i),i=dE(i);else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let x=uE(i);if(x){i=x;break}i=m.pop()}return this.buf.join("")}startElement(n){const i=E0(n).toLowerCase();if(!Wd.hasOwnProperty(i))return this.sanitizedSomething=!0,!aE.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const a=n.attributes;for(let m=0;m"),!0}endElement(n){const i=E0(n).toLowerCase();Wd.hasOwnProperty(i)&&!b0.hasOwnProperty(i)&&(this.buf.push(""))}chars(n){this.buf.push(M0(n))}}function uE(e){const n=e.nextSibling;if(n&&e!==n.previousSibling)throw x0(n);return n}function dE(e){const n=e.firstChild;if(n&&function cE(e,n){return(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,n))throw x0(n);return n}function E0(e){const n=e.nodeName;return"string"==typeof n?n:"FORM"}function x0(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const hE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fE=/([^\#-~ |!])/g;function M0(e){return e.replace(/&/g,"&").replace(hE,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(fE,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Wc;function D0(e,n){let i=null;try{Wc=Wc||v0(e);let a=n?String(n):"";i=Wc.getInertBodyElement(a);let m=5,x=a;do{if(0===m)throw new Error("Failed to sanitize html because the input is unstable");m--,a=x,x=i.innerHTML,i=Wc.getInertBodyElement(a)}while(a!==x);return Fa((new lE).sanitizeChildren(Kd(i)||i))}finally{if(i){const a=Kd(i)||i;for(;a.firstChild;)a.removeChild(a.firstChild)}}}function Kd(e){return"content"in e&&function mE(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var va=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(va||{});function I0(e){const n=$l();return n?m0(n.sanitize(va.HTML,e)||""):Ua(e,"HTML")?m0(No(e)):D0(qo(),On(e))}function T0(e){const n=$l();return n?n.sanitize(va.STYLE,e)||"":Ua(e,"Style")?No(e):On(e)}function Yd(e){const n=$l();return n?n.sanitize(va.URL,e)||"":Ua(e,"URL")?No(e):zc(On(e))}function Zd(e){const n=$l();if(n)return g0(n.sanitize(va.RESOURCE_URL,e)||"");if(Ua(e,"ResourceURL"))return g0(No(e));throw new pe(904,!1)}function S0(e){const n=$l();if(n)return p0(n.sanitize(va.SCRIPT,e)||"");if(Ua(e,"Script"))return p0(No(e));throw new pe(905,!1)}function A0(e){return Fa(e[0])}function k0(e){return function Gw(e){return Hd()?.createScriptURL(e)||e}(e[0])}function O0(e,n,i){return function pE(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?Zd:Yd}(n,i)(e)}function $l(){const e=tn();return e&&e[rs].sanitizer}const gE=/^>|^->||--!>|)/g,vE="\u200b$1\u200b";const L0={name:"custom-elements"},N0={name:"no-errors-schema"};let Qd=!1;function EE(e){Qd=e}function xE(){return Qd}let Xd=!1;function ME(e){Xd=e}function DE(){return Xd}function Jd(e){At("Must never be called in production mode");const i=function Gc(e){At("Must never be called in production mode");const i=e[Qi][Zi];return i&&i.constructor?oi(i.constructor):null}(e)?.type?.name;return i?` (used in the '${i}' component template)`:""}function U0(e){return e.ownerDocument.defaultView}function B0(e){return e.ownerDocument}function qd(e){return e.ownerDocument.body}function Ms(e){return e instanceof Function?e():e}function ea(e){return"browser"===(e??Bn(xs)).get(kd)}var Yc=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Yc||{});let eh;function th(e,n){return eh(e,n)}function $a(e,n,i,a,m){if(null!=a){let x,P=!1;hr(a)?x=a:yr(a)&&(P=!0,a=a[fi]);const B=Vi(a);0===e&&null!==i?null==m?K0(n,i,B):ba(n,i,B,m||null,!0):1===e&&null!==i?ba(n,i,B,m||null,!0):2===e?Hl(n,B,P):3===e&&n.destroyNode(B),null!=x&&function $E(e,n,i,a,m){const x=i[fs];x!==Vi(i)&&$a(n,e,a,x,m);for(let B=rr;Bn.replace(_E,vE))}(n))}function Zc(e,n,i){return e.createElement(n,i)}function z0(e,n){n[rs].changeDetectionScheduler?.notify(1),qc(e,n,n[Wn],2,null,null)}function W0(e,n){const i=e[go],a=i.indexOf(n);i.splice(a,1)}function Vl(e,n){if(e.length<=rr)return;const i=rr+n,a=e[i];if(a){const m=a[Ao];null!==m&&m!==e&&W0(m,a),n>0&&(e[i-1][cr]=a[cr]);const x=Xn(e,rr+n);!function AE(e,n){z0(e,n),n[fi]=null,n[nr]=null}(a[mn],a);const P=x[Pr];null!==P&&P.detachView(x[mn]),a[Ai]=null,a[cr]=null,a[kn]&=-129}return a}function Qc(e,n){if(!(256&n[kn])){const i=n[Wn];i.destroyNode&&qc(e,n,i,3,null,null),function OE(e){let n=e[Nr];if(!n)return rh(e[mn],e);for(;n;){let i=null;if(yr(n))i=n[Nr];else{const a=n[rr];a&&(i=a)}if(!i){for(;n&&!n[cr]&&n!==e;)yr(n)&&rh(n[mn],n),n=n[Ai];null===n&&(n=e),yr(n)&&rh(n[mn],n),i=n&&n[cr]}n=i}}(n)}}function rh(e,n){if(256&n[kn])return;const i=s(null);try{n[kn]&=-129,n[kn]|=256,n[Rs]&&I(n[Rs]),function PE(e,n){let i;if(null!=e&&null!=(i=e.destroyHooks))for(let a=0;a=0?a[P]():a[-P].unsubscribe(),x+=2}else i[x].call(a[i[x+1]]);null!==a&&(n[ho]=null);const m=n[Os];if(null!==m){n[Os]=null;for(let x=0;x-1){const{encapsulation:x}=e.data[a.directiveStart+m];if(x===Zr.None||x===Zr.Emulated)return null}return os(a,i)}}function ba(e,n,i,a,m){e.insertBefore(n,i,a,m)}function K0(e,n,i){e.appendChild(n,i)}function Y0(e,n,i,a,m){null!==a?ba(e,n,i,a,m):K0(e,n,i)}function Xc(e,n){return e.parentNode(n)}function Z0(e,n,i){return X0(e,n,i)}function Q0(e,n,i){return 40&e.type?os(e,i):null}let oh,X0=Q0;function J0(e,n){X0=e,oh=n}function Jc(e,n,i,a){const m=sh(e,a,n),x=n[Wn],B=Z0(a.parent||n[nr],a,n);if(null!=m)if(Array.isArray(i))for(let q=0;qKn&&sg(e,n,Kn,!1),Pn(P?2:0,m),i(a,m)}finally{ma(x),Pn(P?3:1,m)}}function uh(e,n,i){if(da(n)){const a=s(null);try{const x=n.directiveEnd;for(let P=n.directiveStart;Pnull;function KE(e){Np(e)?eg(e):function jw(e){const n=qo(),i=n.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(x){const P=function Vw(e){return e.textContent?.replace(/\s/gm,"")}(x);return"ngetn"===P||"ngtns"===P?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let a;const m=[];for(;a=i.nextNode();)m.push(a);for(const x of m)"ngetn"===x.textContent?x.replaceWith(n.createTextNode("")):x.remove()}(e)}function dg(e,n,i,a,m){for(let x in n){if(!n.hasOwnProperty(x))continue;const P=n[x];if(void 0===P)continue;a??={};let B,q=Qr.None;Array.isArray(P)?(B=P[0],q=P[1]):B=P;let he=x;if(null!==m){if(!m.hasOwnProperty(x))continue;he=m[x]}0===e?hg(a,i,he,B,q):hg(a,i,he,B)}return a}function hg(e,n,i,a,m){let x;e.hasOwnProperty(i)?(x=e[i]).push(n,a):x=e[i]=[n,a],void 0!==m&&x.push(m)}function ms(e,n,i,a,m,x,P,B){const q=os(n,i);let Oe,he=n.inputs;!B&&null!=he&&(Oe=he[a])?(vh(e,i,Oe,a,m),Zs(n)&&function qE(e,n){const i=Es(n,e);16&i[kn]||(i[kn]|=64)}(i,n.index)):3&n.type&&(a=function JE(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(a),m=null!=P?P(m,n.value||"",a):m,x.setProperty(q,a,m))}function mh(e,n,i,a){if(Gm()){const m=null===a?null:{"":-1},x=function sx(e,n){const i=e.directiveRegistry;let a=null,m=null;if(i)for(let x=0;x0;){const i=e[--n];if("number"==typeof i&&i<0)return i}return 0})(P)!=B&&P.push(B),P.push(i,a,x)}}(e,n,a,zl(e,i,m.hostVars,ai),m)}function Eo(e,n,i,a,m,x){const P=os(e,n);gh(n[Wn],P,x,e.value,i,a,m)}function gh(e,n,i,a,m,x,P){if(null==x)e.removeAttribute(n,m,i);else{const B=null==P?On(x):P(x,a||"",m);e.setAttribute(n,m,B,i)}}function dx(e,n,i,a,m,x){const P=x[n];if(null!==P)for(let B=0;B0&&(i[m-1][cr]=n),a{xl(e.lView)},consumerOnSignalRead(){this.lView[Rs]=this}},Eg=100;function iu(e,n=!0,i=0){const a=e[rs],m=a.rendererFactory;m.begin?.();try{!function yx(e,n){Ch(e,n);let i=0;for(;rd(e);){if(i===Eg)throw new pe(103,!1);i++,Ch(e,1)}}(e,i)}catch(P){throw n&&nu(e,P),P}finally{m.end?.(),a.inlineEffectRunner?.flush()}}function Cx(e,n,i,a){const m=n[kn];if(!(256&~m))return;n[rs].inlineEffectRunner?.flush(),hd(n);let P=null,B=null;(function wx(e){return 2!==e.type})(e)&&(B=function gx(e){return e[Rs]??function _x(e){const n=wg.pop()??Object.create(bx);return n.lView=e,n}(e)}(n),P=M(B));try{Hm(n),qm(e.bindingStartIndex),null!==i&&lg(e,n,i,2,a);const q=!(3&~m);if(q){const qe=e.preOrderCheckHooks;null!==qe&&Dc(n,qe,null)}else{const qe=e.preOrderHooks;null!==qe&&Ic(n,qe,0,null),md(n,0)}if(function Ex(e){for(let n=zp(e);null!==n;n=Wp(n)){if(!(n[kn]&ua.HasTransplantedViews))continue;const i=n[go];for(let a=0;a-1&&(Vl(n,a),Xn(i,a))}this._attachedToViewContainer=!1}Qc(this._lView[mn],this._lView)}onDestroy(n){Ec(this._lView,n)}markForCheck(){Yl(this._cdRefInjectingView||this._lView)}detach(){this._lView[kn]&=-129}reattach(){sd(this._lView),this._lView[kn]|=128}detectChanges(){this._lView[kn]|=1024,iu(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new pe(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,z0(this._lView[mn],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new pe(902,!1);this._appRef=n,sd(this._lView)}}let Zl=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=Ix}return e})();const Mx=Zl,Dx=class extends Mx{constructor(n,i,a){super(),this._declarationLView=n,this._declarationTContainer=i,this.elementRef=a}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,i){return this.createEmbeddedViewImpl(n,i)}createEmbeddedViewImpl(n,i,a){const m=Wl(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:i,dehydratedView:a});return new za(m)}};function Ix(){return ru(Xi(),tn())}function ru(e,n){return 4&e.type?new Dx(n,e,La(e,n)):null}const wh="<-- AT THIS LOCATION";function kx(e){const a=`During serialization, Angular detected DOM nodes that were created outside of Angular context and provided as projectable nodes (likely via \`ViewContainerRef.createComponent\` or \`createComponent\` APIs). Hydration is not supported for such cases, consider refactoring the code to avoid this pattern or using \`ngSkipHydration\` on the host element of the component.\n\n${function su(e){const n=" ";let i="";const a=e;return a.previousSibling&&(i+=" \u2026\n",i+=n+Ql(a.previousSibling)+"\n"),i+=n+Ql(a)+` ${wh}\n`,e.nextSibling&&(i+=" \u2026\n"),e.parentNode&&(i=Ql(a.parentNode,"\n"+i)),i}(e)}\n\nNote: attributes are only displayed to better represent the DOM but have no effect on hydration mismatches.\n\n`;return new pe(-503,a)}const Rx=new Set(["ngh","ng-version","ng-server-context"]);function Eh(e,n="\u2026"){switch(e.type){case 1:return"#text"+(e.value?`(${e.value})`:"");case 2:const a=function Ox(e){const n=[];if(e.attrs)for(let i=0;i${n}`;case 8:return"\x3c!-- ng-container --\x3e";case 4:return"\x3c!-- container --\x3e";default:return`#node(${function Tx(e){switch(e){case 4:return"view container";case 2:return"element";case 8:return"ng-container";case 32:return"icu";case 64:return"i18n";case 16:return"projection";case 1:return"text";default:return""}}(e.type)})`}}function Ql(e,n="\u2026"){const i=e;switch(i.nodeType){case Node.ELEMENT_NODE:const a=i.tagName.toLowerCase(),m=function Lx(e){const n=[];for(let i=0;i${n}`;case Node.TEXT_NODE:const x=i.textContent?Jl(i.textContent):"";return"#text"+(x?`(${x})`:"");case Node.COMMENT_NODE:return`\x3c!-- ${Jl(i.textContent??"")} --\x3e`;default:return`#node(${i.nodeType})`}}function Jl(e,n=50){return e?(e=function Nx(e){return e.replace(/\s+/gm,"")}(e)).length>n?`${e.substring(0,n-1)}\u2026`:e:""}function Sg(e){const n=e[po]??[],a=e[Ai][Wn];for(const m of n)Px(m,a);e[po]=di}function Px(e,n){let i=0,a=e.firstChild;if(a){const m=e.data[Pa];for(;i0&&i[m-1]===a?i[m]=(i[m]||1)+1:i.push(a,"")}return i.join("")}(i,a)}function Kx(e,n){let a,m,x,i=e.parent;for(;null!==i&&ql(i,n);)i=i.parent;null!==i&&3&i.type?(a=i.index,m=Vi(n[a]),x=On(a-Kn)):(a=x=Od,m=n[Qi][fi]);let P=Vi(n[e.index]);if(12&e.type){const q=jl(n,e);q&&(P=q)}let B=kg(m,P,x);if(null===B&&m!==P&&(B=kg(m.ownerDocument.body,P,Rd),null===B))throw function Ax(e,n){const a=`${function xh(e,n,i){const a=" ";let m="";n.prev?(m+=" \u2026\n",m+=a+Eh(n.prev)+"\n"):n.type&&12&n.type&&(m+=" \u2026\n"),i?(m+=a+Eh(n)+"\n",m+=a+`\x3c!-- container --\x3e ${wh}\n`):m+=a+Eh(n)+` ${wh}\n`,m+=" \u2026\n";const x=n.type?sh(e[mn],n,e):null;return x&&(m=Ql(x,"\n"+m)),m}(e,n,!1)}\n\n`,m=function Xl(e){return`To fix this problem:\n * check ${e?`the "${e}"`:"corresponding"} component for hydration-related issues\n * check to see if your template has valid HTML structure\n * or skip hydration by adding the \`ngSkipHydration\` attribute to its host node in a template\n\n`}();throw new pe(-502,"During serialization, Angular was unable to find an element in the DOM:\n\n"+a+m)}(n,e);return B}let Og=()=>null;function Zx(e,n){const i=e[po];return n&&null!==i&&0!==i.length?i[0].data[Pd]===n?i.shift():(Sg(e),null):null}function Wa(e,n){return Og(e,n)}class cu{}class Rg{}class uu{}class Jx{resolveComponentFactory(n){throw function Xx(e){const n=Error(`No component factory found for ${Qe(e)}.`);return n.ngComponent=e,n}(n)}}let ec=(()=>{class e{static#e=this.NULL=new Jx}return e})();class Ng{}let qx=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function eM(){const e=tn(),i=Es(Xi().index,e);return(yr(i)?i:e)[Wn]}()}return e})(),Pg=(()=>{class e{static#e=this.\u0275prov=jn({token:e,providedIn:"root",factory:()=>null})}return e})();const du={};function tM(e,n){if(null!==function f(){return C}())throw new pe(-602,!1)}const Fg=new Set;function Xs(e){Fg.has(e)||(Fg.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Ug(...e){}class gr{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:a=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new wo(!1),this.onMicrotaskEmpty=new wo(!1),this.onStable=new wo(!1),this.onError=new wo(!1),typeof Zone>"u")throw new pe(908,!1);Zone.assertZonePatched();const m=this;m._nesting=0,m._outer=m._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(m._inner=m._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(m._inner=m._inner.fork(Zone.longStackTraceZoneSpec)),m.shouldCoalesceEventChangeDetection=!a&&i,m.shouldCoalesceRunChangeDetection=a,m.lastRequestAnimationFrameId=-1,m.nativeRequestAnimationFrame=function nM(){const e="function"==typeof hn.requestAnimationFrame;let n=hn[e?"requestAnimationFrame":"setTimeout"],i=hn[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&i){const a=n[Zone.__symbol__("OriginalDelegate")];a&&(n=a);const m=i[Zone.__symbol__("OriginalDelegate")];m&&(i=m)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function sM(e){const n=()=>{!function rM(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(hn,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Th(e),e.isCheckStableRunning=!0,Ih(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Th(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,a,m,x,P,B)=>{if(function oM(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(B))return i.invokeTask(m,x,P,B);try{return Bg(e),i.invokeTask(m,x,P,B)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===x.type||e.shouldCoalesceRunChangeDetection)&&n(),$g(e)}},onInvoke:(i,a,m,x,P,B,q)=>{try{return Bg(e),i.invoke(m,x,P,B,q)}finally{e.shouldCoalesceRunChangeDetection&&n(),$g(e)}},onHasTask:(i,a,m,x)=>{i.hasTask(m,x),a===m&&("microTask"==x.change?(e._hasPendingMicrotasks=x.microTask,Th(e),Ih(e)):"macroTask"==x.change&&(e.hasPendingMacrotasks=x.macroTask))},onHandleError:(i,a,m,x)=>(i.handleError(m,x),e.runOutsideAngular(()=>e.onError.emit(x)),!1)})}(m)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!gr.isInAngularZone())throw new pe(909,!1)}static assertNotInAngularZone(){if(gr.isInAngularZone())throw new pe(909,!1)}run(n,i,a){return this._inner.run(n,i,a)}runTask(n,i,a,m){const x=this._inner,P=x.scheduleEventTask("NgZoneEvent: "+m,n,iM,Ug,Ug);try{return x.runTask(P,i,a)}finally{x.cancelTask(P)}}runGuarded(n,i,a){return this._inner.runGuarded(n,i,a)}runOutsideAngular(n){return this._outer.run(n)}}const iM={};function Ih(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 Th(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Bg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function $g(e){e._nesting--,Ih(e)}class Sh{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new wo,this.onMicrotaskEmpty=new wo,this.onStable=new wo,this.onError=new wo}run(n,i,a){return n.apply(i,a)}runGuarded(n,i,a){return n.apply(i,a)}runOutsideAngular(n){return n()}runTask(n,i,a,m){return n.apply(i,a)}}var ta=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(ta||{});const Vg={destroy(){}};function hu(e,n){const i=n?.injector??Bn(xs);(n?.runOnServer||ea(i))&&i.get(Ga).internalCallbacks.push(e)}function jg(e,n){!n&&J();const i=n?.injector??Bn(xs);if(!ea(i))return Vg;Xs("NgAfterRender");const a=i.get(Ga),m=a.handler??=new Wg,x=n?.phase??ta.MixedReadWrite,P=()=>{m.unregister(q),B()},B=i.get(ga).onDestroy(P),q=uo(i,()=>new zg(x,e));return m.register(q),{destroy:P}}function Hg(e,n){!n&&J();const i=n?.injector??Bn(xs);if(!ea(i))return Vg;Xs("NgAfterNextRender");const a=i.get(Ga),m=a.handler??=new Wg,x=n?.phase??ta.MixedReadWrite,P=()=>{m.unregister(q),B()},B=i.get(ga).onDestroy(P),q=uo(i,()=>new zg(x,()=>{P(),e()}));return m.register(q),{destroy:P}}class zg{constructor(n,i){this.phase=n,this.callbackFn=i,this.zone=Bn(gr),this.errorHandler=Bn(Lo,{optional:!0}),Bn(cu,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class Wg{constructor(){this.executingCallbacks=!1,this.buckets={[ta.EarlyRead]:new Set,[ta.Write]:new Set,[ta.MixedReadWrite]:new Set,[ta.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){this.executingCallbacks=!0;for(const n of Object.values(this.buckets))for(const i of n)i.invoke();this.executingCallbacks=!1;for(const n of this.deferredCallbacks)this.buckets[n.phase].add(n);this.deferredCallbacks.clear()}destroy(){for(const n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}}let Ga=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const i=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const a of i)a()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=jn({token:e,providedIn:"root",factory:()=>new e})}return e})();function Ah(e){return void 0!==e.ngModule}function na(e){return!!dr(e)}function fu(e){return!!er(e)}function Gg(e){return!!pi(e)}function tc(e){return!!oi(e)}function cM(e,n){if(Ge(e)&&!(e=fe(e)))throw new Error(`Expected forwardRef function, imported from "${yn(n)}", to return a standalone entity or NgModule but got "${yn(e)||e}".`);if(null==dr(e)){const i=oi(e)||pi(e)||er(e);if(null==i)throw Ah(e)?new Error(`A module with providers was imported from "${yn(n)}". Modules with providers are not supported in standalone components imports.`):new Error(`The "${yn(e)}" type, imported from "${yn(n)}", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`);if(!i.standalone)throw new Error(`The "${yn(e)}" ${function lM(e){return oi(e)?"component":pi(e)?"directive":er(e)?"pipe":"type"}(e)}, imported from "${yn(n)}", is not standalone. Did you forget to add the standalone: true flag?`)}}const mu=!0;class Kg{constructor(){this.ownerNgModule=new Map,this.ngModulesWithSomeUnresolvedDecls=new Set,this.ngModulesScopeCache=new Map,this.standaloneComponentsScopeCache=new Map}resolveNgModulesDecls(){if(0!==this.ngModulesWithSomeUnresolvedDecls.size){for(const n of this.ngModulesWithSomeUnresolvedDecls){const i=dr(n);if(i?.declarations)for(const a of Ms(i.declarations))tc(a)&&this.ownerNgModule.set(a,n)}this.ngModulesWithSomeUnresolvedDecls.clear()}}getComponentDependencies(n,i){this.resolveNgModulesDecls();const a=oi(n);if(null===a)throw new Error(`Attempting to get component dependencies for a type that is not a component: ${n}`);if(a.standalone){const m=this.getStandaloneComponentScope(n,i);return m.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...m.compilation.directives,...m.compilation.pipes,...m.compilation.ngModules]}}{if(!this.ownerNgModule.has(n))return{dependencies:[]};const m=this.getNgModuleScope(this.ownerNgModule.get(n));return m.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...m.compilation.directives,...m.compilation.pipes]}}}registerNgModule(n,i){if(!na(n))throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${n}`);this.ngModulesWithSomeUnresolvedDecls.add(n)}clearScopeCacheFor(n){this.ngModulesScopeCache.delete(n),this.standaloneComponentsScopeCache.delete(n)}getNgModuleScope(n){if(this.ngModulesScopeCache.has(n))return this.ngModulesScopeCache.get(n);const i=this.computeNgModuleScope(n);return this.ngModulesScopeCache.set(n,i),i}computeNgModuleScope(n){const i=dr(n,!0),a={exported:{directives:new Set,pipes:new Set},compilation:{directives:new Set,pipes:new Set}};for(const m of Ms(i.imports))if(na(m)){const x=this.getNgModuleScope(m);ia(x.exported.directives,a.compilation.directives),ia(x.exported.pipes,a.compilation.pipes)}else{if(!Or(m)){a.compilation.isPoisoned=!0;break}if(Gg(m)||tc(m))a.compilation.directives.add(m);else{if(!fu(m))throw new pe(1e3,"The standalone imported type is neither a component nor a directive nor a pipe");a.compilation.pipes.add(m)}}if(!a.compilation.isPoisoned)for(const m of Ms(i.declarations)){if(na(m)||Or(m)){a.compilation.isPoisoned=!0;break}fu(m)?a.compilation.pipes.add(m):a.compilation.directives.add(m)}for(const m of Ms(i.exports))if(na(m)){const x=this.getNgModuleScope(m);ia(x.exported.directives,a.exported.directives),ia(x.exported.pipes,a.exported.pipes),ia(x.exported.directives,a.compilation.directives),ia(x.exported.pipes,a.compilation.pipes)}else fu(m)?a.exported.pipes.add(m):a.exported.directives.add(m);return a}getStandaloneComponentScope(n,i){if(this.standaloneComponentsScopeCache.has(n))return this.standaloneComponentsScopeCache.get(n);const a=this.computeStandaloneComponentScope(n,i);return this.standaloneComponentsScopeCache.set(n,a),a}computeStandaloneComponentScope(n,i){const a={compilation:{directives:new Set([n]),pipes:new Set,ngModules:new Set}};for(const m of Tn(i??[])){const x=fe(m);try{cM(x,n)}catch{return a.compilation.isPoisoned=!0,a}if(na(x)){a.compilation.ngModules.add(x);const P=this.getNgModuleScope(x);if(P.exported.isPoisoned)return a.compilation.isPoisoned=!0,a;ia(P.exported.directives,a.compilation.directives),ia(P.exported.pipes,a.compilation.pipes)}else if(fu(x))a.compilation.pipes.add(x);else{if(!Gg(x)&&!tc(x))return a.compilation.isPoisoned=!0,a;a.compilation.directives.add(x)}}return a}isOrphanComponent(n){const i=oi(n);return!(!i||i.standalone||(this.resolveNgModulesDecls(),this.ownerNgModule.has(n)))}}function ia(e,n){for(const i of e)n.add(i)}const Ka=new Kg;function pu(e,n,i){let a=i?e.styles:null,m=i?e.classes:null,x=0;if(null!==n)for(let P=0;P0&&ng(e,i,x.join(" "))}}(Ft,Ir,en,a),void 0!==i&&function gM(e,n,i){const a=e.projection=[];for(let m=0;m{class e{static#e=this.__NG_ELEMENT_ID__=_M}return e})();function _M(){return e_(Xi(),tn())}const vM=_u,Jg=class extends vM{constructor(n,i,a){super(),this._lContainer=n,this._hostTNode=i,this._hostLView=a}get element(){return La(this._hostTNode,this._hostLView)}get injector(){return new xr(this._hostTNode,this._hostLView)}get parentInjector(){const n=Ac(this._hostTNode,this._hostLView);if(gd(n)){const i=Sl(n,this._hostLView),a=Tl(n);return new xr(i[mn].data[a+8],i)}return new xr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const i=qg(this._lContainer);return null!==i&&i[n]||null}get length(){return this._lContainer.length-rr}createEmbeddedView(n,i,a){let m,x;"number"==typeof a?m=a:null!=a&&(m=a.index,x=a.injector);const P=Wa(this._lContainer,n.ssrId),B=n.createEmbeddedViewImpl(i||{},x,P);return this.insertImpl(B,m,Ha(this._hostTNode,P)),B}createComponent(n,i,a,m,x){const P=n&&!wn(n);let B;if(P)B=i;else{const Vt=i||{};B=Vt.index,a=Vt.injector,m=Vt.projectableNodes,x=Vt.environmentInjector||Vt.ngModuleRef}const q=P?n:new Ya(oi(n)),he=a||this.parentInjector;if(!x&&null==q.ngModule){const en=(P?he:this.parentInjector).get(Lr,null);en&&(x=en)}const Oe=oi(q.componentType??{}),qe=Wa(this._lContainer,Oe?.id??null),Ft=q.create(he,m,qe?.firstChild??null,x);return this.insertImpl(Ft.hostView,B,Ha(this._hostTNode,qe)),Ft}insert(n,i){return this.insertImpl(n,i,!0)}insertImpl(n,i,a){const m=n._lView;if(function CC(e){return hr(e[Ai])}(m)){const B=this.indexOf(n);if(-1!==B)this.detach(B);else{const q=m[Ai],he=new Jg(q,q[nr],q[Ai]);he.detach(he.indexOf(n))}}const x=this._adjustIndex(i),P=this._lContainer;return Gl(P,m,x,a),n.attachToViewContainerRef(),Mi(kh(P),x,n),n}move(n,i){return this.insert(n,i)}indexOf(n){const i=qg(this._lContainer);return null!==i?i.indexOf(n):-1}remove(n){const i=this._adjustIndex(n,-1),a=Vl(this._lContainer,i);a&&(Xn(kh(this._lContainer),i),Qc(a[mn],a))}detach(n){const i=this._adjustIndex(n,-1),a=Vl(this._lContainer,i);return a&&null!=Xn(kh(this._lContainer),i)?new za(a):null}_adjustIndex(n,i=0){return n??this.length+i}};function qg(e){return e[8]}function kh(e){return e[8]||(e[8]=[])}function e_(e,n){let i;const a=n[e.index];return hr(a)?i=a:(i=pg(a,n,null,e),n[e.index]=i,tu(n,i)),t_(i,n,e,a),new Jg(i,e,n)}let t_=i_,Oh=()=>!1;function n_(e,n,i){return Oh(e,n,i)}function i_(e,n,i,a){if(e[fs])return;let m;m=8&i.type?Vi(a):function bM(e,n){const i=e[Wn],a=i.createComment(""),m=os(n,e);return ba(i,Xc(i,m),a,function UE(e,n){return e.nextSibling(n)}(i,m),!1),a}(n,i),e[fs]=m}function yM(e,n,i){if(e[fs]&&e[po])return!0;const a=i[Hi],m=n.index-Kn;if(!a||Pc(n)||Vc(a,m))return!1;const P=Vd(a,m),B=a.data[Ll]?.[m],[q,he]=function Yx(e,n){const i=[];for(const a of n)for(let m=0;m<(a[Uc]??1);m++){const x={data:a,firstChild:null};a[Pa]>0&&(x.firstChild=e,e=lu(a[Pa],e)),i.push(x)}return[e,i]}(P,B);return e[fs]=q,e[po]=he,!0}function CM(e,n,i,a){Oh(e,i,n)||i_(e,n,i,a)}class Rh{constructor(n){this.queryList=n,this.matches=null}clone(){return new Rh(this.queryList)}setDirty(){this.queryList.setDirty()}}class Lh{constructor(n=[]){this.queries=n}createEmbeddedView(n){const i=n.queries;if(null!==i){const a=null!==n.contentQueries?n.contentQueries[0]:i.length,m=[];for(let x=0;xn.trim())}(n):n}}class Nh{constructor(n=[]){this.queries=n}elementStart(n,i){for(let a=0;a0)a.push(P[B/2]);else{const he=x[B+1],Oe=n[-q];for(let qe=rr;qe(o(n),n.value);return i[b]=n,i}(e),a=i[b];return n?.equal&&(a.equal=n.equal),i.set=m=>ce(a,m),i.update=m=>function ue(e,n){v()||$(),ce(e,n(e.value))}(a,m),i.asReadonly=h_.bind(i),i}function h_(){const e=this[b];if(void 0===e.readonlyFn){const n=()=>this();n[b]=e,e.readonlyFn=n}return e.readonlyFn}function f_(e){return $h(e)&&"function"==typeof e.set}function Vh(e,n){let i;const a=R(()=>{i._dirtyCounter();const m=function AM(e,n){const i=e._lView,a=e._queryIndex;if(void 0===i||void 0===a||4&i[kn])return n?void 0:di;const m=Uh(i,a),x=u_(i,a);return m.reset(x,Rp),n?m.first:m._changesDetected||void 0===e._flatValue?e._flatValue=m.toArray():e._flatValue}(i,e);if(n&&void 0===m)throw new pe(-951,!1);return m});return i=a[b],i._dirtyCounter=d_(0),i._flatValue=void 0,a}function m_(){return Vh(!0,!1)}function p_(){return Vh(!0,!0)}function g_(){return Vh(!1,!1)}function __(e,n){const i=e[b];i._lView=tn(),i._queryIndex=n,i._queryList=Uh(i._lView,n),i._queryList.onDirty(()=>i._dirtyCounter.update(a=>a+1))}function v_(e,n){return m_()}const OM=(v_.required=function kM(e,n){return p_()},v_);function RM(e,n){return g_()}function b_(e,n){return m_()}const NM=(b_.required=function LM(e,n){return p_()},b_);function PM(e,n){return g_()}function y_(e){const n=Object.create(it),i=new xd;function a(){return o(n),C_(n.value),n.value}return n.value=e,a[b]=n,a.asReadonly=h_.bind(a),a.set=m=>{n.equal(n.value,m)||(ce(n,m),i.emit(m))},a.update=m=>{C_(n.value),a.set(m(n.value))},a.subscribe=i.subscribe.bind(i),a.destroyRef=i.destroyRef,a}function C_(e){if(e===bt)throw new pe(-952,!1)}function w_(e){return y_(e)}const UM=(w_.required=function FM(){return y_(bt)},w_);class nc{}const BM=rn("ContentChildren",(e,n={})=>({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0,...n}),nc),$M=rn("ContentChild",(e,n={})=>({selector:e,first:!0,isViewQuery:!1,descendants:!0,...n}),nc),VM=rn("ViewChildren",(e,n={})=>({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0,...n}),nc),jM=rn("ViewChild",(e,n)=>({selector:e,first:!0,isViewQuery:!0,descendants:!0,...n}),nc);function x_(e){const n=[],i=new Map;function a(m){let x=i.get(m);if(!x){const P=e(m);i.set(m,x=P.then(KM))}return x}return Za.forEach((m,x)=>{const P=[];m.templateUrl&&P.push(a(m.templateUrl).then(he=>{m.template=he}));const B="string"==typeof m.styles?[m.styles]:m.styles||[];if(m.styles=B,m.styleUrl&&m.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(m.styleUrls?.length){const he=m.styles.length,Oe=m.styleUrls;m.styleUrls.forEach((qe,Rt)=>{B.push(""),P.push(a(qe).then(Ft=>{B[he+Rt]=Ft,Oe.splice(Oe.indexOf(qe),1),0==Oe.length&&(m.styleUrls=void 0)}))})}else m.styleUrl&&P.push(a(m.styleUrl).then(he=>{B.push(he),m.styleUrl=void 0}));const q=Promise.all(P).then(()=>function YM(e){ic.delete(e)}(x));n.push(q)}),D_(),Promise.all(n).then(()=>{})}let Za=new Map;const ic=new Set;function zM(e){return ic.has(e)}function M_(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length||e.styleUrl)}function D_(){const e=Za;return Za=new Map,e}function WM(e){ic.clear(),e.forEach((n,i)=>ic.add(i)),Za=e}function KM(e){return"string"==typeof e?e:e.text()}const vu=new Map;let I_=!0;function jh(e,n){(function ZM(e,n,i){if(n&&n!==i&&I_)throw new Error(`Duplicate module registered for ${e} - ${Qe(n)} vs ${Qe(n.name)}`)})(n,vu.get(n)||null,e),vu.set(n,e)}function T_(e){return vu.get(e)}function QM(e){I_=!e}function S_(e,n,i){const a=tn(),m=or(),x=os(m,a);if(2===m.type&&"iframe"===n.toLowerCase()){const P=x;throw P.src="",P.srcdoc=Fa(""),Hl(a[Wn],P),new pe(-910,!1)}return e}function A_(e){return Object.getPrototypeOf(e.prototype).constructor}function Hh(e){let n=A_(e.type),i=!0;const a=[e];for(;n;){let m;if(ss(e))m=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new pe(903,!1);m=n.\u0275dir}if(m){if(i){a.push(m);const P=e;P.inputs=bu(e.inputs),P.inputTransforms=bu(e.inputTransforms),P.declaredInputs=bu(e.declaredInputs),P.outputs=bu(e.outputs);const B=m.hostBindings;B&&tD(e,B);const q=m.viewQuery,he=m.contentQueries;if(q&&qM(e,q),he&&eD(e,he),XM(e,m),Ze(e.outputs,m.outputs),ss(m)&&m.data.animation){const Oe=e.data;Oe.animation=(Oe.animation||[]).concat(m.data.animation)}}const x=m.features;if(x)for(let P=0;P=0;a--){const m=e[a];m.hostVars=n+=m.hostVars,m.hostAttrs=Ve(m.hostAttrs,i=Ve(i,m.hostAttrs))}}(a)}function XM(e,n){for(const i in n.inputs){if(!n.inputs.hasOwnProperty(i)||e.inputs.hasOwnProperty(i))continue;const a=n.inputs[i];if(void 0!==a&&(e.inputs[i]=a,e.declaredInputs[i]=n.declaredInputs[i],null!==n.inputTransforms)){const m=Array.isArray(a)?a[0]:a;if(!n.inputTransforms.hasOwnProperty(m))continue;e.inputTransforms??={},e.inputTransforms[m]=n.inputTransforms[m]}}}function bu(e){return e===qi?{}:e===di?[]:e}function qM(e,n){const i=e.viewQuery;e.viewQuery=i?(a,m)=>{n(a,m),i(a,m)}:n}function eD(e,n){const i=e.contentQueries;e.contentQueries=i?(a,m,x)=>{n(a,m,x),i(a,m,x)}:n}function tD(e,n){const i=e.hostBindings;e.hostBindings=i?(a,m)=>{n(a,m),i(a,m)}:n}const nD=["providersResolver"],iD=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function k_(e){let i,n=A_(e.type);i=ss(e)?n.\u0275cmp:n.\u0275dir;const a=e;for(const m of nD)a[m]=i[m];if(ss(i))for(const m of iD)a[m]=i[m]}function O_(e){const n=i=>{const a=(Array.isArray(e)?e:e()).map(m=>"function"==typeof m?{directive:fe(m),inputs:qi,outputs:qi}:{directive:fe(m.directive),inputs:L_(m.inputs),outputs:L_(m.outputs)});null===i.hostDirectives?(i.findHostDirectiveDefs=R_,i.hostDirectives=a):i.hostDirectives.unshift(...a)};return n.ngInherit=!0,n}function R_(e,n,i){if(null!==e.hostDirectives)for(const a of e.hostDirectives){const m=pi(a.directive);rD(m.declaredInputs,a.inputs),R_(m,n,i),i.set(m,a),n.push(m)}}function L_(e){if(void 0===e||0===e.length)return qi;const n={};for(let i=0;ii()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Cu extends F_{constructor(n){super(),this.moduleType=n}create(n){return new yu(this.moduleType,n,[])}}class B_ extends ya{constructor(n){super(),this.componentFactoryResolver=new Yg(this),this.instance=null;const i=new As([...n.providers,{provide:ya,useValue:this},{provide:ec,useValue:this.componentFactoryResolver}],n.parent||Cs(),n.debugName,new Set(["environment"]));this.injector=i,n.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function zh(e,n,i=null){return new B_({providers:e,parent:n,debugName:i,runEnvironmentInitializers:!0}).injector}let aD=(()=>{class e{constructor(){this.cachedInjectors=new Map}getOrCreateInjector(i,a,m,x){if(!this.cachedInjectors.has(i)){const P=m.length>0?zh(m,a,x):null;this.cachedInjectors.set(i,P)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(const i of this.cachedInjectors.values())null!==i&&i.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=jn({token:e,providedIn:"environment",factory:()=>new e})}return e})();const wu="__ngAsyncComponentMetadataFn__";function lD(e){return e[wu]??null}function cD(e,n,i){const a=e;return a[wu]=()=>Promise.all(n()).then(m=>(i(...m),a[wu]=null,m)),a[wu]}function $_(e,n,i,a){return st(()=>{const m=e;null!==n&&(m.hasOwnProperty("decorators")&&void 0!==m.decorators?m.decorators.push(...n):m.decorators=n),null!==i&&(m.ctorParameters=i),null!==a&&(m.propDecorators=m.hasOwnProperty("propDecorators")&&void 0!==m.propDecorators?{...m.propDecorators,...a}:a)})}let Qa=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new rt.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const i=this.taskId++;return this.pendingTasks.add(i),i}remove(i){this.pendingTasks.delete(i),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(a){return new(a||e)};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Eu(e){return!!Wh(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Wh(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function V_(e,n){const i=Eu(e),a=Eu(n);return i&&a?function uD(e,n,i){const a=e[Symbol.iterator](),m=n[Symbol.iterator]();for(;;){const x=a.next(),P=m.next();if(x.done&&P.done)return!0;if(x.done||P.done||!i(x.value,P.value))return!1}}(e,n,V_):!(i||!e||"object"!=typeof e&&"function"!=typeof e||a||!n||"object"!=typeof n&&"function"!=typeof n)||Object.is(e,n)}function xo(e,n,i){return e[n]=i}function rc(e,n){return e[n]}function _r(e,n,i){return!Object.is(e[n],i)&&(e[n]=i,!0)}function Ca(e,n,i,a){const m=_r(e,n,i);return _r(e,n+1,a)||m}function xu(e,n,i,a,m){const x=Ca(e,n,i,a);return _r(e,n+2,m)||x}function Ls(e,n,i,a,m,x){const P=Ca(e,n,i,a);return Ca(e,n+2,m,x)||P}function sc(e){return!(32&~e.flags)}function Xa(e,n,i,a,m,x,P,B){const q=tn(),he=bi(),Oe=e+Kn,qe=he.firstCreatePass?function hD(e,n,i,a,m,x,P,B,q){const he=n.consts,Oe=ja(n,e,4,P||null,vo(he,B));mh(n,i,Oe,vo(he,q)),Mc(n,Oe);const qe=Oe.tView=fh(2,Oe,a,m,x,n.directiveRegistry,n.pipeRegistry,null,n.schemas,he,null);return null!==n.queries&&(n.queries.template(n,Oe),qe.queries=n.queries.embeddedTView(Oe)),Oe}(Oe,he,q,n,i,a,m,x,P):he.data[Oe];bo(qe,!1);const Rt=j_(he,q,qe,e);Dl()&&Jc(he,q,Rt,qe),qr(Rt,q);const Ft=pg(Rt,q,Rt,qe);return q[Oe]=Ft,tu(q,Ft),n_(Ft,qe,q),Xo(qe)&&dh(he,q,qe),null!=P&&hh(q,qe,B),Xa}let j_=H_;function H_(e,n,i,a){return yo(!0),n[Wn].createComment("")}function fD(e,n,i,a){const m=n[Hi],x=!m||Aa()||sc(i)||Vc(m,a);if(yo(x),x)return H_(0,n);const P=m.data[Nd]?.[a]??null;null!==P&&null!==i.tView&&null===i.tView.ssrId&&(i.tView.ssrId=P);const B=au(m,e,n,i);return $c(m,a,B),lu(jd(m,a),B)}var vr=function(e){return e[e.NOT_STARTED=0]="NOT_STARTED",e[e.IN_PROGRESS=1]="IN_PROGRESS",e[e.COMPLETE=2]="COMPLETE",e[e.FAILED=3]="FAILED",e}(vr||{});const z_=0,pD=1;var fr=function(e){return e[e.Placeholder=0]="Placeholder",e[e.Loading=1]="Loading",e[e.Complete=2]="Complete",e[e.Error=3]="Error",e}(fr||{}),oc=function(e){return e[e.Initial=-1]="Initial",e}(oc||{});const Ja=0,Mu=1,ac=2,Du=3,W_=4,G_=5;var Gh=function(e){return e[e.Manual=0]="Manual",e[e.Playthrough=1]="Playthrough",e}(Gh||{});function Iu(e,n,i){const a=1===e?G_:W_;null===n[a]&&(n[a]=[]),n[a].push(i)}function Kh(e,n){const i=1===e?G_:W_,a=n[i];if(null!==a){for(const m of a)m();n[i]=null}}function K_(e){Kh(1,e),Kh(0,e)}function Tu(e){return e+1}function wa(e,n){return e[Tu(n.index)]}function Ds(e,n){const i=Tu(n.index);return e.data[i]}function Yh(e,n){return n===fr.Placeholder?e.placeholderBlockConfig?.[z_]??null:n===fr.Loading?e.loadingBlockConfig?.[z_]??null:null}function Y_(e){return e.loadingBlockConfig?.[pD]??null}function Z_(e,n){if(!e||0===e.length)return n;const i=new Set(e);for(const a of n)i.add(a);return e.length===i.size?e:Array.from(i)}function yD(e){return null!==e&&"object"==typeof e&&"number"==typeof e.primaryTmplIndex}const Su={passive:!0,capture:!0},Zh=new WeakMap,Qh=new WeakMap,qa=new WeakMap,Q_=["click","keydown"],X_=["mouseenter","focusin"];let el=null,Xh=0;class Jh{constructor(){this.callbacks=new Set,this.listener=()=>{for(const n of this.callbacks)n()}}}function J_(e,n){let i=Qh.get(e);if(!i){i=new Jh,Qh.set(e,i);for(const a of Q_)e.addEventListener(a,i.listener,Su)}return i.callbacks.add(n),()=>{const{callbacks:a,listener:m}=i;if(a.delete(n),0===a.size){Qh.delete(e);for(const x of Q_)e.removeEventListener(x,m,Su)}}}function q_(e,n){let i=Zh.get(e);if(!i){i=new Jh,Zh.set(e,i);for(const a of X_)e.addEventListener(a,i.listener,Su)}return i.callbacks.add(n),()=>{const{callbacks:a,listener:m}=i;if(a.delete(n),0===a.size){for(const x of X_)e.removeEventListener(x,m,Su);Zh.delete(e)}}}function ev(e,n,i){const a=i.get(gr);let m=qa.get(e);return el=el||a.runOutsideAngular(()=>new IntersectionObserver(x=>{for(const P of x)P.isIntersecting&&qa.has(P.target)&&a.run(qa.get(P.target).listener)})),m||(m=new Jh,a.runOutsideAngular(()=>el.observe(e)),qa.set(e,m),Xh++),m.callbacks.add(n),()=>{qa.has(e)&&(m.callbacks.delete(n),0===m.callbacks.size&&(el?.unobserve(e),qa.delete(e),Xh--),0===Xh&&(el?.disconnect(),el=null))}}function tl(e,n,i,a,m,x,P){const B=e[pr];hu(function q(){if(z(e))return;const he=wa(e,n),Oe=he[Mu];if(Oe!==oc.Initial&&Oe!==fr.Placeholder)return;const qe=function CD(e,n,i){return null==i?e:i>=0?zm(i,e):e[n.index][rr]??null}(e,n,a);if(!qe)return void hu(q,{injector:B});if(z(qe))return;const Rt=function wD(e,n){return _o(Kn+n,e)}(qe,i),Ft=m(Rt,()=>{e!==qe&&od(qe,Ft),x()},B);e!==qe&&Ec(qe,Ft),Iu(P,he,Ft)},{injector:B})}function tv(e,n){const a=n[pr].get(MD);return a.add(e),()=>a.remove(e)}let MD=(()=>{class e{constructor(){this.executingCallbacks=!1,this.idleId=null,this.current=new Set,this.deferred=new Set,this.ngZone=Bn(gr),this.requestIdleCallbackFn=(typeof requestIdleCallback<"u"?requestIdleCallback:setTimeout).bind(globalThis),this.cancelIdleCallbackFn=(typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout).bind(globalThis)}add(i){(this.executingCallbacks?this.deferred:this.current).add(i),null===this.idleId&&this.scheduleIdleCallback()}remove(i){const{current:a,deferred:m}=this;a.delete(i),m.delete(i),0===a.size&&0===m.size&&this.cancelIdleCallback()}scheduleIdleCallback(){const i=()=>{this.cancelIdleCallback(),this.executingCallbacks=!0;for(const a of this.current)a();if(this.current.clear(),this.executingCallbacks=!1,this.deferred.size>0){for(const a of this.deferred)this.current.add(a);this.deferred.clear(),this.scheduleIdleCallback()}};this.idleId=this.requestIdleCallbackFn(()=>this.ngZone.run(i))}cancelIdleCallback(){null!==this.idleId&&(this.cancelIdleCallbackFn(this.idleId),this.idleId=null)}ngOnDestroy(){this.cancelIdleCallback(),this.current.clear(),this.deferred.clear()}static#e=this.\u0275prov=jn({token:e,providedIn:"root",factory:()=>new e})}return e})();function nv(e){return(n,i)=>iv(e,n,i)}function iv(e,n,i){const m=i[pr].get(DD);return m.add(e,n),()=>m.remove(n)}let DD=(()=>{class e{constructor(){this.executingCallbacks=!1,this.timeoutId=null,this.invokeTimerAt=null,this.current=[],this.deferred=[]}add(i,a){this.addToQueue(this.executingCallbacks?this.deferred:this.current,Date.now()+i,a),this.scheduleTimer()}remove(i){const{current:a,deferred:m}=this;-1===this.removeFromQueue(a,i)&&this.removeFromQueue(m,i),0===a.length&&0===m.length&&this.clearTimeout()}addToQueue(i,a,m){let x=i.length;for(let P=0;Pa){x=P;break}li(i,x,a,m)}removeFromQueue(i,a){let m=-1;for(let x=0;x-1&&Vn(i,m,2),m}scheduleTimer(){const i=()=>{this.clearTimeout(),this.executingCallbacks=!0;const m=[...this.current],x=Date.now();for(let B=0;B=0&&Vn(this.current,0,P+1),this.executingCallbacks=!1,this.deferred.length>0){for(let B=0;B0){const m=Date.now(),x=this.current[0];if(null===this.timeoutId||this.invokeTimerAt&&this.invokeTimerAt-x>16){this.clearTimeout();const P=Math.max(x-m,16);this.invokeTimerAt=x,this.timeoutId=setTimeout(i,P)}}}clearTimeout(){null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}ngOnDestroy(){this.clearTimeout(),this.current.length=0,this.deferred.length=0}static#e=this.\u0275prov=jn({token:e,providedIn:"root",factory:()=>new e})}return e})();const ID=new xe("DEFER_BLOCK_DEPENDENCY_INTERCEPTOR"),rv=new xe("");function qh(e){return e.get(rv,null,{optional:!0})?.behavior!==Gh.Manual&&ea(e)}let ef=null;function sv(e,n,i,a){const m=e.consts;null!=i&&(n.placeholderBlockConfig=vo(m,i)),null!=a&&(n.loadingBlockConfig=vo(m,a)),null===ef&&(ef=SD)}function ov(e,n,i,a,m,x,P,B,q){const he=tn(),Oe=bi(),qe=e+Kn;if(Xa(e,null,0,0),Oe.firstCreatePass){Xs("NgDefer");const gn={primaryTmplIndex:n,loadingTmplIndex:a??null,placeholderTmplIndex:m??null,errorTmplIndex:x??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:i??null,loadingState:vr.NOT_STARTED,loadingPromise:null,providers:null};q?.(Oe,gn,B,P),function _D(e,n,i){const a=Tu(n);e.data[a]=i}(Oe,qe,gn)}const Rt=Xi();n_(he[qe],Rt,he);const Vt=[null,oc.Initial,null,null,null,null];!function gD(e,n,i){e[Tu(n)]=i}(he,qe,Vt);const en=()=>K_(Vt);Iu(0,Vt,()=>od(he,en)),Ec(he,en)}function av(e){const n=tn();if(_r(n,Qs(),e)){const a=s(null);try{const m=!!e,x=or(),B=wa(n,x)[Mu];!1===m&&B===oc.Initial?nl(n,x):!0===m&&(B===oc.Initial||B===fr.Placeholder)&&il(n,x)}finally{s(a)}}}function lv(e){const n=tn();if(_r(n,Qs(),e)){const a=s(null);try{const m=!!e,x=n[mn],P=or(),B=Ds(x,P);!0===m&&B.loadingState===vr.NOT_STARTED&&lc(B,n,P)}finally{s(a)}}}function cv(){Cv(tv)}function uv(){wv(tv)}function dv(){const e=tn(),n=Xi(),a=e[pr],m=Ds(e[mn],n);(!qh(a)||null===m.loadingTmplIndex)&&nl(e,n),il(e,n)}function hv(){const e=tn(),n=Xi(),a=Ds(e[mn],n);a.loadingState===vr.NOT_STARTED&&Au(a,e,n)}function fv(e){Cv(nv(e))}function mv(e){wv(nv(e))}function pv(e,n){const i=tn(),a=Xi();nl(i,a),tl(i,a,e,n,q_,()=>il(i,a),0)}function gv(e,n){const i=tn(),a=Xi(),x=Ds(i[mn],a);x.loadingState===vr.NOT_STARTED&&tl(i,a,e,n,q_,()=>lc(x,i,a),1)}function _v(e,n){const i=tn(),a=Xi();nl(i,a),tl(i,a,e,n,J_,()=>il(i,a),0)}function vv(e,n){const i=tn(),a=Xi(),x=Ds(i[mn],a);x.loadingState===vr.NOT_STARTED&&tl(i,a,e,n,J_,()=>lc(x,i,a),1)}function bv(e,n){const i=tn(),a=Xi();nl(i,a),tl(i,a,e,n,ev,()=>il(i,a),0)}function yv(e,n){const i=tn(),a=Xi(),x=Ds(i[mn],a);x.loadingState===vr.NOT_STARTED&&tl(i,a,e,n,ev,()=>lc(x,i,a),1)}function Cv(e){const n=tn(),i=Xi();nl(n,i);const a=e(()=>il(n,i),n);Iu(0,wa(n,i),a)}function wv(e){const n=tn(),i=Xi(),m=Ds(n[mn],i);m.loadingState===vr.NOT_STARTED&&Iu(1,wa(n,i),e(()=>lc(m,n,i),n))}function Uo(e,n,i,a=!1){const m=i[Ai],x=m[mn];if(z(m))return;const P=wa(m,n);if(Mv(P[Mu],e)&&Mv(P[Ja]??-1,e)){const q=Ds(x,n),Oe=a||null===Y_(q)&&null===Yh(q,fr.Loading)&&!Yh(q,fr.Placeholder)?Ev:ef;try{Oe(e,P,i,n,m)}catch(qe){nu(m,qe)}}}function Ev(e,n,i,a,m){const x=function vD(e,n,i){const m=Ds(n[mn],i);switch(e){case fr.Complete:return m.primaryTmplIndex;case fr.Loading:return m.loadingTmplIndex;case fr.Error:return m.errorTmplIndex;case fr.Placeholder:return m.placeholderTmplIndex;default:return null}}(e,m,a);if(null!==x){n[Mu]=e;const P=m[mn],q=El(P,x+Kn),he=0;let Oe;if(yh(i,he),e===fr.Complete){const Ft=Ds(P,a),Vt=Ft.providers;if(Vt&&Vt.length>0){const en=m[pr],gn=function TD(e){return e instanceof gu&&e.injector.__ngOutletInjector}(en)?en:en.get(Lr);Oe=gn.get(aD).getOrCreateInjector(Ft,gn,Vt,"")}}const qe=Wa(i,q.tView.ssrId),Rt=Wl(m,q,null,{dehydratedView:qe,injector:Oe});Gl(i,Rt,he,Ha(q,qe)),Yl(Rt)}}function SD(e,n,i,a,m){const x=Date.now(),B=Ds(m[mn],a);if(null===n[ac]||n[ac]<=x){n[ac]=null;const q=Y_(B),he=null!==n[Du];if(e!==fr.Loading||null===q||he){e>fr.Loading&&he&&(n[Du](),n[Du]=null,n[Ja]=null),Ev(e,n,i,a,m);const Oe=Yh(B,e);null!==Oe&&(n[ac]=x+Oe,xv(Oe,n,a,i,m))}else{n[Ja]=e;const Oe=xv(q,n,a,i,m);n[Du]=Oe}}else n[Ja]=e}function xv(e,n,i,a,m){return iv(e,()=>{const P=n[Ja];n[ac]=null,n[Ja]=null,null!==P&&Uo(P,i,a)},m)}function Mv(e,n){return e{let qe=!1;const Rt=[],Ft=[];for(const Vt of Oe){if("fulfilled"!==Vt.status){qe=!0;break}{const en=Vt.value,gn=oi(en)||pi(en);if(gn)Rt.push(gn);else{const En=er(en);En&&Ft.push(En)}}}if(e.loadingPromise=null,q.remove(he),qe){if(e.loadingState=vr.FAILED,null===e.errorTmplIndex){Jd(n);const en=new pe(750,!1);nu(n,en)}}else{e.loadingState=vr.COMPLETE;const Vt=P.tView;if(Rt.length>0){Vt.directiveRegistry=Z_(Vt.directiveRegistry,Rt);const gn=Vs(!1,...Rt.map(En=>En.type));e.providers=gn}Ft.length>0&&(Vt.pipeRegistry=Z_(Vt.pipeRegistry,Ft))}}):Promise.resolve().then(()=>{e.loadingPromise=null,e.loadingState=vr.COMPLETE,q.remove(he)})}function nl(e,n){Uo(fr.Placeholder,n,e[n.index])}function Dv(e,n,i){e.loadingPromise.then(()=>{e.loadingState===vr.COMPLETE?Uo(fr.Complete,n,i):e.loadingState===vr.FAILED&&Uo(fr.Error,n,i)})}function il(e,n){const i=e[mn],a=e[n.index];if(!qh(e[pr]))return;const x=wa(e,n),P=Ds(i,n);switch(K_(x),P.loadingState){case vr.NOT_STARTED:Uo(fr.Loading,n,a),Au(P,e,n),P.loadingState===vr.IN_PROGRESS&&Dv(P,n,a);break;case vr.IN_PROGRESS:Uo(fr.Loading,n,a),Dv(P,n,a);break;case vr.COMPLETE:Uo(fr.Complete,n,a);break;case vr.FAILED:Uo(fr.Error,n,a)}}function tf(e,n,i,a){const m=tn();return _r(m,Qs(),n)&&(bi(),Eo(or(),m,e,n,i,a)),tf}function rl(e,n){let i=!1,a=Oo();for(let x=1;x>17&32767}function ff(e){return 2|e}function Ea(e){return(131068&e)>>2}function mf(e,n){return-131069&e|n<<2}function pf(e){return 1|e}function Iv(e,n,i,a){const m=e[i+1],x=null===n;let P=a?ra(m):Ea(m),B=!1;for(;0!==P&&(!1===B||x);){const he=e[P+1];ND(e[P],n)&&(B=!0,e[P+1]=a?pf(he):ff(he)),P=a?ra(he):Ea(he)}B&&(e[i+1]=a?ff(m):pf(m))}function ND(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Wr(e,n)>=0}const Mr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Tv(e){return e.substring(Mr.key,Mr.keyEnd)}function PD(e){return e.substring(Mr.value,Mr.valueEnd)}function Sv(e,n){const i=Mr.textEnd;return i===n?-1:(n=Mr.keyEnd=function BD(e,n,i){for(;n32;)n++;return n}(e,Mr.key=n,i),fl(e,n,i))}function Av(e,n){const i=Mr.textEnd;let a=Mr.key=fl(e,n,i);return i===a?-1:(a=Mr.keyEnd=function $D(e,n,i){let a;for(;n=65&&(-33&a)<=90||a>=48&&a<=57);)n++;return n}(e,a,i),a=Ov(e,a,i),a=Mr.value=fl(e,a,i),a=Mr.valueEnd=function VD(e,n,i){let a=-1,m=-1,x=-1,P=n,B=P;for(;P32&&(B=P),x=m,m=a,a=-33&q}return B}(e,a,i),Ov(e,a,i))}function kv(e){Mr.key=0,Mr.keyEnd=0,Mr.value=0,Mr.valueEnd=0,Mr.textEnd=e.length}function fl(e,n,i){for(;n=0;i=Av(n,i))Fv(e,Tv(n),PD(n))}function Lv(e){eo(YD,Mo,e,!0)}function Mo(e,n){for(let i=function FD(e){return kv(e),Sv(e,fl(e,0,Mr.textEnd))}(n);i>=0;i=Sv(n,i))Bi(e,Tv(n),!0)}function qs(e,n,i,a){const m=tn(),x=bi(),P=Ro(2);x.firstUpdatePass&&Pv(x,e,P,a),n!==ai&&_r(m,P,n)&&Uv(x,x.data[Jr()],m,m[Wn],e,m[P+1]=function QD(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Qe(No(e)))),e}(n,i),a,P)}function eo(e,n,i,a){const m=bi(),x=Ro(2);m.firstUpdatePass&&Pv(m,null,x,a);const P=tn();if(i!==ai&&_r(P,x,i)){const B=m.data[Jr()];if($v(B,a)&&!Nv(m,x)){let q=a?B.classesWithoutHost:B.stylesWithoutHost;null!==q&&(i=Ot(q,i||"")),_f(m,B,P,i,a)}else!function ZD(e,n,i,a,m,x,P,B){m===ai&&(m=di);let q=0,he=0,Oe=0=e.expandoStartIndex}function Pv(e,n,i,a){const m=e.data;if(null===m[i+1]){const x=m[Jr()],P=Nv(e,i);$v(x,a)&&null===n&&!P&&(n=!1),n=function HD(e,n,i,a){const m=ud(e);let x=a?n.residualClasses:n.residualStyles;if(null===m)0===(a?n.classBindings:n.styleBindings)&&(i=cc(i=yf(null,e,n,i,a),n.attrs,a),x=null);else{const P=n.directiveStylingLast;if(-1===P||e[P]!==m)if(i=yf(m,e,n,i,a),null===x){let q=function zD(e,n,i){const a=i?n.classBindings:n.styleBindings;if(0!==Ea(a))return e[ra(a)]}(e,n,a);void 0!==q&&Array.isArray(q)&&(q=yf(null,e,n,q[1],a),q=cc(q,n.attrs,a),function WD(e,n,i,a){e[ra(i?n.classBindings:n.styleBindings)]=a}(e,n,a,q))}else x=function GD(e,n,i){let a;const m=n.directiveEnd;for(let x=1+n.directiveStylingLast;x0)&&(he=!0)):Oe=i,m)if(0!==q){const Rt=ra(e[B+1]);e[a+1]=ku(Rt,B),0!==Rt&&(e[Rt+1]=mf(e[Rt+1],a)),e[B+1]=function kD(e,n){return 131071&e|n<<17}(e[B+1],a)}else e[a+1]=ku(B,0),0!==B&&(e[B+1]=mf(e[B+1],a)),B=a;else e[a+1]=ku(q,0),0===B?B=a:e[q+1]=mf(e[q+1],a),q=a;he&&(e[a+1]=ff(e[a+1])),Iv(e,Oe,a,!0),Iv(e,Oe,a,!1),function LD(e,n,i,a,m){const x=m?e.residualClasses:e.residualStyles;null!=x&&"string"==typeof n&&Wr(x,n)>=0&&(i[a+1]=pf(i[a+1]))}(n,Oe,e,a,x),P=ku(B,q),x?n.classBindings=P:n.styleBindings=P}(m,x,n,i,P,a)}}function yf(e,n,i,a,m){let x=null;const P=i.directiveEnd;let B=i.directiveStylingLast;for(-1===B?B=i.directiveStart:B++;B0;){const q=e[m],he=Array.isArray(q),Oe=he?q[1]:q,qe=null===Oe;let Rt=i[m+1];Rt===ai&&(Rt=qe?di:void 0);let Ft=qe?Ar(Rt,a):Oe===a?Rt:void 0;if(he&&!Ou(Ft)&&(Ft=Ar(q,a)),Ou(Ft)&&(B=Ft,P))return B;const Vt=e[m+1];m=P?ra(Vt):Ea(Vt)}if(null!==n){let q=x?n.residualClasses:n.residualStyles;null!=q&&(B=Ar(q,a))}return B}function Ou(e){return void 0!==e}function $v(e,n){return!!(e.flags&(n?8:16))}function Vv(e,n,i){eo(Bi,Mo,sl(tn(),e,n,i),!0)}function jv(e,n,i,a,m){eo(Bi,Mo,ol(tn(),e,n,i,a,m),!0)}function Hv(e,n,i,a,m,x,P){eo(Bi,Mo,al(tn(),e,n,i,a,m,x,P),!0)}function zv(e,n,i,a,m,x,P,B,q){eo(Bi,Mo,ll(tn(),e,n,i,a,m,x,P,B,q),!0)}function Wv(e,n,i,a,m,x,P,B,q,he,Oe){eo(Bi,Mo,cl(tn(),e,n,i,a,m,x,P,B,q,he,Oe),!0)}function Gv(e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt){eo(Bi,Mo,ul(tn(),e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt),!0)}function Kv(e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt,Ft,Vt){eo(Bi,Mo,dl(tn(),e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt,Ft,Vt),!0)}function Yv(e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt,Ft,Vt,en,gn){eo(Bi,Mo,hl(tn(),e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt,Ft,Vt,en,gn),!0)}function Zv(e){eo(Bi,Mo,rl(tn(),e),!0)}function Qv(){return tn()[Qi][Zi]}class XD{destroy(n){}updateValue(n,i){}swap(n,i){const a=Math.min(n,i),m=Math.max(n,i),x=this.detach(m);if(m-a>1){const P=this.detach(a);this.attach(a,x),this.attach(m,P)}else this.attach(a,x)}move(n,i){this.attach(i,this.detach(n))}}function Cf(e,n,i,a,m){return e===i&&Object.is(n,a)?1:Object.is(m(e,n),m(i,a))?-1:0}function wf(e,n,i,a){return!(void 0===n||!n.has(a)||(e.attach(i,n.get(a)),n.delete(a),0))}function Xv(e,n,i,a,m){if(wf(e,n,a,i(a,m)))e.updateValue(a,m);else{const x=e.create(a,m);e.attach(a,x)}}function Jv(e,n,i,a){const m=new Set;for(let x=n;x<=i;x++)m.add(a(x,e.at(x)));return m}class qv{constructor(){this.kvMap=new Map,this._vMap=void 0}has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;const i=this.kvMap.get(n);return void 0!==this._vMap&&this._vMap.has(i)?(this.kvMap.set(n,this._vMap.get(i)),this._vMap.delete(i)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,i){if(this.kvMap.has(n)){let a=this.kvMap.get(n);void 0===this._vMap&&(this._vMap=new Map);const m=this._vMap;for(;m.has(a);)a=m.get(a);m.set(a,i)}else this.kvMap.set(n,i)}forEach(n){for(let[i,a]of this.kvMap)if(n(a,i),void 0!==this._vMap){const m=this._vMap;for(;m.has(a);)a=m.get(a),n(a,i)}}}function eb(e,n,i){Xs("NgControlFlow");const a=tn(),m=Qs(),x=Ef(a,Kn+e);if(_r(a,m,n)){const B=s(null);try{if(yh(x,0),-1!==n){const q=xf(a[mn],Kn+n),he=Wa(x,q.tView.ssrId);Gl(x,Wl(a,q,i,{dehydratedView:he}),0,Ha(q,he))}}finally{s(B)}}else{const B=yg(x,0);void 0!==B&&(B[Zi]=i)}}class qD{constructor(n,i,a){this.lContainer=n,this.$implicit=i,this.$index=a}get $count(){return this.lContainer.length-rr}}function tb(e){return e}function nb(e,n){return n}class eI{constructor(n,i,a){this.hasEmptyBlock=n,this.trackByFn=i,this.liveCollection=a}}function ib(e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt){Xs("NgControlFlow");const Ft=void 0!==q,Vt=tn(),en=B?P.bind(Vt[Qi][Zi]):P,gn=new eI(Ft,en);Vt[Kn+e]=gn,Xa(e+1,n,i,a,m,x),Ft&&Xa(e+2,q,he,Oe,qe,Rt)}class tI extends XD{constructor(n,i,a){super(),this.lContainer=n,this.hostLView=i,this.templateTNode=a,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-rr}at(n){return this.getLView(n)[Zi].$implicit}attach(n,i){const a=i[Hi];this.needsIndexUpdate||=n!==this.length,Gl(this.lContainer,i,n,Ha(this.templateTNode,a))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function nI(e,n){return Vl(e,n)}(this.lContainer,n)}create(n,i){const a=Wa(this.lContainer,this.templateTNode.tView.ssrId);return Wl(this.hostLView,this.templateTNode,new qD(this.lContainer,i,n),{dehydratedView:a})}destroy(n){Qc(n[mn],n)}updateValue(n,i){this.getLView(n)[Zi].$implicit=i}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n{e.destroy(B)})}(P,e,x.trackByFn),P.updateIndexes(),x.hasEmptyBlock){const B=Qs(),q=0===P.length;if(_r(a,B,q)){const he=i+2,Oe=Ef(a,he);if(q){const qe=xf(m,he),Rt=Wa(Oe,qe.tView.ssrId);Gl(Oe,Wl(a,qe,void 0,{dehydratedView:Rt}),0,Ha(qe,Rt))}else yh(Oe,0)}}}finally{s(n)}}function Ef(e,n){return e[n]}function xf(e,n){return El(e,n)}function Ru(e,n,i,a){const m=tn(),x=bi(),P=Kn+e,B=m[Wn],q=x.firstCreatePass?function rI(e,n,i,a,m,x){const P=n.consts,q=ja(n,e,2,a,vo(P,m));return mh(n,i,q,vo(P,x)),null!==q.attrs&&pu(q,q.attrs,!1),null!==q.mergedAttrs&&pu(q,q.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,q),q}(P,x,m,n,i,a):x.data[P],he=sb(x,m,q,B,n,e);m[P]=he;const Oe=Xo(q);return bo(q,!0),ig(B,he,q),!sc(q)&&Dl()&&Jc(x,m,he,q),0===function EC(){return ei.lFrame.elementDepthCount}()&&qr(he,m),function xC(){ei.lFrame.elementDepthCount++}(),Oe&&(dh(x,m,q),uh(x,q,m)),null!==a&&hh(m,q),Ru}function Lu(){let e=Xi();ad()?ld():(e=e.parent,bo(e,!1));const n=e;(function DC(e){return ei.skipHydrationRootTNode===e})(n)&&function TC(){ei.skipHydrationRootTNode=null}(),function MC(){ei.lFrame.elementDepthCount--}();const i=bi();return i.firstCreatePass&&(Mc(i,e),da(e)&&i.queries.elementEnd(e)),null!=n.classesWithoutHost&&function $C(e){return!!(8&e.flags)}(n)&&_f(i,n,tn(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function VC(e){return!!(16&e.flags)}(n)&&_f(i,n,tn(),n.stylesWithoutHost,!1),Lu}function Mf(e,n,i,a){return Ru(e,n,i,a),Lu(),Mf}let sb=(e,n,i,a,m,x)=>(yo(!0),Zc(a,m,cp()));function sI(e,n,i,a,m,x){const P=n[Hi],B=!P||Aa()||sc(i)||Vc(P,x);if(yo(B),B)return Zc(a,m,cp());const q=au(P,e,n,i);return u0(P,x)&&$c(P,x,q.nextSibling),P&&(Lp(i)||Np(q))&&Zs(i)&&(function IC(e){ei.skipHydrationRootTNode=e}(i),eg(q)),q}function Nu(e,n,i){const a=tn(),m=bi(),x=e+Kn,P=m.firstCreatePass?function aI(e,n,i,a,m){const x=n.consts,P=vo(x,a),B=ja(n,e,8,"ng-container",P);return null!==P&&pu(B,P,!0),mh(n,i,B,vo(x,m)),null!==n.queries&&n.queries.elementStart(n,B),B}(x,m,a,n,i):m.data[x];bo(P,!0);const B=ob(m,a,P,e);return a[x]=B,Dl()&&Jc(m,a,B,P),qr(B,a),Xo(P)&&(dh(m,a,P),uh(m,P,a)),null!=i&&hh(a,P),Nu}function Pu(){let e=Xi();const n=bi();return ad()?ld():(e=e.parent,bo(e,!1)),n.firstCreatePass&&(Mc(n,e),da(e)&&n.queries.elementEnd(e)),Pu}function Df(e,n,i){return Nu(e,n,i),Pu(),Df}let ob=(e,n,i,a)=>(yo(!0),ih(n[Wn],""));function lI(e,n,i,a){let m;const x=n[Hi],P=!x||Aa()||sc(i);if(yo(P),P)return ih(n[Wn],"");const B=au(x,e,n,i),q=function zw(e,n){const i=e.data;let a=i[Ld]?.[n]??null;return null===a&&i[Ll]?.[n]&&(a=jd(e,n)),a}(x,a);return $c(x,a,B),m=lu(q,B),m}function ab(){return tn()}function If(e,n,i){const a=tn();return _r(a,Qs(),n)&&ms(bi(),or(),a,e,n,a[Wn],i,!0),If}function Tf(e,n,i){const a=tn();if(_r(a,Qs(),n)){const x=bi(),P=or();ms(x,P,a,e,n,bg(ud(x.data),P,a),i,!0)}return Tf}const xa=void 0;var dI=["en",[["a","p"],["AM","PM"],xa],[["AM","PM"],xa,xa],[["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"]],xa,[["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"]],xa,[["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}",xa,"{1} 'at' {0}",xa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function uI(e){const i=Math.floor(Math.abs(e)),a=e.toString().replace(/^[^.]*\.?/,"").length;return 1===i&&0===a?1:5}];let ml={};function hI(e,n,i){"string"!=typeof n&&(i=n,n=e[pl.LocaleId]),n=n.toLowerCase().replace(/_/g,"-"),ml[n]=e,i&&(ml[n][pl.ExtraData]=i)}function Sf(e){const n=function pI(e){return e.toLowerCase().replace(/_/g,"-")}(e);let i=cb(n);if(i)return i;const a=n.split("-")[0];if(i=cb(a),i)return i;if("en"===a)return dI;throw new pe(701,!1)}function fI(e){return Sf(e)[pl.CurrencyCode]||null}function lb(e){return Sf(e)[pl.PluralCase]}function cb(e){return e in ml||(ml[e]=hn.ng&&hn.ng.common&&hn.ng.common.locales&&hn.ng.common.locales[e]),ml[e]}function mI(){ml={}}var pl=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(pl||{});const gI=["zero","one","two","few","many"],Ma="en-US",Fu={marker:"element"},Uu={marker:"ICU"};var ps=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}(ps||{});let ub=Ma;function Af(e){"string"==typeof e&&(ub=e.toLowerCase().replace(/_/g,"-"))}function db(e,n,i){const a=n.insertBeforeIndex,m=Array.isArray(a)?a[0]:a;return null===m?Q0(e,0,i):Vi(i[m])}function hb(e,n,i,a,m){const x=n.insertBeforeIndex;if(Array.isArray(x)){let P=a,B=null;if(3&n.type||(B=P,P=m),null!==P&&-1===n.componentOffset)for(let q=1;q1)for(let i=e.length-2;i>=0;i--){const a=e[i];mb(a)||yI(a,n)&&null===CI(a)&&wI(a,n.index)}}function mb(e){return!(64&e.type)}function yI(e,n){return mb(n)||e.index>n.index}function CI(e){const n=e.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function wI(e,n){const i=e.insertBeforeIndex;Array.isArray(i)?i[0]=n:(J0(db,hb),e.insertBeforeIndex=n)}function uc(e,n){const i=e.data[n];return null===i||"string"==typeof i?null:i.hasOwnProperty("currentCaseLViewIndex")?i:i.value}function MI(e,n,i){const a=ch(e,i,64,null,null);return fb(n,a),a}function Bu(e,n){const i=n[e.currentCaseLViewIndex];return null===i?i:i<0?~i:i}function pb(e){return e>>>17}function gb(e){return(131070&e)>>>1}let dc=0,hc=0;function vb(e,n,i){const a=e[Wn];switch(i){case Node.COMMENT_NODE:return ih(a,n);case Node.TEXT_NODE:return nh(a,n);case Node.ELEMENT_NODE:return Zc(a,n,null)}}let fc=(e,n,i,a)=>(yo(!0),vb(e,i,a));function SI(e,n,i,a){return yo(!0),vb(e,i,a)}function bb(e,n,i,a){const m=i[Wn];let P,x=null;for(let B=0;B>>1,i),null,null,Ft,Vt,null)}else switch(q){case Uu:const he=n[++B],Oe=n[++B];null===i[Oe]&&qr(i[Oe]=fc(i,Oe,he,Node.COMMENT_NODE),i);break;case Fu:const qe=n[++B],Rt=n[++B];null===i[Rt]&&qr(i[Rt]=fc(i,Rt,qe,Node.ELEMENT_NODE),i)}}}function yb(e,n,i,a,m){for(let x=0;x>>2;switch(3&Oe){case 1:const Rt=i[++he],Ft=i[++he],Vt=e.data[qe];"string"==typeof Vt?gh(n[Wn],n[qe],null,Vt,Rt,q,Ft):ms(e,Vt,n,Rt,q,n[Wn],Ft,!1);break;case 0:const en=n[qe];null!==en&&H0(n[Wn],en,q);break;case 2:OI(e,uc(e,qe),n,q);break;case 3:Cb(e,uc(e,qe),a,n)}}}}else{const q=i[x+1];if(q>0&&!(3&~q)){const Oe=uc(e,q>>>2);n[Oe.currentCaseLViewIndex]<0&&Cb(e,Oe,a,n)}}x+=B}}function Cb(e,n,i,a){let m=a[n.currentCaseLViewIndex];if(null!==m){let x=dc;m<0&&(m=a[n.currentCaseLViewIndex]=~m,x=-1),yb(e,a,n.update[m],i,x)}}function OI(e,n,i,a){const m=function RI(e,n){let i=e.cases.indexOf(n);if(-1===i)switch(e.type){case 1:{const a=function _I(e,n){const i=lb(n)(parseInt(e,10)),a=gI[i];return void 0!==a?a:"other"}(n,function bI(){return ub}());i=e.cases.indexOf(a),-1===i&&"other"!==a&&(i=e.cases.indexOf("other"));break}case 0:i=e.cases.indexOf("other")}return-1===i?null:i}(n,a);if(Bu(n,i)!==m&&(wb(e,n,i),i[n.currentCaseLViewIndex]=null===m?null:~m,null!==m)){const P=i[n.anchorIdx];P&&bb(e,n.create[m],i,P)}}function wb(e,n,i){let a=Bu(n,i);if(null!==a){const m=n.remove[a];for(let x=0;x0){const B=_o(P,i);null!==B&&Hl(i[Wn],B)}else wb(e,uc(e,~P),i)}}}function LI(){const e=[];let i,a,n=-1;function x(B,q){n=0;const he=Bu(B,q);a=null!==he?B.remove[he]:di}function P(){if(n0?i[B]:(e.push(n,a),x(i[mn].data[~B],i),P())}return 0===e.length?null:(a=e.pop(),n=e.pop(),P())}return function m(B,q){for(i=q;e.length;)e.pop();return x(B.value,q),P}}const $u=/\ufffd(\d+):?\d*\ufffd/gi,NI=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,PI=/\ufffd(\d+)\ufffd/,xb=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,mc="\ufffd",FI=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,UI=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,BI=/\uE500/g;function Mb(e,n,i,a,m,x,P){const B=zl(e,a,1,null);let q=B<i.length&&i.push(q)}return{type:a,mainBinding:m,cases:n,values:i}}function kf(e){if(!e)return[];let n=0;const i=[],a=[],m=/[{}]/g;let x;for(m.lastIndex=0;x=m.exec(e);){const B=x.index;if("}"==x[0]){if(i.pop(),0==i.length){const q=e.substring(n,B);xb.test(q)?a.push(KI(q)):a.push(q),n=B+1}}else{if(0==i.length){const q=e.substring(n,B);a.push(q),n=B+1}i.push("{")}}const P=e.substring(n);return a.push(P),a}function YI(e,n,i,a,m,x,P,B,q){const he=[],Oe=[],qe=[];i.cases.push(P),i.create.push(he),i.remove.push(Oe),i.update.push(qe);const Ft=v0(qo()).getInertBodyElement(B),Vt=Kd(Ft)||Ft;return Vt?Sb(e,n,i,a,m,he,Oe,qe,Vt,x,q,0):0}function Sb(e,n,i,a,m,x,P,B,q,he,Oe,qe){let Rt=0,Ft=q.firstChild;for(;Ft;){const Vt=zl(n,a,1,null);switch(Ft.nodeType){case Node.ELEMENT_NODE:const en=Ft,gn=en.tagName.toLowerCase();if(Wd.hasOwnProperty(gn)){Of(x,Fu,gn,he,Vt),n.data[Vt]=gn;const ki=en.attributes;for(let Ir=0;Ir>>ps.SHIFT;let qe=e[Oe],Rt=!1;null===qe&&(qe=e[Oe]=fc(e,Oe,n[x],(P&ps.COMMENT)===ps.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),Rt=Dl()),he&&null!==i&&Rt&&ba(m,i,qe,a,!1)}})(m,q.create,Oe,B&&8&B.type?m[B.index]:null),ep(!0)}function Lf(){ep(!1)}function Ob(e,n,i){Rf(e,n,i),Lf()}function Rb(e,n){const i=bi(),a=vo(i.consts,n);!function HI(e,n,i){const m=Xi().index,x=[];if(e.firstCreatePass&&null===e.data[n]){for(let P=0;P0){const a=e.data[i];yb(e,n,Array.isArray(a)?a:a.update,Oo()-hc-1,dc)}dc=0,hc=0}(bi(),tn(),e+Kn)}function Nb(e,n={}){return function oT(e,n={}){let i=e;if(qI.test(e)){const a={},m=[kb];i=i.replace(eT,(x,P,B)=>{const q=P||B,he=a[q]||[];if(he.length||(q.split("|").forEach(en=>{const gn=en.match(sT),En=gn?parseInt(gn[1],10):kb,on=rT.test(en);he.push([En,on,en])}),a[q]=he),!he.length)throw new Error(`i18n postprocess: unmatched placeholder - ${q}`);const Oe=m[m.length-1];let qe=0;for(let en=0;enn.hasOwnProperty(x)?`${m}${n[x]}${q}`:a),i=i.replace(nT,(a,m)=>n.hasOwnProperty(m)?n[m]:a),i=i.replace(iT,(a,m)=>{if(n.hasOwnProperty(m)){const x=n[m];if(!x.length)throw new Error(`i18n postprocess: unmatched ICU - ${a} with key: ${m}`);return x.shift()}return a})),i}(e,n)}function Pf(e,n,i,a){const m=tn(),x=bi(),P=Xi();return Uf(x,m,m[Wn],P,e,n,a),Pf}function Ff(e,n){const i=Xi(),a=tn(),m=bi();return Uf(m,a,bg(ud(m.data),i,a),i,e,n),Ff}function Uf(e,n,i,a,m,x,P){const B=Xo(a),he=e.firstCreatePass&&vg(e),Oe=n[Zi],qe=_g(n);let Rt=!0;if(3&a.type||P){const en=os(a,n),gn=P?P(en):en,En=qe.length,on=P?ki=>P(Vi(ki[a.index])):a.index;let Yn=null;if(!P&&B&&(Yn=function aT(e,n,i,a){const m=e.cleanup;if(null!=m)for(let x=0;xq?B[q]:null}"string"==typeof P&&(x+=2)}return null}(e,n,m,a.index)),null!==Yn)(Yn.__ngLastListenerFn__||Yn).__ngNextListenerFn__=x,Yn.__ngLastListenerFn__=x,Rt=!1;else{x=Fb(a,n,Oe,x,!1);const ki=i.listen(gn,m,x);qe.push(x,ki),he&&he.push(m,on,En,En+1)}}else x=Fb(a,n,Oe,x,!1);const Ft=a.outputs;let Vt;if(Rt&&null!==Ft&&(Vt=Ft[m])){const en=Vt.length;if(en)for(let gn=0;gn-1?Es(e.index,n):n);let q=Pb(n,i,a,P),he=x.__ngNextListenerFn__;for(;he;)q=Pb(n,i,he,P)&&q,he=he.__ngNextListenerFn__;return m&&!1===q&&P.preventDefault(),q}}function Ub(e=1){return function LC(e){return(ei.lFrame.contextLView=zm(e,ei.lFrame.contextLView))[Zi]}(e)}function lT(e,n){let i=null;const a=function Io(e){const n=e.attrs;if(null!=n){const i=n.indexOf(5);if(!(1&i))return n[i+1]}return null}(e);for(let m=0;m=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),n[i]=a}function Zb(e){return Sa(function SC(){return ei.lFrame.contextLView}(),Kn+e)}function Qb(e,n,i){Js(sl(tn(),e,n,i))}function Xb(e,n,i,a,m){Js(ol(tn(),e,n,i,a,m))}function Jb(e,n,i,a,m,x,P){Js(al(tn(),e,n,i,a,m,x,P))}function qb(e,n,i,a,m,x,P,B,q){Js(ll(tn(),e,n,i,a,m,x,P,B,q))}function ey(e,n,i,a,m,x,P,B,q,he,Oe){Js(cl(tn(),e,n,i,a,m,x,P,B,q,he,Oe))}function ty(e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt){Js(ul(tn(),e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt))}function ny(e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt,Ft,Vt){Js(dl(tn(),e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt,Ft,Vt))}function iy(e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt,Ft,Vt,en,gn){Js(hl(tn(),e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt,Ft,Vt,en,gn))}function ry(e){Js(rl(tn(),e))}function Yf(e,n,i,a,m){return qs(e,sl(tn(),n,i,a),m,!1),Yf}function Zf(e,n,i,a,m,x,P){return qs(e,ol(tn(),n,i,a,m,x),P,!1),Zf}function Qf(e,n,i,a,m,x,P,B,q){return qs(e,al(tn(),n,i,a,m,x,P,B),q,!1),Qf}function Xf(e,n,i,a,m,x,P,B,q,he,Oe){return qs(e,ll(tn(),n,i,a,m,x,P,B,q,he),Oe,!1),Xf}function Jf(e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt){return qs(e,cl(tn(),n,i,a,m,x,P,B,q,he,Oe,qe),Rt,!1),Jf}function qf(e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt,Ft,Vt){return qs(e,ul(tn(),n,i,a,m,x,P,B,q,he,Oe,qe,Rt,Ft),Vt,!1),qf}function em(e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt,Ft,Vt,en,gn){return qs(e,dl(tn(),n,i,a,m,x,P,B,q,he,Oe,qe,Rt,Ft,Vt,en),gn,!1),em}function tm(e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt,Ft,Vt,en,gn,En,on){return qs(e,hl(tn(),n,i,a,m,x,P,B,q,he,Oe,qe,Rt,Ft,Vt,en,gn,En),on,!1),tm}function nm(e,n,i){return qs(e,rl(tn(),n),i,!1),nm}function sy(e,n=""){const i=tn(),a=bi(),m=e+Kn,x=a.firstCreatePass?ja(a,m,1,n,null):a.data[m],P=oy(a,i,x,n,e);i[m]=P,Dl()&&Jc(a,i,P,x),bo(x,!1)}let oy=(e,n,i,a,m)=>(yo(!0),nh(n[Wn],a));function cT(e,n,i,a,m){const x=n[Hi],P=!x||Aa()||sc(i)||Vc(x,m);return yo(P),P?nh(n[Wn],a):au(x,e,n,i)}function im(e){return ju("",e,""),im}function ju(e,n,i){const a=tn(),m=sl(a,e,n,i);return m!==ai&&Fo(a,Jr(),m),ju}function rm(e,n,i,a,m){const x=tn(),P=ol(x,e,n,i,a,m);return P!==ai&&Fo(x,Jr(),P),rm}function sm(e,n,i,a,m,x,P){const B=tn(),q=al(B,e,n,i,a,m,x,P);return q!==ai&&Fo(B,Jr(),q),sm}function om(e,n,i,a,m,x,P,B,q){const he=tn(),Oe=ll(he,e,n,i,a,m,x,P,B,q);return Oe!==ai&&Fo(he,Jr(),Oe),om}function am(e,n,i,a,m,x,P,B,q,he,Oe){const qe=tn(),Rt=cl(qe,e,n,i,a,m,x,P,B,q,he,Oe);return Rt!==ai&&Fo(qe,Jr(),Rt),am}function lm(e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt){const Ft=tn(),Vt=ul(Ft,e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt);return Vt!==ai&&Fo(Ft,Jr(),Vt),lm}function cm(e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt,Ft,Vt){const en=tn(),gn=dl(en,e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt,Ft,Vt);return gn!==ai&&Fo(en,Jr(),gn),cm}function um(e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt,Ft,Vt,en,gn){const En=tn(),on=hl(En,e,n,i,a,m,x,P,B,q,he,Oe,qe,Rt,Ft,Vt,en,gn);return on!==ai&&Fo(En,Jr(),on),um}function dm(e){const n=tn(),i=rl(n,e);return i!==ai&&Fo(n,Jr(),i),dm}function hm(e,n,i){f_(n)&&(n=n());const a=tn();return _r(a,Qs(),n)&&ms(bi(),or(),a,e,n,a[Wn],i,!1),hm}function ay(e,n){const i=f_(e);return i&&e.set(n),i}function fm(e,n){const i=tn(),a=bi(),m=Xi();return Uf(a,i,i[Wn],m,e,n),fm}function mm(e,n,i,a,m){if(e=fe(e),Array.isArray(e))for(let x=0;x>20;if(hs(e)||!e.multi){const Ft=new Il(he,m,Va),Vt=gm(q,n,m?Oe:Oe+Rt,qe);-1===Vt?(bd(Sc(B,P),x,q),pm(x,e,n.length),n.push(q),B.directiveStart++,B.directiveEnd++,m&&(B.providerIndexes+=1048576),i.push(Ft),P.push(Ft)):(i[Vt]=Ft,P[Vt]=Ft)}else{const Ft=gm(q,n,Oe+Rt,qe),Vt=gm(q,n,Oe,Oe+Rt),gn=Vt>=0&&i[Vt];if(m&&!gn||!m&&!(Ft>=0&&i[Ft])){bd(Sc(B,P),x,q);const En=function mT(e,n,i,a,m){const x=new Il(e,i,Va);return x.multi=[],x.index=n,x.componentProviders=0,ly(x,m,a&&!i),x}(m?fT:hT,i.length,m,a,he);!m&&gn&&(i[Vt].providerFactory=En),pm(x,e,n.length,0),n.push(q),B.directiveStart++,B.directiveEnd++,m&&(B.providerIndexes+=1048576),i.push(En),P.push(En)}else pm(x,e,Ft>-1?Ft:Vt,ly(i[m?Vt:Ft],he,!m&&a));!m&&a&&gn&&i[Vt].componentProviders++}}}function pm(e,n,i,a){const m=hs(n),x=function oo(e){return!!e.useClass}(n);if(m||x){const q=(x?fe(n.useClass):n).prototype.ngOnDestroy;if(q){const he=e.destroyHooks||(e.destroyHooks=[]);if(!m&&n.multi){const Oe=he.indexOf(i);-1===Oe?he.push(i,[a,q]):he[Oe+1].push(a,q)}else he.push(i,q)}}}function ly(e,n,i){return i&&e.componentProviders++,e.multi.push(n)-1}function gm(e,n,i,a){for(let m=i;m{i.providersResolver=(a,m)=>function dT(e,n,i){const a=bi();if(a.firstCreatePass){const m=ss(e);mm(i,a.data,a.blueprint,m,!0),mm(n,a.data,a.blueprint,m,!1)}}(a,m?m(e):e,n)}}let pT=(()=>{class e{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i)){const a=Vs(0,i.type),m=a.length>0?zh([a],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i,m)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(const i of this.cachedInjectors.values())null!==i&&i.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=jn({token:e,providedIn:"environment",factory:()=>new e(Li(Lr))})}return e})();function uy(e){Xs("NgStandalone"),e.getStandaloneInjector=n=>n.get(pT).getOrCreateStandaloneInjector(e)}function dy(e,n,i){const a=e.\u0275cmp;a.directiveDefs=$s(n,!1),a.pipeDefs=$s(i,!0)}function hy(e,n){return st(()=>{const i=dr(e,!0);i.declarations=Hu(n.declarations||di),i.imports=Hu(n.imports||di),i.exports=Hu(n.exports||di),n.bootstrap&&(i.bootstrap=Hu(n.bootstrap)),Ka.registerNgModule(e,n)})}function Hu(e){if("function"==typeof e)return e;const n=Tn(e);return n.some(Ge)?()=>n.map(fe).map(fy):n.map(fy)}function fy(e){return Ah(e)?e.ngModule:e}function my(e,n,i){const a=as()+e,m=tn();return m[a]===ai?xo(m,a,i?n.call(i):n()):rc(m,a)}function py(e,n,i,a){return xy(tn(),as(),e,n,i,a)}function gy(e,n,i,a,m){return My(tn(),as(),e,n,i,a,m)}function _y(e,n,i,a,m,x){return Dy(tn(),as(),e,n,i,a,m,x)}function vy(e,n,i,a,m,x,P){return Iy(tn(),as(),e,n,i,a,m,x,P)}function by(e,n,i,a,m,x,P,B){const q=as()+e,he=tn(),Oe=Ls(he,q,i,a,m,x);return _r(he,q+4,P)||Oe?xo(he,q+5,B?n.call(B,i,a,m,x,P):n(i,a,m,x,P)):rc(he,q+5)}function yy(e,n,i,a,m,x,P,B,q){const he=as()+e,Oe=tn(),qe=Ls(Oe,he,i,a,m,x);return Ca(Oe,he+4,P,B)||qe?xo(Oe,he+6,q?n.call(q,i,a,m,x,P,B):n(i,a,m,x,P,B)):rc(Oe,he+6)}function Cy(e,n,i,a,m,x,P,B,q,he){const Oe=as()+e,qe=tn();let Rt=Ls(qe,Oe,i,a,m,x);return xu(qe,Oe+4,P,B,q)||Rt?xo(qe,Oe+7,he?n.call(he,i,a,m,x,P,B,q):n(i,a,m,x,P,B,q)):rc(qe,Oe+7)}function wy(e,n,i,a,m,x,P,B,q,he,Oe){const qe=as()+e,Rt=tn(),Ft=Ls(Rt,qe,i,a,m,x);return Ls(Rt,qe+4,P,B,q,he)||Ft?xo(Rt,qe+8,Oe?n.call(Oe,i,a,m,x,P,B,q,he):n(i,a,m,x,P,B,q,he)):rc(Rt,qe+8)}function Ey(e,n,i,a){return Ty(tn(),as(),e,n,i,a)}function gc(e,n){const i=e[n];return i===ai?void 0:i}function xy(e,n,i,a,m,x){const P=n+i;return _r(e,P,m)?xo(e,P+1,x?a.call(x,m):a(m)):gc(e,P+1)}function My(e,n,i,a,m,x,P){const B=n+i;return Ca(e,B,m,x)?xo(e,B+2,P?a.call(P,m,x):a(m,x)):gc(e,B+2)}function Dy(e,n,i,a,m,x,P,B){const q=n+i;return xu(e,q,m,x,P)?xo(e,q+3,B?a.call(B,m,x,P):a(m,x,P)):gc(e,q+3)}function Iy(e,n,i,a,m,x,P,B,q){const he=n+i;return Ls(e,he,m,x,P,B)?xo(e,he+4,q?a.call(q,m,x,P,B):a(m,x,P,B)):gc(e,he+4)}function Ty(e,n,i,a,m,x){let P=n+i,B=!1;for(let q=0;q=0;i--){const a=n[i];if(e===a.name)return a}}(n,i.pipeRegistry),i.data[m]=a,a.onDestroy&&(i.destroyHooks??=[]).push(m,a.onDestroy)):a=i.data[m];const x=a.factory||(a.factory=fn(a.type)),B=Rn(Va);try{const q=Tc(!1),he=x();return Tc(q),Yb(i,tn(),m,he),he}finally{Rn(B)}}function Ay(e,n,i){const a=e+Kn,m=tn(),x=Sa(m,a);return _c(m,a)?xy(m,as(),n,x.transform,i,x):x.transform(i)}function ky(e,n,i,a){const m=e+Kn,x=tn(),P=Sa(x,m);return _c(x,m)?My(x,as(),n,P.transform,i,a,P):P.transform(i,a)}function Oy(e,n,i,a,m){const x=e+Kn,P=tn(),B=Sa(P,x);return _c(P,x)?Dy(P,as(),n,B.transform,i,a,m,B):B.transform(i,a,m)}function Ry(e,n,i,a,m,x){const P=e+Kn,B=tn(),q=Sa(B,P);return _c(B,P)?Iy(B,as(),n,q.transform,i,a,m,x,q):q.transform(i,a,m,x)}function Ly(e,n,i){const a=e+Kn,m=tn(),x=Sa(m,a);return _c(m,a)?Ty(m,as(),n,x.transform,i,x):x.transform.apply(x,i)}function _c(e,n){return e[mn].data[n].pure}function Ny(e,n){return ru(e,n)}function Py(e,n){return()=>{try{return Ka.getComponentDependencies(e,n).dependencies}catch(i){throw console.error(`Computing dependencies in local compilation mode for the component "${e.name}" failed with the exception:`,i),i}}}function Fy(e,n){const i=oi(e);null!==i&&(i.debugInfo=n)}const cs={\u0275\u0275attribute:tf,\u0275\u0275attributeInterpolate1:nf,\u0275\u0275attributeInterpolate2:rf,\u0275\u0275attributeInterpolate3:sf,\u0275\u0275attributeInterpolate4:af,\u0275\u0275attributeInterpolate5:lf,\u0275\u0275attributeInterpolate6:cf,\u0275\u0275attributeInterpolate7:uf,\u0275\u0275attributeInterpolate8:df,\u0275\u0275attributeInterpolateV:hf,\u0275\u0275defineComponent:jo,\u0275\u0275defineDirective:Xr,\u0275\u0275defineInjectable:jn,\u0275\u0275defineInjector:Jt,\u0275\u0275defineNgModule:Us,\u0275\u0275definePipe:To,\u0275\u0275directiveInject:Va,\u0275\u0275getInheritedFactory:wp,\u0275\u0275inject:Li,\u0275\u0275injectAttribute:Oc,\u0275\u0275invalidFactory:og,\u0275\u0275invalidFactoryDep:ts,\u0275\u0275templateRefExtractor:Ny,\u0275\u0275resetView:Qm,\u0275\u0275HostDirectivesFeature:O_,\u0275\u0275NgOnChangesFeature:zn,\u0275\u0275ProvidersFeature:cy,\u0275\u0275CopyDefinitionFeature:k_,\u0275\u0275InheritDefinitionFeature:Hh,\u0275\u0275InputTransformsFeature:P_,\u0275\u0275StandaloneFeature:uy,\u0275\u0275nextContext:Ub,\u0275\u0275namespaceHTML:lp,\u0275\u0275namespaceMathML:ap,\u0275\u0275namespaceSVG:op,\u0275\u0275enableBindings:Km,\u0275\u0275disableBindings:Ym,\u0275\u0275elementStart:Ru,\u0275\u0275elementEnd:Lu,\u0275\u0275element:Mf,\u0275\u0275elementContainerStart:Nu,\u0275\u0275elementContainerEnd:Pu,\u0275\u0275elementContainer:Df,\u0275\u0275pureFunction0:my,\u0275\u0275pureFunction1:py,\u0275\u0275pureFunction2:gy,\u0275\u0275pureFunction3:_y,\u0275\u0275pureFunction4:vy,\u0275\u0275pureFunction5:by,\u0275\u0275pureFunction6:yy,\u0275\u0275pureFunction7:Cy,\u0275\u0275pureFunction8:wy,\u0275\u0275pureFunctionV:Ey,\u0275\u0275getCurrentView:ab,\u0275\u0275restoreView:Zm,\u0275\u0275listener:Pf,\u0275\u0275projection:$b,\u0275\u0275syntheticHostProperty:Tf,\u0275\u0275syntheticHostListener:Ff,\u0275\u0275pipeBind1:Ay,\u0275\u0275pipeBind2:ky,\u0275\u0275pipeBind3:Oy,\u0275\u0275pipeBind4:Ry,\u0275\u0275pipeBindV:Ly,\u0275\u0275projectionDef:Bb,\u0275\u0275hostProperty:If,\u0275\u0275property:gf,\u0275\u0275propertyInterpolate:Bf,\u0275\u0275propertyInterpolate1:Vu,\u0275\u0275propertyInterpolate2:$f,\u0275\u0275propertyInterpolate3:Vf,\u0275\u0275propertyInterpolate4:jf,\u0275\u0275propertyInterpolate5:Hf,\u0275\u0275propertyInterpolate6:zf,\u0275\u0275propertyInterpolate7:Wf,\u0275\u0275propertyInterpolate8:Gf,\u0275\u0275propertyInterpolateV:Kf,\u0275\u0275pipe:Sy,\u0275\u0275queryRefresh:Hb,\u0275\u0275queryAdvance:Kb,\u0275\u0275viewQuery:jb,\u0275\u0275viewQuerySignal:Gb,\u0275\u0275loadQuery:zb,\u0275\u0275contentQuery:Vb,\u0275\u0275contentQuerySignal:Wb,\u0275\u0275reference:Zb,\u0275\u0275classMap:Lv,\u0275\u0275classMapInterpolate1:Vv,\u0275\u0275classMapInterpolate2:jv,\u0275\u0275classMapInterpolate3:Hv,\u0275\u0275classMapInterpolate4:zv,\u0275\u0275classMapInterpolate5:Wv,\u0275\u0275classMapInterpolate6:Gv,\u0275\u0275classMapInterpolate7:Kv,\u0275\u0275classMapInterpolate8:Yv,\u0275\u0275classMapInterpolateV:Zv,\u0275\u0275styleMap:Js,\u0275\u0275styleMapInterpolate1:Qb,\u0275\u0275styleMapInterpolate2:Xb,\u0275\u0275styleMapInterpolate3:Jb,\u0275\u0275styleMapInterpolate4:qb,\u0275\u0275styleMapInterpolate5:ey,\u0275\u0275styleMapInterpolate6:ty,\u0275\u0275styleMapInterpolate7:ny,\u0275\u0275styleMapInterpolate8:iy,\u0275\u0275styleMapInterpolateV:ry,\u0275\u0275styleProp:vf,\u0275\u0275stylePropInterpolate1:Yf,\u0275\u0275stylePropInterpolate2:Zf,\u0275\u0275stylePropInterpolate3:Qf,\u0275\u0275stylePropInterpolate4:Xf,\u0275\u0275stylePropInterpolate5:Jf,\u0275\u0275stylePropInterpolate6:qf,\u0275\u0275stylePropInterpolate7:em,\u0275\u0275stylePropInterpolate8:tm,\u0275\u0275stylePropInterpolateV:nm,\u0275\u0275classProp:bf,\u0275\u0275advance:rg,\u0275\u0275template:Xa,\u0275\u0275conditional:eb,\u0275\u0275defer:ov,\u0275\u0275deferWhen:av,\u0275\u0275deferOnIdle:cv,\u0275\u0275deferOnImmediate:dv,\u0275\u0275deferOnTimer:fv,\u0275\u0275deferOnHover:pv,\u0275\u0275deferOnInteraction:_v,\u0275\u0275deferOnViewport:bv,\u0275\u0275deferPrefetchWhen:lv,\u0275\u0275deferPrefetchOnIdle:uv,\u0275\u0275deferPrefetchOnImmediate:hv,\u0275\u0275deferPrefetchOnTimer:mv,\u0275\u0275deferPrefetchOnHover:gv,\u0275\u0275deferPrefetchOnInteraction:vv,\u0275\u0275deferPrefetchOnViewport:yv,\u0275\u0275deferEnableTimerScheduling:sv,\u0275\u0275repeater:rb,\u0275\u0275repeaterCreate:ib,\u0275\u0275repeaterTrackByIndex:tb,\u0275\u0275repeaterTrackByIdentity:nb,\u0275\u0275componentInstance:Qv,\u0275\u0275text:sy,\u0275\u0275textInterpolate:im,\u0275\u0275textInterpolate1:ju,\u0275\u0275textInterpolate2:rm,\u0275\u0275textInterpolate3:sm,\u0275\u0275textInterpolate4:om,\u0275\u0275textInterpolate5:am,\u0275\u0275textInterpolate6:lm,\u0275\u0275textInterpolate7:cm,\u0275\u0275textInterpolate8:um,\u0275\u0275textInterpolateV:dm,\u0275\u0275i18n:Ob,\u0275\u0275i18nAttributes:Rb,\u0275\u0275i18nExp:Nf,\u0275\u0275i18nStart:Rf,\u0275\u0275i18nEnd:Lf,\u0275\u0275i18nApply:Lb,\u0275\u0275i18nPostprocess:Nb,\u0275\u0275resolveWindow:U0,\u0275\u0275resolveDocument:B0,\u0275\u0275resolveBody:qd,\u0275\u0275setComponentScope:dy,\u0275\u0275setNgModuleScope:hy,\u0275\u0275registerNgModuleType:jh,\u0275\u0275getComponentDepsFactory:Py,\u0275setClassDebugInfo:Fy,\u0275\u0275sanitizeHtml:I0,\u0275\u0275sanitizeStyle:T0,\u0275\u0275sanitizeResourceUrl:Zd,\u0275\u0275sanitizeScript:S0,\u0275\u0275sanitizeUrl:Yd,\u0275\u0275sanitizeUrlOrResourceUrl:O0,\u0275\u0275trustConstantHtml:A0,\u0275\u0275trustConstantResourceUrl:k0,\u0275\u0275validateIframeAttribute:S_,forwardRef:Le,resolveForwardRef:fe,\u0275\u0275twoWayProperty:hm,\u0275\u0275twoWayBindingSet:ay,\u0275\u0275twoWayListener:fm,\u0275\u0275InputFlags:Qr};let gl=null;function bT(){gl=null}const vc=[];let vm=!1;function Uy(){if(!vm){vm=!0;try{for(let e=vc.length-1;e>=0;e--){const{moduleType:n,ngModule:i}=vc[e];i.declarations&&i.declarations.every(By)&&(vc.splice(e,1),ET(n,i))}}finally{vm=!1}}}function By(e){return Array.isArray(e)?e.every(By):!!fe(e)}function $y(e,n={}){Vy(e,n),void 0!==n.id&&jh(e,n.id),function yT(e,n){vc.push({moduleType:e,ngModule:n})}(e,n)}function Vy(e,n,i=!1){const a=Tn(n.declarations||di);let m=null;Object.defineProperty(e,_i,{configurable:!0,get:()=>(null===m&&(m=ot().compileNgModule(cs,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:Tn(n.bootstrap||di).map(fe),declarations:a.map(fe),imports:Tn(n.imports||di).map(fe).map(Wy),exports:Tn(n.exports||di).map(fe).map(Wy),schemas:n.schemas?Tn(n.schemas):null,id:n.id||null}),m.schemas||(m.schemas=[])),m)});let x=null;Object.defineProperty(e,hi,{get:()=>{if(null===x){const B=ot();x=B.compileFactory(cs,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:Rc(e),target:B.FactoryTarget.NgModule,typeArgumentCount:0})}return x},configurable:!1});let P=null;Object.defineProperty(e,ut,{get:()=>{if(null===P){const B={name:e.name,type:e,providers:n.providers||di,imports:[(n.imports||di).map(fe),(n.exports||di).map(fe)]};P=ot().compileInjector(cs,`ng:///${e.name}/\u0275inj.js`,B)}return P},configurable:!1})}function jy(e,n){return`Unexpected "${yn(e)}" found in the "declarations" array of the ${n}, "${yn(e)}" is marked as standalone and can't be declared in any NgModule - did you intend to import it instead (by adding it to the "imports" array)?`}let zu=new WeakMap,ym=new WeakMap;function wT(){zu=new WeakMap,ym=new WeakMap,vc.length=0,Ho.clear()}function ET(e,n){const i=Tn(n.declarations||di),a=Da(e);i.forEach(m=>{(m=fe(m)).hasOwnProperty(Fn)?Cm(oi(m),a):!m.hasOwnProperty(yi)&&!m.hasOwnProperty(ar)&&(m.ngSelectorScope=e)})}function Cm(e,n){e.directiveDefs=()=>Array.from(n.compilation.directives).map(i=>i.hasOwnProperty(Fn)?oi(i):pi(i)).filter(i=>!!i),e.pipeDefs=()=>Array.from(n.compilation.pipes).map(i=>er(i)),e.schemas=n.schemas,e.tView=null}function Da(e){if(na(e)){if(mu){const n=Ka.getNgModuleScope(e);return{schemas:dr(e,!0).schemas||null,...n}}return function xT(e){const n=dr(e,!0);if(null!==n.transitiveCompileScopes)return n.transitiveCompileScopes;const i={schemas:n.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Ms(n.imports).forEach(a=>{const m=Da(a);m.exported.directives.forEach(x=>i.compilation.directives.add(x)),m.exported.pipes.forEach(x=>i.compilation.pipes.add(x))}),Ms(n.declarations).forEach(a=>{er(a)?i.compilation.pipes.add(a):i.compilation.directives.add(a)}),Ms(n.exports).forEach(a=>{const m=a;if(na(m)){const x=Da(m);x.exported.directives.forEach(P=>{i.compilation.directives.add(P),i.exported.directives.add(P)}),x.exported.pipes.forEach(P=>{i.compilation.pipes.add(P),i.exported.pipes.add(P)})}else er(m)?i.exported.pipes.add(m):i.exported.directives.add(m)}),n.transitiveCompileScopes=i,i}(e)}if(Or(e)){if(null!==(oi(e)||pi(e)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([e]),pipes:new Set}};if(null!==er(e))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([e])}}}throw new Error(`${e.name} does not have a module def (\u0275mod property)`)}function Wy(e){return Ah(e)?e.ngModule:e}let wm=0;function Gy(e,n){let i=null;(function HM(e,n){M_(n)&&(Za.set(e,n),ic.add(e))})(e,n),Yy(e,n),Object.defineProperty(e,Fn,{get:()=>{if(null===i){const a=ot();if(M_(n)){const he=[`Component '${e.name}' is not resolved:`];throw n.templateUrl&&he.push(` - templateUrl: ${n.templateUrl}`),n.styleUrls&&n.styleUrls.length&&he.push(` - styleUrls: ${JSON.stringify(n.styleUrls)}`),n.styleUrl&&he.push(` - styleUrl: ${n.styleUrl}`),he.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(he.join("\n"))}const m=function vT(){return gl}();let x=n.preserveWhitespaces;void 0===x&&(x=null!==m&&void 0!==m.preserveWhitespaces&&m.preserveWhitespaces);let P=n.encapsulation;void 0===P&&(P=null!==m&&void 0!==m.defaultEncapsulation?m.defaultEncapsulation:Zr.Emulated);const B=n.templateUrl||`ng:///${e.name}/template.html`,q={...Zy(e,n),typeSourceSpan:a.createParseSourceSpan("Component",e.name,B),template:n.template||"",preserveWhitespaces:x,styles:"string"==typeof n.styles?[n.styles]:n.styles||di,animations:n.animations,declarations:[],changeDetection:n.changeDetection,encapsulation:P,interpolation:n.interpolation,viewProviders:n.viewProviders||null};wm++;try{if(q.usesInheritance&&Qy(e),i=a.compileComponent(cs,B,q),n.standalone){const he=Tn(n.imports||di),{directiveDefs:Oe,pipeDefs:qe}=function MT(e,n){let i=null,a=null;return{directiveDefs:()=>{if(mu)return tc(e)?[...Ka.getStandaloneComponentScope(e,n).compilation.directives].map(B=>oi(B)||pi(B)).filter(B=>null!==B):[];if(null===i){i=[oi(e)];const P=new Set([e]);for(const B of n){const q=fe(B);if(!P.has(q))if(P.add(q),dr(q)){const he=Da(q);for(const Oe of he.exported.directives){const qe=oi(Oe)||pi(Oe);qe&&!P.has(Oe)&&(P.add(Oe),i.push(qe))}}else{const he=oi(q)||pi(q);he&&i.push(he)}}}return i},pipeDefs:()=>{if(mu)return tc(e)?[...Ka.getStandaloneComponentScope(e,n).compilation.pipes].map(B=>er(B)).filter(B=>null!==B):[];if(null===a){a=[];const P=new Set;for(const B of n){const q=fe(B);if(!P.has(q))if(P.add(q),dr(q)){const he=Da(q);for(const Oe of he.exported.pipes){const qe=er(Oe);qe&&!P.has(Oe)&&(P.add(Oe),a.push(qe))}}else{const he=er(q);he&&a.push(he)}}}return a}}}(e,he);i.directiveDefs=Oe,i.pipeDefs=qe,i.dependencies=()=>he.map(fe)}}finally{wm--}if(0===wm&&Uy(),function DT(e){return void 0!==e.ngSelectorScope}(e)){const he=Da(e.ngSelectorScope);Cm(i,he)}if(n.schemas){if(!n.standalone)throw new Error(`The 'schemas' was specified for the ${yn(e)} but is only valid on a component that is standalone.`);i.schemas=n.schemas}else n.standalone&&(i.schemas=[])}return i},configurable:!1})}function Em(e,n){let i=null;Yy(e,n||{}),Object.defineProperty(e,yi,{get:()=>{if(null===i){const a=Ky(e,n||{});i=ot().compileDirective(cs,a.sourceMapUrl,a.metadata)}return i},configurable:!1})}function Ky(e,n){const i=e&&e.name,a=`ng:///${i}/\u0275dir.js`,m=ot(),x=Zy(e,n);return x.typeSourceSpan=m.createParseSourceSpan("Directive",i,a),x.usesInheritance&&Qy(e),{metadata:x,sourceMapUrl:a}}function Yy(e,n){let i=null;Object.defineProperty(e,hi,{get:()=>{if(null===i){const a=Ky(e,n),m=ot();i=m.compileFactory(cs,`ng:///${e.name}/\u0275fac.js`,{name:a.metadata.name,type:a.metadata.type,typeArgumentCount:0,deps:Rc(e),target:m.FactoryTarget.Directive})}return i},configurable:!1})}function IT(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function Zy(e,n){const i=Cd(),a=i.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==n.selector?n.selector:null,host:n.host||qi,propMetadata:a,inputs:n.inputs||di,outputs:n.outputs||di,queries:Xy(e,a,Jy),lifecycle:{usesOnChanges:i.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!IT(e),exportAs:AT(n.exportAs),providers:n.providers||null,viewQueries:Xy(e,a,qy),isStandalone:!!n.standalone,isSignal:!!n.signals,hostDirectives:n.hostDirectives?.map(m=>"function"==typeof m?{directive:m}:m)||null}}function Qy(e){const n=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==n;)!pi(i)&&!oi(i)&&OT(i)&&Em(i,null),i=Object.getPrototypeOf(i)}function TT(e){return"string"==typeof e?t1(e):fe(e)}function ST(e,n){return{propertyName:e,predicate:TT(n.selector),descendants:n.descendants,first:n.first,read:n.read?n.read:null,static:!!n.static,emitDistinctChangesOnly:!!n.emitDistinctChangesOnly,isSignal:!!n.isSignal}}function Xy(e,n,i){const a=[];for(const m in n)if(n.hasOwnProperty(m)){const x=n[m];x.forEach(P=>{if(i(P)){if(!P.selector)throw new Error(`Can't construct a query for the property "${m}" of "${yn(e)}" since the query selector wasn't defined.`);if(x.some(e1))throw new Error("Cannot combine @Input decorators with query decorators");a.push(ST(m,P))}})}return a}function AT(e){return void 0===e?null:t1(e)}function Jy(e){const n=e.ngMetadataName;return"ContentChild"===n||"ContentChildren"===n}function qy(e){const n=e.ngMetadataName;return"ViewChild"===n||"ViewChildren"===n}function e1(e){return"Input"===e.ngMetadataName}function t1(e){return e.split(",").map(n=>n.trim())}const kT=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function OT(e){const n=Cd();if(kT.some(a=>n.hasLifecycleHook(e,a)))return!0;const i=n.propMetadata(e);for(const a in i){const m=i[a];for(let x=0;x{if(null===a){const m=r1(e,n),x=ot();a=x.compileFactory(cs,`ng:///${m.name}/\u0275fac.js`,{name:m.name,type:m.type,typeArgumentCount:0,deps:Rc(e),target:x.FactoryTarget.Pipe})}return a},configurable:!1}),Object.defineProperty(e,ar,{get:()=>{if(null===i){const m=r1(e,n);i=ot().compilePipe(cs,`ng:///${m.name}/\u0275pipe.js`,m)}return i},configurable:!1})}function r1(e,n){return{type:e,name:e.name,pipeName:n.name,pure:void 0===n.pure||n.pure,isStandalone:!!n.standalone}}const s1=un("Directive",(e={})=>e,void 0,void 0,(e,n)=>Em(e,n)),RT=un("Component",(e={})=>({changeDetection:Yr.Default,...e}),s1,void 0,(e,n)=>Gy(e,n)),LT=un("Pipe",e=>({pure:!0,...e}),void 0,void 0,(e,n)=>n1(e,n)),NT=rn("Input",e=>e?"string"==typeof e?{alias:e}:e:{}),PT=rn("Output",e=>({alias:e})),FT=rn("HostBinding",e=>({hostPropertyName:e})),UT=rn("HostListener",(e,n)=>({eventName:e,args:n})),BT=un("NgModule",e=>e,void 0,void 0,(e,n)=>$y(e,n));class o1{constructor(n){this.full=n;const i=n.split(".");this.major=i[0],this.minor=i[1],this.patch=i.slice(2).join(".")}}const $T=new o1("17.3.3");let a1=(()=>{class e{log(i){console.log(i)}warn(i){console.warn(i)}static#e=this.\u0275fac=function(a){return new(a||e)};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const h1=new xe(""),f1=new xe("");let Mm,hS=(()=>{class e{constructor(i,a,m){this._ngZone=i,this.registry=a,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Mm||(p1(m),m.addToWindow(a)),this._watchAngularEvents(),i.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{gr.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb()}});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(a=>!a.updateCb||!a.updateCb(i)||(clearTimeout(a.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,a,m){let x=-1;a&&a>0&&(x=setTimeout(()=>{this._callbacks=this._callbacks.filter(P=>P.timeoutId!==x),i()},a)),this._callbacks.push({doneCb:i,timeoutId:x,updateCb:m})}whenStable(i,a,m){if(m&&!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(i,a,m),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,a,m){return[]}static#e=this.\u0275fac=function(a){return new(a||e)(Li(gr),Li(m1),Li(f1))};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac})}return e})(),m1=(()=>{class e{constructor(){this._applications=new Map}registerApplication(i,a){this._applications.set(i,a)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,a=!0){return Mm?.findTestabilityInTree(this,i,a)??null}static#e=this.\u0275fac=function(a){return new(a||e)};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function p1(e){Mm=e}function Dm(e){return!!e&&"function"==typeof e.then}function g1(e){return!!e&&"function"==typeof e.subscribe}const _1=new xe("");let Gu=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,a)=>{this.resolve=i,this.reject=a}),this.appInits=Bn(_1,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const i=[];for(const m of this.appInits){const x=m();if(Dm(x))i.push(x);else if(g1(x)){const P=new Promise((B,q)=>{x.subscribe({complete:B,error:q})});i.push(P)}}const a=()=>{this.done=!0,this.resolve()};Promise.all(i).then(()=>{a()}).catch(m=>{this.reject(m)}),0===i.length&&a(),this.initialized=!0}static#e=this.\u0275fac=function(a){return new(a||e)};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Im=new xe("");function v1(){!function j(e){ie=e}(()=>{throw new pe(600,!1)})}function b1(e){return e.isBoundToModule}class fS{constructor(n,i){this.name=n,this.token=i}}function y1(e,n,i){try{const a=i();return Dm(a)?a.catch(m=>{throw n.runOutsideAngular(()=>e.handleError(m)),m}):a}catch(a){throw n.runOutsideAngular(()=>e.handleError(a)),a}}function C1(e,n){return Array.isArray(n)?n.reduce(C1,e):{...e,...n}}let Yu,sa=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Bn(kp),this.afterRenderEffectManager=Bn(Ga),this.externalTestViews=new Set,this.beforeRender=new Ne.B,this.afterTick=new Ne.B,this.componentTypes=[],this.components=[],this.isStable=Bn(Qa).hasPendingTasks.pipe((0,Ee.T)(i=>!i)),this._injector=Bn(Lr)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,a){const m=i instanceof uu;if(!this._injector.get(Gu).done)throw!m&&Or(i),new pe(405,!1);let P;P=m?i:this._injector.get(ec).resolveComponentFactory(i),this.componentTypes.push(P.componentType);const B=b1(P)?void 0:this._injector.get(ya),he=P.create(xs.NULL,[],a||P.selector,B),Oe=he.location.nativeElement,qe=he.injector.get(h1,null);return qe?.registerApplication(Oe),he.onDestroy(()=>{this.detachView(he.hostView),Ku(this.components,he),qe?.unregisterApplication(Oe)}),this._loadComponent(he),he}tick(){this._tick(!0)}_tick(i){if(this._runningTick)throw new pe(101,!1);const a=s(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(i)}catch(m){this.internalErrorHandler(m)}finally{this.afterTick.next(),this._runningTick=!1,s(a)}}detectChangesInAttachedViews(i){let a=0;const m=this.afterRenderEffectManager;for(;;){if(a===Eg)throw new pe(103,!1);if(i){const x=0===a;this.beforeRender.next(x);for(let{_lView:P,notifyErrorHandler:B}of this._views)E1(P,x,B)}if(a++,m.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:x})=>Tm(x))&&(m.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:x})=>Tm(x))))break}}attachView(i){const a=i;this._views.push(a),a.attachToAppRef(this)}detachView(i){const a=i;Ku(this._views,a),a.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i);const a=this._injector.get(Im,[]);[...this._bootstrapListeners,...a].forEach(m=>m(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>Ku(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new pe(406,!1);const i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(a){return new(a||e)};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ku(e,n){const i=e.indexOf(n);i>-1&&e.splice(i,1)}function w1(e){Yu??=new WeakMap;const n=Yu.get(e);if(n)return n;const i=e.isStable.pipe((0,be.$)(a=>a)).toPromise().then(()=>{});return Yu.set(e,i),e.onDestroy(()=>Yu?.delete(e)),i}function E1(e,n,i){!n&&!Tm(e)||function mS(e,n,i){let a;i?(a=0,e[kn]|=1024):a=64&e[kn]?0:1,iu(e,n,a)}(e,i,n)}function Tm(e){return rd(e)}class x1{constructor(n,i){this.ngModuleFactory=n,this.componentFactories=i}}let pS=(()=>{class e{compileModuleSync(i){return new Cu(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){const a=this.compileModuleSync(i),x=Ms(dr(i).declarations).reduce((P,B)=>{const q=oi(B);return q&&P.push(new Ya(q)),P},[]);return new x1(a,x)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}static#e=this.\u0275fac=function(a){return new(a||e)};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const M1=new xe("");class gS{}function D1(e,n,i){const a=new Cu(i);return Promise.resolve(a)}let _S=(()=>{class e{constructor(){this.zone=Bn(gr),this.applicationRef=Bn(sa)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(a){return new(a||e)};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function T1(e){return[{provide:gr,useFactory:e},{provide:ns,multi:!0,useFactory:()=>{const n=Bn(_S,{optional:!0});return()=>n.initialize()}},{provide:ns,multi:!0,useFactory:()=>{const n=Bn(bS);return()=>{n.initialize()}}},{provide:kp,useFactory:vS}]}function vS(){const e=Bn(gr),n=Bn(Lo);return i=>e.runOutsideAngular(()=>n.handleError(i))}function S1(e){return ys([[],T1(()=>new gr(A1(e)))])}function A1(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let bS=(()=>{class e{constructor(){this.subscription=new Ie.yU,this.initialized=!1,this.zone=Bn(gr),this.pendingTasks=Bn(Qa)}initialize(){if(this.initialized)return;this.initialized=!0;let i=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(i=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{gr.assertNotInAngularZone(),queueMicrotask(()=>{null!==i&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(i),i=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{gr.assertInAngularZone(),i??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(a){return new(a||e)};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Zu=new xe("",{providedIn:"root",factory:()=>Bn(Zu,Un.Optional|Un.SkipSelf)||function yS(){return typeof $localize<"u"&&$localize.locale||Ma}()}),CS=new xe("",{providedIn:"root",factory:()=>"USD"}),wS=new xe(""),ES=new xe("");var k1=function(e){return e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore",e}(k1||{});const Sm=new xe("");let Am=(()=>{class e{constructor(i){this._injector=i,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(i,a){const m=function aM(e="zone.js",n){return"noop"===e?new Sh:"zone.js"===e?new gr(n):e}(a?.ngZone,A1({eventCoalescing:a?.ngZoneEventCoalescing,runCoalescing:a?.ngZoneRunCoalescing}));return m.run(()=>{const x=function oD(e,n,i){return new yu(e,n,i)}(i.moduleType,this.injector,T1(()=>m)),P=x.injector.get(Lo,null);return m.runOutsideAngular(()=>{const B=m.onError.subscribe({next:q=>{P.handleError(q)}});x.onDestroy(()=>{Ku(this._modules,x),B.unsubscribe()})}),y1(P,m,()=>{const B=x.injector.get(Gu);return B.runInitializers(),B.donePromise.then(()=>(Af(x.injector.get(Zu,Ma)||Ma),this._moduleDoBootstrap(x),x))})})}bootstrapModule(i,a=[]){const m=C1({},a);return D1(0,0,i).then(x=>this.bootstrapModuleFactory(x,m))}_moduleDoBootstrap(i){const a=i.injector.get(sa);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(m=>a.bootstrap(m));else{if(!i.instance.ngDoBootstrap)throw new pe(-403,!1);i.instance.ngDoBootstrap(a)}this._modules.push(i)}onDestroy(i){this._destroyListeners.push(i)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new pe(404,!1);this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a());const i=this._injector.get(Sm,null);i&&(i.forEach(a=>a()),i.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(a){return new(a||e)(Li(xs))};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),oa=null;const km=new xe("");function O1(e){if(oa&&!oa.get(km,!1))throw new pe(400,!1);v1(),oa=e;const n=e.get(Am);return P1(e),n}function R1(e,n,i=[]){const a=`Platform: ${n}`,m=new xe(a);return(x=[])=>{let P=Qu();if(!P||P.injector.get(km,!1)){const B=[...i,...x,{provide:m,useValue:!0}];e?e(B):O1(L1(B,a))}return N1()}}function L1(e=[],n){return xs.create({name:n,providers:[{provide:Ws,useValue:"platform"},{provide:Sm,useValue:new Set([()=>oa=null])},...e]})}function N1(e){const n=Qu();if(!n)throw new pe(401,!1);return n}function Qu(){return oa?.get(Am)??null}function xS(){Qu()?.destroy()}function P1(e){e.get(t0,null)?.forEach(i=>i())}function DS(){return!1}function IS(){}function TS(e){const n=T_(e);if(!n)throw F1(e);return new Cu(n)}function SS(e){const n=T_(e);if(!n)throw F1(e);return n}function F1(e){return new Error(`No module with ID ${e} loaded`)}let Om=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=U1}return e})();function U1(e){return function AS(e,n,i){if(Zs(e)&&!i){const a=Es(e.index,n);return new za(a,a)}return 47&e.type?new za(n[Qi],n):null}(Xi(),tn(),!(16&~e))}class B1 extends Om{}class kS extends B1{}class OS{constructor(n,i){this.name=n,this.callback=i}}function RS(e){return e.map(n=>n.nativeElement)}class Rm{constructor(n){this.nativeNode=n}get parent(){const n=this.nativeNode.parentNode;return n?new yc(n):null}get injector(){return function Qp(e){const n=ls(e),i=n?n.lView:null;return null===i?xs.NULL:new xr(i[mn].data[n.nodeIndex],i)}(this.nativeNode)}get componentInstance(){const n=this.nativeNode;return n&&(Fc(n)||function Yp(e){const n=ls(e);let a,i=n?n.lView:null;if(null===i)return null;for(;2===i[mn].type&&(a=fa(i));)i=a;return 512&i[kn]?null:i[Zi]}(n))}get context(){return Fc(this.nativeNode)||function Kp(e){!function Aw(e){if(typeof Element<"u"&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}(e);const n=ls(e),i=n?n.lView:null;return null===i?null:i[Zi]}(this.nativeNode)}get listeners(){return function Jp(e){const n=ls(e),i=null===n?null:n.lView;if(null===i)return[];const m=i[ho],x=i[mn].cleanup,P=[];if(x&&m)for(let B=0;B=0?"dom":"output"})}}return P.sort(Tw),P}(this.nativeNode).filter(n=>"dom"===n.type)}get references(){return function Iw(e){const n=ls(e);if(null===n)return{};if(void 0===n.localRefs){const i=n.lView;if(null===i)return{};n.localRefs=function ww(e,n){const i=e[mn].data[n];if(i&&i.localNames){const a={};let m=i.index+1;for(let x=0;x1){let Oe=q[1];for(let qe=1;qen[x]=!0),n}get childNodes(){const n=this.nativeNode.childNodes,i=[];for(let a=0;a{if(x.name===n){const P=x.callback;P.call(a,i),m.push(P)}}),"function"==typeof a.eventListeners&&a.eventListeners(n).forEach(x=>{if(-1!==x.toString().indexOf("__ngUnwrap__")){const P=x("__ngUnwrap__");return-1===m.indexOf(P)&&P.call(a,i)}})}}function NS(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function $1(e,n,i,a){const m=ls(e.nativeNode),x=m?m.lView:null;null!==x?Ia(x[mn].data[m.nodeIndex],x,n,i,a,e.nativeNode):Nm(e.nativeNode,n,i,a)}function Ia(e,n,i,a,m,x){const P=function bC(e,n){const i=null===e?-1:e.index;return-1!==i?Vi(n[i]):null}(e,n);if(11&e.type){if(Lm(P,i,a,m,x),Zs(e)){const q=Es(e.index,n);q&&q[mn].firstChild&&Ia(q[mn].firstChild,q,i,a,m,x)}else e.child&&Ia(e.child,n,i,a,m,x),P&&Nm(P,i,a,m);const B=n[e.index];hr(B)&&V1(B,i,a,m,x)}else if(4&e.type){const B=n[e.index];Lm(B[fs],i,a,m,x),V1(B,i,a,m,x)}else if(16&e.type){const B=n[Qi],he=B[nr].projection[e.projection];if(Array.isArray(he))for(let Oe of he)Lm(Oe,i,a,m,x);else if(he){const Oe=B[Ai];Ia(Oe[mn].data[he.index],Oe,i,a,m,x)}}else e.child&&Ia(e.child,n,i,a,m,x);if(x!==P){const B=2&e.flags?e.projectionNext:e.next;B&&Ia(B,n,i,a,m,x)}}function V1(e,n,i,a,m){for(let x=rr;xn;class H1{constructor(n){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=n||FS}forEachItem(n){let i;for(i=this._itHead;null!==i;i=i._next)n(i)}forEachOperation(n){let i=this._itHead,a=this._removalsHead,m=0,x=null;for(;i||a;){const P=!a||i&&i.currentIndex{P=this._trackByFn(m,B),null!==i&&Object.is(i.trackById,P)?(a&&(i=this._verifyReinsertion(i,B,P,m)),Object.is(i.item,B)||this._addIdentityChange(i,B)):(i=this._mismatch(i,B,P,m),a=!0),i=i._next,m++}),this.length=m;return this._truncate(i),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,i,a,m){let x;return null===n?x=this._itTail:(x=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(a,null))?(Object.is(n.item,i)||this._addIdentityChange(n,i),this._reinsertAfter(n,x,m)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(a,m))?(Object.is(n.item,i)||this._addIdentityChange(n,i),this._moveAfter(n,x,m)):n=this._addAfter(new US(i,a),x,m),n}_verifyReinsertion(n,i,a,m){let x=null===this._unlinkedRecords?null:this._unlinkedRecords.get(a,null);return null!==x?n=this._reinsertAfter(x,n._prev,m):n.currentIndex!=m&&(n.currentIndex=m,this._addToMoves(n,m)),n}_truncate(n){for(;null!==n;){const i=n._next;this._addToRemovals(this._unlink(n)),n=i}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(n,i,a){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const m=n._prevRemoved,x=n._nextRemoved;return null===m?this._removalsHead=x:m._nextRemoved=x,null===x?this._removalsTail=m:x._prevRemoved=m,this._insertAfter(n,i,a),this._addToMoves(n,a),n}_moveAfter(n,i,a){return this._unlink(n),this._insertAfter(n,i,a),this._addToMoves(n,a),n}_addAfter(n,i,a){return this._insertAfter(n,i,a),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,i,a){const m=null===i?this._itHead:i._next;return n._next=m,n._prev=i,null===m?this._itTail=n:m._prev=n,null===i?this._itHead=n:i._next=n,null===this._linkedRecords&&(this._linkedRecords=new z1),this._linkedRecords.put(n),n.currentIndex=a,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const i=n._prev,a=n._next;return null===i?this._itHead=a:i._next=a,null===a?this._itTail=i:a._prev=i,n}_addToMoves(n,i){return n.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new z1),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,i){return n.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class US{constructor(n,i){this.item=n,this.trackById=i,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 BS{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,i){let a;for(a=this._head;null!==a;a=a._nextDup)if((null===i||i<=a.currentIndex)&&Object.is(a.trackById,n))return a;return null}remove(n){const i=n._prevDup,a=n._nextDup;return null===i?this._head=a:i._nextDup=a,null===a?this._tail=i:a._prevDup=i,null===this._head}}class z1{constructor(){this.map=new Map}put(n){const i=n.trackById;let a=this.map.get(i);a||(a=new BS,this.map.set(i,a)),a.add(n)}get(n,i){const m=this.map.get(n);return m?m.get(n,i):null}remove(n){const i=n.trackById;return this.map.get(i).remove(n)&&this.map.delete(i),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function W1(e,n,i){const a=e.previousIndex;if(null===a)return a;let m=0;return i&&a{if(i&&i.key===m)this._maybeAddToChanges(i,a),this._appendAfter=i,i=i._next;else{const x=this._getOrCreateRecordForKey(m,a);i=this._insertBeforeOrAppend(i,x)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let a=i;null!==a;a=a._nextRemoved)a===this._mapHead&&(this._mapHead=null),this._records.delete(a.key),a._nextRemoved=a._next,a.previousValue=a.currentValue,a.currentValue=null,a._prev=null,a._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,i){if(n){const a=n._prev;return i._next=n,i._prev=a,n._prev=i,a&&(a._next=i),n===this._mapHead&&(this._mapHead=i),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(n,i){if(this._records.has(n)){const m=this._records.get(n);this._maybeAddToChanges(m,i);const x=m._prev,P=m._next;return x&&(x._next=P),P&&(P._prev=x),m._next=null,m._prev=null,m}const a=new VS(n);return this._records.set(n,a),a.currentValue=i,this._addToAdditions(a),a}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,i){Object.is(i,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=i,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,i){n instanceof Map?n.forEach(i):Object.keys(n).forEach(a=>i(n[a],a))}}class VS{constructor(n){this.key=n,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 K1(){return new Um([new j1])}let Um=(()=>{class e{static#e=this.\u0275prov=jn({token:e,providedIn:"root",factory:K1});constructor(i){this.factories=i}static create(i,a){if(null!=a){const m=a.factories.slice();i=i.concat(m)}return new e(i)}static extend(i){return{provide:e,useFactory:a=>e.create(i,a||K1()),deps:[[e,new Wt,new kt]]}}find(i){const a=this.factories.find(m=>m.supports(i));if(null!=a)return a;throw new pe(901,!1)}}return e})();function Y1(){return new Bm([new G1])}let Bm=(()=>{class e{static#e=this.\u0275prov=jn({token:e,providedIn:"root",factory:Y1});constructor(i){this.factories=i}static create(i,a){if(a){const m=a.factories.slice();i=i.concat(m)}return new e(i)}static extend(i){return{provide:e,useFactory:a=>e.create(i,a||Y1()),deps:[[e,new Wt,new kt]]}}find(i){const a=this.factories.find(m=>m.supports(i));if(a)return a;throw new pe(901,!1)}}return e})();const jS=[new G1],zS=new Um([new j1]),WS=new Bm(jS),GS=R1(null,"core",[]);let KS=(()=>{class e{constructor(i){}static#e=this.\u0275fac=function(a){return new(a||e)(Li(sa))};static#t=this.\u0275mod=Us({type:e});static#n=this.\u0275inj=Jt({})}return e})();function sA(e){}function cA(e){try{const{rootComponent:n,appProviders:i,platformProviders:a}=e,m=function MS(e=[]){if(oa)return oa;const n=L1(e);return oa=n,v1(),P1(n),n}(a),x=[S1(),...i||[]],B=new B_({providers:x,parent:m,debugName:"",runEnvironmentInitializers:!1}).injector,q=B.get(gr);return q.run(()=>{B.resolveInjectorInitializers();const he=B.get(Lo,null);let Oe;q.runOutsideAngular(()=>{Oe=q.onError.subscribe({next:Ft=>{he.handleError(Ft)}})});const qe=()=>B.destroy(),Rt=m.get(Sm);return Rt.add(qe),B.onDestroy(()=>{Oe.unsubscribe(),Rt.delete(qe)}),y1(he,q,()=>{const Ft=B.get(Gu);return Ft.runInitializers(),Ft.donePromise.then(()=>{Af(B.get(Zu,Ma)||Ma);const en=B.get(sa);return void 0!==n&&en.bootstrap(n),en})})})}catch(n){return Promise.reject(n)}}let uA=(()=>{class e{constructor(){this.appRef=Bn(sa),this.taskService=Bn(Qa),this.pendingRenderTaskId=null,this.shouldRefreshViews=!1}notify(i=0){this.shouldRefreshViews||=0===i,null===this.pendingRenderTaskId&&(this.pendingRenderTaskId=this.taskService.add(),this.raceTimeoutAndRequestAnimationFrame())}raceTimeoutAndRequestAnimationFrame(){var i=this;return(0,t.A)(function*(){const a=new Promise(x=>setTimeout(x)),m="function"==typeof hn.requestAnimationFrame?new Promise(x=>requestAnimationFrame(()=>x())):null;yield Promise.race([a,m]),i.tick()})()}tick(){try{this.appRef.destroyed||this.appRef._tick(this.shouldRefreshViews)}finally{this.shouldRefreshViews=!1;const i=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(i)}}static#e=this.\u0275fac=function(a){return new(a||e)};static#t=this.\u0275prov=jn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function dA(){return ys([{provide:cu,useExisting:uA},{provide:gr,useClass:Sh}])}function jm(e,n){const i=e[mn];for(let a=Kn;a{let e=!0;return ea()&&(e=!!Bn(Rl,{optional:!0})?.get(Ud,null)),e&&Xs("NgHydration"),e}},{provide:ns,useValue:()=>{lC=!!Bn(f0,{optional:!0}),ea()&&Bn(Ul)&&(function _A(){const e=qo();let n;for(const i of e.body.childNodes)if(i.nodeType===Node.COMMENT_NODE&&i.textContent?.trim()===s0){n=i;break}if(!n)throw new pe(-507,!1)}(),function hA(){aC||(aC=!0,function $w(){o0=Bw}(),function oI(){sb=sI}(),function uT(){oy=cT}(),function cI(){ob=lI}(),function mD(){j_=fD}(),function wM(){t_=CM,Oh=yM}(),function Qx(){Og=Zx}(),function YE(){ug=KE}(),function AI(){fc=SI}())}())},multi:!0},{provide:h0,useFactory:()=>ea()&&Bn(Ul)},{provide:Im,useFactory:()=>{if(ea()&&Bn(Ul)){const e=Bn(sa);return Bn(xs),()=>{(function fA(e,n){return w1(e)})(e).then(()=>{gr.assertInAngularZone(),function Ux(e){const n=e._views;for(const i of n){const a=a0(i);null!==a&&null!==a[fi]&&(yr(a)?ou(a):(ou(a[fi]),Ag(a)))}}(e)})}}return()=>{}},multi:!0}])}function pA(){return ys([{provide:f0,useValue:!0}])}class vA{constructor(){this.views=[],this.indexByContent=new Map}add(n){const i=JSON.stringify(n);if(!this.indexByContent.has(i)){const a=this.views.length;return this.views.push(n),this.indexByContent.set(i,a),a}return this.indexByContent.get(i)}getAll(){return this.views}}let bA=0;function cC(e){return e.ssrId||(e.ssrId="t"+bA++),e.ssrId}function uC(e,n,i){const a=[];return Kl(e,n,i,a),a.length}function yA(e){const n=[];return Cg(e,n),n.length}function dC(e,n){const i=e[fi];return i&&!i.hasAttribute(kl)?td(i,e,n):null}function hC(e,n){const i=Jo(e[fi]),a=dC(i,n),m=Vi(i[fi]),P=td(m,e[Ai],n);i[Wn].setAttribute(m,Nl,`${a}|${P}`)}function CA(e,n){const i=new vA,a=new Map,m=e._views;for(const B of m){const q=a0(B);if(null!==q){const he={serializedViewCollection:i,corruptedTextNodes:a};hr(q)?hC(q,he):dC(q,he),MA(a,n)}}const x=i.getAll();e.injector.get(Rl).set(Ud,x)}function wA(e,n){const i=[];let a="";for(let m=rr;m0&&he===a){const Oe=i[i.length-1];Oe[Uc]??=1,Oe[Uc]++}else a=he,i.push(q)}return i}function ed(e,n,i){const a=n.index-Kn;e[Fd]??={},e[Fd][a]=Kx(n,i)}function fC(e,n){const i=n.index-Kn;e[Bc]??=[],e[Bc].includes(i)||e[Bc].push(i)}function mC(e,n){const i={},a=e[mn];for(let m=Kn;m{m||a.destroyed||(m=!0,e())};hu(x,{injector:i,runOnServer:!0}),queueMicrotask(x)}function IA(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function TA(e,n=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?n:Number(e)}function SA(e){return ot().compileDirectiveDeclaration(cs,`ng:///${e.type.name}/\u0275fac.js`,e)}function AA(e){$_(e.type,e.decorators,e.ctorParameters??null,e.propDecorators??null)}function kA(e){return ot().compileComponentDeclaration(cs,`ng:///${e.type.name}/\u0275cmp.js`,e)}function OA(e){return ot(function RA(e){switch(e){case Pe.Directive:return"directive";case Pe.Component:return"component";case Pe.Injectable:return"injectable";case Pe.Pipe:return"pipe";case Pe.NgModule:return"NgModule"}}(e.target)).compileFactoryDeclaration(cs,`ng:///${e.type.name}/\u0275fac.js`,e)}function LA(e){return ot().compileInjectableDeclaration(cs,`ng:///${e.type.name}/\u0275prov.js`,e)}function NA(e){return ot().compileInjectorDeclaration(cs,`ng:///${e.type.name}/\u0275inj.js`,e)}function PA(e){return ot().compileNgModuleDeclaration(cs,`ng:///${e.type.name}/\u0275mod.js`,e)}function FA(e){return ot().compilePipeDeclaration(cs,`ng:///${e.type.name}/\u0275pipe.js`,e)}function UA(e,n){Xs("NgSignals");const i=R(e);return n?.equal&&(i[b].equal=n.equal),i}function BA(e){const n=s(null);try{return e()}finally{s(n)}}const $A=new xe("",{providedIn:"root",factory:()=>Bn(gC)});let gC=(()=>{class e{static#e=this.\u0275prov=jn({token:e,providedIn:"root",factory:()=>new VA})}return e})();class VA{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Bn(Qa),this.taskId=null}scheduleEffect(n){if(this.enqueue(n),null===this.taskId){const i=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(i),this.taskId=null})}}enqueue(n){const i=n.creationZone;this.queues.has(i)||this.queues.set(i,new Set);const a=this.queues.get(i);a.has(n)||(this.queuedEffectCount++,a.add(n))}flush(){for(;this.queuedEffectCount>0;)for(const[n,i]of this.queues)null===n?this.flushQueue(i):n.run(()=>this.flushQueue(i))}flushQueue(n){for(const i of n)n.delete(i),this.queuedEffectCount--,i.run()}}class jA{constructor(n,i,a,m,x,P){this.scheduler=n,this.effectFn=i,this.creationZone=a,this.injector=x,this.watcher=function pt(e,n,i){const a=Object.create(Ct);i&&(a.consumerAllowSignalWrites=!0),a.fn=e,a.schedule=n;const m=q=>{a.cleanupFn=q};return a.ref={notify:()=>y(a),run:()=>{if(null===a.fn)return;if(function d(){return E}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(a.dirty=!1,a.hasRun&&!k(a))return;a.hasRun=!0;const q=M(a);try{a.cleanupFn(),a.cleanupFn=ct,a.fn(m)}finally{w(a,q)}},cleanup:()=>a.cleanupFn(),destroy:()=>function P(q){(function x(q){return null===q.fn&&null===q.schedule})(q)||(I(q),q.cleanupFn(),q.fn=null,q.schedule=null,q.cleanupFn=ct)}(a),[b]:a},a.ref}(B=>this.runEffect(B),()=>this.schedule(),P),this.unregisterOnDestroy=m?.onDestroy(()=>this.destroy())}runEffect(n){try{this.effectFn(n)}catch(i){this.injector.get(Lo,null,{optional:!0})?.handleError(i)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function _C(e,n){Xs("NgSignals"),!n?.injector&&J();const i=n?.injector??Bn(xs),a=!0!==n?.manualCleanup?i.get(ga):null,m=new jA(i.get($A),e,typeof Zone>"u"?null:Zone.current,a,i,n?.allowSignalWrites??!1),x=i.get(Om,null,{optional:!0});return x&&8&x._lView[kn]?(x._lView[fo]??=[]).push(m.watcher.notify):m.watcher.notify(),m}function HA(e,n){const i=oi(e),a=n.elementInjector||Cs();return new Ya(i).create(a,n.projectableNodes,n.hostElement,n.environmentInjector)}function zA(e){const n=oi(e);if(!n)return null;const i=new Ya(n);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}function WA(...e){return e.reduce((n,i)=>Object.assign(n,i,{providers:[...n.providers,...i.providers]}),{providers:[]})}},9417:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{AbstractControl:()=>de,AbstractControlDirective:()=>We,AbstractFormGroupDirective:()=>ti,COMPOSITION_BUFFER_MODE:()=>r,CheckboxControlValueAccessor:()=>l,CheckboxRequiredValidator:()=>$n,ControlContainer:()=>Ne,DefaultValueAccessor:()=>h,EmailValidator:()=>Xn,FormArray:()=>qi,FormArrayName:()=>Tr,FormBuilder:()=>$r,FormControl:()=>ln,FormControlDirective:()=>Hn,FormControlName:()=>Sr,FormGroup:()=>ke,FormGroupDirective:()=>Ji,FormGroupName:()=>lr,FormRecord:()=>an,FormsModule:()=>Qr,MaxLengthValidator:()=>li,MaxValidator:()=>$t,MinLengthValidator:()=>Vn,MinValidator:()=>sn,NG_ASYNC_VALIDATORS:()=>M,NG_VALIDATORS:()=>y,NG_VALUE_ACCESSOR:()=>f,NgControl:()=>Ie,NgControlStatus:()=>Se,NgControlStatusGroup:()=>Q,NgForm:()=>le,NgModel:()=>On,NgModelGroup:()=>hi,NgSelectOption:()=>Li,NonNullableFormBuilder:()=>Kr,NumberValueAccessor:()=>qn,PatternValidator:()=>Bi,RadioControlValueAccessor:()=>Ui,RangeValueAccessor:()=>vn,ReactiveFormsModule:()=>Do,RequiredValidator:()=>Tn,SelectControlValueAccessor:()=>es,SelectMultipleControlValueAccessor:()=>br,UntypedFormArray:()=>di,UntypedFormBuilder:()=>Yr,UntypedFormControl:()=>Gn,UntypedFormGroup:()=>It,VERSION:()=>Zr,Validators:()=>k,isFormArray:()=>ns,isFormControl:()=>Jn,isFormGroup:()=>Gt,isFormRecord:()=>_t,\u0275InternalFormsSharedModule:()=>Br,\u0275NgNoValidate:()=>yn,\u0275NgSelectMultipleOption:()=>vs});var t=g(4438),_=g(177),C=g(8455),E=g(7468),u=g(6354);let b=(()=>{class Ce{constructor(ae,Ve){this._renderer=ae,this._elementRef=Ve,this.onChange=St=>{},this.onTouched=()=>{}}setProperty(ae,Ve){this._renderer.setProperty(this._elementRef.nativeElement,ae,Ve)}registerOnTouched(ae){this.onTouched=ae}registerOnChange(ae){this.onChange=ae}setDisabledState(ae){this.setProperty("disabled",ae)}static#e=this.\u0275fac=function(Ve){return new(Ve||Ce)(t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce})}return Ce})(),s=(()=>{class Ce extends b{static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(Ce)))(St||Ce)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,features:[t.\u0275\u0275InheritDefinitionFeature]})}return Ce})();const f=new t.InjectionToken(""),d={provide:f,useExisting:(0,t.forwardRef)(()=>l),multi:!0};let l=(()=>{class Ce extends s{writeValue(ae){this.setProperty("checked",ae)}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(Ce)))(St||Ce)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(Ve,St){1&Ve&&t.\u0275\u0275listener("change",function(ni){return St.onChange(ni.target.checked)})("blur",function(){return St.onTouched()})},features:[t.\u0275\u0275ProvidersFeature([d]),t.\u0275\u0275InheritDefinitionFeature]})}return Ce})();const c={provide:f,useExisting:(0,t.forwardRef)(()=>h),multi:!0},r=new t.InjectionToken("");let h=(()=>{class Ce extends b{constructor(ae,Ve,St){super(ae,Ve),this._compositionMode=St,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function o(){const Ce=(0,_.\u0275getDOM)()?(0,_.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(Ce.toLowerCase())}())}writeValue(ae){this.setProperty("value",ae??"")}_handleInput(ae){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(ae)}_compositionStart(){this._composing=!0}_compositionEnd(ae){this._composing=!1,this._compositionMode&&this.onChange(ae)}static#e=this.\u0275fac=function(Ve){return new(Ve||Ce)(t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(r,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,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(Ve,St){1&Ve&&t.\u0275\u0275listener("input",function(ni){return St._handleInput(ni.target.value)})("blur",function(){return St.onTouched()})("compositionstart",function(){return St._compositionStart()})("compositionend",function(ni){return St._compositionEnd(ni.target.value)})},features:[t.\u0275\u0275ProvidersFeature([c]),t.\u0275\u0275InheritDefinitionFeature]})}return Ce})();function p(Ce){return null==Ce||("string"==typeof Ce||Array.isArray(Ce))&&0===Ce.length}function v(Ce){return null!=Ce&&"number"==typeof Ce.length}const y=new t.InjectionToken(""),M=new t.InjectionToken(""),w=/^(?=.{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 k{static min(Ae){return I(Ae)}static max(Ae){return D(Ae)}static required(Ae){return O(Ae)}static requiredTrue(Ae){return T(Ae)}static email(Ae){return U(Ae)}static minLength(Ae){return S(Ae)}static maxLength(Ae){return R(Ae)}static pattern(Ae){return N(Ae)}static nullValidator(Ae){return null}static compose(Ae){return G(Ae)}static composeAsync(Ae){return W(Ae)}}function I(Ce){return Ae=>{if(p(Ae.value)||p(Ce))return null;const ae=parseFloat(Ae.value);return!isNaN(ae)&&ae{if(p(Ae.value)||p(Ce))return null;const ae=parseFloat(Ae.value);return!isNaN(ae)&&ae>Ce?{max:{max:Ce,actual:Ae.value}}:null}}function O(Ce){return p(Ce.value)?{required:!0}:null}function T(Ce){return!0===Ce.value?null:{required:!0}}function U(Ce){return p(Ce.value)||w.test(Ce.value)?null:{email:!0}}function S(Ce){return Ae=>p(Ae.value)||!v(Ae.value)?null:Ae.value.lengthv(Ae.value)&&Ae.value.length>Ce?{maxlength:{requiredLength:Ce,actualLength:Ae.value.length}}:null}function N(Ce){if(!Ce)return A;let Ae,ae;return"string"==typeof Ce?(ae="","^"!==Ce.charAt(0)&&(ae+="^"),ae+=Ce,"$"!==Ce.charAt(Ce.length-1)&&(ae+="$"),Ae=new RegExp(ae)):(ae=Ce.toString(),Ae=Ce),Ve=>{if(p(Ve.value))return null;const St=Ve.value;return Ae.test(St)?null:{pattern:{requiredPattern:ae,actualValue:St}}}}function A(Ce){return null}function F(Ce){return null!=Ce}function Y(Ce){return(0,t.\u0275isPromise)(Ce)?(0,C.H)(Ce):Ce}function ee(Ce){let Ae={};return Ce.forEach(ae=>{Ae=null!=ae?{...Ae,...ae}:Ae}),0===Object.keys(Ae).length?null:Ae}function ie(Ce,Ae){return Ae.map(ae=>ae(Ce))}function j(Ce){return Ce.map(Ae=>function $(Ce){return!Ce.validate}(Ae)?Ae:ae=>Ae.validate(ae))}function G(Ce){if(!Ce)return null;const Ae=Ce.filter(F);return 0==Ae.length?null:function(ae){return ee(ie(ae,Ae))}}function V(Ce){return null!=Ce?G(j(Ce)):null}function W(Ce){if(!Ce)return null;const Ae=Ce.filter(F);return 0==Ae.length?null:function(ae){const Ve=ie(ae,Ae).map(Y);return(0,E.p)(Ve).pipe((0,u.T)(ee))}}function K(Ce){return null!=Ce?W(j(Ce)):null}function ce(Ce,Ae){return null===Ce?[Ae]:Array.isArray(Ce)?[...Ce,Ae]:[Ce,Ae]}function ue(Ce){return Ce._rawValidators}function ve(Ce){return Ce._rawAsyncValidators}function Ye(Ce){return Ce?Array.isArray(Ce)?Ce:[Ce]:[]}function pt(Ce,Ae){return Array.isArray(Ce)?Ce.includes(Ae):Ce===Ae}function ct(Ce,Ae){const ae=Ye(Ae);return Ye(Ce).forEach(St=>{pt(ae,St)||ae.push(St)}),ae}function Ct(Ce,Ae){return Ye(Ae).filter(ae=>!pt(Ce,ae))}class We{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(Ae){this._rawValidators=Ae||[],this._composedValidatorFn=V(this._rawValidators)}_setAsyncValidators(Ae){this._rawAsyncValidators=Ae||[],this._composedAsyncValidatorFn=K(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Ae){this._onDestroyCallbacks.push(Ae)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Ae=>Ae()),this._onDestroyCallbacks=[]}reset(Ae=void 0){this.control&&this.control.reset(Ae)}hasError(Ae,ae){return!!this.control&&this.control.hasError(Ae,ae)}getError(Ae,ae){return this.control?this.control.getError(Ae,ae):null}}class Ne extends We{get formDirective(){return null}get path(){return null}}class Ie extends We{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class rt{constructor(Ae){this._cd=Ae}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Se=(()=>{class Ce extends rt{constructor(ae){super(ae)}static#e=this.\u0275fac=function(Ve){return new(Ve||Ce)(t.\u0275\u0275directiveInject(Ie,2))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ve,St){2&Ve&&t.\u0275\u0275classProp("ng-untouched",St.isUntouched)("ng-touched",St.isTouched)("ng-pristine",St.isPristine)("ng-dirty",St.isDirty)("ng-valid",St.isValid)("ng-invalid",St.isInvalid)("ng-pending",St.isPending)},features:[t.\u0275\u0275InheritDefinitionFeature]})}return Ce})(),Q=(()=>{class Ce extends rt{constructor(ae){super(ae)}static#e=this.\u0275fac=function(Ve){return new(Ve||Ce)(t.\u0275\u0275directiveInject(Ne,10))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Ve,St){2&Ve&&t.\u0275\u0275classProp("ng-untouched",St.isUntouched)("ng-touched",St.isTouched)("ng-pristine",St.isPristine)("ng-dirty",St.isDirty)("ng-valid",St.isValid)("ng-invalid",St.isInvalid)("ng-pending",St.isPending)("ng-submitted",St.isSubmitted)},features:[t.\u0275\u0275InheritDefinitionFeature]})}return Ce})();const Bt="VALID",_e="INVALID",Ze="PENDING",Qe="DISABLED";function Ot(Ce){return(fe(Ce)?Ce.validators:Ce)||null}function ft(Ce,Ae){return(fe(Ae)?Ae.asyncValidators:Ce)||null}function fe(Ce){return null!=Ce&&!Array.isArray(Ce)&&"object"==typeof Ce}function Ge(Ce,Ae,ae){const Ve=Ce.controls;if(!(Ae?Object.keys(Ve):Ve).length)throw new t.\u0275RuntimeError(1e3,"");if(!Ve[ae])throw new t.\u0275RuntimeError(1001,"")}function te(Ce,Ae,ae){Ce._forEachChild((Ve,St)=>{if(void 0===ae[St])throw new t.\u0275RuntimeError(1002,"")})}class de{constructor(Ae,ae){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(Ae),this._assignAsyncValidators(ae)}get validator(){return this._composedValidatorFn}set validator(Ae){this._rawValidators=this._composedValidatorFn=Ae}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Ae){this._rawAsyncValidators=this._composedAsyncValidatorFn=Ae}get parent(){return this._parent}get valid(){return this.status===Bt}get invalid(){return this.status===_e}get pending(){return this.status==Ze}get disabled(){return this.status===Qe}get enabled(){return this.status!==Qe}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Ae){this._assignValidators(Ae)}setAsyncValidators(Ae){this._assignAsyncValidators(Ae)}addValidators(Ae){this.setValidators(ct(Ae,this._rawValidators))}addAsyncValidators(Ae){this.setAsyncValidators(ct(Ae,this._rawAsyncValidators))}removeValidators(Ae){this.setValidators(Ct(Ae,this._rawValidators))}removeAsyncValidators(Ae){this.setAsyncValidators(Ct(Ae,this._rawAsyncValidators))}hasValidator(Ae){return pt(this._rawValidators,Ae)}hasAsyncValidator(Ae){return pt(this._rawAsyncValidators,Ae)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Ae={}){this.touched=!0,this._parent&&!Ae.onlySelf&&this._parent.markAsTouched(Ae)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Ae=>Ae.markAllAsTouched())}markAsUntouched(Ae={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(ae=>{ae.markAsUntouched({onlySelf:!0})}),this._parent&&!Ae.onlySelf&&this._parent._updateTouched(Ae)}markAsDirty(Ae={}){this.pristine=!1,this._parent&&!Ae.onlySelf&&this._parent.markAsDirty(Ae)}markAsPristine(Ae={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(ae=>{ae.markAsPristine({onlySelf:!0})}),this._parent&&!Ae.onlySelf&&this._parent._updatePristine(Ae)}markAsPending(Ae={}){this.status=Ze,!1!==Ae.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Ae.onlySelf&&this._parent.markAsPending(Ae)}disable(Ae={}){const ae=this._parentMarkedDirty(Ae.onlySelf);this.status=Qe,this.errors=null,this._forEachChild(Ve=>{Ve.disable({...Ae,onlySelf:!0})}),this._updateValue(),!1!==Ae.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Ae,skipPristineCheck:ae}),this._onDisabledChange.forEach(Ve=>Ve(!0))}enable(Ae={}){const ae=this._parentMarkedDirty(Ae.onlySelf);this.status=Bt,this._forEachChild(Ve=>{Ve.enable({...Ae,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ae.emitEvent}),this._updateAncestors({...Ae,skipPristineCheck:ae}),this._onDisabledChange.forEach(Ve=>Ve(!1))}_updateAncestors(Ae){this._parent&&!Ae.onlySelf&&(this._parent.updateValueAndValidity(Ae),Ae.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Ae){this._parent=Ae}getRawValue(){return this.value}updateValueAndValidity(Ae={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Bt||this.status===Ze)&&this._runAsyncValidator(Ae.emitEvent)),!1!==Ae.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Ae.onlySelf&&this._parent.updateValueAndValidity(Ae)}_updateTreeValidity(Ae={emitEvent:!0}){this._forEachChild(ae=>ae._updateTreeValidity(Ae)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ae.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Qe:Bt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Ae){if(this.asyncValidator){this.status=Ze,this._hasOwnPendingAsyncValidator=!0;const ae=Y(this.asyncValidator(this));this._asyncValidationSubscription=ae.subscribe(Ve=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Ve,{emitEvent:Ae})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Ae,ae={}){this.errors=Ae,this._updateControlsErrors(!1!==ae.emitEvent)}get(Ae){let ae=Ae;return null==ae||(Array.isArray(ae)||(ae=ae.split(".")),0===ae.length)?null:ae.reduce((Ve,St)=>Ve&&Ve._find(St),this)}getError(Ae,ae){const Ve=ae?this.get(ae):this;return Ve&&Ve.errors?Ve.errors[Ae]:null}hasError(Ae,ae){return!!this.getError(Ae,ae)}get root(){let Ae=this;for(;Ae._parent;)Ae=Ae._parent;return Ae}_updateControlsErrors(Ae){this.status=this._calculateStatus(),Ae&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Ae)}_initObservables(){this.valueChanges=new t.EventEmitter,this.statusChanges=new t.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?Qe:this.errors?_e:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ze)?Ze:this._anyControlsHaveStatus(_e)?_e:Bt}_anyControlsHaveStatus(Ae){return this._anyControls(ae=>ae.status===Ae)}_anyControlsDirty(){return this._anyControls(Ae=>Ae.dirty)}_anyControlsTouched(){return this._anyControls(Ae=>Ae.touched)}_updatePristine(Ae={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Ae.onlySelf&&this._parent._updatePristine(Ae)}_updateTouched(Ae={}){this.touched=this._anyControlsTouched(),this._parent&&!Ae.onlySelf&&this._parent._updateTouched(Ae)}_registerOnCollectionChange(Ae){this._onCollectionChange=Ae}_setUpdateStrategy(Ae){fe(Ae)&&null!=Ae.updateOn&&(this._updateOn=Ae.updateOn)}_parentMarkedDirty(Ae){return!Ae&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Ae){return null}_assignValidators(Ae){this._rawValidators=Array.isArray(Ae)?Ae.slice():Ae,this._composedValidatorFn=function tt(Ce){return Array.isArray(Ce)?V(Ce):Ce||null}(this._rawValidators)}_assignAsyncValidators(Ae){this._rawAsyncValidators=Array.isArray(Ae)?Ae.slice():Ae,this._composedAsyncValidatorFn=function Le(Ce){return Array.isArray(Ce)?K(Ce):Ce||null}(this._rawAsyncValidators)}}class ke extends de{constructor(Ae,ae,Ve){super(Ot(ae),ft(Ve,ae)),this.controls=Ae,this._initObservables(),this._setUpdateStrategy(ae),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Ae,ae){return this.controls[Ae]?this.controls[Ae]:(this.controls[Ae]=ae,ae.setParent(this),ae._registerOnCollectionChange(this._onCollectionChange),ae)}addControl(Ae,ae,Ve={}){this.registerControl(Ae,ae),this.updateValueAndValidity({emitEvent:Ve.emitEvent}),this._onCollectionChange()}removeControl(Ae,ae={}){this.controls[Ae]&&this.controls[Ae]._registerOnCollectionChange(()=>{}),delete this.controls[Ae],this.updateValueAndValidity({emitEvent:ae.emitEvent}),this._onCollectionChange()}setControl(Ae,ae,Ve={}){this.controls[Ae]&&this.controls[Ae]._registerOnCollectionChange(()=>{}),delete this.controls[Ae],ae&&this.registerControl(Ae,ae),this.updateValueAndValidity({emitEvent:Ve.emitEvent}),this._onCollectionChange()}contains(Ae){return this.controls.hasOwnProperty(Ae)&&this.controls[Ae].enabled}setValue(Ae,ae={}){te(this,0,Ae),Object.keys(Ae).forEach(Ve=>{Ge(this,!0,Ve),this.controls[Ve].setValue(Ae[Ve],{onlySelf:!0,emitEvent:ae.emitEvent})}),this.updateValueAndValidity(ae)}patchValue(Ae,ae={}){null!=Ae&&(Object.keys(Ae).forEach(Ve=>{const St=this.controls[Ve];St&&St.patchValue(Ae[Ve],{onlySelf:!0,emitEvent:ae.emitEvent})}),this.updateValueAndValidity(ae))}reset(Ae={},ae={}){this._forEachChild((Ve,St)=>{Ve.reset(Ae?Ae[St]:null,{onlySelf:!0,emitEvent:ae.emitEvent})}),this._updatePristine(ae),this._updateTouched(ae),this.updateValueAndValidity(ae)}getRawValue(){return this._reduceChildren({},(Ae,ae,Ve)=>(Ae[Ve]=ae.getRawValue(),Ae))}_syncPendingControls(){let Ae=this._reduceChildren(!1,(ae,Ve)=>!!Ve._syncPendingControls()||ae);return Ae&&this.updateValueAndValidity({onlySelf:!0}),Ae}_forEachChild(Ae){Object.keys(this.controls).forEach(ae=>{const Ve=this.controls[ae];Ve&&Ae(Ve,ae)})}_setUpControls(){this._forEachChild(Ae=>{Ae.setParent(this),Ae._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Ae){for(const[ae,Ve]of Object.entries(this.controls))if(this.contains(ae)&&Ae(Ve))return!0;return!1}_reduceValue(){return this._reduceChildren({},(ae,Ve,St)=>((Ve.enabled||this.disabled)&&(ae[St]=Ve.value),ae))}_reduceChildren(Ae,ae){let Ve=Ae;return this._forEachChild((St,xn)=>{Ve=ae(Ve,St,xn)}),Ve}_allControlsDisabled(){for(const Ae of Object.keys(this.controls))if(this.controls[Ae].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Ae){return this.controls.hasOwnProperty(Ae)?this.controls[Ae]:null}}const It=ke,Gt=Ce=>Ce instanceof ke;class an extends ke{}const _t=Ce=>Ce instanceof an,Lt=new t.InjectionToken("CallSetDisabledState",{providedIn:"root",factory:()=>Je}),Je="always";function Fe(Ce,Ae){return[...Ae.path,Ce]}function et(Ce,Ae,ae=Je){qt(Ce,Ae),Ae.valueAccessor.writeValue(Ce.value),(Ce.disabled||"always"===ae)&&Ae.valueAccessor.setDisabledState?.(Ce.disabled),function Ln(Ce,Ae){Ae.valueAccessor.registerOnChange(ae=>{Ce._pendingValue=ae,Ce._pendingChange=!0,Ce._pendingDirty=!0,"change"===Ce.updateOn&&Ei(Ce,Ae)})}(Ce,Ae),function jn(Ce,Ae){const ae=(Ve,St)=>{Ae.valueAccessor.writeValue(Ve),St&&Ae.viewToModelUpdate(Ve)};Ce.registerOnChange(ae),Ae._registerOnDestroy(()=>{Ce._unregisterOnChange(ae)})}(Ce,Ae),function Oi(Ce,Ae){Ae.valueAccessor.registerOnTouched(()=>{Ce._pendingTouched=!0,"blur"===Ce.updateOn&&Ce._pendingChange&&Ei(Ce,Ae),"submit"!==Ce.updateOn&&Ce.markAsTouched()})}(Ce,Ae),function At(Ce,Ae){if(Ae.valueAccessor.setDisabledState){const ae=Ve=>{Ae.valueAccessor.setDisabledState(Ve)};Ce.registerOnDisabledChange(ae),Ae._registerOnDestroy(()=>{Ce._unregisterOnDisabledChange(ae)})}}(Ce,Ae)}function je(Ce,Ae,ae=!0){const Ve=()=>{};Ae.valueAccessor&&(Ae.valueAccessor.registerOnChange(Ve),Ae.valueAccessor.registerOnTouched(Ve)),Cn(Ce,Ae),Ce&&(Ae._invokeOnDestroyCallbacks(),Ce._registerOnCollectionChange(()=>{}))}function dt(Ce,Ae){Ce.forEach(ae=>{ae.registerOnValidatorChange&&ae.registerOnValidatorChange(Ae)})}function qt(Ce,Ae){const ae=ue(Ce);null!==Ae.validator?Ce.setValidators(ce(ae,Ae.validator)):"function"==typeof ae&&Ce.setValidators([ae]);const Ve=ve(Ce);null!==Ae.asyncValidator?Ce.setAsyncValidators(ce(Ve,Ae.asyncValidator)):"function"==typeof Ve&&Ce.setAsyncValidators([Ve]);const St=()=>Ce.updateValueAndValidity();dt(Ae._rawValidators,St),dt(Ae._rawAsyncValidators,St)}function Cn(Ce,Ae){let ae=!1;if(null!==Ce){if(null!==Ae.validator){const St=ue(Ce);if(Array.isArray(St)&&St.length>0){const xn=St.filter(ni=>ni!==Ae.validator);xn.length!==St.length&&(ae=!0,Ce.setValidators(xn))}}if(null!==Ae.asyncValidator){const St=ve(Ce);if(Array.isArray(St)&&St.length>0){const xn=St.filter(ni=>ni!==Ae.asyncValidator);xn.length!==St.length&&(ae=!0,Ce.setAsyncValidators(xn))}}}const Ve=()=>{};return dt(Ae._rawValidators,Ve),dt(Ae._rawAsyncValidators,Ve),ae}function Ei(Ce,Ae){Ce._pendingDirty&&Ce.markAsDirty(),Ce.setValue(Ce._pendingValue,{emitModelToViewChange:!1}),Ae.viewToModelUpdate(Ce._pendingValue),Ce._pendingChange=!1}function at(Ce,Ae){qt(Ce,Ae)}function Ue(Ce,Ae){if(!Ce.hasOwnProperty("model"))return!1;const ae=Ce.model;return!!ae.isFirstChange()||!Object.is(Ae,ae.currentValue)}function Ke(Ce,Ae){Ce._syncPendingControls(),Ae.forEach(ae=>{const Ve=ae.control;"submit"===Ve.updateOn&&Ve._pendingChange&&(ae.viewToModelUpdate(Ve._pendingValue),Ve._pendingChange=!1)})}function mt(Ce,Ae){if(!Ae)return null;let ae,Ve,St;return Array.isArray(Ae),Ae.forEach(xn=>{xn.constructor===h?ae=xn:function ut(Ce){return Object.getPrototypeOf(Ce.constructor)===s}(xn)?Ve=xn:St=xn}),St||Ve||ae||null}const H={provide:Ne,useExisting:(0,t.forwardRef)(()=>le)},me=Promise.resolve();let le=(()=>{class Ce extends Ne{constructor(ae,Ve,St){super(),this.callSetDisabledState=St,this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.EventEmitter,this.form=new ke({},V(ae),K(Ve))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(ae){me.then(()=>{const Ve=this._findContainer(ae.path);ae.control=Ve.registerControl(ae.name,ae.control),et(ae.control,ae,this.callSetDisabledState),ae.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(ae)})}getControl(ae){return this.form.get(ae.path)}removeControl(ae){me.then(()=>{const Ve=this._findContainer(ae.path);Ve&&Ve.removeControl(ae.name),this._directives.delete(ae)})}addFormGroup(ae){me.then(()=>{const Ve=this._findContainer(ae.path),St=new ke({});at(St,ae),Ve.registerControl(ae.name,St),St.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(ae){me.then(()=>{const Ve=this._findContainer(ae.path);Ve&&Ve.removeControl(ae.name)})}getFormGroup(ae){return this.form.get(ae.path)}updateModel(ae,Ve){me.then(()=>{this.form.get(ae.path).setValue(Ve)})}setValue(ae){this.control.setValue(ae)}onSubmit(ae){return this.submitted=!0,Ke(this.form,this._directives),this.ngSubmit.emit(ae),"dialog"===ae?.target?.method}onReset(){this.resetForm()}resetForm(ae=void 0){this.form.reset(ae),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(ae){return ae.pop(),ae.length?this.form.get(ae):this.form}static#e=this.\u0275fac=function(Ve){return new(Ve||Ce)(t.\u0275\u0275directiveInject(y,10),t.\u0275\u0275directiveInject(M,10),t.\u0275\u0275directiveInject(Lt,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Ve,St){1&Ve&&t.\u0275\u0275listener("submit",function(ni){return St.onSubmit(ni)})("reset",function(){return St.onReset()})},inputs:{options:[t.\u0275\u0275InputFlags.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t.\u0275\u0275ProvidersFeature([H]),t.\u0275\u0275InheritDefinitionFeature]})}return Ce})();function $e(Ce,Ae){const ae=Ce.indexOf(Ae);ae>-1&&Ce.splice(ae,1)}function wt(Ce){return"object"==typeof Ce&&null!==Ce&&2===Object.keys(Ce).length&&"value"in Ce&&"disabled"in Ce}const ln=class extends de{constructor(Ae=null,ae,Ve){super(Ot(ae),ft(Ve,ae)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Ae),this._setUpdateStrategy(ae),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),fe(ae)&&(ae.nonNullable||ae.initialValueIsDefault)&&(this.defaultValue=wt(Ae)?Ae.value:Ae)}setValue(Ae,ae={}){this.value=this._pendingValue=Ae,this._onChange.length&&!1!==ae.emitModelToViewChange&&this._onChange.forEach(Ve=>Ve(this.value,!1!==ae.emitViewToModelChange)),this.updateValueAndValidity(ae)}patchValue(Ae,ae={}){this.setValue(Ae,ae)}reset(Ae=this.defaultValue,ae={}){this._applyFormState(Ae),this.markAsPristine(ae),this.markAsUntouched(ae),this.setValue(this.value,ae),this._pendingChange=!1}_updateValue(){}_anyControls(Ae){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Ae){this._onChange.push(Ae)}_unregisterOnChange(Ae){$e(this._onChange,Ae)}registerOnDisabledChange(Ae){this._onDisabledChange.push(Ae)}_unregisterOnDisabledChange(Ae){$e(this._onDisabledChange,Ae)}_forEachChild(Ae){}_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(Ae){wt(Ae)?(this.value=this._pendingValue=Ae.value,Ae.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Ae}},Gn=ln,Jn=Ce=>Ce instanceof ln;let ti=(()=>{class Ce extends Ne{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Fe(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(Ce)))(St||Ce)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,features:[t.\u0275\u0275InheritDefinitionFeature]})}return Ce})();const _i={provide:Ne,useExisting:(0,t.forwardRef)(()=>hi)};let hi=(()=>{class Ce extends ti{constructor(ae,Ve,St){super(),this.name="",this._parent=ae,this._setValidators(Ve),this._setAsyncValidators(St)}_checkParentType(){}static#e=this.\u0275fac=function(Ve){return new(Ve||Ce)(t.\u0275\u0275directiveInject(Ne,5),t.\u0275\u0275directiveInject(y,10),t.\u0275\u0275directiveInject(M,10))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["","ngModelGroup",""]],inputs:{name:[t.\u0275\u0275InputFlags.None,"ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[t.\u0275\u0275ProvidersFeature([_i]),t.\u0275\u0275InheritDefinitionFeature]})}return Ce})();const xi={provide:Ie,useExisting:(0,t.forwardRef)(()=>On)},Ri=Promise.resolve();let On=(()=>{class Ce extends Ie{constructor(ae,Ve,St,xn,ni,Er){super(),this._changeDetectorRef=ni,this.callSetDisabledState=Er,this.control=new ln,this._registered=!1,this.name="",this.update=new t.EventEmitter,this._parent=ae,this._setValidators(Ve),this._setAsyncValidators(St),this.valueAccessor=mt(0,xn)}ngOnChanges(ae){if(this._checkForErrors(),!this._registered||"name"in ae){if(this._registered&&(this._checkName(),this.formDirective)){const Ve=ae.name.previousValue;this.formDirective.removeControl({name:Ve,path:this._getPath(Ve)})}this._setUpControl()}"isDisabled"in ae&&this._updateDisabled(ae),Ue(ae,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(ae){this.viewModel=ae,this.update.emit(ae)}_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(){et(this.control,this,this.callSetDisabledState),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(ae){Ri.then(()=>{this.control.setValue(ae,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(ae){const Ve=ae.isDisabled.currentValue,St=0!==Ve&&(0,t.booleanAttribute)(Ve);Ri.then(()=>{St&&!this.control.disabled?this.control.disable():!St&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(ae){return this._parent?Fe(ae,this._parent):[ae]}static#e=this.\u0275fac=function(Ve){return new(Ve||Ce)(t.\u0275\u0275directiveInject(Ne,9),t.\u0275\u0275directiveInject(y,10),t.\u0275\u0275directiveInject(M,10),t.\u0275\u0275directiveInject(f,10),t.\u0275\u0275directiveInject(t.ChangeDetectorRef,8),t.\u0275\u0275directiveInject(Lt,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[t.\u0275\u0275InputFlags.None,"disabled","isDisabled"],model:[t.\u0275\u0275InputFlags.None,"ngModel","model"],options:[t.\u0275\u0275InputFlags.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t.\u0275\u0275ProvidersFeature([xi]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]})}return Ce})(),yn=(()=>{class Ce{static#e=this.\u0275fac=function(Ve){return new(Ve||Ce)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return Ce})();const $i={provide:f,useExisting:(0,t.forwardRef)(()=>qn),multi:!0};let qn=(()=>{class Ce extends s{writeValue(ae){this.setProperty("value",ae??"")}registerOnChange(ae){this.onChange=Ve=>{ae(""==Ve?null:parseFloat(Ve))}}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(Ce)))(St||Ce)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Ve,St){1&Ve&&t.\u0275\u0275listener("input",function(ni){return St.onChange(ni.target.value)})("blur",function(){return St.onTouched()})},features:[t.\u0275\u0275ProvidersFeature([$i]),t.\u0275\u0275InheritDefinitionFeature]})}return Ce})();const Zn={provide:f,useExisting:(0,t.forwardRef)(()=>Ui),multi:!0};let Wi=(()=>{class Ce{constructor(){this._accessors=[]}add(ae,Ve){this._accessors.push([ae,Ve])}remove(ae){for(let Ve=this._accessors.length-1;Ve>=0;--Ve)if(this._accessors[Ve][1]===ae)return void this._accessors.splice(Ve,1)}select(ae){this._accessors.forEach(Ve=>{this._isSameGroup(Ve,ae)&&Ve[1]!==ae&&Ve[1].fireUncheck(ae.value)})}_isSameGroup(ae,Ve){return!!ae[0].control&&ae[0]._parent===Ve._control._parent&&ae[1].name===Ve.name}static#e=this.\u0275fac=function(Ve){return new(Ve||Ce)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})(),Ui=(()=>{class Ce extends s{constructor(ae,Ve,St,xn){super(ae,Ve),this._registry=St,this._injector=xn,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,t.inject)(Lt,{optional:!0})??Je}ngOnInit(){this._control=this._injector.get(Ie),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(ae){this._state=ae===this.value,this.setProperty("checked",this._state)}registerOnChange(ae){this._fn=ae,this.onChange=()=>{ae(this.value),this._registry.select(this)}}setDisabledState(ae){(this.setDisabledStateFired||ae||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",ae),this.setDisabledStateFired=!0}fireUncheck(ae){this.writeValue(ae)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function(Ve){return new(Ve||Ce)(t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(Wi),t.\u0275\u0275directiveInject(t.Injector))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(Ve,St){1&Ve&&t.\u0275\u0275listener("change",function(){return St.onChange()})("blur",function(){return St.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[t.\u0275\u0275ProvidersFeature([Zn]),t.\u0275\u0275InheritDefinitionFeature]})}return Ce})();const Un={provide:f,useExisting:(0,t.forwardRef)(()=>vn),multi:!0};let vn=(()=>{class Ce extends s{writeValue(ae){this.setProperty("value",parseFloat(ae))}registerOnChange(ae){this.onChange=Ve=>{ae(""==Ve?null:parseFloat(Ve))}}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(Ce)))(St||Ce)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(Ve,St){1&Ve&&t.\u0275\u0275listener("change",function(ni){return St.onChange(ni.target.value)})("input",function(ni){return St.onChange(ni.target.value)})("blur",function(){return St.onTouched()})},features:[t.\u0275\u0275ProvidersFeature([Un]),t.\u0275\u0275InheritDefinitionFeature]})}return Ce})();const Dn=new t.InjectionToken(""),Rn={provide:Ie,useExisting:(0,t.forwardRef)(()=>Hn)};let Hn=(()=>{class Ce extends Ie{set isDisabled(ae){}static#e=this._ngModelWarningSentOnce=!1;constructor(ae,Ve,St,xn,ni){super(),this._ngModelWarningConfig=xn,this.callSetDisabledState=ni,this.update=new t.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(ae),this._setAsyncValidators(Ve),this.valueAccessor=mt(0,St)}ngOnChanges(ae){if(this._isControlChanged(ae)){const Ve=ae.form.previousValue;Ve&&je(Ve,this,!1),et(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Ue(ae,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&je(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(ae){this.viewModel=ae,this.update.emit(ae)}_isControlChanged(ae){return ae.hasOwnProperty("form")}static#t=this.\u0275fac=function(Ve){return new(Ve||Ce)(t.\u0275\u0275directiveInject(y,10),t.\u0275\u0275directiveInject(M,10),t.\u0275\u0275directiveInject(f,10),t.\u0275\u0275directiveInject(Dn,8),t.\u0275\u0275directiveInject(Lt,8))};static#n=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["","formControl",""]],inputs:{form:[t.\u0275\u0275InputFlags.None,"formControl","form"],isDisabled:[t.\u0275\u0275InputFlags.None,"disabled","isDisabled"],model:[t.\u0275\u0275InputFlags.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t.\u0275\u0275ProvidersFeature([Rn]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]})}return Ce})();const ji={provide:Ne,useExisting:(0,t.forwardRef)(()=>Ji)};let Ji=(()=>{class Ce extends Ne{constructor(ae,Ve,St){super(),this.callSetDisabledState=St,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.EventEmitter,this._setValidators(ae),this._setAsyncValidators(Ve)}ngOnChanges(ae){this._checkFormPresent(),ae.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Cn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(ae){const Ve=this.form.get(ae.path);return et(Ve,ae,this.callSetDisabledState),Ve.updateValueAndValidity({emitEvent:!1}),this.directives.push(ae),Ve}getControl(ae){return this.form.get(ae.path)}removeControl(ae){je(ae.control||null,ae,!1),function xe(Ce,Ae){const ae=Ce.indexOf(Ae);ae>-1&&Ce.splice(ae,1)}(this.directives,ae)}addFormGroup(ae){this._setUpFormContainer(ae)}removeFormGroup(ae){this._cleanUpFormContainer(ae)}getFormGroup(ae){return this.form.get(ae.path)}addFormArray(ae){this._setUpFormContainer(ae)}removeFormArray(ae){this._cleanUpFormContainer(ae)}getFormArray(ae){return this.form.get(ae.path)}updateModel(ae,Ve){this.form.get(ae.path).setValue(Ve)}onSubmit(ae){return this.submitted=!0,Ke(this.form,this.directives),this.ngSubmit.emit(ae),"dialog"===ae?.target?.method}onReset(){this.resetForm()}resetForm(ae=void 0){this.form.reset(ae),this.submitted=!1}_updateDomValue(){this.directives.forEach(ae=>{const Ve=ae.control,St=this.form.get(ae.path);Ve!==St&&(je(Ve||null,ae),Jn(St)&&(et(St,ae,this.callSetDisabledState),ae.control=St))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(ae){const Ve=this.form.get(ae.path);at(Ve,ae),Ve.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(ae){if(this.form){const Ve=this.form.get(ae.path);Ve&&function Jt(Ce,Ae){return Cn(Ce,Ae)}(Ve,ae)&&Ve.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){qt(this.form,this),this._oldForm&&Cn(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(Ve){return new(Ve||Ce)(t.\u0275\u0275directiveInject(y,10),t.\u0275\u0275directiveInject(M,10),t.\u0275\u0275directiveInject(Lt,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["","formGroup",""]],hostBindings:function(Ve,St){1&Ve&&t.\u0275\u0275listener("submit",function(ni){return St.onSubmit(ni)})("reset",function(){return St.onReset()})},inputs:{form:[t.\u0275\u0275InputFlags.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t.\u0275\u0275ProvidersFeature([ji]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]})}return Ce})();const Gi={provide:Ne,useExisting:(0,t.forwardRef)(()=>lr)};let lr=(()=>{class Ce extends ti{constructor(ae,Ve,St){super(),this.name=null,this._parent=ae,this._setValidators(Ve),this._setAsyncValidators(St)}_checkParentType(){wr(this._parent)}static#e=this.\u0275fac=function(Ve){return new(Ve||Ce)(t.\u0275\u0275directiveInject(Ne,13),t.\u0275\u0275directiveInject(y,10),t.\u0275\u0275directiveInject(M,10))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["","formGroupName",""]],inputs:{name:[t.\u0275\u0275InputFlags.None,"formGroupName","name"]},features:[t.\u0275\u0275ProvidersFeature([Gi]),t.\u0275\u0275InheritDefinitionFeature]})}return Ce})();const Hr={provide:Ne,useExisting:(0,t.forwardRef)(()=>Tr)};let Tr=(()=>{class Ce extends Ne{constructor(ae,Ve,St){super(),this.name=null,this._parent=ae,this._setValidators(Ve),this._setAsyncValidators(St)}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 Fe(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){wr(this._parent)}static#e=this.\u0275fac=function(Ve){return new(Ve||Ce)(t.\u0275\u0275directiveInject(Ne,13),t.\u0275\u0275directiveInject(y,10),t.\u0275\u0275directiveInject(M,10))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["","formArrayName",""]],inputs:{name:[t.\u0275\u0275InputFlags.None,"formArrayName","name"]},features:[t.\u0275\u0275ProvidersFeature([Hr]),t.\u0275\u0275InheritDefinitionFeature]})}return Ce})();function wr(Ce){return!(Ce instanceof lr||Ce instanceof Ji||Ce instanceof Tr)}const _s={provide:Ie,useExisting:(0,t.forwardRef)(()=>Sr)};let Sr=(()=>{class Ce extends Ie{set isDisabled(ae){}static#e=this._ngModelWarningSentOnce=!1;constructor(ae,Ve,St,xn,ni){super(),this._ngModelWarningConfig=ni,this._added=!1,this.name=null,this.update=new t.EventEmitter,this._ngModelWarningSent=!1,this._parent=ae,this._setValidators(Ve),this._setAsyncValidators(St),this.valueAccessor=mt(0,xn)}ngOnChanges(ae){this._added||this._setUpControl(),Ue(ae,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(ae){this.viewModel=ae,this.update.emit(ae)}get path(){return Fe(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._added=!0}static#t=this.\u0275fac=function(Ve){return new(Ve||Ce)(t.\u0275\u0275directiveInject(Ne,13),t.\u0275\u0275directiveInject(y,10),t.\u0275\u0275directiveInject(M,10),t.\u0275\u0275directiveInject(f,10),t.\u0275\u0275directiveInject(Dn,8))};static#n=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["","formControlName",""]],inputs:{name:[t.\u0275\u0275InputFlags.None,"formControlName","name"],isDisabled:[t.\u0275\u0275InputFlags.None,"disabled","isDisabled"],model:[t.\u0275\u0275InputFlags.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[t.\u0275\u0275ProvidersFeature([_s]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]})}return Ce})();const Fr={provide:f,useExisting:(0,t.forwardRef)(()=>es),multi:!0};function Ur(Ce,Ae){return null==Ce?`${Ae}`:(Ae&&"object"==typeof Ae&&(Ae="Object"),`${Ce}: ${Ae}`.slice(0,50))}let es=(()=>{class Ce extends s{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(ae){this._compareWith=ae}writeValue(ae){this.value=ae;const St=Ur(this._getOptionId(ae),ae);this.setProperty("value",St)}registerOnChange(ae){this.onChange=Ve=>{this.value=this._getOptionValue(Ve),ae(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(ae){for(const Ve of this._optionMap.keys())if(this._compareWith(this._optionMap.get(Ve),ae))return Ve;return null}_getOptionValue(ae){const Ve=function mr(Ce){return Ce.split(":")[0]}(ae);return this._optionMap.has(Ve)?this._optionMap.get(Ve):ae}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(Ce)))(St||Ce)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(Ve,St){1&Ve&&t.\u0275\u0275listener("change",function(ni){return St.onChange(ni.target.value)})("blur",function(){return St.onTouched()})},inputs:{compareWith:"compareWith"},features:[t.\u0275\u0275ProvidersFeature([Fr]),t.\u0275\u0275InheritDefinitionFeature]})}return Ce})(),Li=(()=>{class Ce{constructor(ae,Ve,St){this._element=ae,this._renderer=Ve,this._select=St,this._select&&(this.id=this._select._registerOption())}set ngValue(ae){null!=this._select&&(this._select._optionMap.set(this.id,ae),this._setElementValue(Ur(this.id,ae)),this._select.writeValue(this._select.value))}set value(ae){this._setElementValue(ae),this._select&&this._select.writeValue(this._select.value)}_setElementValue(ae){this._renderer.setProperty(this._element.nativeElement,"value",ae)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(Ve){return new(Ve||Ce)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(es,9))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return Ce})();const ts={provide:f,useExisting:(0,t.forwardRef)(()=>br),multi:!0};function Bn(Ce,Ae){return null==Ce?`${Ae}`:("string"==typeof Ae&&(Ae=`'${Ae}'`),Ae&&"object"==typeof Ae&&(Ae="Object"),`${Ce}: ${Ae}`.slice(0,50))}let br=(()=>{class Ce extends s{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(ae){this._compareWith=ae}writeValue(ae){let Ve;if(this.value=ae,Array.isArray(ae)){const St=ae.map(xn=>this._getOptionId(xn));Ve=(xn,ni)=>{xn._setSelected(St.indexOf(ni.toString())>-1)}}else Ve=(St,xn)=>{St._setSelected(!1)};this._optionMap.forEach(Ve)}registerOnChange(ae){this.onChange=Ve=>{const St=[],xn=Ve.selectedOptions;if(void 0!==xn){const ni=xn;for(let Er=0;Er{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(Ce)))(St||Ce)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(Ve,St){1&Ve&&t.\u0275\u0275listener("change",function(ni){return St.onChange(ni.target)})("blur",function(){return St.onTouched()})},inputs:{compareWith:"compareWith"},features:[t.\u0275\u0275ProvidersFeature([ts]),t.\u0275\u0275InheritDefinitionFeature]})}return Ce})(),vs=(()=>{class Ce{constructor(ae,Ve,St){this._element=ae,this._renderer=Ve,this._select=St,this._select&&(this.id=this._select._registerOption(this))}set ngValue(ae){null!=this._select&&(this._value=ae,this._setElementValue(Bn(this.id,ae)),this._select.writeValue(this._select.value))}set value(ae){this._select?(this._value=ae,this._setElementValue(Bn(this.id,ae)),this._select.writeValue(this._select.value)):this._setElementValue(ae)}_setElementValue(ae){this._renderer.setProperty(this._element.nativeElement,"value",ae)}_setSelected(ae){this._renderer.setProperty(this._element.nativeElement,"selected",ae)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(Ve){return new(Ve||Ce)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(br,9))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return Ce})();function Dt(Ce){return"number"==typeof Ce?Ce:parseInt(Ce,10)}function vt(Ce){return"number"==typeof Ce?Ce:parseFloat(Ce)}let Tt=(()=>{class Ce{constructor(){this._validator=A}ngOnChanges(ae){if(this.inputName in ae){const Ve=this.normalizeInput(ae[this.inputName].currentValue);this._enabled=this.enabled(Ve),this._validator=this._enabled?this.createValidator(Ve):A,this._onChange&&this._onChange()}}validate(ae){return this._validator(ae)}registerOnValidatorChange(ae){this._onChange=ae}enabled(ae){return null!=ae}static#e=this.\u0275fac=function(Ve){return new(Ve||Ce)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,features:[t.\u0275\u0275NgOnChangesFeature]})}return Ce})();const kt={provide:y,useExisting:(0,t.forwardRef)(()=>$t),multi:!0};let $t=(()=>{class Ce extends Tt{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=ae=>vt(ae),this.createValidator=ae=>D(ae)}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(Ce)))(St||Ce)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Ve,St){2&Ve&&t.\u0275\u0275attribute("max",St._enabled?St.max:null)},inputs:{max:"max"},features:[t.\u0275\u0275ProvidersFeature([kt]),t.\u0275\u0275InheritDefinitionFeature]})}return Ce})();const Wt={provide:y,useExisting:(0,t.forwardRef)(()=>sn),multi:!0};let sn=(()=>{class Ce extends Tt{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=ae=>vt(ae),this.createValidator=ae=>I(ae)}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(Ce)))(St||Ce)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Ve,St){2&Ve&&t.\u0275\u0275attribute("min",St._enabled?St.min:null)},inputs:{min:"min"},features:[t.\u0275\u0275ProvidersFeature([Wt]),t.\u0275\u0275InheritDefinitionFeature]})}return Ce})();const fn={provide:y,useExisting:(0,t.forwardRef)(()=>Tn),multi:!0},bn={provide:y,useExisting:(0,t.forwardRef)(()=>$n),multi:!0};let Tn=(()=>{class Ce extends Tt{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.booleanAttribute,this.createValidator=ae=>O}enabled(ae){return ae}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(Ce)))(St||Ce)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Ve,St){2&Ve&&t.\u0275\u0275attribute("required",St._enabled?"":null)},inputs:{required:"required"},features:[t.\u0275\u0275ProvidersFeature([fn]),t.\u0275\u0275InheritDefinitionFeature]})}return Ce})(),$n=(()=>{class Ce extends Tn{constructor(){super(...arguments),this.createValidator=ae=>T}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(Ce)))(St||Ce)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Ve,St){2&Ve&&t.\u0275\u0275attribute("required",St._enabled?"":null)},features:[t.\u0275\u0275ProvidersFeature([bn]),t.\u0275\u0275InheritDefinitionFeature]})}return Ce})();const Mi={provide:y,useExisting:(0,t.forwardRef)(()=>Xn),multi:!0};let Xn=(()=>{class Ce extends Tt{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=t.booleanAttribute,this.createValidator=ae=>U}enabled(ae){return ae}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(Ce)))(St||Ce)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[t.\u0275\u0275ProvidersFeature([Mi]),t.\u0275\u0275InheritDefinitionFeature]})}return Ce})();const Ti={provide:y,useExisting:(0,t.forwardRef)(()=>Vn),multi:!0};let Vn=(()=>{class Ce extends Tt{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=ae=>Dt(ae),this.createValidator=ae=>S(ae)}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(Ce)))(St||Ce)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(Ve,St){2&Ve&&t.\u0275\u0275attribute("minlength",St._enabled?St.minlength:null)},inputs:{minlength:"minlength"},features:[t.\u0275\u0275ProvidersFeature([Ti]),t.\u0275\u0275InheritDefinitionFeature]})}return Ce})();const ri={provide:y,useExisting:(0,t.forwardRef)(()=>li),multi:!0};let li=(()=>{class Ce extends Tt{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=ae=>Dt(ae),this.createValidator=ae=>R(ae)}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(Ce)))(St||Ce)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Ve,St){2&Ve&&t.\u0275\u0275attribute("maxlength",St._enabled?St.maxlength:null)},inputs:{maxlength:"maxlength"},features:[t.\u0275\u0275ProvidersFeature([ri]),t.\u0275\u0275InheritDefinitionFeature]})}return Ce})();const ur={provide:y,useExisting:(0,t.forwardRef)(()=>Bi),multi:!0};let Bi=(()=>{class Ce extends Tt{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=ae=>ae,this.createValidator=ae=>N(ae)}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(Ce)))(St||Ce)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Ce,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(Ve,St){2&Ve&&t.\u0275\u0275attribute("pattern",St._enabled?St.pattern:null)},inputs:{pattern:"pattern"},features:[t.\u0275\u0275ProvidersFeature([ur]),t.\u0275\u0275InheritDefinitionFeature]})}return Ce})(),Br=(()=>{class Ce{static#e=this.\u0275fac=function(Ve){return new(Ve||Ce)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:Ce});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({})}return Ce})();class qi extends de{constructor(Ae,ae,Ve){super(Ot(ae),ft(Ve,ae)),this.controls=Ae,this._initObservables(),this._setUpdateStrategy(ae),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Ae){return this.controls[this._adjustIndex(Ae)]}push(Ae,ae={}){this.controls.push(Ae),this._registerControl(Ae),this.updateValueAndValidity({emitEvent:ae.emitEvent}),this._onCollectionChange()}insert(Ae,ae,Ve={}){this.controls.splice(Ae,0,ae),this._registerControl(ae),this.updateValueAndValidity({emitEvent:Ve.emitEvent})}removeAt(Ae,ae={}){let Ve=this._adjustIndex(Ae);Ve<0&&(Ve=0),this.controls[Ve]&&this.controls[Ve]._registerOnCollectionChange(()=>{}),this.controls.splice(Ve,1),this.updateValueAndValidity({emitEvent:ae.emitEvent})}setControl(Ae,ae,Ve={}){let St=this._adjustIndex(Ae);St<0&&(St=0),this.controls[St]&&this.controls[St]._registerOnCollectionChange(()=>{}),this.controls.splice(St,1),ae&&(this.controls.splice(St,0,ae),this._registerControl(ae)),this.updateValueAndValidity({emitEvent:Ve.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Ae,ae={}){te(this,0,Ae),Ae.forEach((Ve,St)=>{Ge(this,!1,St),this.at(St).setValue(Ve,{onlySelf:!0,emitEvent:ae.emitEvent})}),this.updateValueAndValidity(ae)}patchValue(Ae,ae={}){null!=Ae&&(Ae.forEach((Ve,St)=>{this.at(St)&&this.at(St).patchValue(Ve,{onlySelf:!0,emitEvent:ae.emitEvent})}),this.updateValueAndValidity(ae))}reset(Ae=[],ae={}){this._forEachChild((Ve,St)=>{Ve.reset(Ae[St],{onlySelf:!0,emitEvent:ae.emitEvent})}),this._updatePristine(ae),this._updateTouched(ae),this.updateValueAndValidity(ae)}getRawValue(){return this.controls.map(Ae=>Ae.getRawValue())}clear(Ae={}){this.controls.length<1||(this._forEachChild(ae=>ae._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Ae.emitEvent}))}_adjustIndex(Ae){return Ae<0?Ae+this.length:Ae}_syncPendingControls(){let Ae=this.controls.reduce((ae,Ve)=>!!Ve._syncPendingControls()||ae,!1);return Ae&&this.updateValueAndValidity({onlySelf:!0}),Ae}_forEachChild(Ae){this.controls.forEach((ae,Ve)=>{Ae(ae,Ve)})}_updateValue(){this.value=this.controls.filter(Ae=>Ae.enabled||this.disabled).map(Ae=>Ae.value)}_anyControls(Ae){return this.controls.some(ae=>ae.enabled&&Ae(ae))}_setUpControls(){this._forEachChild(Ae=>this._registerControl(Ae))}_allControlsDisabled(){for(const Ae of this.controls)if(Ae.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Ae){Ae.setParent(this),Ae._registerOnCollectionChange(this._onCollectionChange)}_find(Ae){return this.at(Ae)??null}}const di=qi,ns=Ce=>Ce instanceof qi;function Gr(Ce){return!!Ce&&(void 0!==Ce.asyncValidators||void 0!==Ce.validators||void 0!==Ce.updateOn)}let $r=(()=>{class Ce{constructor(){this.useNonNullable=!1}get nonNullable(){const ae=new Ce;return ae.useNonNullable=!0,ae}group(ae,Ve=null){const St=this._reduceControls(ae);let xn={};return Gr(Ve)?xn=Ve:null!==Ve&&(xn.validators=Ve.validator,xn.asyncValidators=Ve.asyncValidator),new ke(St,xn)}record(ae,Ve=null){const St=this._reduceControls(ae);return new an(St,Ve)}control(ae,Ve,St){let xn={};return this.useNonNullable?(Gr(Ve)?xn=Ve:(xn.validators=Ve,xn.asyncValidators=St),new ln(ae,{...xn,nonNullable:!0})):new ln(ae,Ve,St)}array(ae,Ve,St){const xn=ae.map(ni=>this._createControl(ni));return new qi(xn,Ve,St)}_reduceControls(ae){const Ve={};return Object.keys(ae).forEach(St=>{Ve[St]=this._createControl(ae[St])}),Ve}_createControl(ae){return ae instanceof ln||ae instanceof de?ae:Array.isArray(ae)?this.control(ae[0],ae.length>1?ae[1]:null,ae.length>2?ae[2]:null):this.control(ae)}static#e=this.\u0275fac=function(Ve){return new(Ve||Ce)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})(),Kr=(()=>{class Ce{static#e=this.\u0275fac=function(Ve){return new(Ve||Ce)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:Ce,factory:()=>(0,t.inject)($r).nonNullable,providedIn:"root"})}return Ce})(),Yr=(()=>{class Ce extends $r{group(ae,Ve=null){return super.group(ae,Ve)}control(ae,Ve,St){return super.control(ae,Ve,St)}array(ae,Ve,St){return super.array(ae,Ve,St)}static#e=this.\u0275fac=(()=>{let ae;return function(St){return(ae||(ae=t.\u0275\u0275getInheritedFactory(Ce)))(St||Ce)}})();static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})();const Zr=new t.Version("17.3.3");let Qr=(()=>{class Ce{static withConfig(ae){return{ngModule:Ce,providers:[{provide:Lt,useValue:ae.callSetDisabledState??Je}]}}static#e=this.\u0275fac=function(Ve){return new(Ve||Ce)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:Ce});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[Br]})}return Ce})(),Do=(()=>{class Ce{static withConfig(ae){return{ngModule:Ce,providers:[{provide:Dn,useValue:ae.warnOnNgModelWithFormControl??"always"},{provide:Lt,useValue:ae.callSetDisabledState??Je}]}}static#e=this.\u0275fac=function(Ve){return new(Ve||Ce)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:Ce});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[Br]})}return Ce})()},850:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_AUTOCOMPLETE_DEFAULT_OPTIONS:()=>$,MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY:()=>j,MAT_AUTOCOMPLETE_SCROLL_STRATEGY:()=>ce,MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY:()=>ue,MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>ve,MAT_AUTOCOMPLETE_VALUE_ACCESSOR:()=>W,MatAutocomplete:()=>G,MatAutocompleteModule:()=>pt,MatAutocompleteOrigin:()=>V,MatAutocompleteSelectedEvent:()=>ie,MatAutocompleteTrigger:()=>Ye,MatOptgroup:()=>_.MatOptgroup,MatOption:()=>_.MatOption,getMatAutocompleteMissingPanelError:()=>K});var t=g(4438),_=g(6600),C=g(177),E=g(5478),u=g(7987),b=g(6039),s=g(4085),f=g(6860),d=g(9969),l=g(8359),c=g(1413),o=g(9030),r=g(7786),h=g(7673),p=g(3726),v=g(7336),y=g(6939),M=g(9417),w=g(2102),k=g(9172),I=g(5558),D=g(6697),O=g(5964),T=g(6354),U=g(8141),S=g(3103),R=g(8203);const N=["panel"],A=["*"];function F(ct,Ct){if(1&ct){const We=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",1,0),t.\u0275\u0275listener("@panelAnimation.done",function(Ie){t.\u0275\u0275restoreView(We);const rt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(rt._animationDone.next(Ie))}),t.\u0275\u0275projection(2),t.\u0275\u0275elementEnd()}if(2&ct){const We=Ct.id,Ne=t.\u0275\u0275nextContext();t.\u0275\u0275property("id",Ne.id)("ngClass",Ne._classList)("@panelAnimation",Ne.isOpen?"visible":"hidden"),t.\u0275\u0275attribute("aria-label",Ne.ariaLabel||null)("aria-labelledby",Ne._getPanelAriaLabelledby(We))}}const Y=(0,d.hZ)("panelAnimation",[(0,d.wk)("void, hidden",(0,d.iF)({opacity:0,transform:"scaleY(0.8)"})),(0,d.kY)(":enter, hidden => visible",[(0,d.Os)([(0,d.i0)("0.03s linear",(0,d.iF)({opacity:1})),(0,d.i0)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,d.iF)({transform:"scaleY(1)"}))])]),(0,d.kY)(":leave, visible => hidden",[(0,d.i0)("0.075s linear",(0,d.iF)({opacity:0}))])]);let ee=0;class ie{constructor(Ct,We){this.source=Ct,this.option=We}}const $=new t.InjectionToken("mat-autocomplete-default-options",{providedIn:"root",factory:j});function j(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}let G=(()=>{class ct{get isOpen(){return this._isOpen&&this.showPanel}_setColor(We){this._color=We,this._setThemeClasses(this._classList)}set classList(We){this._classList=We&&We.length?(0,s.cc)(We).reduce((Ne,Ie)=>(Ne[Ie]=!0,Ne),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(We){this._hideSingleSelectionIndicator=We,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const We of this.options)We._changeDetectorRef.markForCheck()}constructor(We,Ne,Ie,rt){this._changeDetectorRef=We,this._elementRef=Ne,this._defaults=Ie,this._activeOptionChanges=l.yU.EMPTY,this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._animationDone=new t.EventEmitter,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new t.EventEmitter,this.opened=new t.EventEmitter,this.closed=new t.EventEmitter,this.optionActivated=new t.EventEmitter,this._classList={},this.id="mat-autocomplete-"+ee++,this.inertGroups=rt?.SAFARI||!1,this.autoActiveFirstOption=!!Ie.autoActiveFirstOption,this.autoSelectActiveOption=!!Ie.autoSelectActiveOption,this.requireSelection=!!Ie.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new b.Au(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(We=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[We]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(We){this.panel&&(this.panel.nativeElement.scrollTop=We)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(We){const Ne=new ie(this,We);this.optionSelected.emit(Ne)}_getPanelAriaLabelledby(We){return this.ariaLabel?null:this.ariaLabelledby?(We?We+" ":"")+this.ariaLabelledby:We}_setVisibilityClasses(We){We[this._visibleClass]=this.showPanel,We[this._hiddenClass]=!this.showPanel}_setThemeClasses(We){We["mat-primary"]="primary"===this._color,We["mat-warn"]="warn"===this._color,We["mat-accent"]="accent"===this._color}_skipPredicate(){return!1}static#e=this.\u0275fac=function(Ne){return new(Ne||ct)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject($),t.\u0275\u0275directiveInject(f.OD))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:ct,selectors:[["mat-autocomplete"]],contentQueries:function(Ne,Ie,rt){if(1&Ne&&(t.\u0275\u0275contentQuery(rt,_.MatOption,5),t.\u0275\u0275contentQuery(rt,_.MAT_OPTGROUP,5)),2&Ne){let Ee;t.\u0275\u0275queryRefresh(Ee=t.\u0275\u0275loadQuery())&&(Ie.options=Ee),t.\u0275\u0275queryRefresh(Ee=t.\u0275\u0275loadQuery())&&(Ie.optionGroups=Ee)}},viewQuery:function(Ne,Ie){if(1&Ne&&(t.\u0275\u0275viewQuery(t.TemplateRef,7),t.\u0275\u0275viewQuery(N,5)),2&Ne){let rt;t.\u0275\u0275queryRefresh(rt=t.\u0275\u0275loadQuery())&&(Ie.template=rt.first),t.\u0275\u0275queryRefresh(rt=t.\u0275\u0275loadQuery())&&(Ie.panel=rt.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[t.\u0275\u0275InputFlags.None,"aria-label","ariaLabel"],ariaLabelledby:[t.\u0275\u0275InputFlags.None,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"autoActiveFirstOption","autoActiveFirstOption",t.booleanAttribute],autoSelectActiveOption:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"autoSelectActiveOption","autoSelectActiveOption",t.booleanAttribute],requireSelection:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"requireSelection","requireSelection",t.booleanAttribute],panelWidth:"panelWidth",disableRipple:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",t.booleanAttribute],classList:[t.\u0275\u0275InputFlags.None,"class","classList"],hideSingleSelectionIndicator:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",t.booleanAttribute]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:_.MAT_OPTION_PARENT_COMPONENT,useExisting:ct}]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:A,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"]],template:function(Ne,Ie){1&Ne&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275template(0,F,3,5,"ng-template"))},dependencies:[C.NgClass],styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape);box-shadow:var(--mat-autocomplete-container-elevation-shadow);background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Y]},changeDetection:0})}return ct})(),V=(()=>{class ct{constructor(We){this.elementRef=We}static#e=this.\u0275fac=function(Ne){return new(Ne||ct)(t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ct,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"],standalone:!0})}return ct})();const W={provide:M.NG_VALUE_ACCESSOR,useExisting:(0,t.forwardRef)(()=>Ye),multi:!0};function K(){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.")}const ce=new t.InjectionToken("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const ct=(0,t.inject)(u.hJ);return()=>ct.scrollStrategies.reposition()}});function ue(ct){return()=>ct.scrollStrategies.reposition()}const ve={provide:ce,deps:[u.hJ],useFactory:ue};let Ye=(()=>{class ct{constructor(We,Ne,Ie,rt,Ee,be,Se,Q,pe,Re,bt){this._element=We,this._overlay=Ne,this._viewContainerRef=Ie,this._zone=rt,this._changeDetectorRef=Ee,this._dir=Se,this._formField=Q,this._document=pe,this._viewportRuler=Re,this._defaults=bt,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=l.yU.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new c.B,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=(0,o.v)(()=>{const it=this.autocomplete?this.autocomplete.options:null;return it?it.changes.pipe((0,k.Z)(it),(0,I.n)(()=>(0,r.h)(...it.map(ye=>ye.onSelectionChange)))):this._zone.onStable.pipe((0,D.s)(1),(0,I.n)(()=>this.optionSelections))}),this._handlePanelKeydown=it=>{(it.keyCode===v._f&&!(0,v.rp)(it)||it.keyCode===v.i7&&(0,v.rp)(it,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),it.stopPropagation(),it.preventDefault())},this._trackedModal=null,this._scrollStrategy=be}ngAfterViewInit(){const We=this._getWindow();typeof We<"u"&&this._zone.runOutsideAngular(()=>We.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(We){We.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const We=this._getWindow();typeof We<"u"&&We.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal)&&(0,b.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id)}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,r.h)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,O.p)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,O.p)(()=>this._overlayAttached)):(0,h.of)()).pipe((0,T.T)(We=>We instanceof _.MatOptionSelectionChange?We:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,r.h)((0,p.R)(this._document,"click"),(0,p.R)(this._document,"auxclick"),(0,p.R)(this._document,"touchend")).pipe((0,O.p)(We=>{const Ne=(0,f.Fb)(We),Ie=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,rt=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&Ne!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Ie||!Ie.contains(Ne))&&(!rt||!rt.contains(Ne))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(Ne)}))}writeValue(We){Promise.resolve(null).then(()=>this._assignOptionValue(We))}registerOnChange(We){this._onChange=We}registerOnTouched(We){this._onTouched=We}setDisabledState(We){this._element.nativeElement.disabled=We}_handleKeydown(We){const Ne=We.keyCode,Ie=(0,v.rp)(We);if(Ne===v._f&&!Ie&&We.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&Ne===v.Fm&&this.panelOpen&&!Ie)this.activeOption._selectViaInteraction(),this._resetActiveItem(),We.preventDefault();else if(this.autocomplete){const rt=this.autocomplete._keyManager.activeItem,Ee=Ne===v.i7||Ne===v.n6;Ne===v.wn||Ee&&!Ie&&this.panelOpen?this.autocomplete._keyManager.onKeydown(We):Ee&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(Ee||this.autocomplete._keyManager.activeItem!==rt)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(We){let Ne=We.target,Ie=Ne.value;if("number"===Ne.type&&(Ie=""==Ie?null:parseFloat(Ie)),this._previousValue!==Ie){if(this._previousValue=Ie,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(Ie),Ie){if(this.panelOpen&&!this.autocomplete.requireSelection){const rt=this.autocomplete.options?.find(Ee=>Ee.selected);rt&&Ie!==this._getDisplayValue(rt.value)&&rt.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);if(this._canOpen()&&this._document.activeElement===We.target){const rt=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(rt)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(We=!1){this._formField&&"auto"===this._formField.floatLabel&&(We?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const We=this._zone.onStable.pipe((0,D.s)(1)),Ne=this.autocomplete.options.changes.pipe((0,U.M)(()=>this._positionStrategy.reapplyLastPosition()),(0,S.c)(0));return(0,r.h)(We,Ne).pipe((0,I.n)(()=>(this._zone.run(()=>{const Ie=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Ie!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,D.s)(1)).subscribe(Ie=>this._setValueAndClose(Ie))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(We){const Ne=this.autocomplete;return Ne&&Ne.displayWith?Ne.displayWith(We):We}_assignOptionValue(We){const Ne=this._getDisplayValue(We);null==We&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(Ne??"")}_updateNativeInputValue(We){this._formField?this._formField._control.value=We:this._element.nativeElement.value=We,this._previousValue=We}_setValueAndClose(We){const Ne=this.autocomplete,Ie=We?We.source:this._pendingAutoselectedOption;Ie?(this._clearPreviousSelectedOption(Ie),this._assignOptionValue(Ie.value),this._onChange(Ie.value),Ne._emitSelectEvent(Ie),this._element.nativeElement.focus()):Ne.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),Ne._animationDone?Ne._animationDone.pipe((0,D.s)(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(We,Ne){this.autocomplete?.options?.forEach(Ie=>{Ie!==We&&Ie.selected&&Ie.deselect(Ne)})}_openPanelInternal(We=this._element.nativeElement.value){this._attachOverlay(We),this._floatLabel(),this._trackedModal&&(0,b.px)(this._trackedModal,"aria-owns",this.autocomplete.id)}_attachOverlay(We){let Ne=this._overlayRef;Ne?(this._positionStrategy.setOrigin(this._getConnectedElement()),Ne.updateSize({width:this._getPanelWidth()})):(this._portal=new y.VA(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),Ne=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Ne,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Ne&&Ne.updateSize({width:this._getPanelWidth()})})),Ne&&!Ne.hasAttached()&&(Ne.attach(this._portal),this._valueOnAttach=We,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());const Ie=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&Ie!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const We=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=We.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=We.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new u.rR({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const We=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(We),this._positionStrategy=We,We}_setStrategyPositions(We){const Ne=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ie=this._aboveClass,rt=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Ie},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Ie}];let Ee;Ee="above"===this.position?rt:"below"===this.position?Ne:[...Ne,...rt],We.withPositions(Ee)}_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 We=this.autocomplete;if(We.autoActiveFirstOption){let Ne=-1;for(let Ie=0;Ie .cdk-overlay-container [aria-modal="true"]');if(!We)return;const Ne=this.autocomplete.id;this._trackedModal&&(0,b.Ae)(this._trackedModal,"aria-owns",Ne),(0,b.px)(We,"aria-owns",Ne),this._trackedModal=We}_clearFromModal(){this._trackedModal&&((0,b.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static#e=this.\u0275fac=function(Ne){return new(Ne||ct)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(u.hJ),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(ce),t.\u0275\u0275directiveInject(R.dS,8),t.\u0275\u0275directiveInject(w.MAT_FORM_FIELD,9),t.\u0275\u0275directiveInject(C.DOCUMENT,8),t.\u0275\u0275directiveInject(E.Xj),t.\u0275\u0275directiveInject($,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:ct,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(Ne,Ie){1&Ne&&t.\u0275\u0275listener("focusin",function(){return Ie._handleFocus()})("blur",function(){return Ie._onTouched()})("input",function(Ee){return Ie._handleInput(Ee)})("keydown",function(Ee){return Ie._handleKeydown(Ee)})("click",function(){return Ie._handleClick()}),2&Ne&&t.\u0275\u0275attribute("autocomplete",Ie.autocompleteAttribute)("role",Ie.autocompleteDisabled?null:"combobox")("aria-autocomplete",Ie.autocompleteDisabled?null:"list")("aria-activedescendant",Ie.panelOpen&&Ie.activeOption?Ie.activeOption.id:null)("aria-expanded",Ie.autocompleteDisabled?null:Ie.panelOpen.toString())("aria-controls",Ie.autocompleteDisabled||!Ie.panelOpen||null==Ie.autocomplete?null:Ie.autocomplete.id)("aria-haspopup",Ie.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[t.\u0275\u0275InputFlags.None,"matAutocomplete","autocomplete"],position:[t.\u0275\u0275InputFlags.None,"matAutocompletePosition","position"],connectedTo:[t.\u0275\u0275InputFlags.None,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[t.\u0275\u0275InputFlags.None,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"matAutocompleteDisabled","autocompleteDisabled",t.booleanAttribute]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([W]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275NgOnChangesFeature]})}return ct})(),pt=(()=>{class ct{static#e=this.\u0275fac=function(Ne){return new(Ne||ct)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:ct});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({providers:[ve],imports:[u.z_,_.MatOptionModule,_.MatCommonModule,C.CommonModule,E.Gj,_.MatOptionModule,_.MatCommonModule]})}return ct})()},8834:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_BUTTON_CONFIG:()=>v,MAT_FAB_DEFAULT_OPTIONS:()=>T,MAT_FAB_DEFAULT_OPTIONS_FACTORY:()=>U,MatAnchor:()=>O,MatButton:()=>D,MatButtonModule:()=>ie,MatFabAnchor:()=>A,MatFabButton:()=>R,MatIconAnchor:()=>ee,MatIconButton:()=>Y,MatMiniFabAnchor:()=>F,MatMiniFabButton:()=>N});var t=g(6860),_=g(4438),C=g(6039),E=g(6600);const u=["mat-button",""],b=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],s=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],d=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",l=["mat-fab",""],c=["mat-mini-fab",""],o='.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab{background-color:var(--mdc-fab-container-color)}.mat-mdc-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-mini-fab{background-color:var(--mdc-fab-small-container-color)}.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-small-icon-size);height:var(--mdc-fab-small-icon-size);font-size:var(--mdc-fab-small-icon-size)}.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mdc-extended-fab-container-height);border-radius:var(--mdc-extended-fab-container-shape);font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-extended-fab .mdc-fab__ripple{border-radius:var(--mdc-extended-fab-container-shape)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab[disabled],.mat-mdc-fab[disabled]:focus,.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-fab.mat-mdc-button-disabled:focus,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab[disabled]:focus,.mat-mdc-mini-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab.mat-mdc-button-disabled-interactive,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{color:var(--mat-fab-foreground-color, inherit);box-shadow:var(--mdc-fab-container-elevation-shadow)}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color)}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity)}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity)}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity)}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow)}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab{color:var(--mat-fab-small-foreground-color, inherit);box-shadow:var(--mdc-fab-small-container-elevation-shadow)}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color)}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity)}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity)}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity)}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow)}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow)}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow)}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color);background-color:var(--mat-fab-small-disabled-state-container-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab{box-shadow:var(--mdc-extended-fab-container-elevation-shadow)}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow)}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow)}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow)}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}',r=["mat-icon-button",""],h=["*"],v=new _.InjectionToken("MAT_BUTTON_CONFIG"),M=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}];let w=(()=>{class ${get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(G){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,G)}get disableRipple(){return this._disableRipple}set disableRipple(G){this._disableRipple=G,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(G){this._disabled=G,this._updateRippleDisabled()}constructor(G,V,W,K){this._elementRef=G,this._platform=V,this._ngZone=W,this._animationMode=K,this._focusMonitor=(0,_.inject)(C.FN),this._rippleLoader=(0,_.inject)(E.MatRippleLoader),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;const ce=(0,_.inject)(v,{optional:!0}),ue=G.nativeElement,ve=ue.classList;this.disabledInteractive=ce?.disabledInteractive??!1,this._rippleLoader?.configureRipple(ue,{className:"mat-mdc-button-ripple"});for(const{attribute:Ye,mdcClasses:pt}of M)ue.hasAttribute(Ye)&&ve.add(...pt)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(G="program",V){G?this._focusMonitor.focusVia(this._elementRef.nativeElement,G,V):this._elementRef.nativeElement.focus(V)}_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:!(!this.disabled||!this.disabledInteractive)||null}_getDisabledAttribute(){return!(this.disabledInteractive||!this.disabled)||null}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(V){_.\u0275\u0275invalidFactory()};static#t=this.\u0275dir=_.\u0275\u0275defineDirective({type:$,inputs:{color:"color",disableRipple:[_.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",_.booleanAttribute],disabled:[_.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",_.booleanAttribute],ariaDisabled:[_.\u0275\u0275InputFlags.HasDecoratorInputTransform,"aria-disabled","ariaDisabled",_.booleanAttribute],disabledInteractive:[_.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabledInteractive","disabledInteractive",_.booleanAttribute]},features:[_.\u0275\u0275InputTransformsFeature]})}return $})(),I=(()=>{class $ extends w{constructor(G,V,W,K){super(G,V,W,K),this._haltDisabledEvents=ce=>{this.disabled&&(ce.preventDefault(),ce.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_getAriaDisabled(){return null==this.ariaDisabled?this.disabled:this.ariaDisabled}static#e=this.\u0275fac=function(V){_.\u0275\u0275invalidFactory()};static#t=this.\u0275dir=_.\u0275\u0275defineDirective({type:$,inputs:{tabIndex:[_.\u0275\u0275InputFlags.HasDecoratorInputTransform,"tabIndex","tabIndex",G=>null==G?void 0:(0,_.numberAttribute)(G)]},features:[_.\u0275\u0275InputTransformsFeature,_.\u0275\u0275InheritDefinitionFeature]})}return $})(),D=(()=>{class $ extends w{constructor(G,V,W,K){super(G,V,W,K)}static#e=this.\u0275fac=function(V){return new(V||$)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(t.OD),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275cmp=_.\u0275\u0275defineComponent({type:$,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(V,W){2&V&&(_.\u0275\u0275attribute("disabled",W._getDisabledAttribute())("aria-disabled",W._getAriaDisabled()),_.\u0275\u0275classMap(W.color?"mat-"+W.color:""),_.\u0275\u0275classProp("mat-mdc-button-disabled",W.disabled)("mat-mdc-button-disabled-interactive",W.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===W._animationMode)("mat-unthemed",!W.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[_.\u0275\u0275InheritDefinitionFeature,_.\u0275\u0275StandaloneFeature],attrs:u,ngContentSelectors:s,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(V,W){1&V&&(_.\u0275\u0275projectionDef(b),_.\u0275\u0275element(0,"span",0),_.\u0275\u0275projection(1),_.\u0275\u0275elementStart(2,"span",1),_.\u0275\u0275projection(3,1),_.\u0275\u0275elementEnd(),_.\u0275\u0275projection(4,2),_.\u0275\u0275element(5,"span",2)(6,"span",3)),2&V&&_.\u0275\u0275classProp("mdc-button__ripple",!W._isFab)("mdc-fab__ripple",W._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return $})(),O=(()=>{class $ extends I{constructor(G,V,W,K){super(G,V,W,K)}static#e=this.\u0275fac=function(V){return new(V||$)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(t.OD),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275cmp=_.\u0275\u0275defineComponent({type:$,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(V,W){2&V&&(_.\u0275\u0275attribute("disabled",W._getDisabledAttribute())("tabindex",W.disabled&&!W.disabledInteractive?-1:W.tabIndex)("aria-disabled",W._getDisabledAttribute()),_.\u0275\u0275classMap(W.color?"mat-"+W.color:""),_.\u0275\u0275classProp("mat-mdc-button-disabled",W.disabled)("mat-mdc-button-disabled-interactive",W.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===W._animationMode)("mat-unthemed",!W.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[_.\u0275\u0275InheritDefinitionFeature,_.\u0275\u0275StandaloneFeature],attrs:u,ngContentSelectors:s,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(V,W){1&V&&(_.\u0275\u0275projectionDef(b),_.\u0275\u0275element(0,"span",0),_.\u0275\u0275projection(1),_.\u0275\u0275elementStart(2,"span",1),_.\u0275\u0275projection(3,1),_.\u0275\u0275elementEnd(),_.\u0275\u0275projection(4,2),_.\u0275\u0275element(5,"span",2)(6,"span",3)),2&V&&_.\u0275\u0275classProp("mdc-button__ripple",!W._isFab)("mdc-fab__ripple",W._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',d],encapsulation:2,changeDetection:0})}return $})();const T=new _.InjectionToken("mat-mdc-fab-default-options",{providedIn:"root",factory:U});function U(){return{color:"accent"}}const S=U();let R=(()=>{class $ extends w{constructor(G,V,W,K,ce){super(G,V,W,K),this._options=ce,this._isFab=!0,this._options=this._options||S,this.color=this._options.color||S.color}static#e=this.\u0275fac=function(V){return new(V||$)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(t.OD),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8),_.\u0275\u0275directiveInject(T,8))};static#t=this.\u0275cmp=_.\u0275\u0275defineComponent({type:$,selectors:[["button","mat-fab",""]],hostVars:18,hostBindings:function(V,W){2&V&&(_.\u0275\u0275attribute("disabled",W._getDisabledAttribute())("aria-disabled",W._getAriaDisabled()),_.\u0275\u0275classMap(W.color?"mat-"+W.color:""),_.\u0275\u0275classProp("mat-mdc-button-disabled",W.disabled)("mat-mdc-button-disabled-interactive",W.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===W._animationMode)("mat-unthemed",!W.color)("mat-mdc-button-base",!0)("mdc-fab--extended",W.extended)("mat-mdc-extended-fab",W.extended))},inputs:{extended:[_.\u0275\u0275InputFlags.HasDecoratorInputTransform,"extended","extended",_.booleanAttribute]},exportAs:["matButton"],standalone:!0,features:[_.\u0275\u0275InputTransformsFeature,_.\u0275\u0275InheritDefinitionFeature,_.\u0275\u0275StandaloneFeature],attrs:l,ngContentSelectors:s,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(V,W){1&V&&(_.\u0275\u0275projectionDef(b),_.\u0275\u0275element(0,"span",0),_.\u0275\u0275projection(1),_.\u0275\u0275elementStart(2,"span",1),_.\u0275\u0275projection(3,1),_.\u0275\u0275elementEnd(),_.\u0275\u0275projection(4,2),_.\u0275\u0275element(5,"span",2)(6,"span",3)),2&V&&_.\u0275\u0275classProp("mdc-button__ripple",!W._isFab)("mdc-fab__ripple",W._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab{background-color:var(--mdc-fab-container-color)}.mat-mdc-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-mini-fab{background-color:var(--mdc-fab-small-container-color)}.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-small-icon-size);height:var(--mdc-fab-small-icon-size);font-size:var(--mdc-fab-small-icon-size)}.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mdc-extended-fab-container-height);border-radius:var(--mdc-extended-fab-container-shape);font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-extended-fab .mdc-fab__ripple{border-radius:var(--mdc-extended-fab-container-shape)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab[disabled],.mat-mdc-fab[disabled]:focus,.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-fab.mat-mdc-button-disabled:focus,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab[disabled]:focus,.mat-mdc-mini-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab.mat-mdc-button-disabled-interactive,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{color:var(--mat-fab-foreground-color, inherit);box-shadow:var(--mdc-fab-container-elevation-shadow)}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color)}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity)}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity)}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity)}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow)}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab{color:var(--mat-fab-small-foreground-color, inherit);box-shadow:var(--mdc-fab-small-container-elevation-shadow)}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color)}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity)}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity)}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity)}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow)}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow)}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow)}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color);background-color:var(--mat-fab-small-disabled-state-container-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab{box-shadow:var(--mdc-extended-fab-container-elevation-shadow)}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow)}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow)}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow)}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}'],encapsulation:2,changeDetection:0})}return $})(),N=(()=>{class $ extends w{constructor(G,V,W,K,ce){super(G,V,W,K),this._options=ce,this._isFab=!0,this._options=this._options||S,this.color=this._options.color||S.color}static#e=this.\u0275fac=function(V){return new(V||$)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(t.OD),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8),_.\u0275\u0275directiveInject(T,8))};static#t=this.\u0275cmp=_.\u0275\u0275defineComponent({type:$,selectors:[["button","mat-mini-fab",""]],hostVars:14,hostBindings:function(V,W){2&V&&(_.\u0275\u0275attribute("disabled",W._getDisabledAttribute())("aria-disabled",W._getAriaDisabled()),_.\u0275\u0275classMap(W.color?"mat-"+W.color:""),_.\u0275\u0275classProp("mat-mdc-button-disabled",W.disabled)("mat-mdc-button-disabled-interactive",W.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===W._animationMode)("mat-unthemed",!W.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[_.\u0275\u0275InheritDefinitionFeature,_.\u0275\u0275StandaloneFeature],attrs:c,ngContentSelectors:s,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(V,W){1&V&&(_.\u0275\u0275projectionDef(b),_.\u0275\u0275element(0,"span",0),_.\u0275\u0275projection(1),_.\u0275\u0275elementStart(2,"span",1),_.\u0275\u0275projection(3,1),_.\u0275\u0275elementEnd(),_.\u0275\u0275projection(4,2),_.\u0275\u0275element(5,"span",2)(6,"span",3)),2&V&&_.\u0275\u0275classProp("mdc-button__ripple",!W._isFab)("mdc-fab__ripple",W._isFab)},styles:[o],encapsulation:2,changeDetection:0})}return $})(),A=(()=>{class $ extends O{constructor(G,V,W,K,ce){super(G,V,W,K),this._options=ce,this._isFab=!0,this._options=this._options||S,this.color=this._options.color||S.color}static#e=this.\u0275fac=function(V){return new(V||$)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(t.OD),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8),_.\u0275\u0275directiveInject(T,8))};static#t=this.\u0275cmp=_.\u0275\u0275defineComponent({type:$,selectors:[["a","mat-fab",""]],hostVars:19,hostBindings:function(V,W){2&V&&(_.\u0275\u0275attribute("disabled",W._getDisabledAttribute())("tabindex",W.disabled&&!W.disabledInteractive?-1:W.tabIndex)("aria-disabled",W._getDisabledAttribute()),_.\u0275\u0275classMap(W.color?"mat-"+W.color:""),_.\u0275\u0275classProp("mat-mdc-button-disabled",W.disabled)("mat-mdc-button-disabled-interactive",W.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===W._animationMode)("mat-unthemed",!W.color)("mat-mdc-button-base",!0)("mdc-fab--extended",W.extended)("mat-mdc-extended-fab",W.extended))},inputs:{extended:[_.\u0275\u0275InputFlags.HasDecoratorInputTransform,"extended","extended",_.booleanAttribute]},exportAs:["matButton","matAnchor"],standalone:!0,features:[_.\u0275\u0275InputTransformsFeature,_.\u0275\u0275InheritDefinitionFeature,_.\u0275\u0275StandaloneFeature],attrs:l,ngContentSelectors:s,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(V,W){1&V&&(_.\u0275\u0275projectionDef(b),_.\u0275\u0275element(0,"span",0),_.\u0275\u0275projection(1),_.\u0275\u0275elementStart(2,"span",1),_.\u0275\u0275projection(3,1),_.\u0275\u0275elementEnd(),_.\u0275\u0275projection(4,2),_.\u0275\u0275element(5,"span",2)(6,"span",3)),2&V&&_.\u0275\u0275classProp("mdc-button__ripple",!W._isFab)("mdc-fab__ripple",W._isFab)},styles:[o],encapsulation:2,changeDetection:0})}return $})(),F=(()=>{class $ extends O{constructor(G,V,W,K,ce){super(G,V,W,K),this._options=ce,this._isFab=!0,this._options=this._options||S,this.color=this._options.color||S.color}static#e=this.\u0275fac=function(V){return new(V||$)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(t.OD),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8),_.\u0275\u0275directiveInject(T,8))};static#t=this.\u0275cmp=_.\u0275\u0275defineComponent({type:$,selectors:[["a","mat-mini-fab",""]],hostVars:15,hostBindings:function(V,W){2&V&&(_.\u0275\u0275attribute("disabled",W._getDisabledAttribute())("tabindex",W.disabled&&!W.disabledInteractive?-1:W.tabIndex)("aria-disabled",W._getDisabledAttribute()),_.\u0275\u0275classMap(W.color?"mat-"+W.color:""),_.\u0275\u0275classProp("mat-mdc-button-disabled",W.disabled)("mat-mdc-button-disabled-interactive",W.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===W._animationMode)("mat-unthemed",!W.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[_.\u0275\u0275InheritDefinitionFeature,_.\u0275\u0275StandaloneFeature],attrs:c,ngContentSelectors:s,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(V,W){1&V&&(_.\u0275\u0275projectionDef(b),_.\u0275\u0275element(0,"span",0),_.\u0275\u0275projection(1),_.\u0275\u0275elementStart(2,"span",1),_.\u0275\u0275projection(3,1),_.\u0275\u0275elementEnd(),_.\u0275\u0275projection(4,2),_.\u0275\u0275element(5,"span",2)(6,"span",3)),2&V&&_.\u0275\u0275classProp("mdc-button__ripple",!W._isFab)("mdc-fab__ripple",W._isFab)},styles:[o],encapsulation:2,changeDetection:0})}return $})(),Y=(()=>{class $ extends w{constructor(G,V,W,K){super(G,V,W,K),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(V){return new(V||$)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(t.OD),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275cmp=_.\u0275\u0275defineComponent({type:$,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(V,W){2&V&&(_.\u0275\u0275attribute("disabled",W._getDisabledAttribute())("aria-disabled",W._getAriaDisabled()),_.\u0275\u0275classMap(W.color?"mat-"+W.color:""),_.\u0275\u0275classProp("mat-mdc-button-disabled",W.disabled)("mat-mdc-button-disabled-interactive",W.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===W._animationMode)("mat-unthemed",!W.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[_.\u0275\u0275InheritDefinitionFeature,_.\u0275\u0275StandaloneFeature],attrs:r,ngContentSelectors:h,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(V,W){1&V&&(_.\u0275\u0275projectionDef(),_.\u0275\u0275element(0,"span",0),_.\u0275\u0275projection(1),_.\u0275\u0275element(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',d],encapsulation:2,changeDetection:0})}return $})(),ee=(()=>{class $ extends I{constructor(G,V,W,K){super(G,V,W,K)}static#e=this.\u0275fac=function(V){return new(V||$)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(t.OD),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275cmp=_.\u0275\u0275defineComponent({type:$,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(V,W){2&V&&(_.\u0275\u0275attribute("disabled",W._getDisabledAttribute())("tabindex",W.disabled&&!W.disabledInteractive?-1:W.tabIndex)("aria-disabled",W._getDisabledAttribute()),_.\u0275\u0275classMap(W.color?"mat-"+W.color:""),_.\u0275\u0275classProp("mat-mdc-button-disabled",W.disabled)("mat-mdc-button-disabled-interactive",W.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===W._animationMode)("mat-unthemed",!W.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[_.\u0275\u0275InheritDefinitionFeature,_.\u0275\u0275StandaloneFeature],attrs:r,ngContentSelectors:s,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(V,W){1&V&&(_.\u0275\u0275projectionDef(b),_.\u0275\u0275element(0,"span",0),_.\u0275\u0275projection(1),_.\u0275\u0275elementStart(2,"span",1),_.\u0275\u0275projection(3,1),_.\u0275\u0275elementEnd(),_.\u0275\u0275projection(4,2),_.\u0275\u0275element(5,"span",2)(6,"span",3)),2&V&&_.\u0275\u0275classProp("mdc-button__ripple",!W._isFab)("mdc-fab__ripple",W._isFab)},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',d],encapsulation:2,changeDetection:0})}return $})(),ie=(()=>{class ${static#e=this.\u0275fac=function(V){return new(V||$)};static#t=this.\u0275mod=_.\u0275\u0275defineNgModule({type:$});static#n=this.\u0275inj=_.\u0275\u0275defineInjector({imports:[E.MatCommonModule,E.MatRippleModule,E.MatCommonModule]})}return $})()},5596:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_CARD_CONFIG:()=>d,MatCard:()=>l,MatCardActions:()=>p,MatCardAvatar:()=>O,MatCardContent:()=>r,MatCardFooter:()=>y,MatCardHeader:()=>v,MatCardImage:()=>M,MatCardLgImage:()=>I,MatCardMdImage:()=>k,MatCardModule:()=>U,MatCardSmImage:()=>w,MatCardSubtitle:()=>h,MatCardTitle:()=>c,MatCardTitleGroup:()=>o,MatCardXlImage:()=>D});var t=g(4438),_=g(177),C=g(6600);const E=["*"],u=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["","mat-card-image",""],["","matCardImage",""],["","mat-card-sm-image",""],["","matCardImageSmall",""],["","mat-card-md-image",""],["","matCardImageMedium",""],["","mat-card-lg-image",""],["","matCardImageLarge",""],["","mat-card-xl-image",""],["","matCardImageXLarge",""]],"*"],b=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","[mat-card-image], [matCardImage],\n [mat-card-sm-image], [matCardImageSmall],\n [mat-card-md-image], [matCardImageMedium],\n [mat-card-lg-image], [matCardImageLarge],\n [mat-card-xl-image], [matCardImageXLarge]","*"],s=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],f=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],d=new t.InjectionToken("MAT_CARD_CONFIG");let l=(()=>{class S{constructor(N){this.appearance=N?.appearance||"raised"}static#e=this.\u0275fac=function(A){return new(A||S)(t.\u0275\u0275directiveInject(d,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:S,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(A,F){2&A&&t.\u0275\u0275classProp("mat-mdc-card-outlined","outlined"===F.appearance)("mdc-card--outlined","outlined"===F.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],standalone:!0,features:[t.\u0275\u0275StandaloneFeature],ngContentSelectors:E,decls:1,vars:0,template:function(A,F){1&A&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:rgba(0, 0, 0, 0.6);flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:rgba(0, 0, 0, 0.6)}.mat-mdc-card{border-radius:var(--mdc-elevated-card-container-shape);background-color:var(--mdc-elevated-card-container-color);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color);box-shadow:var(--mdc-elevated-card-container-elevation)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width);border-style:solid;border-color:var(--mdc-outlined-card-outline-color);border-radius:var(--mdc-outlined-card-container-shape);background-color:var(--mdc-outlined-card-container-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined .mdc-card::after{border-radius:var(--mdc-outlined-card-container-shape)}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card{position:relative}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0})}return S})(),c=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"],standalone:!0})}return S})(),o=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:S,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-mdc-card-title-group"],standalone:!0,features:[t.\u0275\u0275StandaloneFeature],ngContentSelectors:b,decls:4,vars:0,template:function(A,F){1&A&&(t.\u0275\u0275projectionDef(u),t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275projection(1),t.\u0275\u0275elementEnd(),t.\u0275\u0275projection(2,1),t.\u0275\u0275projection(3,2))},encapsulation:2,changeDetection:0})}return S})(),r=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"],standalone:!0})}return S})(),h=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"],standalone:!0})}return S})(),p=(()=>{class S{constructor(){this.align="start"}static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(A,F){2&A&&t.\u0275\u0275classProp("mat-mdc-card-actions-align-end","end"===F.align)},inputs:{align:"align"},exportAs:["matCardActions"],standalone:!0})}return S})(),v=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:S,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],standalone:!0,features:[t.\u0275\u0275StandaloneFeature],ngContentSelectors:f,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(A,F){1&A&&(t.\u0275\u0275projectionDef(s),t.\u0275\u0275projection(0),t.\u0275\u0275elementStart(1,"div",0),t.\u0275\u0275projection(2,1),t.\u0275\u0275elementEnd(),t.\u0275\u0275projection(3,2))},encapsulation:2,changeDetection:0})}return S})(),y=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-mdc-card-footer"],standalone:!0})}return S})(),M=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-mdc-card-image","mdc-card__media"],standalone:!0})}return S})(),w=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-mdc-card-sm-image","mdc-card__media"],standalone:!0})}return S})(),k=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-mdc-card-md-image","mdc-card__media"],standalone:!0})}return S})(),I=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-mdc-card-lg-image","mdc-card__media"],standalone:!0})}return S})(),D=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-mdc-card-xl-image","mdc-card__media"],standalone:!0})}return S})(),O=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:S,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-mdc-card-avatar"],standalone:!0})}return S})(),U=(()=>{class S{static#e=this.\u0275fac=function(A){return new(A||S)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:S});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[C.MatCommonModule,_.CommonModule,C.MatCommonModule]})}return S})()},2765:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR:()=>l,MAT_CHECKBOX_DEFAULT_OPTIONS:()=>s,MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY:()=>f,MAT_CHECKBOX_REQUIRED_VALIDATOR:()=>p,MatCheckbox:()=>h,MatCheckboxChange:()=>c,MatCheckboxModule:()=>M,MatCheckboxRequiredValidator:()=>v,TransitionCheckState:()=>d,_MatCheckboxRequiredValidatorModule:()=>y});var t=g(4438),_=g(9417),C=g(6600);const E=["input"],u=["label"],b=["*"],s=new t.InjectionToken("mat-checkbox-default-options",{providedIn:"root",factory:f});function f(){return{color:"accent",clickAction:"check-indeterminate"}}var d=function(w){return w[w.Init=0]="Init",w[w.Checked=1]="Checked",w[w.Unchecked=2]="Unchecked",w[w.Indeterminate=3]="Indeterminate",w}(d||{});const l={provide:_.NG_VALUE_ACCESSOR,useExisting:(0,t.forwardRef)(()=>h),multi:!0};class c{}let o=0;const r=f();let h=(()=>{class w{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(I){const D=new c;return D.source=this,D.checked=I,D}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(I,D,O,T,U,S){this._elementRef=I,this._changeDetectorRef=D,this._ngZone=O,this._animationMode=U,this._options=S,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new t.EventEmitter,this.indeterminateChange=new t.EventEmitter,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=d.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||r,this.color=this._options.color||r.color,this.tabIndex=parseInt(T)||0,this.id=this._uniqueId="mat-mdc-checkbox-"+ ++o}ngOnChanges(I){I.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(I){I!=this.checked&&(this._checked=I,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(I){I!==this.disabled&&(this._disabled=I,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(I){const D=I!=this._indeterminate;this._indeterminate=I,D&&(this._transitionCheckState(this._indeterminate?d.Indeterminate:this.checked?d.Checked:d.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(I){this.checked=!!I}registerOnChange(I){this._controlValueAccessorChangeFn=I}registerOnTouched(I){this._onTouched=I}setDisabledState(I){this.disabled=I}validate(I){return this.required&&!0!==I.value?{required:!0}:null}registerOnValidatorChange(I){this._validatorChangeFn=I}_transitionCheckState(I){let D=this._currentCheckState,O=this._getAnimationTargetElement();if(D!==I&&O&&(this._currentAnimationClass&&O.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(D,I),this._currentCheckState=I,this._currentAnimationClass.length>0)){O.classList.add(this._currentAnimationClass);const T=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{O.classList.remove(T)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const I=this._options?.clickAction;this.disabled||"noop"===I?!this.disabled&&"noop"===I&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==I&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?d.Checked:d.Unchecked),this._emitChangeEvent())}_onInteractionEvent(I){I.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(I,D){if("NoopAnimations"===this._animationMode)return"";switch(I){case d.Init:if(D===d.Checked)return this._animationClasses.uncheckedToChecked;if(D==d.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case d.Unchecked:return D===d.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case d.Checked:return D===d.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case d.Indeterminate:return D===d.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(I){const D=this._inputElement;D&&(D.nativeElement.indeterminate=I)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(I){I.target&&this._labelElement.nativeElement.contains(I.target)&&I.stopPropagation()}static#e=this.\u0275fac=function(D){return new(D||w)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275injectAttribute("tabindex"),t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8),t.\u0275\u0275directiveInject(s,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:w,selectors:[["mat-checkbox"]],viewQuery:function(D,O){if(1&D&&(t.\u0275\u0275viewQuery(E,5),t.\u0275\u0275viewQuery(u,5),t.\u0275\u0275viewQuery(C.MatRipple,5)),2&D){let T;t.\u0275\u0275queryRefresh(T=t.\u0275\u0275loadQuery())&&(O._inputElement=T.first),t.\u0275\u0275queryRefresh(T=t.\u0275\u0275loadQuery())&&(O._labelElement=T.first),t.\u0275\u0275queryRefresh(T=t.\u0275\u0275loadQuery())&&(O.ripple=T.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(D,O){2&D&&(t.\u0275\u0275hostProperty("id",O.id),t.\u0275\u0275attribute("tabindex",null)("aria-label",null)("aria-labelledby",null),t.\u0275\u0275classMap(O.color?"mat-"+O.color:"mat-accent"),t.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===O._animationMode)("mdc-checkbox--disabled",O.disabled)("mat-mdc-checkbox-disabled",O.disabled)("mat-mdc-checkbox-checked",O.checked))},inputs:{ariaLabel:[t.\u0275\u0275InputFlags.None,"aria-label","ariaLabel"],ariaLabelledby:[t.\u0275\u0275InputFlags.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[t.\u0275\u0275InputFlags.None,"aria-describedby","ariaDescribedby"],id:"id",required:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"required","required",t.booleanAttribute],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",t.booleanAttribute],tabIndex:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"tabIndex","tabIndex",I=>null==I?void 0:(0,t.numberAttribute)(I)],color:"color",checked:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"checked","checked",t.booleanAttribute],disabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",t.booleanAttribute],indeterminate:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"indeterminate","indeterminate",t.booleanAttribute]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([l,{provide:_.NG_VALIDATORS,useExisting:w,multi:!0}]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275NgOnChangesFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:b,decls:15,vars:19,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(D,O){if(1&D){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275projectionDef(),t.\u0275\u0275elementStart(0,"div",3),t.\u0275\u0275listener("click",function(S){return t.\u0275\u0275restoreView(T),t.\u0275\u0275resetView(O._preventBubblingFromLabel(S))}),t.\u0275\u0275elementStart(1,"div",4,0)(3,"div",5),t.\u0275\u0275listener("click",function(){return t.\u0275\u0275restoreView(T),t.\u0275\u0275resetView(O._onTouchTargetClick())}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"input",6,1),t.\u0275\u0275listener("blur",function(){return t.\u0275\u0275restoreView(T),t.\u0275\u0275resetView(O._onBlur())})("click",function(){return t.\u0275\u0275restoreView(T),t.\u0275\u0275resetView(O._onInputClick())})("change",function(S){return t.\u0275\u0275restoreView(T),t.\u0275\u0275resetView(O._onInteractionEvent(S))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(6,"div",7),t.\u0275\u0275elementStart(7,"div",8),t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(8,"svg",9),t.\u0275\u0275element(9,"path",10),t.\u0275\u0275elementEnd(),t.\u0275\u0275namespaceHTML(),t.\u0275\u0275element(10,"div",11),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(11,"div",12),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(12,"label",13,2),t.\u0275\u0275projection(14),t.\u0275\u0275elementEnd()()}if(2&D){const T=t.\u0275\u0275reference(2);t.\u0275\u0275property("labelPosition",O.labelPosition),t.\u0275\u0275advance(4),t.\u0275\u0275classProp("mdc-checkbox--selected",O.checked),t.\u0275\u0275property("checked",O.checked)("indeterminate",O.indeterminate)("disabled",O.disabled)("id",O.inputId)("required",O.required)("tabIndex",O.disabled?-1:O.tabIndex),t.\u0275\u0275attribute("aria-label",O.ariaLabel||null)("aria-labelledby",O.ariaLabelledby)("aria-describedby",O.ariaDescribedby)("aria-checked",O.indeterminate?"mixed":null)("name",O.name)("value",O.value),t.\u0275\u0275advance(7),t.\u0275\u0275property("matRippleTrigger",T)("matRippleDisabled",O.disableRipple||O.disabled)("matRippleCentered",!0),t.\u0275\u0275advance(),t.\u0275\u0275property("for",O.inputId)}},dependencies:[C.MatRipple,C._MatInternalFormField],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-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 mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return w})();const p={provide:_.NG_VALIDATORS,useExisting:(0,t.forwardRef)(()=>v),multi:!0};let v=(()=>{class w extends _.CheckboxRequiredValidator{static#e=this.\u0275fac=(()=>{let I;return function(O){return(I||(I=t.\u0275\u0275getInheritedFactory(w)))(O||w)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:w,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([p]),t.\u0275\u0275InheritDefinitionFeature]})}return w})(),y=(()=>{class w{static#e=this.\u0275fac=function(D){return new(D||w)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:w});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({})}return w})(),M=(()=>{class w{static#e=this.\u0275fac=function(D){return new(D||w)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:w});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[h,C.MatCommonModule,C.MatCommonModule]})}return w})()},6600:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{AnimationCurves:()=>O,AnimationDurations:()=>T,DateAdapter:()=>ce,ErrorStateMatcher:()=>rt,MATERIAL_SANITY_CHECKS:()=>S,MAT_DATE_FORMATS:()=>ue,MAT_DATE_LOCALE:()=>W,MAT_DATE_LOCALE_FACTORY:()=>K,MAT_NATIVE_DATE_FORMATS:()=>ct,MAT_OPTGROUP:()=>_e,MAT_OPTION_PARENT_COMPONENT:()=>Nt,MAT_RIPPLE_GLOBAL_OPTIONS:()=>un,MatCommonModule:()=>R,MatLine:()=>Ee,MatLineModule:()=>Q,MatNativeDateModule:()=>We,MatOptgroup:()=>Ze,MatOption:()=>tt,MatOptionModule:()=>fe,MatOptionSelectionChange:()=>Ot,MatPseudoCheckbox:()=>rn,MatPseudoCheckboxModule:()=>hn,MatRipple:()=>dn,MatRippleLoader:()=>Gt,MatRippleModule:()=>cn,NativeDateAdapter:()=>pt,NativeDateModule:()=>Ct,RippleRef:()=>Re,RippleRenderer:()=>jt,RippleState:()=>pe,ShowOnDirtyErrorStateMatcher:()=>Ie,VERSION:()=>D,_ErrorStateTracker:()=>j,_MatInternalFormField:()=>an,_countGroupLabelsBeforeOption:()=>ft,_getOptionScrollPosition:()=>Le,defaultRippleAnimationConfig:()=>ye,mixinColor:()=>ee,mixinDisableRipple:()=>ie,mixinDisabled:()=>Y,mixinErrorState:()=>G,mixinInitialized:()=>V,mixinTabIndex:()=>$,provideNativeDateAdapter:()=>Ne,setLines:()=>be});var t=g(4438),_=g(6039),C=g(8203),u=g(177),b=g(6860),s=g(4085),f=g(1985),d=g(1413),l=g(9172),c=g(7336);const o=["*",[["mat-option"],["ng-container"]]],r=["*","mat-option, ng-container"],h=["text"],p=[[["mat-icon"]],"*"],v=["mat-icon","*"];function y(_t,Lt){if(1&_t&&t.\u0275\u0275element(0,"mat-pseudo-checkbox",1),2&_t){const Je=t.\u0275\u0275nextContext();t.\u0275\u0275property("disabled",Je.disabled)("state",Je.selected?"checked":"unchecked")}}function M(_t,Lt){if(1&_t&&t.\u0275\u0275element(0,"mat-pseudo-checkbox",3),2&_t){const Je=t.\u0275\u0275nextContext();t.\u0275\u0275property("disabled",Je.disabled)}}function w(_t,Lt){if(1&_t&&(t.\u0275\u0275elementStart(0,"span",4),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&_t){const Je=t.\u0275\u0275nextContext();t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1("(",Je.group.label,")")}}const k=["mat-internal-form-field",""],I=["*"],D=new t.Version("17.3.3");let O=(()=>{class _t{static#e=this.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)";static#t=this.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)";static#n=this.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)";static#i=this.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)"}return _t})(),T=(()=>{class _t{static#e=this.COMPLEX="375ms";static#t=this.ENTERING="225ms";static#n=this.EXITING="195ms"}return _t})();const S=new t.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function U(){return!0}});let R=(()=>{class _t{constructor(Je,Fe,et){this._sanityChecks=Fe,this._document=et,this._hasDoneGlobalChecks=!1,Je._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Je){return!(0,b.v8)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Je])}static#e=this.\u0275fac=function(Fe){return new(Fe||_t)(t.\u0275\u0275inject(_.Q_),t.\u0275\u0275inject(S,8),t.\u0275\u0275inject(u.DOCUMENT))};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:_t});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[C.jI,C.jI]})}return _t})();function Y(_t){return class extends _t{get disabled(){return this._disabled}set disabled(Lt){this._disabled=(0,s.he)(Lt)}constructor(...Lt){super(...Lt),this._disabled=!1}}}function ee(_t,Lt){return class extends _t{get color(){return this._color}set color(Je){const Fe=Je||this.defaultColor;Fe!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Fe&&this._elementRef.nativeElement.classList.add(`mat-${Fe}`),this._color=Fe)}constructor(...Je){super(...Je),this.defaultColor=Lt,this.color=Lt}}}function ie(_t){return class extends _t{get disableRipple(){return this._disableRipple}set disableRipple(Lt){this._disableRipple=(0,s.he)(Lt)}constructor(...Lt){super(...Lt),this._disableRipple=!1}}}function $(_t,Lt=0){return class extends _t{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Je){this._tabIndex=null!=Je?(0,s.OE)(Je):this.defaultTabIndex}constructor(...Je){super(...Je),this._tabIndex=Lt,this.defaultTabIndex=Lt}}}class j{constructor(Lt,Je,Fe,et,je){this._defaultMatcher=Lt,this.ngControl=Je,this._parentFormGroup=Fe,this._parentForm=et,this._stateChanges=je,this.errorState=!1}updateErrorState(){const Lt=this.errorState,Je=this._parentFormGroup||this._parentForm,Fe=this.matcher||this._defaultMatcher,et=this.ngControl?this.ngControl.control:null,je=Fe?.isErrorState(et,Je)??!1;je!==Lt&&(this.errorState=je,this._stateChanges.next())}}function G(_t){return class extends _t{get errorState(){return this._getTracker().errorState}set errorState(Lt){this._getTracker().errorState=Lt}get errorStateMatcher(){return this._getTracker().matcher}set errorStateMatcher(Lt){this._getTracker().matcher=Lt}updateErrorState(){this._getTracker().updateErrorState()}_getTracker(){return this._tracker||(this._tracker=new j(this._defaultErrorStateMatcher,this.ngControl,this._parentFormGroup,this._parentForm,this.stateChanges)),this._tracker}constructor(...Lt){super(...Lt)}}}function V(_t){return class extends _t{constructor(...Lt){super(...Lt),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new f.c(Je=>{this._isInitialized?this._notifySubscriber(Je):this._pendingSubscribers.push(Je)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Lt){Lt.next(),Lt.complete()}}}const W=new t.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:K});function K(){return(0,t.inject)(t.LOCALE_ID)}class ce{constructor(){this._localeChanges=new d.B,this.localeChanges=this._localeChanges}getValidDateOrNull(Lt){return this.isDateInstance(Lt)&&this.isValid(Lt)?Lt:null}deserialize(Lt){return null==Lt||this.isDateInstance(Lt)&&this.isValid(Lt)?Lt:this.invalid()}setLocale(Lt){this.locale=Lt,this._localeChanges.next()}compareDate(Lt,Je){return this.getYear(Lt)-this.getYear(Je)||this.getMonth(Lt)-this.getMonth(Je)||this.getDate(Lt)-this.getDate(Je)}sameDate(Lt,Je){if(Lt&&Je){let Fe=this.isValid(Lt),et=this.isValid(Je);return Fe&&et?!this.compareDate(Lt,Je):Fe==et}return Lt==Je}clampDate(Lt,Je,Fe){return Je&&this.compareDate(Lt,Je)<0?Je:Fe&&this.compareDate(Lt,Fe)>0?Fe:Lt}}const ue=new t.InjectionToken("mat-date-formats"),ve=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ye(_t,Lt){const Je=Array(_t);for(let Fe=0;Fe<_t;Fe++)Je[Fe]=Lt(Fe);return Je}let pt=(()=>{class _t extends ce{constructor(Je){super(),this.useUtcForDisplay=!1,this._matDateLocale=(0,t.inject)(W,{optional:!0}),void 0!==Je&&(this._matDateLocale=Je),super.setLocale(this._matDateLocale)}getYear(Je){return Je.getFullYear()}getMonth(Je){return Je.getMonth()}getDate(Je){return Je.getDate()}getDayOfWeek(Je){return Je.getDay()}getMonthNames(Je){const Fe=new Intl.DateTimeFormat(this.locale,{month:Je,timeZone:"utc"});return Ye(12,et=>this._format(Fe,new Date(2017,et,1)))}getDateNames(){const Je=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ye(31,Fe=>this._format(Je,new Date(2017,0,Fe+1)))}getDayOfWeekNames(Je){const Fe=new Intl.DateTimeFormat(this.locale,{weekday:Je,timeZone:"utc"});return Ye(7,et=>this._format(Fe,new Date(2017,0,et+1)))}getYearName(Je){const Fe=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Fe,Je)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Je){return this.getDate(this._createDateWithOverflow(this.getYear(Je),this.getMonth(Je)+1,0))}clone(Je){return new Date(Je.getTime())}createDate(Je,Fe,et){let je=this._createDateWithOverflow(Je,Fe,et);return je.getMonth(),je}today(){return new Date}parse(Je,Fe){return"number"==typeof Je?new Date(Je):Je?new Date(Date.parse(Je)):null}format(Je,Fe){if(!this.isValid(Je))throw Error("NativeDateAdapter: Cannot format invalid date.");const et=new Intl.DateTimeFormat(this.locale,{...Fe,timeZone:"utc"});return this._format(et,Je)}addCalendarYears(Je,Fe){return this.addCalendarMonths(Je,12*Fe)}addCalendarMonths(Je,Fe){let et=this._createDateWithOverflow(this.getYear(Je),this.getMonth(Je)+Fe,this.getDate(Je));return this.getMonth(et)!=((this.getMonth(Je)+Fe)%12+12)%12&&(et=this._createDateWithOverflow(this.getYear(et),this.getMonth(et),0)),et}addCalendarDays(Je,Fe){return this._createDateWithOverflow(this.getYear(Je),this.getMonth(Je),this.getDate(Je)+Fe)}toIso8601(Je){return[Je.getUTCFullYear(),this._2digit(Je.getUTCMonth()+1),this._2digit(Je.getUTCDate())].join("-")}deserialize(Je){if("string"==typeof Je){if(!Je)return null;if(ve.test(Je)){let Fe=new Date(Je);if(this.isValid(Fe))return Fe}}return super.deserialize(Je)}isDateInstance(Je){return Je instanceof Date}isValid(Je){return!isNaN(Je.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(Je,Fe,et){const je=new Date;return je.setFullYear(Je,Fe,et),je.setHours(0,0,0,0),je}_2digit(Je){return("00"+Je).slice(-2)}_format(Je,Fe){const et=new Date;return et.setUTCFullYear(Fe.getFullYear(),Fe.getMonth(),Fe.getDate()),et.setUTCHours(Fe.getHours(),Fe.getMinutes(),Fe.getSeconds(),Fe.getMilliseconds()),Je.format(et)}static#e=this.\u0275fac=function(Fe){return new(Fe||_t)(t.\u0275\u0275inject(W,8))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:_t,factory:_t.\u0275fac})}return _t})();const ct={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 Ct=(()=>{class _t{static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:_t});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({providers:[{provide:ce,useClass:pt}]})}return _t})(),We=(()=>{class _t{static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:_t});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({providers:[Ne()]})}return _t})();function Ne(_t=ct){return[{provide:ce,useClass:pt},{provide:ue,useValue:_t}]}let Ie=(()=>{class _t{isErrorState(Je,Fe){return!!(Je&&Je.invalid&&(Je.dirty||Fe&&Fe.submitted))}static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:_t,factory:_t.\u0275fac})}return _t})(),rt=(()=>{class _t{isErrorState(Je,Fe){return!!(Je&&Je.invalid&&(Je.touched||Fe&&Fe.submitted))}static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})(),Ee=(()=>{class _t{static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:_t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"],standalone:!0})}return _t})();function be(_t,Lt,Je="mat"){_t.changes.pipe((0,l.Z)(_t)).subscribe(({length:Fe})=>{Se(Lt,`${Je}-2-line`,!1),Se(Lt,`${Je}-3-line`,!1),Se(Lt,`${Je}-multi-line`,!1),2===Fe||3===Fe?Se(Lt,`${Je}-${Fe}-line`,!0):Fe>3&&Se(Lt,`${Je}-multi-line`,!0)})}function Se(_t,Lt,Je){_t.nativeElement.classList.toggle(Lt,Je)}let Q=(()=>{class _t{static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:_t});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[R,R]})}return _t})();var pe=function(_t){return _t[_t.FADING_IN=0]="FADING_IN",_t[_t.VISIBLE=1]="VISIBLE",_t[_t.FADING_OUT=2]="FADING_OUT",_t[_t.HIDDEN=3]="HIDDEN",_t}(pe||{});class Re{constructor(Lt,Je,Fe,et=!1){this._renderer=Lt,this.element=Je,this.config=Fe,this._animationForciblyDisabledThroughCss=et,this.state=pe.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const bt=(0,b.BQ)({passive:!0,capture:!0});class it{constructor(){this._events=new Map,this._delegateEventHandler=Lt=>{const Je=(0,b.Fb)(Lt);Je&&this._events.get(Lt.type)?.forEach((Fe,et)=>{(et===Je||et.contains(Je))&&Fe.forEach(je=>je.handleEvent(Lt))})}}addHandler(Lt,Je,Fe,et){const je=this._events.get(Je);if(je){const dt=je.get(Fe);dt?dt.add(et):je.set(Fe,new Set([et]))}else this._events.set(Je,new Map([[Fe,new Set([et])]])),Lt.runOutsideAngular(()=>{document.addEventListener(Je,this._delegateEventHandler,bt)})}removeHandler(Lt,Je,Fe){const et=this._events.get(Lt);if(!et)return;const je=et.get(Je);je&&(je.delete(Fe),0===je.size&&et.delete(Je),0===et.size&&(this._events.delete(Lt),document.removeEventListener(Lt,this._delegateEventHandler,bt)))}}const ye={enterDuration:225,exitDuration:150},De=(0,b.BQ)({passive:!0,capture:!0}),st=["mousedown","touchstart"],xt=["mouseup","mouseleave","touchend","touchcancel"];class jt{static#e=this._eventManager=new it;constructor(Lt,Je,Fe,et){this._target=Lt,this._ngZone=Je,this._platform=et,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,et.isBrowser&&(this._containerElement=(0,s.i8)(Fe))}fadeInRipple(Lt,Je,Fe={}){const et=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),je={...ye,...Fe.animation};Fe.centered&&(Lt=et.left+et.width/2,Je=et.top+et.height/2);const dt=Fe.radius||function Xt(_t,Lt,Je){const Fe=Math.max(Math.abs(_t-Je.left),Math.abs(_t-Je.right)),et=Math.max(Math.abs(Lt-Je.top),Math.abs(Lt-Je.bottom));return Math.sqrt(Fe*Fe+et*et)}(Lt,Je,et),At=Lt-et.left,qt=Je-et.top,Cn=je.enterDuration,Ln=document.createElement("div");Ln.classList.add("mat-ripple-element"),Ln.style.left=At-dt+"px",Ln.style.top=qt-dt+"px",Ln.style.height=2*dt+"px",Ln.style.width=2*dt+"px",null!=Fe.color&&(Ln.style.backgroundColor=Fe.color),Ln.style.transitionDuration=`${Cn}ms`,this._containerElement.appendChild(Ln);const Oi=window.getComputedStyle(Ln),jn=Oi.transitionDuration,at="none"===Oi.transitionProperty||"0s"===jn||"0s, 0s"===jn||0===et.width&&0===et.height,Jt=new Re(this,Ln,Fe,at);Ln.style.transform="scale3d(1, 1, 1)",Jt.state=pe.FADING_IN,Fe.persistent||(this._mostRecentTransientRipple=Jt);let Be=null;return!at&&(Cn||je.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const lt=()=>this._finishRippleTransition(Jt),Et=()=>this._destroyRipple(Jt);Ln.addEventListener("transitionend",lt),Ln.addEventListener("transitioncancel",Et),Be={onTransitionEnd:lt,onTransitionCancel:Et}}),this._activeRipples.set(Jt,Be),(at||!Cn)&&this._finishRippleTransition(Jt),Jt}fadeOutRipple(Lt){if(Lt.state===pe.FADING_OUT||Lt.state===pe.HIDDEN)return;const Je=Lt.element,Fe={...ye,...Lt.config.animation};Je.style.transitionDuration=`${Fe.exitDuration}ms`,Je.style.opacity="0",Lt.state=pe.FADING_OUT,(Lt._animationForciblyDisabledThroughCss||!Fe.exitDuration)&&this._finishRippleTransition(Lt)}fadeOutAll(){this._getActiveRipples().forEach(Lt=>Lt.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Lt=>{Lt.config.persistent||Lt.fadeOut()})}setupTriggerEvents(Lt){const Je=(0,s.i8)(Lt);!this._platform.isBrowser||!Je||Je===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Je,st.forEach(Fe=>{jt._eventManager.addHandler(this._ngZone,Fe,Je,this)}))}handleEvent(Lt){"mousedown"===Lt.type?this._onMousedown(Lt):"touchstart"===Lt.type?this._onTouchStart(Lt):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{xt.forEach(Je=>{this._triggerElement.addEventListener(Je,this,De)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Lt){Lt.state===pe.FADING_IN?this._startFadeOutTransition(Lt):Lt.state===pe.FADING_OUT&&this._destroyRipple(Lt)}_startFadeOutTransition(Lt){const Je=Lt===this._mostRecentTransientRipple,{persistent:Fe}=Lt.config;Lt.state=pe.VISIBLE,!Fe&&(!Je||!this._isPointerDown)&&Lt.fadeOut()}_destroyRipple(Lt){const Je=this._activeRipples.get(Lt)??null;this._activeRipples.delete(Lt),this._activeRipples.size||(this._containerRect=null),Lt===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Lt.state=pe.HIDDEN,null!==Je&&(Lt.element.removeEventListener("transitionend",Je.onTransitionEnd),Lt.element.removeEventListener("transitioncancel",Je.onTransitionCancel)),Lt.element.remove()}_onMousedown(Lt){const Je=(0,_._G)(Lt),Fe=this._lastTouchStartEvent&&Date.now(){!Lt.config.persistent&&(Lt.state===pe.VISIBLE||Lt.config.terminateOnPointerUp&&Lt.state===pe.FADING_IN)&&Lt.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const Lt=this._triggerElement;Lt&&(st.forEach(Je=>jt._eventManager.removeHandler(Je,Lt,this)),this._pointerUpEventsRegistered&&xt.forEach(Je=>Lt.removeEventListener(Je,this,De)))}}const un=new t.InjectionToken("mat-ripple-global-options");let dn=(()=>{class _t{get disabled(){return this._disabled}set disabled(Je){Je&&this.fadeOutAllNonPersistent(),this._disabled=Je,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Je){this._trigger=Je,this._setupTriggerEventsIfEnabled()}constructor(Je,Fe,et,je,dt){this._elementRef=Je,this._animationMode=dt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=je||{},this._rippleRenderer=new jt(this,Fe,Je,et)}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:{...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(Je,Fe=0,et){return"number"==typeof Je?this._rippleRenderer.fadeInRipple(Je,Fe,{...this.rippleConfig,...et}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Je})}static#e=this.\u0275fac=function(Fe){return new(Fe||_t)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(b.OD),t.\u0275\u0275directiveInject(un,8),t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:_t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Fe,et){2&Fe&&t.\u0275\u0275classProp("mat-ripple-unbounded",et.unbounded)},inputs:{color:[t.\u0275\u0275InputFlags.None,"matRippleColor","color"],unbounded:[t.\u0275\u0275InputFlags.None,"matRippleUnbounded","unbounded"],centered:[t.\u0275\u0275InputFlags.None,"matRippleCentered","centered"],radius:[t.\u0275\u0275InputFlags.None,"matRippleRadius","radius"],animation:[t.\u0275\u0275InputFlags.None,"matRippleAnimation","animation"],disabled:[t.\u0275\u0275InputFlags.None,"matRippleDisabled","disabled"],trigger:[t.\u0275\u0275InputFlags.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}return _t})(),cn=(()=>{class _t{static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:_t});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[R,R]})}return _t})(),rn=(()=>{class _t{constructor(Je){this._animationMode=Je,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(Fe){return new(Fe||_t)(t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:_t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(Fe,et){2&Fe&&t.\u0275\u0275classProp("mat-pseudo-checkbox-indeterminate","indeterminate"===et.state)("mat-pseudo-checkbox-checked","checked"===et.state)("mat-pseudo-checkbox-disabled",et.disabled)("mat-pseudo-checkbox-minimal","minimal"===et.appearance)("mat-pseudo-checkbox-full","full"===et.appearance)("_mat-animation-noopable","NoopAnimations"===et._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[t.\u0275\u0275StandaloneFeature],decls:0,vars:0,template:function(Fe,et){},styles:['.mat-pseudo-checkbox{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-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return _t})(),hn=(()=>{class _t{static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:_t});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[R]})}return _t})();const Nt=new t.InjectionToken("MAT_OPTION_PARENT_COMPONENT");let Bt=0;const _e=new t.InjectionToken("MatOptgroup");let Ze=(()=>{class _t{constructor(Je){this.disabled=!1,this._labelId="mat-optgroup-label-"+Bt++,this._inert=Je?.inertGroups??!1}static#e=this.\u0275fac=function(Fe){return new(Fe||_t)(t.\u0275\u0275directiveInject(Nt,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:_t,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(Fe,et){2&Fe&&t.\u0275\u0275attribute("role",et._inert?null:"group")("aria-disabled",et._inert?null:et.disabled.toString())("aria-labelledby",et._inert?null:et._labelId)},inputs:{label:"label",disabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",t.booleanAttribute]},exportAs:["matOptgroup"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:_e,useExisting:_t}]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:r,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(Fe,et){1&Fe&&(t.\u0275\u0275projectionDef(o),t.\u0275\u0275elementStart(0,"span",0)(1,"span",1),t.\u0275\u0275text(2),t.\u0275\u0275projection(3),t.\u0275\u0275elementEnd()(),t.\u0275\u0275projection(4,1)),2&Fe&&(t.\u0275\u0275classProp("mdc-list-item--disabled",et.disabled),t.\u0275\u0275property("id",et._labelId),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1("",et.label," "))},styles:[".mat-mdc-optgroup{color:var(--mat-optgroup-label-text-color);font-family:var(--mat-optgroup-label-text-font);line-height:var(--mat-optgroup-label-text-line-height);font-size:var(--mat-optgroup-label-text-size);letter-spacing:var(--mat-optgroup-label-text-tracking);font-weight:var(--mat-optgroup-label-text-weight)}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;min-height:48px}.mat-mdc-optgroup-label:focus{outline:none}[dir=rtl] .mat-mdc-optgroup-label,.mat-mdc-optgroup-label[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal}"],encapsulation:2,changeDetection:0})}return _t})(),Qe=0;class Ot{constructor(Lt,Je=!1){this.source=Lt,this.isUserInput=Je}}let tt=(()=>{class _t{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(Je){this._disabled=Je}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(Je,Fe,et,je){this._element=Je,this._changeDetectorRef=Fe,this._parent=et,this.group=je,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Qe++,this.onSelectionChange=new t.EventEmitter,this._stateChanges=new d.B}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(Je=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),Je&&this._emitSelectionChangeEvent())}deselect(Je=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),Je&&this._emitSelectionChangeEvent())}focus(Je,Fe){const et=this._getHostElement();"function"==typeof et.focus&&et.focus(Fe)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Je){(Je.keyCode===c.Fm||Je.keyCode===c.t6)&&!(0,c.rp)(Je)&&(this._selectViaInteraction(),Je.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const Je=this.viewValue;Je!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=Je)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Je=!1){this.onSelectionChange.emit(new Ot(this,Je))}static#e=this.\u0275fac=function(Fe){return new(Fe||_t)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(Nt,8),t.\u0275\u0275directiveInject(_e,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:_t,selectors:[["mat-option"]],viewQuery:function(Fe,et){if(1&Fe&&t.\u0275\u0275viewQuery(h,7),2&Fe){let je;t.\u0275\u0275queryRefresh(je=t.\u0275\u0275loadQuery())&&(et._text=je.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(Fe,et){1&Fe&&t.\u0275\u0275listener("click",function(){return et._selectViaInteraction()})("keydown",function(dt){return et._handleKeydown(dt)}),2&Fe&&(t.\u0275\u0275hostProperty("id",et.id),t.\u0275\u0275attribute("aria-selected",et.selected)("aria-disabled",et.disabled.toString()),t.\u0275\u0275classProp("mdc-list-item--selected",et.selected)("mat-mdc-option-multiple",et.multiple)("mat-mdc-option-active",et.active)("mdc-list-item--disabled",et.disabled))},inputs:{value:"value",id:"id",disabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",t.booleanAttribute]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:v,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(Fe,et){1&Fe&&(t.\u0275\u0275projectionDef(p),t.\u0275\u0275template(0,y,1,2,"mat-pseudo-checkbox",1),t.\u0275\u0275projection(1),t.\u0275\u0275elementStart(2,"span",2,0),t.\u0275\u0275projection(4,1),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(5,M,1,1,"mat-pseudo-checkbox",3)(6,w,2,1,"span",4),t.\u0275\u0275element(7,"div",5)),2&Fe&&(t.\u0275\u0275conditional(0,et.multiple?0:-1),t.\u0275\u0275advance(5),t.\u0275\u0275conditional(5,et.multiple||!et.selected||et.hideSingleSelectionIndicator?-1:5),t.\u0275\u0275advance(),t.\u0275\u0275conditional(6,et.group&&et.group._inert?6:-1),t.\u0275\u0275advance(),t.\u0275\u0275property("matRippleTrigger",et._getHostElement())("matRippleDisabled",et.disabled||et.disableRipple))},dependencies:[rn,dn],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return _t})();function ft(_t,Lt,Je){if(Je.length){let Fe=Lt.toArray(),et=Je.toArray(),je=0;for(let dt=0;dt<_t+1;dt++)Fe[dt].group&&Fe[dt].group===et[je]&&je++;return je}return 0}function Le(_t,Lt,Je,Fe){return _tJe+Fe?Math.max(0,_t-Fe+Lt):Je}let fe=(()=>{class _t{static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:_t});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[cn,R,hn]})}return _t})();const Ge={capture:!0},te=["focus","click","mouseenter","touchstart"],de="mat-ripple-loader-uninitialized",ke="mat-ripple-loader-class-name",nt="mat-ripple-loader-centered",It="mat-ripple-loader-disabled";let Gt=(()=>{class _t{constructor(){this._document=(0,t.inject)(u.DOCUMENT,{optional:!0}),this._animationMode=(0,t.inject)(t.ANIMATION_MODULE_TYPE,{optional:!0}),this._globalRippleOptions=(0,t.inject)(un,{optional:!0}),this._platform=(0,t.inject)(b.OD),this._ngZone=(0,t.inject)(t.NgZone),this._hosts=new Map,this._onInteraction=Je=>{if(!(Je.target instanceof HTMLElement))return;const et=Je.target.closest(`[${de}]`);et&&this._createRipple(et)},this._ngZone.runOutsideAngular(()=>{for(const Je of te)this._document?.addEventListener(Je,this._onInteraction,Ge)})}ngOnDestroy(){const Je=this._hosts.keys();for(const Fe of Je)this.destroyRipple(Fe);for(const Fe of te)this._document?.removeEventListener(Fe,this._onInteraction,Ge)}configureRipple(Je,Fe){Je.setAttribute(de,""),(Fe.className||!Je.hasAttribute(ke))&&Je.setAttribute(ke,Fe.className||""),Fe.centered&&Je.setAttribute(nt,""),Fe.disabled&&Je.setAttribute(It,"")}getRipple(Je){return this._hosts.get(Je)||this._createRipple(Je)}setDisabled(Je,Fe){const et=this._hosts.get(Je);et?et.disabled=Fe:Fe?Je.setAttribute(It,""):Je.removeAttribute(It)}_createRipple(Je){if(!this._document)return;const Fe=this._hosts.get(Je);if(Fe)return Fe;Je.querySelector(".mat-ripple")?.remove();const et=this._document.createElement("span");et.classList.add("mat-ripple",Je.getAttribute(ke)),Je.append(et);const je=new dn(new t.ElementRef(et),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return je._isInitialized=!0,je.trigger=Je,je.centered=Je.hasAttribute(nt),je.disabled=Je.hasAttribute(It),this.attachRipple(Je,je),je}attachRipple(Je,Fe){Je.removeAttribute(de),this._hosts.set(Je,Fe)}destroyRipple(Je){const Fe=this._hosts.get(Je);Fe&&(Fe.ngOnDestroy(),this._hosts.delete(Je))}static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})(),an=(()=>{class _t{static#e=this.\u0275fac=function(Fe){return new(Fe||_t)};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:_t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(Fe,et){2&Fe&&t.\u0275\u0275classProp("mdc-form-field--align-end","before"===et.labelPosition)},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[t.\u0275\u0275StandaloneFeature],attrs:k,ngContentSelectors:I,decls:1,vars:0,template:function(Fe,et){1&Fe&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-form-field{font-family:var(--mdc-form-field-label-text-font);line-height:var(--mdc-form-field-label-text-line-height);font-size:var(--mdc-form-field-label-text-size);font-weight:var(--mdc-form-field-label-text-weight);letter-spacing:var(--mdc-form-field-label-text-tracking);color:var(--mdc-form-field-label-text-color)}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0})}return _t})()},5084:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{DateRange:()=>bt,DefaultMatCalendarRangeStrategy:()=>un,MAT_DATEPICKER_SCROLL_STRATEGY:()=>ke,MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY:()=>nt,MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>It,MAT_DATEPICKER_VALIDATORS:()=>je,MAT_DATEPICKER_VALUE_ACCESSOR:()=>et,MAT_DATE_RANGE_SELECTION_STRATEGY:()=>Xt,MAT_RANGE_DATE_SELECTION_MODEL_FACTORY:()=>xt,MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER:()=>jt,MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY:()=>De,MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER:()=>st,MatCalendar:()=>Ge,MatCalendarBody:()=>rt,MatCalendarCell:()=>ct,MatCalendarHeader:()=>fe,MatDateRangeInput:()=>nn,MatDateRangePicker:()=>_n,MatDateSelectionModel:()=>it,MatDatepicker:()=>_t,MatDatepickerActions:()=>Ke,MatDatepickerApply:()=>Ue,MatDatepickerCancel:()=>ut,MatDatepickerContent:()=>Gt,MatDatepickerInput:()=>dt,MatDatepickerInputEvent:()=>Lt,MatDatepickerIntl:()=>pt,MatDatepickerModule:()=>mt,MatDatepickerToggle:()=>qt,MatDatepickerToggleIcon:()=>At,MatEndDate:()=>lt,MatMonthView:()=>hn,MatMultiYearView:()=>_e,MatRangeDateSelectionModel:()=>He,MatSingleDateSelectionModel:()=>ye,MatStartDate:()=>Be,MatYearView:()=>ft,matDatepickerAnimations:()=>te,yearsPerPage:()=>Nt,yearsPerRow:()=>Bt});var t=g(6039),_=g(7987),C=g(6939),E=g(177),u=g(4438),b=g(8834),s=g(5478),f=g(6600),d=g(1413),l=g(8359),c=g(7786),o=g(7673),r=g(7336),h=g(8203),p=g(6860),v=g(6697),y=g(9172),M=g(5964),w=g(4085),k=g(9969),I=g(9417),D=g(2102),O=g(9631);const T=["mat-calendar-body",""];function U(xe,Mt){if(1&xe&&(u.\u0275\u0275elementStart(0,"tr",0)(1,"td",3),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd()()),2&xe){const H=u.\u0275\u0275nextContext();u.\u0275\u0275advance(),u.\u0275\u0275styleProp("padding-top",H._cellPadding)("padding-bottom",H._cellPadding),u.\u0275\u0275attribute("colspan",H.numCols),u.\u0275\u0275advance(),u.\u0275\u0275textInterpolate1(" ",H.label," ")}}function S(xe,Mt){if(1&xe&&(u.\u0275\u0275elementStart(0,"td",3),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&xe){const H=u.\u0275\u0275nextContext(2);u.\u0275\u0275styleProp("padding-top",H._cellPadding)("padding-bottom",H._cellPadding),u.\u0275\u0275attribute("colspan",H._firstRowOffset),u.\u0275\u0275advance(),u.\u0275\u0275textInterpolate1(" ",H._firstRowOffset>=H.labelMinRequiredCells?H.label:""," ")}}function R(xe,Mt){if(1&xe){const H=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"td",6)(1,"button",7),u.\u0275\u0275listener("click",function(le){const $e=u.\u0275\u0275restoreView(H).$implicit,wt=u.\u0275\u0275nextContext(2);return u.\u0275\u0275resetView(wt._cellClicked($e,le))})("focus",function(le){const $e=u.\u0275\u0275restoreView(H).$implicit,wt=u.\u0275\u0275nextContext(2);return u.\u0275\u0275resetView(wt._emitActiveDateChange($e,le))}),u.\u0275\u0275elementStart(2,"span",8),u.\u0275\u0275text(3),u.\u0275\u0275elementEnd(),u.\u0275\u0275element(4,"span",9),u.\u0275\u0275elementEnd()()}if(2&xe){const H=Mt.$implicit,me=Mt.$index,le=u.\u0275\u0275nextContext().$index,$e=u.\u0275\u0275nextContext();u.\u0275\u0275styleProp("width",$e._cellWidth)("padding-top",$e._cellPadding)("padding-bottom",$e._cellPadding),u.\u0275\u0275attribute("data-mat-row",le)("data-mat-col",me),u.\u0275\u0275advance(),u.\u0275\u0275classProp("mat-calendar-body-disabled",!H.enabled)("mat-calendar-body-active",$e._isActiveCell(le,me))("mat-calendar-body-range-start",$e._isRangeStart(H.compareValue))("mat-calendar-body-range-end",$e._isRangeEnd(H.compareValue))("mat-calendar-body-in-range",$e._isInRange(H.compareValue))("mat-calendar-body-comparison-bridge-start",$e._isComparisonBridgeStart(H.compareValue,le,me))("mat-calendar-body-comparison-bridge-end",$e._isComparisonBridgeEnd(H.compareValue,le,me))("mat-calendar-body-comparison-start",$e._isComparisonStart(H.compareValue))("mat-calendar-body-comparison-end",$e._isComparisonEnd(H.compareValue))("mat-calendar-body-in-comparison-range",$e._isInComparisonRange(H.compareValue))("mat-calendar-body-preview-start",$e._isPreviewStart(H.compareValue))("mat-calendar-body-preview-end",$e._isPreviewEnd(H.compareValue))("mat-calendar-body-in-preview",$e._isInPreview(H.compareValue)),u.\u0275\u0275property("ngClass",H.cssClasses)("tabindex",$e._isActiveCell(le,me)?0:-1),u.\u0275\u0275attribute("aria-label",H.ariaLabel)("aria-disabled",!H.enabled||null)("aria-pressed",$e._isSelected(H.compareValue))("aria-current",$e.todayValue===H.compareValue?"date":null)("aria-describedby",$e._getDescribedby(H.compareValue)),u.\u0275\u0275advance(),u.\u0275\u0275classProp("mat-calendar-body-selected",$e._isSelected(H.compareValue))("mat-calendar-body-comparison-identical",$e._isComparisonIdentical(H.compareValue))("mat-calendar-body-today",$e.todayValue===H.compareValue),u.\u0275\u0275advance(),u.\u0275\u0275textInterpolate1(" ",H.displayValue," ")}}function N(xe,Mt){if(1&xe&&(u.\u0275\u0275elementStart(0,"tr",1),u.\u0275\u0275template(1,S,2,6,"td",4),u.\u0275\u0275repeaterCreate(2,R,5,48,"td",5,u.\u0275\u0275repeaterTrackByIdentity),u.\u0275\u0275elementEnd()),2&xe){const H=Mt.$implicit,me=Mt.$index,le=u.\u0275\u0275nextContext();u.\u0275\u0275advance(),u.\u0275\u0275conditional(1,0===me&&le._firstRowOffset?1:-1),u.\u0275\u0275advance(),u.\u0275\u0275repeater(H)}}function A(xe,Mt){if(1&xe&&(u.\u0275\u0275elementStart(0,"th",2)(1,"span",6),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(3,"span",3),u.\u0275\u0275text(4),u.\u0275\u0275elementEnd()()),2&xe){const H=Mt.$implicit;u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(H.long),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(H.narrow)}}const F=["*"];function Y(xe,Mt){}function ee(xe,Mt){if(1&xe){const H=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"mat-month-view",2),u.\u0275\u0275twoWayListener("activeDateChange",function(le){u.\u0275\u0275restoreView(H);const $e=u.\u0275\u0275nextContext();return u.\u0275\u0275twoWayBindingSet($e.activeDate,le)||($e.activeDate=le),u.\u0275\u0275resetView(le)}),u.\u0275\u0275listener("_userSelection",function(le){u.\u0275\u0275restoreView(H);const $e=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView($e._dateSelected(le))})("dragStarted",function(le){u.\u0275\u0275restoreView(H);const $e=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView($e._dragStarted(le))})("dragEnded",function(le){u.\u0275\u0275restoreView(H);const $e=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView($e._dragEnded(le))}),u.\u0275\u0275elementEnd()}if(2&xe){const H=u.\u0275\u0275nextContext();u.\u0275\u0275twoWayProperty("activeDate",H.activeDate),u.\u0275\u0275property("selected",H.selected)("dateFilter",H.dateFilter)("maxDate",H.maxDate)("minDate",H.minDate)("dateClass",H.dateClass)("comparisonStart",H.comparisonStart)("comparisonEnd",H.comparisonEnd)("startDateAccessibleName",H.startDateAccessibleName)("endDateAccessibleName",H.endDateAccessibleName)("activeDrag",H._activeDrag)}}function ie(xe,Mt){if(1&xe){const H=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"mat-year-view",3),u.\u0275\u0275twoWayListener("activeDateChange",function(le){u.\u0275\u0275restoreView(H);const $e=u.\u0275\u0275nextContext();return u.\u0275\u0275twoWayBindingSet($e.activeDate,le)||($e.activeDate=le),u.\u0275\u0275resetView(le)}),u.\u0275\u0275listener("monthSelected",function(le){u.\u0275\u0275restoreView(H);const $e=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView($e._monthSelectedInYearView(le))})("selectedChange",function(le){u.\u0275\u0275restoreView(H);const $e=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView($e._goToDateInView(le,"month"))}),u.\u0275\u0275elementEnd()}if(2&xe){const H=u.\u0275\u0275nextContext();u.\u0275\u0275twoWayProperty("activeDate",H.activeDate),u.\u0275\u0275property("selected",H.selected)("dateFilter",H.dateFilter)("maxDate",H.maxDate)("minDate",H.minDate)("dateClass",H.dateClass)}}function $(xe,Mt){if(1&xe){const H=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"mat-multi-year-view",4),u.\u0275\u0275twoWayListener("activeDateChange",function(le){u.\u0275\u0275restoreView(H);const $e=u.\u0275\u0275nextContext();return u.\u0275\u0275twoWayBindingSet($e.activeDate,le)||($e.activeDate=le),u.\u0275\u0275resetView(le)}),u.\u0275\u0275listener("yearSelected",function(le){u.\u0275\u0275restoreView(H);const $e=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView($e._yearSelectedInMultiYearView(le))})("selectedChange",function(le){u.\u0275\u0275restoreView(H);const $e=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView($e._goToDateInView(le,"year"))}),u.\u0275\u0275elementEnd()}if(2&xe){const H=u.\u0275\u0275nextContext();u.\u0275\u0275twoWayProperty("activeDate",H.activeDate),u.\u0275\u0275property("selected",H.selected)("dateFilter",H.dateFilter)("maxDate",H.maxDate)("minDate",H.minDate)("dateClass",H.dateClass)}}function j(xe,Mt){}const G=["button"],V=[[["","matDatepickerToggleIcon",""]]],W=["[matDatepickerToggleIcon]"];function K(xe,Mt){1&xe&&(u.\u0275\u0275namespaceSVG(),u.\u0275\u0275elementStart(0,"svg",2),u.\u0275\u0275element(1,"path",3),u.\u0275\u0275elementEnd())}const ce=[[["input","matStartDate",""]],[["input","matEndDate",""]]],ue=["input[matStartDate]","input[matEndDate]"];function ve(xe,Mt){1&xe&&(u.\u0275\u0275elementStart(0,"div",0),u.\u0275\u0275projection(1),u.\u0275\u0275elementEnd())}let pt=(()=>{class xe{constructor(){this.changes=new d.B,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",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(H,me){return`${H} \u2013 ${me}`}formatYearRangeLabel(H,me){return`${H} to ${me}`}static#e=this.\u0275fac=function(me){return new(me||xe)};static#t=this.\u0275prov=u.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac,providedIn:"root"})}return xe})();class ct{constructor(Mt,H,me,le,$e={},wt=Mt,ln){this.value=Mt,this.displayValue=H,this.ariaLabel=me,this.enabled=le,this.cssClasses=$e,this.compareValue=wt,this.rawValue=ln}}let Ct=1;const We=(0,p.BQ)({passive:!1,capture:!0}),Ne=(0,p.BQ)({passive:!0,capture:!0}),Ie=(0,p.BQ)({passive:!0});let rt=(()=>{class xe{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(H,me){this._elementRef=H,this._ngZone=me,this._platform=(0,u.inject)(p.OD),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new u.EventEmitter,this.previewChange=new u.EventEmitter,this.activeDateChange=new u.EventEmitter,this.dragStarted=new u.EventEmitter,this.dragEnded=new u.EventEmitter,this._didDragSinceMouseDown=!1,this._enterHandler=le=>{if(this._skipNextFocus&&"focus"===le.type)this._skipNextFocus=!1;else if(le.target&&this.isRange){const $e=this._getCellFromElement(le.target);$e&&this._ngZone.run(()=>this.previewChange.emit({value:$e.enabled?$e:null,event:le}))}},this._touchmoveHandler=le=>{if(!this.isRange)return;const $e=Re(le),wt=$e?this._getCellFromElement($e):null;$e!==le.target&&(this._didDragSinceMouseDown=!0),be(le.target)&&le.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:wt?.enabled?wt:null,event:le}))},this._leaveHandler=le=>{null!==this.previewEnd&&this.isRange&&("blur"!==le.type&&(this._didDragSinceMouseDown=!0),le.target&&this._getCellFromElement(le.target)&&(!le.relatedTarget||!this._getCellFromElement(le.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:le})))},this._mousedownHandler=le=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const $e=le.target&&this._getCellFromElement(le.target);!$e||!this._isInRange($e.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:$e.rawValue,event:le})})},this._mouseupHandler=le=>{if(!this.isRange)return;const $e=be(le.target);$e?$e.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const wt=this._getCellFromElement($e);this.dragEnded.emit({value:wt?.rawValue??null,event:le})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:le})})},this._touchendHandler=le=>{const $e=Re(le);$e&&this._mouseupHandler({target:$e})},this._id="mat-calendar-body-"+Ct++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,me.runOutsideAngular(()=>{const le=H.nativeElement;le.addEventListener("touchmove",this._touchmoveHandler,We),le.addEventListener("mouseenter",this._enterHandler,Ne),le.addEventListener("focus",this._enterHandler,Ne),le.addEventListener("mouseleave",this._leaveHandler,Ne),le.addEventListener("blur",this._leaveHandler,Ne),le.addEventListener("mousedown",this._mousedownHandler,Ie),le.addEventListener("touchstart",this._mousedownHandler,Ie),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(H,me){this._didDragSinceMouseDown||H.enabled&&this.selectedValueChange.emit({value:H.value,event:me})}_emitActiveDateChange(H,me){H.enabled&&this.activeDateChange.emit({value:H.value,event:me})}_isSelected(H){return this.startValue===H||this.endValue===H}ngOnChanges(H){const me=H.numCols,{rows:le,numCols:$e}=this;(H.rows||me)&&(this._firstRowOffset=le&&le.length&&le[0].length?$e-le[0].length:0),(H.cellAspectRatio||me||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/$e+"%"),(me||!this._cellWidth)&&(this._cellWidth=100/$e+"%")}ngOnDestroy(){const H=this._elementRef.nativeElement;H.removeEventListener("touchmove",this._touchmoveHandler,We),H.removeEventListener("mouseenter",this._enterHandler,Ne),H.removeEventListener("focus",this._enterHandler,Ne),H.removeEventListener("mouseleave",this._leaveHandler,Ne),H.removeEventListener("blur",this._leaveHandler,Ne),H.removeEventListener("mousedown",this._mousedownHandler,Ie),H.removeEventListener("touchstart",this._mousedownHandler,Ie),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(H,me){let le=H*this.numCols+me;return H&&(le-=this._firstRowOffset),le==this.activeCell}_focusActiveCell(H=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,v.s)(1)).subscribe(()=>{setTimeout(()=>{const me=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");me&&(H||(this._skipNextFocus=!0),me.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(H){return Se(H,this.startValue,this.endValue)}_isRangeEnd(H){return Q(H,this.startValue,this.endValue)}_isInRange(H){return pe(H,this.startValue,this.endValue,this.isRange)}_isComparisonStart(H){return Se(H,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(H,me,le){if(!this._isComparisonStart(H)||this._isRangeStart(H)||!this._isInRange(H))return!1;let $e=this.rows[me][le-1];if(!$e){const wt=this.rows[me-1];$e=wt&&wt[wt.length-1]}return $e&&!this._isRangeEnd($e.compareValue)}_isComparisonBridgeEnd(H,me,le){if(!this._isComparisonEnd(H)||this._isRangeEnd(H)||!this._isInRange(H))return!1;let $e=this.rows[me][le+1];if(!$e){const wt=this.rows[me+1];$e=wt&&wt[0]}return $e&&!this._isRangeStart($e.compareValue)}_isComparisonEnd(H){return Q(H,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(H){return pe(H,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(H){return this.comparisonStart===this.comparisonEnd&&H===this.comparisonStart}_isPreviewStart(H){return Se(H,this.previewStart,this.previewEnd)}_isPreviewEnd(H){return Q(H,this.previewStart,this.previewEnd)}_isInPreview(H){return pe(H,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(H){return this.isRange?this.startValue===H&&this.endValue===H?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===H?this._startDateLabelId:this.endValue===H?this._endDateLabelId:null:null}_getCellFromElement(H){const me=be(H);if(me){const le=me.getAttribute("data-mat-row"),$e=me.getAttribute("data-mat-col");if(le&&$e)return this.rows[parseInt(le)][parseInt($e)]}return null}static#e=this.\u0275fac=function(me){return new(me||xe)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.NgZone))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:xe,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",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],standalone:!0,features:[u.\u0275\u0275NgOnChangesFeature,u.\u0275\u0275StandaloneFeature],attrs:T,decls:7,vars:5,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(me,le){1&me&&(u.\u0275\u0275template(0,U,3,6,"tr",0),u.\u0275\u0275repeaterCreate(1,N,4,1,"tr",1,u.\u0275\u0275repeaterTrackByIdentity),u.\u0275\u0275elementStart(3,"label",2),u.\u0275\u0275text(4),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(5,"label",2),u.\u0275\u0275text(6),u.\u0275\u0275elementEnd()),2&me&&(u.\u0275\u0275conditional(0,le._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.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}'],encapsulation:2,changeDetection:0})}return xe})();function Ee(xe){return"TD"===xe?.nodeName}function be(xe){let Mt;return Ee(xe)?Mt=xe:Ee(xe.parentNode)?Mt=xe.parentNode:Ee(xe.parentNode?.parentNode)&&(Mt=xe.parentNode.parentNode),null!=Mt?.getAttribute("data-mat-row")?Mt:null}function Se(xe,Mt,H){return null!==H&&Mt!==H&&xe=Mt&&xe===H}function pe(xe,Mt,H,me){return me&&null!==Mt&&null!==H&&Mt!==H&&xe>=Mt&&xe<=H}function Re(xe){const Mt=xe.changedTouches[0];return document.elementFromPoint(Mt.clientX,Mt.clientY)}class bt{constructor(Mt,H){this.start=Mt,this.end=H}}let it=(()=>{class xe{constructor(H,me){this.selection=H,this._adapter=me,this._selectionChanged=new d.B,this.selectionChanged=this._selectionChanged,this.selection=H}updateSelection(H,me){const le=this.selection;this.selection=H,this._selectionChanged.next({selection:H,source:me,oldValue:le})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(H){return this._adapter.isDateInstance(H)&&this._adapter.isValid(H)}static#e=this.\u0275fac=function(me){u.\u0275\u0275invalidFactory()};static#t=this.\u0275prov=u.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac})}return xe})(),ye=(()=>{class xe extends it{constructor(H){super(null,H)}add(H){super.updateSelection(H,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const H=new xe(this._adapter);return H.updateSelection(this.selection,this),H}static#e=this.\u0275fac=function(me){return new(me||xe)(u.\u0275\u0275inject(f.DateAdapter))};static#t=this.\u0275prov=u.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac})}return xe})(),He=(()=>{class xe extends it{constructor(H){super(new bt(null,null),H)}add(H){let{start:me,end:le}=this.selection;null==me?me=H:null==le?le=H:(me=H,le=null),super.updateSelection(new bt(me,le),this)}isValid(){const{start:H,end:me}=this.selection;return null==H&&null==me||(null!=H&&null!=me?this._isValidDateInstance(H)&&this._isValidDateInstance(me)&&this._adapter.compareDate(H,me)<=0:(null==H||this._isValidDateInstance(H))&&(null==me||this._isValidDateInstance(me)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const H=new xe(this._adapter);return H.updateSelection(this.selection,this),H}static#e=this.\u0275fac=function(me){return new(me||xe)(u.\u0275\u0275inject(f.DateAdapter))};static#t=this.\u0275prov=u.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac})}return xe})();function De(xe,Mt){return xe||new ye(Mt)}const st={provide:it,deps:[[new u.Optional,new u.SkipSelf,it],f.DateAdapter],useFactory:De};function xt(xe,Mt){return xe||new He(Mt)}const jt={provide:it,deps:[[new u.Optional,new u.SkipSelf,it],f.DateAdapter],useFactory:xt},Xt=new u.InjectionToken("MAT_DATE_RANGE_SELECTION_STRATEGY");let un=(()=>{class xe{constructor(H){this._dateAdapter=H}selectionFinished(H,me){let{start:le,end:$e}=me;return null==le?le=H:null==$e&&H&&this._dateAdapter.compareDate(H,le)>=0?$e=H:(le=H,$e=null),new bt(le,$e)}createPreview(H,me){let le=null,$e=null;return me.start&&!me.end&&H&&(le=me.start,$e=H),new bt(le,$e)}createDrag(H,me,le){let $e=me.start,wt=me.end;if(!$e||!wt)return null;const ln=this._dateAdapter,Gn=0!==ln.compareDate($e,wt),Jn=ln.getYear(le)-ln.getYear(H),ti=ln.getMonth(le)-ln.getMonth(H),In=ln.getDate(le)-ln.getDate(H);return Gn&&ln.sameDate(H,me.start)?($e=le,ln.compareDate(le,wt)>0&&(wt=ln.addCalendarYears(wt,Jn),wt=ln.addCalendarMonths(wt,ti),wt=ln.addCalendarDays(wt,In))):Gn&&ln.sameDate(H,me.end)?(wt=le,ln.compareDate(le,$e)<0&&($e=ln.addCalendarYears($e,Jn),$e=ln.addCalendarMonths($e,ti),$e=ln.addCalendarDays($e,In))):($e=ln.addCalendarYears($e,Jn),$e=ln.addCalendarMonths($e,ti),$e=ln.addCalendarDays($e,In),wt=ln.addCalendarYears(wt,Jn),wt=ln.addCalendarMonths(wt,ti),wt=ln.addCalendarDays(wt,In)),new bt($e,wt)}static#e=this.\u0275fac=function(me){return new(me||xe)(u.\u0275\u0275inject(f.DateAdapter))};static#t=this.\u0275prov=u.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac})}return xe})();const cn={provide:Xt,deps:[[new u.Optional,new u.SkipSelf,Xt],f.DateAdapter],useFactory:function dn(xe,Mt){return xe||new un(Mt)}};let hn=(()=>{class xe{get activeDate(){return this._activeDate}set activeDate(H){const me=this._activeDate,le=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(le,this.minDate,this.maxDate),this._hasSameMonthAndYear(me,this._activeDate)||this._init()}get selected(){return this._selected}set selected(H){this._selected=H instanceof bt?H:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(H){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}get maxDate(){return this._maxDate}set maxDate(H){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}constructor(H,me,le,$e,wt){this._changeDetectorRef=H,this._dateFormats=me,this._dateAdapter=le,this._dir=$e,this._rangeStrategy=wt,this._rerenderSubscription=l.yU.EMPTY,this.activeDrag=null,this.selectedChange=new u.EventEmitter,this._userSelection=new u.EventEmitter,this.dragStarted=new u.EventEmitter,this.dragEnded=new u.EventEmitter,this.activeDateChange=new u.EventEmitter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,y.Z)(null)).subscribe(()=>this._init())}ngOnChanges(H){const me=H.comparisonStart||H.comparisonEnd;me&&!me.firstChange&&this._setRanges(this.selected),H.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(H){const me=H.value,le=this._getDateFromDayOfMonth(me);let $e,wt;this._selected instanceof bt?($e=this._getDateInCurrentMonth(this._selected.start),wt=this._getDateInCurrentMonth(this._selected.end)):$e=wt=this._getDateInCurrentMonth(this._selected),($e!==me||wt!==me)&&this.selectedChange.emit(le),this._userSelection.emit({value:le,event:H.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(H){const le=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(H.value),this._dateAdapter.compareDate(le,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(H){const me=this._activeDate,le=this._isRtl();switch(H.keyCode){case r.UQ:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,le?1:-1);break;case r.LE:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,le?-1:1);break;case r.i7:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case r.n6:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case r.yZ:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case r.Kp:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case r.w_:this.activeDate=H.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case r.dB:this.activeDate=H.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case r.Fm:case r.t6:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&H.preventDefault());case r._f:return void(null!=this._previewEnd&&!(0,r.rp)(H)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:H}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:H})),H.preventDefault(),H.stopPropagation()));default:return}this._dateAdapter.compareDate(me,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),H.preventDefault()}_handleCalendarBodyKeyup(H){(H.keyCode===r.t6||H.keyCode===r.Fm)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:H}),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 H=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(H)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(H){this._matCalendarBody._focusActiveCell(H)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:H,value:me}){if(this._rangeStrategy){const le=me?me.rawValue:null,$e=this._rangeStrategy.createPreview(le,this.selected,H);if(this._previewStart=this._getCellCompareValue($e.start),this._previewEnd=this._getCellCompareValue($e.end),this.activeDrag&&le){const wt=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,le,H);wt&&(this._previewStart=this._getCellCompareValue(wt.start),this._previewEnd=this._getCellCompareValue(wt.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(H){if(this.activeDrag)if(H.value){const me=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,H.value,H.event);this.dragEnded.emit({value:me??null,event:H.event})}else this.dragEnded.emit({value:null,event:H.event})}_getDateFromDayOfMonth(H){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),H)}_initWeekdays(){const H=this._dateAdapter.getFirstDayOfWeek(),me=this._dateAdapter.getDayOfWeekNames("narrow");let $e=this._dateAdapter.getDayOfWeekNames("long").map((wt,ln)=>({long:wt,narrow:me[ln]}));this._weekdays=$e.slice(H).concat($e.slice(0,H))}_createWeekCells(){const H=this._dateAdapter.getNumDaysInMonth(this.activeDate),me=this._dateAdapter.getDateNames();this._weeks=[[]];for(let le=0,$e=this._firstWeekOffset;le=0)&&(!this.maxDate||this._dateAdapter.compareDate(H,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(H))}_getDateInCurrentMonth(H){return H&&this._hasSameMonthAndYear(H,this.activeDate)?this._dateAdapter.getDate(H):null}_hasSameMonthAndYear(H,me){return!(!H||!me||this._dateAdapter.getMonth(H)!=this._dateAdapter.getMonth(me)||this._dateAdapter.getYear(H)!=this._dateAdapter.getYear(me))}_getCellCompareValue(H){if(H){const me=this._dateAdapter.getYear(H),le=this._dateAdapter.getMonth(H),$e=this._dateAdapter.getDate(H);return new Date(me,le,$e).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(H){H instanceof bt?(this._rangeStart=this._getCellCompareValue(H.start),this._rangeEnd=this._getCellCompareValue(H.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(H),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(H){return!this.dateFilter||this.dateFilter(H)}_clearPreview(){this._previewStart=this._previewEnd=null}static#e=this.\u0275fac=function(me){return new(me||xe)(u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(f.MAT_DATE_FORMATS,8),u.\u0275\u0275directiveInject(f.DateAdapter,8),u.\u0275\u0275directiveInject(h.dS,8),u.\u0275\u0275directiveInject(Xt,8))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:xe,selectors:[["mat-month-view"]],viewQuery:function(me,le){if(1&me&&u.\u0275\u0275viewQuery(rt,5),2&me){let $e;u.\u0275\u0275queryRefresh($e=u.\u0275\u0275loadQuery())&&(le._matCalendarBody=$e.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],standalone:!0,features:[u.\u0275\u0275NgOnChangesFeature,u.\u0275\u0275StandaloneFeature],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(me,le){1&me&&(u.\u0275\u0275elementStart(0,"table",0)(1,"thead",1)(2,"tr"),u.\u0275\u0275repeaterCreate(3,A,5,2,"th",2,u.\u0275\u0275repeaterTrackByIdentity),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(5,"tr",3),u.\u0275\u0275element(6,"th",4),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(7,"tbody",5),u.\u0275\u0275listener("selectedValueChange",function(wt){return le._dateSelected(wt)})("activeDateChange",function(wt){return le._updateActiveDate(wt)})("previewChange",function(wt){return le._previewChanged(wt)})("dragStarted",function(wt){return le.dragStarted.emit(wt)})("dragEnded",function(wt){return le._dragEnded(wt)})("keyup",function(wt){return le._handleCalendarBodyKeyup(wt)})("keydown",function(wt){return le._handleCalendarBodyKeydown(wt)}),u.\u0275\u0275elementEnd()()),2&me&&(u.\u0275\u0275advance(3),u.\u0275\u0275repeater(le._weekdays),u.\u0275\u0275advance(4),u.\u0275\u0275property("label",le._monthLabel)("rows",le._weeks)("todayValue",le._todayDate)("startValue",le._rangeStart)("endValue",le._rangeEnd)("comparisonStart",le._comparisonRangeStart)("comparisonEnd",le._comparisonRangeEnd)("previewStart",le._previewStart)("previewEnd",le._previewEnd)("isRange",le._isRange)("labelMinRequiredCells",3)("activeCell",le._dateAdapter.getDate(le.activeDate)-1)("startDateAccessibleName",le.startDateAccessibleName)("endDateAccessibleName",le.endDateAccessibleName))},dependencies:[rt],encapsulation:2,changeDetection:0})}return xe})();const Nt=24,Bt=4;let _e=(()=>{class xe{get activeDate(){return this._activeDate}set activeDate(H){let me=this._activeDate;const le=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(le,this.minDate,this.maxDate),Ze(this._dateAdapter,me,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(H){this._selected=H instanceof bt?H:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H)),this._setSelectedYear(H)}get minDate(){return this._minDate}set minDate(H){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}get maxDate(){return this._maxDate}set maxDate(H){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}constructor(H,me,le){this._changeDetectorRef=H,this._dateAdapter=me,this._dir=le,this._rerenderSubscription=l.yU.EMPTY,this.selectedChange=new u.EventEmitter,this.yearSelected=new u.EventEmitter,this.activeDateChange=new u.EventEmitter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,y.Z)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const me=this._dateAdapter.getYear(this._activeDate)-Qe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let le=0,$e=[];lethis._createCellForYear(wt))),$e=[]);this._changeDetectorRef.markForCheck()}_yearSelected(H){const me=H.value,le=this._dateAdapter.createDate(me,0,1),$e=this._getDateFromYear(me);this.yearSelected.emit(le),this.selectedChange.emit($e)}_updateActiveDate(H){const le=this._activeDate;this.activeDate=this._getDateFromYear(H.value),this._dateAdapter.compareDate(le,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(H){const me=this._activeDate,le=this._isRtl();switch(H.keyCode){case r.UQ:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,le?1:-1);break;case r.LE:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,le?-1:1);break;case r.i7:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Bt);break;case r.n6:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Bt);break;case r.yZ:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Qe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case r.Kp:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Nt-Qe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case r.w_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,H.altKey?10*-Nt:-Nt);break;case r.dB:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,H.altKey?10*Nt:Nt);break;case r.Fm:case r.t6:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(me,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),H.preventDefault()}_handleCalendarBodyKeyup(H){(H.keyCode===r.t6||H.keyCode===r.Fm)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:H}),this._selectionKeyPressed=!1)}_getActiveCell(){return Qe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(H){const me=this._dateAdapter.getMonth(this.activeDate),le=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(H,me,1));return this._dateAdapter.createDate(H,me,Math.min(this._dateAdapter.getDate(this.activeDate),le))}_createCellForYear(H){const me=this._dateAdapter.createDate(H,0,1),le=this._dateAdapter.getYearName(me),$e=this.dateClass?this.dateClass(me,"multi-year"):void 0;return new ct(H,le,le,this._shouldEnableYear(H),$e)}_shouldEnableYear(H){if(null==H||this.maxDate&&H>this._dateAdapter.getYear(this.maxDate)||this.minDate&&H{class xe{get activeDate(){return this._activeDate}set activeDate(H){let me=this._activeDate;const le=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(le,this.minDate,this.maxDate),this._dateAdapter.getYear(me)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(H){this._selected=H instanceof bt?H:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H)),this._setSelectedMonth(H)}get minDate(){return this._minDate}set minDate(H){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}get maxDate(){return this._maxDate}set maxDate(H){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}constructor(H,me,le,$e){this._changeDetectorRef=H,this._dateFormats=me,this._dateAdapter=le,this._dir=$e,this._rerenderSubscription=l.yU.EMPTY,this.selectedChange=new u.EventEmitter,this.monthSelected=new u.EventEmitter,this.activeDateChange=new u.EventEmitter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,y.Z)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(H){const me=H.value,le=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),me,1);this.monthSelected.emit(le);const $e=this._getDateFromMonth(me);this.selectedChange.emit($e)}_updateActiveDate(H){const le=this._activeDate;this.activeDate=this._getDateFromMonth(H.value),this._dateAdapter.compareDate(le,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(H){const me=this._activeDate,le=this._isRtl();switch(H.keyCode){case r.UQ:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,le?1:-1);break;case r.LE:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,le?-1:1);break;case r.i7:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case r.n6:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case r.yZ:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case r.Kp:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case r.w_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,H.altKey?-10:-1);break;case r.dB:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,H.altKey?10:1);break;case r.Fm:case r.t6:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(me,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),H.preventDefault()}_handleCalendarBodyKeyup(H){(H.keyCode===r.t6||H.keyCode===r.Fm)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:H}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let H=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(me=>me.map(le=>this._createCellForMonth(le,H[le]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(H){return H&&this._dateAdapter.getYear(H)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(H):null}_getDateFromMonth(H){const me=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),H,1),le=this._dateAdapter.getNumDaysInMonth(me);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),H,Math.min(this._dateAdapter.getDate(this.activeDate),le))}_createCellForMonth(H,me){const le=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),H,1),$e=this._dateAdapter.format(le,this._dateFormats.display.monthYearA11yLabel),wt=this.dateClass?this.dateClass(le,"year"):void 0;return new ct(H,me.toLocaleUpperCase(),$e,this._shouldEnableMonth(H),wt)}_shouldEnableMonth(H){const me=this._dateAdapter.getYear(this.activeDate);if(null==H||this._isYearAndMonthAfterMaxDate(me,H)||this._isYearAndMonthBeforeMinDate(me,H))return!1;if(!this.dateFilter)return!0;for(let $e=this._dateAdapter.createDate(me,H,1);this._dateAdapter.getMonth($e)==H;$e=this._dateAdapter.addCalendarDays($e,1))if(this.dateFilter($e))return!0;return!1}_isYearAndMonthAfterMaxDate(H,me){if(this.maxDate){const le=this._dateAdapter.getYear(this.maxDate),$e=this._dateAdapter.getMonth(this.maxDate);return H>le||H===le&&me>$e}return!1}_isYearAndMonthBeforeMinDate(H,me){if(this.minDate){const le=this._dateAdapter.getYear(this.minDate),$e=this._dateAdapter.getMonth(this.minDate);return H{class xe{constructor(H,me,le,$e,wt){this._intl=H,this.calendar=me,this._dateAdapter=le,this._dateFormats=$e,this._id="mat-calendar-header-"+Le++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>wt.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}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:-Nt)}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:Nt)}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(H,me){return"month"==this.calendar.currentView?this._dateAdapter.getYear(H)==this._dateAdapter.getYear(me)&&this._dateAdapter.getMonth(H)==this._dateAdapter.getMonth(me):"year"==this.calendar.currentView?this._dateAdapter.getYear(H)==this._dateAdapter.getYear(me):Ze(this._dateAdapter,H,me,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const me=this._dateAdapter.getYear(this.calendar.activeDate)-Qe(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),le=me+Nt-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(me,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(le,0,1))]}static#e=this.\u0275fac=function(me){return new(me||xe)(u.\u0275\u0275directiveInject(pt),u.\u0275\u0275directiveInject((0,u.forwardRef)(()=>Ge)),u.\u0275\u0275directiveInject(f.DateAdapter,8),u.\u0275\u0275directiveInject(f.MAT_DATE_FORMATS,8),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:xe,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],standalone:!0,features:[u.\u0275\u0275StandaloneFeature],ngContentSelectors:F,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],[1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",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,"click","disabled"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"]],template:function(me,le){1&me&&(u.\u0275\u0275projectionDef(),u.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"label",2),u.\u0275\u0275text(3),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(4,"button",3),u.\u0275\u0275listener("click",function(){return le.currentPeriodClicked()}),u.\u0275\u0275elementStart(5,"span",4),u.\u0275\u0275text(6),u.\u0275\u0275elementEnd(),u.\u0275\u0275namespaceSVG(),u.\u0275\u0275elementStart(7,"svg",5),u.\u0275\u0275element(8,"polygon",6),u.\u0275\u0275elementEnd()(),u.\u0275\u0275namespaceHTML(),u.\u0275\u0275element(9,"div",7),u.\u0275\u0275projection(10),u.\u0275\u0275elementStart(11,"button",8),u.\u0275\u0275listener("click",function(){return le.previousClicked()}),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(12,"button",9),u.\u0275\u0275listener("click",function(){return le.nextClicked()}),u.\u0275\u0275elementEnd()()()),2&me&&(u.\u0275\u0275advance(2),u.\u0275\u0275property("id",le._periodButtonLabelId),u.\u0275\u0275advance(),u.\u0275\u0275textInterpolate(le.periodButtonDescription),u.\u0275\u0275advance(),u.\u0275\u0275attribute("aria-label",le.periodButtonLabel)("aria-describedby",le._periodButtonLabelId),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(le.periodButtonText),u.\u0275\u0275advance(),u.\u0275\u0275classProp("mat-calendar-invert","month"!==le.calendar.currentView),u.\u0275\u0275advance(4),u.\u0275\u0275property("disabled",!le.previousEnabled()),u.\u0275\u0275attribute("aria-label",le.prevButtonLabel),u.\u0275\u0275advance(),u.\u0275\u0275property("disabled",!le.nextEnabled()),u.\u0275\u0275attribute("aria-label",le.nextButtonLabel))},dependencies:[b.MatButton,b.MatIconButton],encapsulation:2,changeDetection:0})}return xe})(),Ge=(()=>{class xe{get startAt(){return this._startAt}set startAt(H){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}get selected(){return this._selected}set selected(H){this._selected=H instanceof bt?H:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}get minDate(){return this._minDate}set minDate(H){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}get maxDate(){return this._maxDate}set maxDate(H){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}get activeDate(){return this._clampedActiveDate}set activeDate(H){this._clampedActiveDate=this._dateAdapter.clampDate(H,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(H){const me=this._currentView!==H?H:null;this._currentView=H,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),me&&this.viewChanged.emit(me)}constructor(H,me,le,$e){this._dateAdapter=me,this._dateFormats=le,this._changeDetectorRef=$e,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new u.EventEmitter,this.yearSelected=new u.EventEmitter,this.monthSelected=new u.EventEmitter,this.viewChanged=new u.EventEmitter(!0),this._userSelection=new u.EventEmitter,this._userDragDrop=new u.EventEmitter,this._activeDrag=null,this.stateChanges=new d.B,this._intlChanges=H.changes.subscribe(()=>{$e.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new C.A8(this.headerComponent||fe),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(H){const me=H.minDate&&!this._dateAdapter.sameDate(H.minDate.previousValue,H.minDate.currentValue)?H.minDate:void 0,le=H.maxDate&&!this._dateAdapter.sameDate(H.maxDate.previousValue,H.maxDate.currentValue)?H.maxDate:void 0,$e=me||le||H.dateFilter;if($e&&!$e.firstChange){const wt=this._getCurrentViewComponent();wt&&(this._changeDetectorRef.detectChanges(),wt._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(H){const me=H.value;(this.selected instanceof bt||me&&!this._dateAdapter.sameDate(me,this.selected))&&this.selectedChange.emit(me),this._userSelection.emit(H)}_yearSelectedInMultiYearView(H){this.yearSelected.emit(H)}_monthSelectedInYearView(H){this.monthSelected.emit(H)}_goToDateInView(H,me){this.activeDate=H,this.currentView=me}_dragStarted(H){this._activeDrag=H}_dragEnded(H){this._activeDrag&&(H.value&&this._userDragDrop.emit(H),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static#e=this.\u0275fac=function(me){return new(me||xe)(u.\u0275\u0275directiveInject(pt),u.\u0275\u0275directiveInject(f.DateAdapter,8),u.\u0275\u0275directiveInject(f.MAT_DATE_FORMATS,8),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:xe,selectors:[["mat-calendar"]],viewQuery:function(me,le){if(1&me&&(u.\u0275\u0275viewQuery(hn,5),u.\u0275\u0275viewQuery(ft,5),u.\u0275\u0275viewQuery(_e,5)),2&me){let $e;u.\u0275\u0275queryRefresh($e=u.\u0275\u0275loadQuery())&&(le.monthView=$e.first),u.\u0275\u0275queryRefresh($e=u.\u0275\u0275loadQuery())&&(le.yearView=$e.first),u.\u0275\u0275queryRefresh($e=u.\u0275\u0275loadQuery())&&(le.multiYearView=$e.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",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],standalone:!0,features:[u.\u0275\u0275ProvidersFeature([st]),u.\u0275\u0275NgOnChangesFeature,u.\u0275\u0275StandaloneFeature],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(me,le){if(1&me&&(u.\u0275\u0275template(0,Y,0,0,"ng-template",0),u.\u0275\u0275elementStart(1,"div",1),u.\u0275\u0275template(2,ee,1,11)(3,ie,1,6)(4,$,1,6),u.\u0275\u0275elementEnd()),2&me){let $e;u.\u0275\u0275property("cdkPortalOutlet",le._calendarHeaderPortal),u.\u0275\u0275advance(2),u.\u0275\u0275conditional(2,"month"===($e=le.currentView)?2:"year"===$e?3:"multi-year"===$e?4:-1)}},dependencies:[C.I3,t.vR,hn,ft,_e],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight);--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.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-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.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;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.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;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return xe})();const te={transformPanel:(0,k.hZ)("transformPanel",[(0,k.kY)("void => enter-dropdown",(0,k.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,k.i7)([(0,k.iF)({opacity:0,transform:"scale(1, 0.8)"}),(0,k.iF)({opacity:1,transform:"scale(1, 1)"})]))),(0,k.kY)("void => enter-dialog",(0,k.i0)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,k.i7)([(0,k.iF)({opacity:0,transform:"scale(0.7)"}),(0,k.iF)({transform:"none",opacity:1})]))),(0,k.kY)("* => void",(0,k.i0)("100ms linear",(0,k.iF)({opacity:0})))]),fadeInCalendar:(0,k.hZ)("fadeInCalendar",[(0,k.wk)("void",(0,k.iF)({opacity:0})),(0,k.wk)("enter",(0,k.iF)({opacity:1})),(0,k.kY)("void => *",(0,k.i0)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let de=0;const ke=new u.InjectionToken("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{const xe=(0,u.inject)(_.hJ);return()=>xe.scrollStrategies.reposition()}});function nt(xe){return()=>xe.scrollStrategies.reposition()}const It={provide:ke,deps:[_.hJ],useFactory:nt};let Gt=(()=>{class xe{constructor(H,me,le,$e,wt,ln){this._elementRef=H,this._changeDetectorRef=me,this._globalModel=le,this._dateAdapter=$e,this._rangeSelectionStrategy=wt,this._subscriptions=new l.yU,this._animationDone=new d.B,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=ln.closeCalendarLabel}ngOnInit(){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(H){const me=this._model.selection,le=H.value,$e=me instanceof bt;if($e&&this._rangeSelectionStrategy){const wt=this._rangeSelectionStrategy.selectionFinished(le,me,H.event);this._model.updateSelection(wt,this)}else le&&($e||!this._dateAdapter.sameDate(le,me))&&this._model.add(le);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(H){this._model.updateSelection(H.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(H){this._isAnimating="start"===H.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(H,me){this._model=H?this._globalModel.clone():this._globalModel,this._actionsPortal=H,me&&this._changeDetectorRef.detectChanges()}static#e=this.\u0275fac=function(me){return new(me||xe)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(it),u.\u0275\u0275directiveInject(f.DateAdapter),u.\u0275\u0275directiveInject(Xt,8),u.\u0275\u0275directiveInject(pt))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:xe,selectors:[["mat-datepicker-content"]],viewQuery:function(me,le){if(1&me&&u.\u0275\u0275viewQuery(Ge,5),2&me){let $e;u.\u0275\u0275queryRefresh($e=u.\u0275\u0275loadQuery())&&(le._calendar=$e.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(me,le){1&me&&u.\u0275\u0275syntheticHostListener("@transformPanel.start",function(wt){return le._handleAnimationEvent(wt)})("@transformPanel.done",function(wt){return le._handleAnimationEvent(wt)}),2&me&&(u.\u0275\u0275syntheticHostProperty("@transformPanel",le._animationState),u.\u0275\u0275classMap(le.color?"mat-"+le.color:""),u.\u0275\u0275classProp("mat-datepicker-content-touch",le.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],standalone:!0,features:[u.\u0275\u0275StandaloneFeature],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(me,le){if(1&me&&(u.\u0275\u0275elementStart(0,"div",0)(1,"mat-calendar",1),u.\u0275\u0275listener("yearSelected",function(wt){return le.datepicker._selectYear(wt)})("monthSelected",function(wt){return le.datepicker._selectMonth(wt)})("viewChanged",function(wt){return le.datepicker._viewChanged(wt)})("_userSelection",function(wt){return le._handleUserSelection(wt)})("_userDragDrop",function(wt){return le._handleUserDragDrop(wt)}),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(2,j,0,0,"ng-template",2),u.\u0275\u0275elementStart(3,"button",3),u.\u0275\u0275listener("focus",function(){return le._closeButtonFocused=!0})("blur",function(){return le._closeButtonFocused=!1})("click",function(){return le.datepicker.close()}),u.\u0275\u0275text(4),u.\u0275\u0275elementEnd()()),2&me){let $e;u.\u0275\u0275classProp("mat-datepicker-content-container-with-custom-header",le.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",le._actionsPortal),u.\u0275\u0275attribute("aria-modal",!0)("aria-labelledby",null!==($e=le._dialogLabelId)&&void 0!==$e?$e:void 0),u.\u0275\u0275advance(),u.\u0275\u0275property("id",le.datepicker.id)("ngClass",le.datepicker.panelClass)("startAt",le.datepicker.startAt)("startView",le.datepicker.startView)("minDate",le.datepicker._getMinDate())("maxDate",le.datepicker._getMaxDate())("dateFilter",le.datepicker._getDateFilter())("headerComponent",le.datepicker.calendarHeaderComponent)("selected",le._getSelected())("dateClass",le.datepicker.dateClass)("comparisonStart",le.comparisonStart)("comparisonEnd",le.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",le.startDateAccessibleName)("endDateAccessibleName",le.endDateAccessibleName),u.\u0275\u0275advance(),u.\u0275\u0275property("cdkPortalOutlet",le._actionsPortal),u.\u0275\u0275advance(),u.\u0275\u0275classProp("cdk-visually-hidden",!le._closeButtonFocused),u.\u0275\u0275property("color",le.color||"primary"),u.\u0275\u0275advance(),u.\u0275\u0275textInterpolate(le._closeButtonText)}},dependencies:[t.kB,Ge,E.NgClass,C.I3,b.MatButton],styles:[".mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color);box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-shape)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.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;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-touch-shape);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}}"],encapsulation:2,data:{animation:[te.transformPanel,te.fadeInCalendar]},changeDetection:0})}return xe})(),an=(()=>{class xe{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(H){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(H){this._color=H}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(H){H!==this._disabled&&(this._disabled=H,this.stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(H){this._panelClass=(0,w.cc)(H)}get opened(){return this._opened}set opened(H){H?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}constructor(H,me,le,$e,wt,ln,Gn){this._overlay=H,this._ngZone=me,this._viewContainerRef=le,this._dateAdapter=wt,this._dir=ln,this._model=Gn,this._inputStateChanges=l.yU.EMPTY,this._document=(0,u.inject)(E.DOCUMENT),this.startView="month",this.touchUi=!1,this.xPosition="start",this.yPosition="below",this.restoreFocus=!0,this.yearSelected=new u.EventEmitter,this.monthSelected=new u.EventEmitter,this.viewChanged=new u.EventEmitter(!0),this.openedStream=new u.EventEmitter,this.closedStream=new u.EventEmitter,this._opened=!1,this.id="mat-datepicker-"+de++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new d.B,this._scrollStrategy=$e}ngOnChanges(H){const me=H.xPosition||H.yPosition;if(me&&!me.firstChange&&this._overlayRef){const le=this._overlayRef.getConfig().positionStrategy;le instanceof _.rW&&(this._setConnectedPositions(le),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(H){this._model.add(H)}_selectYear(H){this.yearSelected.emit(H)}_selectMonth(H){this.monthSelected.emit(H)}_viewChanged(H){this.viewChanged.emit(H)}registerInput(H){return this._inputStateChanges.unsubscribe(),this.datepickerInput=H,this._inputStateChanges=H.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(H){this._actionsPortal=H,this._componentRef?.instance._assignActions(H,!0)}removeActions(H){H===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=(0,p.vc)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const H=this.restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,me=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:le,location:$e}=this._componentRef;le._startExitAnimation(),le._animationDone.pipe((0,v.s)(1)).subscribe(()=>{const wt=this._document.activeElement;H&&(!wt||wt===this._document.activeElement||$e.nativeElement.contains(wt))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}H?setTimeout(me):me()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(H){H.datepicker=this,H.color=this.color,H._dialogLabelId=this.datepickerInput.getOverlayLabelId(),H._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const H=this.touchUi,me=new C.A8(Gt,this._viewContainerRef),le=this._overlayRef=this._overlay.create(new _.rR({positionStrategy:H?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[H?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:H?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(H?"dialog":"popup")}));this._getCloseStream(le).subscribe($e=>{$e&&$e.preventDefault(),this.close()}),le.keydownEvents().subscribe($e=>{const wt=$e.keyCode;(wt===r.i7||wt===r.n6||wt===r.UQ||wt===r.LE||wt===r.w_||wt===r.dB)&&$e.preventDefault()}),this._componentRef=le.attach(me),this._forwardContentValues(this._componentRef.instance),H||this._ngZone.onStable.pipe((0,v.s)(1)).subscribe(()=>le.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const H=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(H)}_setConnectedPositions(H){const me="end"===this.xPosition?"end":"start",le="start"===me?"end":"start",$e="above"===this.yPosition?"bottom":"top",wt="top"===$e?"bottom":"top";return H.withPositions([{originX:me,originY:wt,overlayX:me,overlayY:$e},{originX:me,originY:$e,overlayX:me,overlayY:wt},{originX:le,originY:wt,overlayX:le,overlayY:$e},{originX:le,originY:$e,overlayX:le,overlayY:wt}])}_getCloseStream(H){const me=["ctrlKey","shiftKey","metaKey"];return(0,c.h)(H.backdropClick(),H.detachments(),H.keydownEvents().pipe((0,M.p)(le=>le.keyCode===r._f&&!(0,r.rp)(le)||this.datepickerInput&&(0,r.rp)(le,"altKey")&&le.keyCode===r.i7&&me.every($e=>!(0,r.rp)(le,$e)))))}static#e=this.\u0275fac=function(me){return new(me||xe)(u.\u0275\u0275directiveInject(_.hJ),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(u.ViewContainerRef),u.\u0275\u0275directiveInject(ke),u.\u0275\u0275directiveInject(f.DateAdapter,8),u.\u0275\u0275directiveInject(h.dS,8),u.\u0275\u0275directiveInject(it))};static#t=this.\u0275dir=u.\u0275\u0275defineDirective({type:xe,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[u.\u0275\u0275InputFlags.HasDecoratorInputTransform,"touchUi","touchUi",u.booleanAttribute],disabled:[u.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",u.booleanAttribute],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[u.\u0275\u0275InputFlags.HasDecoratorInputTransform,"restoreFocus","restoreFocus",u.booleanAttribute],dateClass:"dateClass",panelClass:"panelClass",opened:[u.\u0275\u0275InputFlags.HasDecoratorInputTransform,"opened","opened",u.booleanAttribute]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[u.\u0275\u0275InputTransformsFeature,u.\u0275\u0275NgOnChangesFeature]})}return xe})(),_t=(()=>{class xe extends an{static#e=this.\u0275fac=(()=>{let H;return function(le){return(H||(H=u.\u0275\u0275getInheritedFactory(xe)))(le||xe)}})();static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:xe,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],standalone:!0,features:[u.\u0275\u0275ProvidersFeature([st,{provide:an,useExisting:xe}]),u.\u0275\u0275InheritDefinitionFeature,u.\u0275\u0275StandaloneFeature],decls:0,vars:0,template:function(me,le){},encapsulation:2,changeDetection:0})}return xe})();class Lt{constructor(Mt,H){this.target=Mt,this.targetElement=H,this.value=this.target.value}}let Je=(()=>{class xe{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(H){this._assignValueProgrammatically(H)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(H){const me=H,le=this._elementRef.nativeElement;this._disabled!==me&&(this._disabled=me,this.stateChanges.next(void 0)),me&&this._isInitialized&&le.blur&&le.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(H){this._model=H,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(me=>{if(this._shouldHandleChangeEvent(me)){const le=this._getValueFromModel(me.selection);this._lastValueValid=this._isValidValue(le),this._cvaOnChange(le),this._onTouched(),this._formatValue(le),this.dateInput.emit(new Lt(this,this._elementRef.nativeElement)),this.dateChange.emit(new Lt(this,this._elementRef.nativeElement))}})}constructor(H,me,le){this._elementRef=H,this._dateAdapter=me,this._dateFormats=le,this.dateChange=new u.EventEmitter,this.dateInput=new u.EventEmitter,this.stateChanges=new d.B,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=l.yU.EMPTY,this._localeSubscription=l.yU.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=$e=>{const wt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($e.value));return!wt||this._matchesFilter(wt)?null:{matDatepickerFilter:!0}},this._minValidator=$e=>{const wt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($e.value)),ln=this._getMinDate();return!ln||!wt||this._dateAdapter.compareDate(ln,wt)<=0?null:{matDatepickerMin:{min:ln,actual:wt}}},this._maxValidator=$e=>{const wt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($e.value)),ln=this._getMaxDate();return!ln||!wt||this._dateAdapter.compareDate(ln,wt)>=0?null:{matDatepickerMax:{max:ln,actual:wt}}},this._lastValueValid=!1,this._localeSubscription=me.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(H){Fe(H,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(H){this._validatorOnChange=H}validate(H){return this._validator?this._validator(H):null}writeValue(H){this._assignValueProgrammatically(H)}registerOnChange(H){this._cvaOnChange=H}registerOnTouched(H){this._onTouched=H}setDisabledState(H){this.disabled=H}_onKeydown(H){(0,r.rp)(H,"altKey")&&H.keyCode===r.n6&&["ctrlKey","shiftKey","metaKey"].every($e=>!(0,r.rp)(H,$e))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),H.preventDefault())}_onInput(H){const me=this._lastValueValid;let le=this._dateAdapter.parse(H,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(le),le=this._dateAdapter.getValidDateOrNull(le);const $e=!this._dateAdapter.sameDate(le,this.value);!le||$e?this._cvaOnChange(le):(H&&!this.value&&this._cvaOnChange(le),me!==this._lastValueValid&&this._validatorOnChange()),$e&&(this._assignValue(le),this.dateInput.emit(new Lt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Lt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(H){this._elementRef.nativeElement.value=null!=H?this._dateAdapter.format(H,this._dateFormats.display.dateInput):""}_assignValue(H){this._model?(this._assignValueToModel(H),this._pendingValue=null):this._pendingValue=H}_isValidValue(H){return!H||this._dateAdapter.isValid(H)}_parentDisabled(){return!1}_assignValueProgrammatically(H){H=this._dateAdapter.deserialize(H),this._lastValueValid=this._isValidValue(H),H=this._dateAdapter.getValidDateOrNull(H),this._assignValue(H),this._formatValue(H)}_matchesFilter(H){const me=this._getDateFilter();return!me||me(H)}static#e=this.\u0275fac=function(me){return new(me||xe)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(f.DateAdapter,8),u.\u0275\u0275directiveInject(f.MAT_DATE_FORMATS,8))};static#t=this.\u0275dir=u.\u0275\u0275defineDirective({type:xe,inputs:{value:"value",disabled:[u.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",u.booleanAttribute]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[u.\u0275\u0275InputTransformsFeature,u.\u0275\u0275NgOnChangesFeature]})}return xe})();function Fe(xe,Mt){const H=Object.keys(xe);for(let me of H){const{previousValue:le,currentValue:$e}=xe[me];if(!Mt.isDateInstance(le)||!Mt.isDateInstance($e))return!0;if(!Mt.sameDate(le,$e))return!0}return!1}const et={provide:I.NG_VALUE_ACCESSOR,useExisting:(0,u.forwardRef)(()=>dt),multi:!0},je={provide:I.NG_VALIDATORS,useExisting:(0,u.forwardRef)(()=>dt),multi:!0};let dt=(()=>{class xe extends Je{set matDatepicker(H){H&&(this._datepicker=H,this._closedSubscription=H.closedStream.subscribe(()=>this._onTouched()),this._registerModel(H.registerInput(this)))}get min(){return this._min}set min(H){const me=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H));this._dateAdapter.sameDate(me,this._min)||(this._min=me,this._validatorOnChange())}get max(){return this._max}set max(H){const me=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H));this._dateAdapter.sameDate(me,this._max)||(this._max=me,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(H){const me=this._matchesFilter(this.value);this._dateFilter=H,this._matchesFilter(this.value)!==me&&this._validatorOnChange()}constructor(H,me,le,$e){super(H,me,le),this._formField=$e,this._closedSubscription=l.yU.EMPTY,this._validator=I.Validators.compose(super._getValidators())}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(H){return H}_assignValueToModel(H){this._model&&this._model.updateSelection(H,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(H){return H.source!==this}static#e=this.\u0275fac=function(me){return new(me||xe)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(f.DateAdapter,8),u.\u0275\u0275directiveInject(f.MAT_DATE_FORMATS,8),u.\u0275\u0275directiveInject(D.MAT_FORM_FIELD,8))};static#t=this.\u0275dir=u.\u0275\u0275defineDirective({type:xe,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(me,le){1&me&&u.\u0275\u0275listener("input",function(wt){return le._onInput(wt.target.value)})("change",function(){return le._onChange()})("blur",function(){return le._onBlur()})("keydown",function(wt){return le._onKeydown(wt)}),2&me&&(u.\u0275\u0275hostProperty("disabled",le.disabled),u.\u0275\u0275attribute("aria-haspopup",le._datepicker?"dialog":null)("aria-owns",(null==le._datepicker?null:le._datepicker.opened)&&le._datepicker.id||null)("min",le.min?le._dateAdapter.toIso8601(le.min):null)("max",le.max?le._dateAdapter.toIso8601(le.max):null)("data-mat-calendar",le._datepicker?le._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[u.\u0275\u0275InputFlags.None,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],standalone:!0,features:[u.\u0275\u0275ProvidersFeature([et,je,{provide:O.MAT_INPUT_VALUE_ACCESSOR,useExisting:xe}]),u.\u0275\u0275InheritDefinitionFeature]})}return xe})(),At=(()=>{class xe{static#e=this.\u0275fac=function(me){return new(me||xe)};static#t=this.\u0275dir=u.\u0275\u0275defineDirective({type:xe,selectors:[["","matDatepickerToggleIcon",""]],standalone:!0})}return xe})(),qt=(()=>{class xe{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(H){this._disabled=H}constructor(H,me,le){this._intl=H,this._changeDetectorRef=me,this._stateChanges=l.yU.EMPTY;const $e=Number(le);this.tabIndex=$e||0===$e?$e:null}ngOnChanges(H){H.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(H){this.datepicker&&!this.disabled&&(this.datepicker.open(),H.stopPropagation())}_watchStateChanges(){const H=this.datepicker?this.datepicker.stateChanges:(0,o.of)(),me=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,o.of)(),le=this.datepicker?(0,c.h)(this.datepicker.openedStream,this.datepicker.closedStream):(0,o.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,c.h)(this._intl.changes,H,me,le).subscribe(()=>this._changeDetectorRef.markForCheck())}static#e=this.\u0275fac=function(me){return new(me||xe)(u.\u0275\u0275directiveInject(pt),u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275injectAttribute("tabindex"))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:xe,selectors:[["mat-datepicker-toggle"]],contentQueries:function(me,le,$e){if(1&me&&u.\u0275\u0275contentQuery($e,At,5),2&me){let wt;u.\u0275\u0275queryRefresh(wt=u.\u0275\u0275loadQuery())&&(le._customIcon=wt.first)}},viewQuery:function(me,le){if(1&me&&u.\u0275\u0275viewQuery(G,5),2&me){let $e;u.\u0275\u0275queryRefresh($e=u.\u0275\u0275loadQuery())&&(le._button=$e.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(me,le){1&me&&u.\u0275\u0275listener("click",function(wt){return le._open(wt)}),2&me&&(u.\u0275\u0275attribute("tabindex",null)("data-mat-calendar",le.datepicker?le.datepicker.id:null),u.\u0275\u0275classProp("mat-datepicker-toggle-active",le.datepicker&&le.datepicker.opened)("mat-accent",le.datepicker&&"accent"===le.datepicker.color)("mat-warn",le.datepicker&&"warn"===le.datepicker.color))},inputs:{datepicker:[u.\u0275\u0275InputFlags.None,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[u.\u0275\u0275InputFlags.None,"aria-label","ariaLabel"],disabled:[u.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",u.booleanAttribute],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],standalone:!0,features:[u.\u0275\u0275InputTransformsFeature,u.\u0275\u0275NgOnChangesFeature,u.\u0275\u0275StandaloneFeature],ngContentSelectors:W,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",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(me,le){1&me&&(u.\u0275\u0275projectionDef(V),u.\u0275\u0275elementStart(0,"button",1,0),u.\u0275\u0275template(2,K,2,0,":svg:svg",2),u.\u0275\u0275projection(3),u.\u0275\u0275elementEnd()),2&me&&(u.\u0275\u0275property("disabled",le.disabled)("disableRipple",le.disableRipple),u.\u0275\u0275attribute("aria-haspopup",le.datepicker?"dialog":null)("aria-label",le.ariaLabel||le._intl.openCalendarLabel)("tabindex",le.disabled?-1:le.tabIndex),u.\u0275\u0275advance(2),u.\u0275\u0275conditional(2,le._customIcon?-1:2))},dependencies:[b.MatIconButton],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0})}return xe})();function Cn(xe){return jn(xe,!0)}function Ln(xe){return xe.nodeType===Node.ELEMENT_NODE}function jn(xe,Mt){if(Ln(xe)&&Mt){const me=(xe.getAttribute?.("aria-labelledby")?.split(/\s+/g)||[]).reduce((le,$e)=>{const wt=document.getElementById($e);return wt&&le.push(wt),le},[]);if(me.length)return me.map(le=>jn(le,!1)).join(" ")}if(Ln(xe)){const H=xe.getAttribute("aria-label")?.trim();if(H)return H}if(function Oi(xe){return"INPUT"===xe.nodeName}(xe)||function Ei(xe){return"TEXTAREA"===xe.nodeName}(xe)){if(xe.labels?.length)return Array.from(xe.labels).map(le=>jn(le,!1)).join(" ");const H=xe.getAttribute("placeholder")?.trim();if(H)return H;const me=xe.getAttribute("title")?.trim();if(me)return me}return(xe.textContent||"").replace(/\s+/g," ").trim()}const at=new u.InjectionToken("MAT_DATE_RANGE_INPUT_PARENT");let Jt=(()=>{class xe extends Je{get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(H){this._errorStateTracker.matcher=H}get errorState(){return this._errorStateTracker.errorState}set errorState(H){this._errorStateTracker.errorState=H}constructor(H,me,le,$e,wt,ln,Gn,Jn){super(me,Gn,Jn),this._rangeInput=H,this._elementRef=me,this._defaultErrorStateMatcher=le,this._injector=$e,this._parentForm=wt,this._parentFormGroup=ln,this._dir=(0,u.inject)(h.dS,{optional:!0}),this._errorStateTracker=new f._ErrorStateTracker(this._defaultErrorStateMatcher,null,this._parentFormGroup,this._parentForm,this.stateChanges)}ngOnInit(){const H=this._injector.get(I.NgControl,null,{optional:!0,self:!0});H&&(this.ngControl=H,this._errorStateTracker.ngControl=H)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}getMirrorValue(){const H=this._elementRef.nativeElement,me=H.value;return me.length>0?me:H.placeholder}updateErrorState(){this._errorStateTracker.updateErrorState()}_onInput(H){super._onInput(H),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:H}){return H!==this._rangeInput._startInput&&H!==this._rangeInput._endInput}_assignValueProgrammatically(H){super._assignValueProgrammatically(H),(this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)?._validatorOnChange()}_getAccessibleName(){return Cn(this._elementRef.nativeElement)}static#e=this.\u0275fac=function(me){return new(me||xe)(u.\u0275\u0275directiveInject(at),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(f.ErrorStateMatcher),u.\u0275\u0275directiveInject(u.Injector),u.\u0275\u0275directiveInject(I.NgForm,8),u.\u0275\u0275directiveInject(I.FormGroupDirective,8),u.\u0275\u0275directiveInject(f.DateAdapter,8),u.\u0275\u0275directiveInject(f.MAT_DATE_FORMATS,8))};static#t=this.\u0275dir=u.\u0275\u0275defineDirective({type:xe,inputs:{errorStateMatcher:"errorStateMatcher"},standalone:!0,features:[u.\u0275\u0275InheritDefinitionFeature]})}return xe})(),Be=(()=>{class xe extends Jt{constructor(H,me,le,$e,wt,ln,Gn,Jn){super(H,me,le,$e,wt,ln,Gn,Jn),this._startValidator=ti=>{const In=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ti.value)),Fn=this._model?this._model.selection.end:null;return!In||!Fn||this._dateAdapter.compareDate(In,Fn)<=0?null:{matStartDateInvalid:{end:Fn,actual:In}}},this._validator=I.Validators.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(H){return H.start}_shouldHandleChangeEvent(H){return!(!super._shouldHandleChangeEvent(H)||(H.oldValue?.start?H.selection.start&&!this._dateAdapter.compareDate(H.oldValue.start,H.selection.start):!H.selection.start))}_assignValueToModel(H){if(this._model){const me=new bt(H,this._model.selection.end);this._model.updateSelection(me,this)}}_formatValue(H){super._formatValue(H),this._rangeInput._handleChildValueChange()}_onKeydown(H){const me=this._rangeInput._endInput,le=this._elementRef.nativeElement,$e="rtl"!==this._dir?.value;(H.keyCode===r.LE&&$e||H.keyCode===r.UQ&&!$e)&&le.selectionStart===le.value.length&&le.selectionEnd===le.value.length?(H.preventDefault(),me._elementRef.nativeElement.setSelectionRange(0,0),me.focus()):super._onKeydown(H)}static#e=this.\u0275fac=function(me){return new(me||xe)(u.\u0275\u0275directiveInject(at),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(f.ErrorStateMatcher),u.\u0275\u0275directiveInject(u.Injector),u.\u0275\u0275directiveInject(I.NgForm,8),u.\u0275\u0275directiveInject(I.FormGroupDirective,8),u.\u0275\u0275directiveInject(f.DateAdapter,8),u.\u0275\u0275directiveInject(f.MAT_DATE_FORMATS,8))};static#t=this.\u0275dir=u.\u0275\u0275defineDirective({type:xe,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(me,le){1&me&&u.\u0275\u0275listener("input",function(wt){return le._onInput(wt.target.value)})("change",function(){return le._onChange()})("keydown",function(wt){return le._onKeydown(wt)})("blur",function(){return le._onBlur()}),2&me&&(u.\u0275\u0275hostProperty("disabled",le.disabled),u.\u0275\u0275attribute("aria-haspopup",le._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==le._rangeInput.rangePicker?null:le._rangeInput.rangePicker.opened)&&le._rangeInput.rangePicker.id||null)("min",le._getMinDate()?le._dateAdapter.toIso8601(le._getMinDate()):null)("max",le._getMaxDate()?le._dateAdapter.toIso8601(le._getMaxDate()):null))},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[u.\u0275\u0275ProvidersFeature([{provide:I.NG_VALUE_ACCESSOR,useExisting:xe,multi:!0},{provide:I.NG_VALIDATORS,useExisting:xe,multi:!0}]),u.\u0275\u0275InheritDefinitionFeature]})}return xe})(),lt=(()=>{class xe extends Jt{constructor(H,me,le,$e,wt,ln,Gn,Jn){super(H,me,le,$e,wt,ln,Gn,Jn),this._endValidator=ti=>{const In=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ti.value)),Fn=this._model?this._model.selection.start:null;return!In||!Fn||this._dateAdapter.compareDate(In,Fn)>=0?null:{matEndDateInvalid:{start:Fn,actual:In}}},this._validator=I.Validators.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(H){return H.end}_shouldHandleChangeEvent(H){return!(!super._shouldHandleChangeEvent(H)||(H.oldValue?.end?H.selection.end&&!this._dateAdapter.compareDate(H.oldValue.end,H.selection.end):!H.selection.end))}_assignValueToModel(H){if(this._model){const me=new bt(this._model.selection.start,H);this._model.updateSelection(me,this)}}_moveCaretToEndOfStartInput(){const H=this._rangeInput._startInput._elementRef.nativeElement,me=H.value;me.length>0&&H.setSelectionRange(me.length,me.length),H.focus()}_onKeydown(H){const me=this._elementRef.nativeElement,le="rtl"!==this._dir?.value;H.keyCode!==r.G_||me.value?(H.keyCode===r.UQ&&le||H.keyCode===r.LE&&!le)&&0===me.selectionStart&&0===me.selectionEnd?(H.preventDefault(),this._moveCaretToEndOfStartInput()):super._onKeydown(H):this._moveCaretToEndOfStartInput()}static#e=this.\u0275fac=function(me){return new(me||xe)(u.\u0275\u0275directiveInject(at),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(f.ErrorStateMatcher),u.\u0275\u0275directiveInject(u.Injector),u.\u0275\u0275directiveInject(I.NgForm,8),u.\u0275\u0275directiveInject(I.FormGroupDirective,8),u.\u0275\u0275directiveInject(f.DateAdapter,8),u.\u0275\u0275directiveInject(f.MAT_DATE_FORMATS,8))};static#t=this.\u0275dir=u.\u0275\u0275defineDirective({type:xe,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(me,le){1&me&&u.\u0275\u0275listener("input",function(wt){return le._onInput(wt.target.value)})("change",function(){return le._onChange()})("keydown",function(wt){return le._onKeydown(wt)})("blur",function(){return le._onBlur()}),2&me&&(u.\u0275\u0275hostProperty("disabled",le.disabled),u.\u0275\u0275attribute("aria-haspopup",le._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==le._rangeInput.rangePicker?null:le._rangeInput.rangePicker.opened)&&le._rangeInput.rangePicker.id||null)("min",le._getMinDate()?le._dateAdapter.toIso8601(le._getMinDate()):null)("max",le._getMaxDate()?le._dateAdapter.toIso8601(le._getMaxDate()):null))},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[u.\u0275\u0275ProvidersFeature([{provide:I.NG_VALUE_ACCESSOR,useExisting:xe,multi:!0},{provide:I.NG_VALIDATORS,useExisting:xe,multi:!0}]),u.\u0275\u0275InheritDefinitionFeature]})}return xe})(),Et=0,nn=(()=>{class xe{get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){const H=this._startInput?._getPlaceholder()||"",me=this._endInput?._getPlaceholder()||"";return H||me?`${H} ${this.separator} ${me}`:""}get rangePicker(){return this._rangePicker}set rangePicker(H){H&&(this._model=H.registerInput(this),this._rangePicker=H,this._closedSubscription.unsubscribe(),this._closedSubscription=H.closedStream.subscribe(()=>{this._startInput?._onTouched(),this._endInput?._onTouched()}),this._registerModel(this._model))}get required(){return this._required??(this._isTargetRequired(this)||this._isTargetRequired(this._startInput)||this._isTargetRequired(this._endInput))??!1}set required(H){this._required=H}get dateFilter(){return this._dateFilter}set dateFilter(H){const me=this._startInput,le=this._endInput,$e=me&&me._matchesFilter(me.value),wt=le&&le._matchesFilter(me.value);this._dateFilter=H,me&&me._matchesFilter(me.value)!==$e&&me._validatorOnChange(),le&&le._matchesFilter(le.value)!==wt&&le._validatorOnChange()}get min(){return this._min}set min(H){const me=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H));this._dateAdapter.sameDate(me,this._min)||(this._min=me,this._revalidate())}get max(){return this._max}set max(H){const me=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(H));this._dateAdapter.sameDate(me,this._max)||(this._max=me,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(H){H!==this._groupDisabled&&(this._groupDisabled=H,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const H=!!this._startInput&&this._startInput.isEmpty(),me=!!this._endInput&&this._endInput.isEmpty();return H&&me}constructor(H,me,le,$e,wt){this._changeDetectorRef=H,this._elementRef=me,this._dateAdapter=$e,this._formField=wt,this._closedSubscription=l.yU.EMPTY,this.id="mat-date-range-input-"+Et++,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 d.B,wt?._elementRef.nativeElement.classList.contains("mat-mdc-form-field")&&me.nativeElement.classList.add("mat-mdc-input-element","mat-mdc-form-field-input-control","mdc-text-field__input"),this.ngControl=le}setDescribedByIds(H){this._ariaDescribedBy=H.length?H.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,c.h)(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(H){Fe(H,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(H){const me="start"===H?this._startInput:this._endInput;return me?me.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 H=this._formField;return H&&H._hasFloatingLabel()?H._labelId:null}_getStartDateAccessibleName(){return this._startInput._getAccessibleName()}_getEndDateAccessibleName(){return this._endInput._getAccessibleName()}_updateFocus(H){this.focused=null!==H,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(H){this._startInput&&this._startInput._registerModel(H),this._endInput&&this._endInput._registerModel(H)}_isTargetRequired(H){return H?.ngControl?.control?.hasValidator(I.Validators.required)}static#e=this.\u0275fac=function(me){return new(me||xe)(u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(I.ControlContainer,10),u.\u0275\u0275directiveInject(f.DateAdapter,8),u.\u0275\u0275directiveInject(D.MAT_FORM_FIELD,8))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:xe,selectors:[["mat-date-range-input"]],contentQueries:function(me,le,$e){if(1&me&&(u.\u0275\u0275contentQuery($e,Be,5),u.\u0275\u0275contentQuery($e,lt,5)),2&me){let wt;u.\u0275\u0275queryRefresh(wt=u.\u0275\u0275loadQuery())&&(le._startInput=wt.first),u.\u0275\u0275queryRefresh(wt=u.\u0275\u0275loadQuery())&&(le._endInput=wt.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(me,le){2&me&&(u.\u0275\u0275attribute("id",le.id)("aria-labelledby",le._getAriaLabelledby())("aria-describedby",le._ariaDescribedBy)("data-mat-calendar",le.rangePicker?le.rangePicker.id:null),u.\u0275\u0275classProp("mat-date-range-input-hide-placeholders",le._shouldHidePlaceholders())("mat-date-range-input-required",le.required))},inputs:{rangePicker:"rangePicker",required:[u.\u0275\u0275InputFlags.HasDecoratorInputTransform,"required","required",u.booleanAttribute],dateFilter:"dateFilter",min:"min",max:"max",disabled:[u.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",u.booleanAttribute],separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],standalone:!0,features:[u.\u0275\u0275ProvidersFeature([{provide:D.MatFormFieldControl,useExisting:xe},{provide:at,useExisting:xe}]),u.\u0275\u0275InputTransformsFeature,u.\u0275\u0275NgOnChangesFeature,u.\u0275\u0275StandaloneFeature],ngContentSelectors:ue,decls:11,vars:5,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-wrapper","mat-date-range-input-end-wrapper"]],template:function(me,le){1&me&&(u.\u0275\u0275projectionDef(ce),u.\u0275\u0275elementStart(0,"div",0),u.\u0275\u0275listener("cdkFocusChange",function(wt){return le._updateFocus(wt)}),u.\u0275\u0275elementStart(1,"div",1),u.\u0275\u0275projection(2),u.\u0275\u0275elementStart(3,"span",2),u.\u0275\u0275text(4),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(5,"span",3),u.\u0275\u0275text(6),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(7,"div",4),u.\u0275\u0275projection(8,1),u.\u0275\u0275elementStart(9,"span",2),u.\u0275\u0275text(10),u.\u0275\u0275elementEnd()()()),2&me&&(u.\u0275\u0275advance(4),u.\u0275\u0275textInterpolate(le._getInputMirrorValue("start")),u.\u0275\u0275advance(),u.\u0275\u0275classProp("mat-date-range-input-separator-hidden",le._shouldHideSeparator()),u.\u0275\u0275advance(),u.\u0275\u0275textInterpolate(le.separator),u.\u0275\u0275advance(4),u.\u0275\u0275textInterpolate(le._getInputMirrorValue("end")))},dependencies:[t.vR],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;color:var(--mat-datepicker-range-input-separator-color)}.mat-form-field-disabled .mat-date-range-input-separator{color:var(--mat-datepicker-range-input-disabled-state-separator-color)}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-end-wrapper{flex-grow:1}.mat-date-range-input-inner{position:absolute;top:0;left:0;font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%;height: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-date-range-input-inner[disabled]{color:var(--mat-datepicker-range-input-disabled-state-text-color)}.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;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);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;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);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;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);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;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);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-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix{width:200px}"],encapsulation:2,changeDetection:0})}return xe})(),_n=(()=>{class xe extends an{_forwardContentValues(H){super._forwardContentValues(H);const me=this.datepickerInput;me&&(H.comparisonStart=me.comparisonStart,H.comparisonEnd=me.comparisonEnd,H.startDateAccessibleName=me._getStartDateAccessibleName(),H.endDateAccessibleName=me._getEndDateAccessibleName())}static#e=this.\u0275fac=(()=>{let H;return function(le){return(H||(H=u.\u0275\u0275getInheritedFactory(xe)))(le||xe)}})();static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:xe,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],standalone:!0,features:[u.\u0275\u0275ProvidersFeature([jt,cn,{provide:an,useExisting:xe}]),u.\u0275\u0275InheritDefinitionFeature,u.\u0275\u0275StandaloneFeature],decls:0,vars:0,template:function(me,le){},encapsulation:2,changeDetection:0})}return xe})(),Ue=(()=>{class xe{constructor(H){this._datepicker=H}_applySelection(){this._datepicker._applyPendingSelection(),this._datepicker.close()}static#e=this.\u0275fac=function(me){return new(me||xe)(u.\u0275\u0275directiveInject(an))};static#t=this.\u0275dir=u.\u0275\u0275defineDirective({type:xe,selectors:[["","matDatepickerApply",""],["","matDateRangePickerApply",""]],hostBindings:function(me,le){1&me&&u.\u0275\u0275listener("click",function(){return le._applySelection()})},standalone:!0})}return xe})(),ut=(()=>{class xe{constructor(H){this._datepicker=H}static#e=this.\u0275fac=function(me){return new(me||xe)(u.\u0275\u0275directiveInject(an))};static#t=this.\u0275dir=u.\u0275\u0275defineDirective({type:xe,selectors:[["","matDatepickerCancel",""],["","matDateRangePickerCancel",""]],hostBindings:function(me,le){1&me&&u.\u0275\u0275listener("click",function(){return le._datepicker.close()})},standalone:!0})}return xe})(),Ke=(()=>{class xe{constructor(H,me){this._datepicker=H,this._viewContainerRef=me}ngAfterViewInit(){this._portal=new C.VA(this._template,this._viewContainerRef),this._datepicker.registerActions(this._portal)}ngOnDestroy(){this._datepicker.removeActions(this._portal),this._portal&&this._portal.isAttached&&this._portal?.detach()}static#e=this.\u0275fac=function(me){return new(me||xe)(u.\u0275\u0275directiveInject(an),u.\u0275\u0275directiveInject(u.ViewContainerRef))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:xe,selectors:[["mat-datepicker-actions"],["mat-date-range-picker-actions"]],viewQuery:function(me,le){if(1&me&&u.\u0275\u0275viewQuery(u.TemplateRef,5),2&me){let $e;u.\u0275\u0275queryRefresh($e=u.\u0275\u0275loadQuery())&&(le._template=$e.first)}},standalone:!0,features:[u.\u0275\u0275StandaloneFeature],ngContentSelectors:F,decls:1,vars:0,consts:[[1,"mat-datepicker-actions"]],template:function(me,le){1&me&&(u.\u0275\u0275projectionDef(),u.\u0275\u0275template(0,ve,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-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return xe})(),mt=(()=>{class xe{static#e=this.\u0275fac=function(me){return new(me||xe)};static#t=this.\u0275mod=u.\u0275\u0275defineNgModule({type:xe});static#n=this.\u0275inj=u.\u0275\u0275defineInjector({providers:[pt,It],imports:[E.CommonModule,b.MatButtonModule,_.z_,t.Pd,C.jc,f.MatCommonModule,Gt,qt,fe,s.Gj]})}return xe})()},1997:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MatDivider:()=>E,MatDividerModule:()=>u});var t=g(4438),_=g(4085),C=g(6600);let E=(()=>{class b{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(f){this._vertical=(0,_.he)(f)}get inset(){return this._inset}set inset(f){this._inset=(0,_.he)(f)}static#e=this.\u0275fac=function(d){return new(d||b)};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:b,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(d,l){2&d&&(t.\u0275\u0275attribute("aria-orientation",l.vertical?"vertical":"horizontal"),t.\u0275\u0275classProp("mat-divider-vertical",l.vertical)("mat-divider-horizontal",!l.vertical)("mat-divider-inset",l.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[t.\u0275\u0275StandaloneFeature],decls:0,vars:0,template:function(d,l){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}return b})(),u=(()=>{class b{static#e=this.\u0275fac=function(d){return new(d||b)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:b});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[C.MatCommonModule,C.MatCommonModule]})}return b})()},2102:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_ERROR:()=>Ct,MAT_FORM_FIELD:()=>un,MAT_FORM_FIELD_DEFAULT_OPTIONS:()=>dn,MAT_PREFIX:()=>rt,MAT_SUFFIX:()=>be,MatError:()=>We,MatFormField:()=>_e,MatFormFieldControl:()=>st,MatFormFieldModule:()=>Ze,MatHint:()=>Ie,MatLabel:()=>pt,MatPrefix:()=>Ee,MatSuffix:()=>Se,getMatFormFieldDuplicatedHintError:()=>jt,getMatFormFieldMissingControlError:()=>Xt,getMatFormFieldPlaceholderConflictError:()=>xt,matFormFieldAnimations:()=>De});var t=g(4438),_=g(8203),C=g(6860),E=g(8359),u=g(1413),b=g(7786),s=g(6977),f=g(1985),d=g(5964),l=g(4668);class o{constructor(Ot){this._box=Ot,this._destroyed=new u.B,this._resizeSubject=new u.B,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(tt=>this._resizeSubject.next(tt)))}observe(Ot){return this._elementObservables.has(Ot)||this._elementObservables.set(Ot,new f.c(tt=>{const ft=this._resizeSubject.subscribe(tt);return this._resizeObserver?.observe(Ot,{box:this._box}),()=>{this._resizeObserver?.unobserve(Ot),ft.unsubscribe(),this._elementObservables.delete(Ot)}}).pipe((0,d.p)(tt=>tt.some(ft=>ft.target===Ot)),(0,l.t)({bufferSize:1,refCount:!0}),(0,s.Q)(this._destroyed))),this._elementObservables.get(Ot)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let r=(()=>{class Qe{constructor(){this._observers=new Map,this._ngZone=(0,t.inject)(t.NgZone)}ngOnDestroy(){for(const[,tt]of this._observers)tt.destroy();this._observers.clear()}observe(tt,ft){const Le=ft?.box||"content-box";return this._observers.has(Le)||this._observers.set(Le,new o(Le)),this._observers.get(Le).observe(tt)}static#e=this.\u0275fac=function(ft){return new(ft||Qe)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac,providedIn:"root"})}return Qe})();var h=g(4085),p=g(9969),v=g(177),y=g(2318),M=g(6600);const w=["notch"],k=["matFormFieldNotchedOutline",""],I=["*"],D=["textField"],O=["iconPrefixContainer"],T=["textPrefixContainer"],U=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],S=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function R(Qe,Ot){1&Qe&&t.\u0275\u0275element(0,"span",17)}function N(Qe,Ot){if(1&Qe&&(t.\u0275\u0275elementStart(0,"label",16),t.\u0275\u0275projection(1,1),t.\u0275\u0275template(2,R,1,0,"span",17),t.\u0275\u0275elementEnd()),2&Qe){const tt=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("floating",tt._shouldLabelFloat())("monitorResize",tt._hasOutline())("id",tt._labelId),t.\u0275\u0275attribute("for",tt._control.id),t.\u0275\u0275advance(2),t.\u0275\u0275conditional(2,!tt.hideRequiredMarker&&tt._control.required?2:-1)}}function A(Qe,Ot){if(1&Qe&&t.\u0275\u0275template(0,N,3,5,"label",16),2&Qe){const tt=t.\u0275\u0275nextContext();t.\u0275\u0275conditional(0,tt._hasFloatingLabel()?0:-1)}}function F(Qe,Ot){1&Qe&&t.\u0275\u0275element(0,"div",5)}function Y(Qe,Ot){}function ee(Qe,Ot){if(1&Qe&&t.\u0275\u0275template(0,Y,0,0,"ng-template",11),2&Qe){t.\u0275\u0275nextContext(2);const tt=t.\u0275\u0275reference(1);t.\u0275\u0275property("ngTemplateOutlet",tt)}}function ie(Qe,Ot){if(1&Qe&&(t.\u0275\u0275elementStart(0,"div",7),t.\u0275\u0275template(1,ee,1,1,null,11),t.\u0275\u0275elementEnd()),2&Qe){const tt=t.\u0275\u0275nextContext();t.\u0275\u0275property("matFormFieldNotchedOutlineOpen",tt._shouldLabelFloat()),t.\u0275\u0275advance(),t.\u0275\u0275conditional(1,tt._forceDisplayInfixLabel()?-1:1)}}function $(Qe,Ot){1&Qe&&(t.\u0275\u0275elementStart(0,"div",8,2),t.\u0275\u0275projection(2,2),t.\u0275\u0275elementEnd())}function j(Qe,Ot){1&Qe&&(t.\u0275\u0275elementStart(0,"div",9,3),t.\u0275\u0275projection(2,3),t.\u0275\u0275elementEnd())}function G(Qe,Ot){}function V(Qe,Ot){if(1&Qe&&t.\u0275\u0275template(0,G,0,0,"ng-template",11),2&Qe){t.\u0275\u0275nextContext();const tt=t.\u0275\u0275reference(1);t.\u0275\u0275property("ngTemplateOutlet",tt)}}function W(Qe,Ot){1&Qe&&(t.\u0275\u0275elementStart(0,"div",12),t.\u0275\u0275projection(1,4),t.\u0275\u0275elementEnd())}function K(Qe,Ot){1&Qe&&(t.\u0275\u0275elementStart(0,"div",13),t.\u0275\u0275projection(1,5),t.\u0275\u0275elementEnd())}function ce(Qe,Ot){1&Qe&&t.\u0275\u0275element(0,"div",14)}function ue(Qe,Ot){if(1&Qe&&(t.\u0275\u0275elementStart(0,"div",18),t.\u0275\u0275projection(1,6),t.\u0275\u0275elementEnd()),2&Qe){const tt=t.\u0275\u0275nextContext();t.\u0275\u0275property("@transitionMessages",tt._subscriptAnimationState)}}function ve(Qe,Ot){if(1&Qe&&(t.\u0275\u0275elementStart(0,"mat-hint",20),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&Qe){const tt=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("id",tt._hintLabelId),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate(tt.hintLabel)}}function Ye(Qe,Ot){if(1&Qe&&(t.\u0275\u0275elementStart(0,"div",19),t.\u0275\u0275template(1,ve,2,2,"mat-hint",20),t.\u0275\u0275projection(2,7),t.\u0275\u0275element(3,"div",21),t.\u0275\u0275projection(4,8),t.\u0275\u0275elementEnd()),2&Qe){const tt=t.\u0275\u0275nextContext();t.\u0275\u0275property("@transitionMessages",tt._subscriptAnimationState),t.\u0275\u0275advance(),t.\u0275\u0275conditional(1,tt.hintLabel?1:-1)}}let pt=(()=>{class Qe{static#e=this.\u0275fac=function(ft){return new(ft||Qe)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Qe,selectors:[["mat-label"]],standalone:!0})}return Qe})(),ct=0;const Ct=new t.InjectionToken("MatError");let We=(()=>{class Qe{constructor(tt,ft){this.id="mat-mdc-error-"+ct++,tt||ft.nativeElement.setAttribute("aria-live","polite")}static#e=this.\u0275fac=function(ft){return new(ft||Qe)(t.\u0275\u0275injectAttribute("aria-live"),t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Qe,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(ft,Le){2&ft&&t.\u0275\u0275hostProperty("id",Le.id)},inputs:{id:"id"},standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:Ct,useExisting:Qe}])]})}return Qe})(),Ne=0,Ie=(()=>{class Qe{constructor(){this.align="start",this.id="mat-mdc-hint-"+Ne++}static#e=this.\u0275fac=function(ft){return new(ft||Qe)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Qe,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(ft,Le){2&ft&&(t.\u0275\u0275hostProperty("id",Le.id),t.\u0275\u0275attribute("align",null),t.\u0275\u0275classProp("mat-mdc-form-field-hint-end","end"===Le.align))},inputs:{align:"align",id:"id"},standalone:!0})}return Qe})();const rt=new t.InjectionToken("MatPrefix");let Ee=(()=>{class Qe{constructor(){this._isText=!1}set _isTextSelector(tt){this._isText=!0}static#e=this.\u0275fac=function(ft){return new(ft||Qe)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Qe,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[t.\u0275\u0275InputFlags.None,"matTextPrefix","_isTextSelector"]},standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:rt,useExisting:Qe}])]})}return Qe})();const be=new t.InjectionToken("MatSuffix");let Se=(()=>{class Qe{constructor(){this._isText=!1}set _isTextSelector(tt){this._isText=!0}static#e=this.\u0275fac=function(ft){return new(ft||Qe)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Qe,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[t.\u0275\u0275InputFlags.None,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:be,useExisting:Qe}])]})}return Qe})();const Q=new t.InjectionToken("FloatingLabelParent");let pe=(()=>{class Qe{get floating(){return this._floating}set floating(tt){this._floating=tt,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(tt){this._monitorResize=tt,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(tt){this._elementRef=tt,this._floating=!1,this._monitorResize=!1,this._resizeObserver=(0,t.inject)(r),this._ngZone=(0,t.inject)(t.NgZone),this._parent=(0,t.inject)(Q),this._resizeSubscription=new E.yU}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function Re(Qe){if(null!==Qe.offsetParent)return Qe.scrollWidth;const tt=Qe.cloneNode(!0);tt.style.setProperty("position","absolute"),tt.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(tt);const ft=tt.scrollWidth;return tt.remove(),ft}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static#e=this.\u0275fac=function(ft){return new(ft||Qe)(t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Qe,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(ft,Le){2&ft&&t.\u0275\u0275classProp("mdc-floating-label--float-above",Le.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0})}return Qe})();const bt="mdc-line-ripple--active",it="mdc-line-ripple--deactivating";let ye=(()=>{class Qe{constructor(tt,ft){this._elementRef=tt,this._handleTransitionEnd=Le=>{const fe=this._elementRef.nativeElement.classList,Ge=fe.contains(it);"opacity"===Le.propertyName&&Ge&&fe.remove(bt,it)},ft.runOutsideAngular(()=>{tt.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const tt=this._elementRef.nativeElement.classList;tt.remove(it),tt.add(bt)}deactivate(){this._elementRef.nativeElement.classList.add(it)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(ft){return new(ft||Qe)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Qe,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0})}return Qe})(),He=(()=>{class Qe{constructor(tt,ft){this._elementRef=tt,this._ngZone=ft,this.open=!1}ngAfterViewInit(){const tt=this._elementRef.nativeElement.querySelector(".mdc-floating-label");tt?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(tt.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>tt.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(tt){this._notch.nativeElement.style.width=this.open&&tt?`calc(${tt}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(ft){return new(ft||Qe)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:Qe,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(ft,Le){if(1&ft&&t.\u0275\u0275viewQuery(w,5),2&ft){let fe;t.\u0275\u0275queryRefresh(fe=t.\u0275\u0275loadQuery())&&(Le._notch=fe.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(ft,Le){2&ft&&t.\u0275\u0275classProp("mdc-notched-outline--notched",Le.open)},inputs:{open:[t.\u0275\u0275InputFlags.None,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[t.\u0275\u0275StandaloneFeature],attrs:k,ngContentSelectors:I,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(ft,Le){1&ft&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275element(0,"div",1),t.\u0275\u0275elementStart(1,"div",2,0),t.\u0275\u0275projection(3),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(4,"div",3))},encapsulation:2,changeDetection:0})}return Qe})();const De={transitionMessages:(0,p.hZ)("transitionMessages",[(0,p.wk)("enter",(0,p.iF)({opacity:1,transform:"translateY(0%)"})),(0,p.kY)("void => enter",[(0,p.iF)({opacity:0,transform:"translateY(-5px)"}),(0,p.i0)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let st=(()=>{class Qe{static#e=this.\u0275fac=function(ft){return new(ft||Qe)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:Qe})}return Qe})();function xt(){return Error("Placeholder attribute and child element were both specified.")}function jt(Qe){return Error(`A hint was already declared for 'align="${Qe}"'.`)}function Xt(){return Error("mat-form-field must contain a MatFormFieldControl.")}const un=new t.InjectionToken("MatFormField"),dn=new t.InjectionToken("MAT_FORM_FIELD_DEFAULT_OPTIONS");let cn=0,_e=(()=>{class Qe{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(tt){this._hideRequiredMarker=(0,h.he)(tt)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(tt){tt!==this._floatLabel&&(this._floatLabel=tt,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(tt){const ft=this._appearance;this._appearance=tt||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==ft&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(tt){this._subscriptSizing=tt||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(tt){this._hintLabel=tt,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(tt){this._explicitFormFieldControl=tt}constructor(tt,ft,Le,fe,Ge,te,de,ke){this._elementRef=tt,this._changeDetectorRef=ft,this._ngZone=Le,this._dir=fe,this._platform=Ge,this._defaults=te,this._animationMode=de,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+cn++,this._hintLabelId="mat-mdc-hint-"+cn++,this._subscriptAnimationState="",this._destroyed=new u.B,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,te&&(te.appearance&&(this.appearance=te.appearance),this._hideRequiredMarker=!!te?.hideRequiredMarker,te.color&&(this.color=te.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const tt=this._control;tt.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${tt.controlType}`),tt.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),tt.ngControl&&tt.ngControl.valueChanges&&tt.ngControl.valueChanges.pipe((0,s.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(tt=>!tt._isText),this._hasTextPrefix=!!this._prefixChildren.find(tt=>tt._isText),this._hasIconSuffix=!!this._suffixChildren.find(tt=>!tt._isText),this._hasTextSuffix=!!this._suffixChildren.find(tt=>tt._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,b.h)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,s.Q)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,s.Q)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(tt){const ft=this._control?this._control.ngControl:null;return ft&&ft[tt]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let tt=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&tt.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const ft=this._hintChildren?this._hintChildren.find(fe=>"start"===fe.align):null,Le=this._hintChildren?this._hintChildren.find(fe=>"end"===fe.align):null;ft?tt.push(ft.id):this._hintLabel&&tt.push(this._hintLabelId),Le&&tt.push(Le.id)}else this._errorChildren&&tt.push(...this._errorChildren.map(ft=>ft.id));this._control.setDescribedByIds(tt)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const tt=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(tt.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const ft=this._iconPrefixContainer?.nativeElement,Le=this._textPrefixContainer?.nativeElement,fe=ft?.getBoundingClientRect().width??0,Ge=Le?.getBoundingClientRect().width??0;tt.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${fe+Ge}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const tt=this._elementRef.nativeElement;if(tt.getRootNode){const ft=tt.getRootNode();return ft&&ft!==tt}return document.documentElement.contains(tt)}static#e=this.\u0275fac=function(ft){return new(ft||Qe)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(_.dS),t.\u0275\u0275directiveInject(C.OD),t.\u0275\u0275directiveInject(dn,8),t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8),t.\u0275\u0275directiveInject(v.DOCUMENT))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:Qe,selectors:[["mat-form-field"]],contentQueries:function(ft,Le,fe){if(1&ft&&(t.\u0275\u0275contentQuery(fe,pt,5),t.\u0275\u0275contentQuery(fe,pt,7),t.\u0275\u0275contentQuery(fe,st,5),t.\u0275\u0275contentQuery(fe,rt,5),t.\u0275\u0275contentQuery(fe,be,5),t.\u0275\u0275contentQuery(fe,Ct,5),t.\u0275\u0275contentQuery(fe,Ie,5)),2&ft){let Ge;t.\u0275\u0275queryRefresh(Ge=t.\u0275\u0275loadQuery())&&(Le._labelChildNonStatic=Ge.first),t.\u0275\u0275queryRefresh(Ge=t.\u0275\u0275loadQuery())&&(Le._labelChildStatic=Ge.first),t.\u0275\u0275queryRefresh(Ge=t.\u0275\u0275loadQuery())&&(Le._formFieldControl=Ge.first),t.\u0275\u0275queryRefresh(Ge=t.\u0275\u0275loadQuery())&&(Le._prefixChildren=Ge),t.\u0275\u0275queryRefresh(Ge=t.\u0275\u0275loadQuery())&&(Le._suffixChildren=Ge),t.\u0275\u0275queryRefresh(Ge=t.\u0275\u0275loadQuery())&&(Le._errorChildren=Ge),t.\u0275\u0275queryRefresh(Ge=t.\u0275\u0275loadQuery())&&(Le._hintChildren=Ge)}},viewQuery:function(ft,Le){if(1&ft&&(t.\u0275\u0275viewQuery(D,5),t.\u0275\u0275viewQuery(O,5),t.\u0275\u0275viewQuery(T,5),t.\u0275\u0275viewQuery(pe,5),t.\u0275\u0275viewQuery(He,5),t.\u0275\u0275viewQuery(ye,5)),2&ft){let fe;t.\u0275\u0275queryRefresh(fe=t.\u0275\u0275loadQuery())&&(Le._textField=fe.first),t.\u0275\u0275queryRefresh(fe=t.\u0275\u0275loadQuery())&&(Le._iconPrefixContainer=fe.first),t.\u0275\u0275queryRefresh(fe=t.\u0275\u0275loadQuery())&&(Le._textPrefixContainer=fe.first),t.\u0275\u0275queryRefresh(fe=t.\u0275\u0275loadQuery())&&(Le._floatingLabel=fe.first),t.\u0275\u0275queryRefresh(fe=t.\u0275\u0275loadQuery())&&(Le._notchedOutline=fe.first),t.\u0275\u0275queryRefresh(fe=t.\u0275\u0275loadQuery())&&(Le._lineRipple=fe.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(ft,Le){2&ft&&t.\u0275\u0275classProp("mat-mdc-form-field-label-always-float",Le._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",Le._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",Le._hasIconSuffix)("mat-form-field-invalid",Le._control.errorState)("mat-form-field-disabled",Le._control.disabled)("mat-form-field-autofilled",Le._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===Le._animationMode)("mat-form-field-appearance-fill","fill"==Le.appearance)("mat-form-field-appearance-outline","outline"==Le.appearance)("mat-form-field-hide-placeholder",Le._hasFloatingLabel()&&!Le._shouldLabelFloat())("mat-focused",Le._control.focused)("mat-primary","accent"!==Le.color&&"warn"!==Le.color)("mat-accent","accent"===Le.color)("mat-warn","warn"===Le.color)("ng-untouched",Le._shouldForward("untouched"))("ng-touched",Le._shouldForward("touched"))("ng-pristine",Le._shouldForward("pristine"))("ng-dirty",Le._shouldForward("dirty"))("ng-valid",Le._shouldForward("valid"))("ng-invalid",Le._shouldForward("invalid"))("ng-pending",Le._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:un,useExisting:Qe},{provide:Q,useExisting:Qe}]),t.\u0275\u0275StandaloneFeature],ngContentSelectors:S,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(ft,Le){if(1&ft){const fe=t.\u0275\u0275getCurrentView();t.\u0275\u0275projectionDef(U),t.\u0275\u0275template(0,A,1,1,"ng-template",null,0,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementStart(2,"div",4,1),t.\u0275\u0275listener("click",function(te){return t.\u0275\u0275restoreView(fe),t.\u0275\u0275resetView(Le._control.onContainerClick(te))}),t.\u0275\u0275template(4,F,1,0,"div",5),t.\u0275\u0275elementStart(5,"div",6),t.\u0275\u0275template(6,ie,2,2,"div",7)(7,$,3,0,"div",8)(8,j,3,0,"div",9),t.\u0275\u0275elementStart(9,"div",10),t.\u0275\u0275template(10,V,1,1,null,11),t.\u0275\u0275projection(11),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(12,W,2,0,"div",12)(13,K,2,0,"div",13),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(14,ce,1,0,"div",14),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(15,"div",15),t.\u0275\u0275template(16,ue,2,1)(17,Ye,5,2),t.\u0275\u0275elementEnd()}if(2&ft){let fe;t.\u0275\u0275advance(2),t.\u0275\u0275classProp("mdc-text-field--filled",!Le._hasOutline())("mdc-text-field--outlined",Le._hasOutline())("mdc-text-field--no-label",!Le._hasFloatingLabel())("mdc-text-field--disabled",Le._control.disabled)("mdc-text-field--invalid",Le._control.errorState),t.\u0275\u0275advance(2),t.\u0275\u0275conditional(4,Le._hasOutline()||Le._control.disabled?-1:4),t.\u0275\u0275advance(2),t.\u0275\u0275conditional(6,Le._hasOutline()?6:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(7,Le._hasIconPrefix?7:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(8,Le._hasTextPrefix?8:-1),t.\u0275\u0275advance(2),t.\u0275\u0275conditional(10,!Le._hasOutline()||Le._forceDisplayInfixLabel()?10:-1),t.\u0275\u0275advance(2),t.\u0275\u0275conditional(12,Le._hasTextSuffix?12:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(13,Le._hasIconSuffix?13:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(14,Le._hasOutline()?-1:14),t.\u0275\u0275advance(),t.\u0275\u0275classProp("mat-mdc-form-field-subscript-dynamic-size","dynamic"===Le.subscriptSizing),t.\u0275\u0275advance(),t.\u0275\u0275conditional(16,"error"===(fe=Le._getDisplayedMessages())?16:"hint"===fe?17:-1)}},dependencies:[pe,He,v.NgTemplateOutlet,ye,Ie],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 96px/0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px*2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-hover-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-hover-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-hover-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-hover-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(.75*var(--mdc-outlined-text-field-label-text-size))}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mdc-outlined-text-field-label-text-size)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color)}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color)}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color)}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color)}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[De.transitionMessages]},changeDetection:0})}return Qe})(),Ze=(()=>{class Qe{static#e=this.\u0275fac=function(ft){return new(ft||Qe)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:Qe});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[M.MatCommonModule,v.CommonModule,y.w5,M.MatCommonModule]})}return Qe})()},9213:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{ICON_REGISTRY_PROVIDER:()=>R,ICON_REGISTRY_PROVIDER_FACTORY:()=>S,MAT_ICON_DEFAULT_OPTIONS:()=>Y,MAT_ICON_LOCATION:()=>ee,MAT_ICON_LOCATION_FACTORY:()=>ie,MatIcon:()=>V,MatIconModule:()=>W,MatIconRegistry:()=>U,getMatIconFailedToSanitizeLiteralError:()=>O,getMatIconFailedToSanitizeUrlError:()=>D,getMatIconNameNotFoundError:()=>k,getMatIconNoHttpProviderError:()=>I});var t=g(4438),_=g(6600),C=g(177),E=g(7673),u=g(8810),b=g(7468),s=g(8359),f=g(8141),d=g(6354),l=g(9437),c=g(980),o=g(7647),r=g(6697),h=g(1626),p=g(345);const v=["*"];let y;function w(K){return function M(){if(void 0===y&&(y=null,typeof window<"u")){const K=window;void 0!==K.trustedTypes&&(y=K.trustedTypes.createPolicy("angular#components",{createHTML:ce=>ce}))}return y}()?.createHTML(K)||K}function k(K){return Error(`Unable to find icon with the name "${K}"`)}function I(){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 D(K){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${K}".`)}function O(K){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${K}".`)}class T{constructor(ce,ue,ve){this.url=ce,this.svgText=ue,this.options=ve}}let U=(()=>{class K{constructor(ue,ve,Ye,pt){this._httpClient=ue,this._sanitizer=ve,this._errorHandler=pt,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","mat-ligature-font"],this._document=Ye}addSvgIcon(ue,ve,Ye){return this.addSvgIconInNamespace("",ue,ve,Ye)}addSvgIconLiteral(ue,ve,Ye){return this.addSvgIconLiteralInNamespace("",ue,ve,Ye)}addSvgIconInNamespace(ue,ve,Ye,pt){return this._addSvgIconConfig(ue,ve,new T(Ye,null,pt))}addSvgIconResolver(ue){return this._resolvers.push(ue),this}addSvgIconLiteralInNamespace(ue,ve,Ye,pt){const ct=this._sanitizer.sanitize(t.SecurityContext.HTML,Ye);if(!ct)throw O(Ye);const Ct=w(ct);return this._addSvgIconConfig(ue,ve,new T("",Ct,pt))}addSvgIconSet(ue,ve){return this.addSvgIconSetInNamespace("",ue,ve)}addSvgIconSetLiteral(ue,ve){return this.addSvgIconSetLiteralInNamespace("",ue,ve)}addSvgIconSetInNamespace(ue,ve,Ye){return this._addSvgIconSetConfig(ue,new T(ve,null,Ye))}addSvgIconSetLiteralInNamespace(ue,ve,Ye){const pt=this._sanitizer.sanitize(t.SecurityContext.HTML,ve);if(!pt)throw O(ve);const ct=w(pt);return this._addSvgIconSetConfig(ue,new T("",ct,Ye))}registerFontClassAlias(ue,ve=ue){return this._fontCssClassesByAlias.set(ue,ve),this}classNameForFontAlias(ue){return this._fontCssClassesByAlias.get(ue)||ue}setDefaultFontSetClass(...ue){return this._defaultFontSetClass=ue,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(ue){const ve=this._sanitizer.sanitize(t.SecurityContext.RESOURCE_URL,ue);if(!ve)throw D(ue);const Ye=this._cachedIconsByUrl.get(ve);return Ye?(0,E.of)(N(Ye)):this._loadSvgIconFromConfig(new T(ue,null)).pipe((0,f.M)(pt=>this._cachedIconsByUrl.set(ve,pt)),(0,d.T)(pt=>N(pt)))}getNamedSvgIcon(ue,ve=""){const Ye=A(ve,ue);let pt=this._svgIconConfigs.get(Ye);if(pt)return this._getSvgFromConfig(pt);if(pt=this._getIconConfigFromResolvers(ve,ue),pt)return this._svgIconConfigs.set(Ye,pt),this._getSvgFromConfig(pt);const ct=this._iconSetConfigs.get(ve);return ct?this._getSvgFromIconSetConfigs(ue,ct):(0,u.$)(k(Ye))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(ue){return ue.svgText?(0,E.of)(N(this._svgElementFromConfig(ue))):this._loadSvgIconFromConfig(ue).pipe((0,d.T)(ve=>N(ve)))}_getSvgFromIconSetConfigs(ue,ve){const Ye=this._extractIconWithNameFromAnySet(ue,ve);if(Ye)return(0,E.of)(Ye);const pt=ve.filter(ct=>!ct.svgText).map(ct=>this._loadSvgIconSetFromConfig(ct).pipe((0,l.W)(Ct=>{const Ne=`Loading icon set URL: ${this._sanitizer.sanitize(t.SecurityContext.RESOURCE_URL,ct.url)} failed: ${Ct.message}`;return this._errorHandler.handleError(new Error(Ne)),(0,E.of)(null)})));return(0,b.p)(pt).pipe((0,d.T)(()=>{const ct=this._extractIconWithNameFromAnySet(ue,ve);if(!ct)throw k(ue);return ct}))}_extractIconWithNameFromAnySet(ue,ve){for(let Ye=ve.length-1;Ye>=0;Ye--){const pt=ve[Ye];if(pt.svgText&&pt.svgText.toString().indexOf(ue)>-1){const ct=this._svgElementFromConfig(pt),Ct=this._extractSvgIconFromSet(ct,ue,pt.options);if(Ct)return Ct}}return null}_loadSvgIconFromConfig(ue){return this._fetchIcon(ue).pipe((0,f.M)(ve=>ue.svgText=ve),(0,d.T)(()=>this._svgElementFromConfig(ue)))}_loadSvgIconSetFromConfig(ue){return ue.svgText?(0,E.of)(null):this._fetchIcon(ue).pipe((0,f.M)(ve=>ue.svgText=ve))}_extractSvgIconFromSet(ue,ve,Ye){const pt=ue.querySelector(`[id="${ve}"]`);if(!pt)return null;const ct=pt.cloneNode(!0);if(ct.removeAttribute("id"),"svg"===ct.nodeName.toLowerCase())return this._setSvgAttributes(ct,Ye);if("symbol"===ct.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(ct),Ye);const Ct=this._svgElementFromString(w(""));return Ct.appendChild(ct),this._setSvgAttributes(Ct,Ye)}_svgElementFromString(ue){const ve=this._document.createElement("DIV");ve.innerHTML=ue;const Ye=ve.querySelector("svg");if(!Ye)throw Error(" tag not found");return Ye}_toSvgElement(ue){const ve=this._svgElementFromString(w("")),Ye=ue.attributes;for(let pt=0;ptw(Ne)),(0,c.j)(()=>this._inProgressUrlFetches.delete(ct)),(0,o.u)());return this._inProgressUrlFetches.set(ct,We),We}_addSvgIconConfig(ue,ve,Ye){return this._svgIconConfigs.set(A(ue,ve),Ye),this}_addSvgIconSetConfig(ue,ve){const Ye=this._iconSetConfigs.get(ue);return Ye?Ye.push(ve):this._iconSetConfigs.set(ue,[ve]),this}_svgElementFromConfig(ue){if(!ue.svgElement){const ve=this._svgElementFromString(ue.svgText);this._setSvgAttributes(ve,ue.options),ue.svgElement=ve}return ue.svgElement}_getIconConfigFromResolvers(ue,ve){for(let Ye=0;Yece?ce.pathname+ce.search:""}}const $=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],j=$.map(K=>`[${K}]`).join(", "),G=/^url\(['"]?#(.*?)['"]?\)$/;let V=(()=>{class K{get color(){return this._color||this._defaultColor}set color(ue){this._color=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 ve=this._cleanupFontValue(ue);ve!==this._fontSet&&(this._fontSet=ve,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(ue){const ve=this._cleanupFontValue(ue);ve!==this._fontIcon&&(this._fontIcon=ve,this._updateFontIconClasses())}constructor(ue,ve,Ye,pt,ct,Ct){this._elementRef=ue,this._iconRegistry=ve,this._location=pt,this._errorHandler=ct,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=s.yU.EMPTY,Ct&&(Ct.color&&(this.color=this._defaultColor=Ct.color),Ct.fontSet&&(this.fontSet=Ct.fontSet)),Ye||ue.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(ue){if(!ue)return["",""];const ve=ue.split(":");switch(ve.length){case 1:return["",ve[0]];case 2:return ve;default:throw Error(`Invalid icon name: "${ue}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const ue=this._elementsWithExternalReferences;if(ue&&ue.size){const ve=this._location.getPathname();ve!==this._previousPath&&(this._previousPath=ve,this._prependPathToReferences(ve))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(ue){this._clearSvgElement();const ve=this._location.getPathname();this._previousPath=ve,this._cacheChildrenWithExternalReferences(ue),this._prependPathToReferences(ve),this._elementRef.nativeElement.appendChild(ue)}_clearSvgElement(){const ue=this._elementRef.nativeElement;let ve=ue.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();ve--;){const Ye=ue.childNodes[ve];(1!==Ye.nodeType||"svg"===Ye.nodeName.toLowerCase())&&Ye.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const ue=this._elementRef.nativeElement,ve=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Ye=>Ye.length>0);this._previousFontSetClass.forEach(Ye=>ue.classList.remove(Ye)),ve.forEach(Ye=>ue.classList.add(Ye)),this._previousFontSetClass=ve,this.fontIcon!==this._previousFontIconClass&&!ve.includes("mat-ligature-font")&&(this._previousFontIconClass&&ue.classList.remove(this._previousFontIconClass),this.fontIcon&&ue.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(ue){return"string"==typeof ue?ue.trim().split(" ")[0]:ue}_prependPathToReferences(ue){const ve=this._elementsWithExternalReferences;ve&&ve.forEach((Ye,pt)=>{Ye.forEach(ct=>{pt.setAttribute(ct.name,`url('${ue}#${ct.value}')`)})})}_cacheChildrenWithExternalReferences(ue){const ve=ue.querySelectorAll(j),Ye=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let pt=0;pt{const Ct=ve[pt],We=Ct.getAttribute(ct),Ne=We?We.match(G):null;if(Ne){let Ie=Ye.get(Ct);Ie||(Ie=[],Ye.set(Ct,Ie)),Ie.push({name:ct,value:Ne[1]})}})}_updateSvgIcon(ue){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),ue){const[ve,Ye]=this._splitIconName(ue);ve&&(this._svgNamespace=ve),Ye&&(this._svgName=Ye),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Ye,ve).pipe((0,r.s)(1)).subscribe(pt=>this._setSvgElement(pt),pt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${ve}:${Ye}! ${pt.message}`))})}}static#e=this.\u0275fac=function(ve){return new(ve||K)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(U),t.\u0275\u0275injectAttribute("aria-hidden"),t.\u0275\u0275directiveInject(ee),t.\u0275\u0275directiveInject(t.ErrorHandler),t.\u0275\u0275directiveInject(Y,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:K,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(ve,Ye){2&ve&&(t.\u0275\u0275attribute("data-mat-icon-type",Ye._usingFontIcon()?"font":"svg")("data-mat-icon-name",Ye._svgName||Ye.fontIcon)("data-mat-icon-namespace",Ye._svgNamespace||Ye.fontSet)("fontIcon",Ye._usingFontIcon()?Ye.fontIcon:null),t.\u0275\u0275classMap(Ye.color?"mat-"+Ye.color:""),t.\u0275\u0275classProp("mat-icon-inline",Ye.inline)("mat-icon-no-color","primary"!==Ye.color&&"accent"!==Ye.color&&"warn"!==Ye.color))},inputs:{color:"color",inline:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"inline","inline",t.booleanAttribute],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:v,decls:1,vars:0,template:function(ve,Ye){1&ve&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0})}return K})(),W=(()=>{class K{static#e=this.\u0275fac=function(ve){return new(ve||K)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:K});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[_.MatCommonModule,_.MatCommonModule]})}return K})()},9631:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_INPUT_VALUE_ACCESSOR:()=>p,MatError:()=>r.MatError,MatFormField:()=>r.MatFormField,MatHint:()=>r.MatHint,MatInput:()=>M,MatInputModule:()=>w,MatLabel:()=>r.MatLabel,MatPrefix:()=>r.MatPrefix,MatSuffix:()=>r.MatSuffix,getMatInputUnsupportedTypeError:()=>h});var t=g(4085),_=g(6860),C=g(4438),E=g(983),u=g(1413);const b=(0,_.BQ)({passive:!0});let s=(()=>{class k{constructor(D,O){this._platform=D,this._ngZone=O,this._monitoredElements=new Map}monitor(D){if(!this._platform.isBrowser)return E.w;const O=(0,t.i8)(D),T=this._monitoredElements.get(O);if(T)return T.subject;const U=new u.B,S="cdk-text-field-autofilled",R=N=>{"cdk-text-field-autofill-start"!==N.animationName||O.classList.contains(S)?"cdk-text-field-autofill-end"===N.animationName&&O.classList.contains(S)&&(O.classList.remove(S),this._ngZone.run(()=>U.next({target:N.target,isAutofilled:!1}))):(O.classList.add(S),this._ngZone.run(()=>U.next({target:N.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{O.addEventListener("animationstart",R,b),O.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(O,{subject:U,unlisten:()=>{O.removeEventListener("animationstart",R,b)}}),U}stopMonitoring(D){const O=(0,t.i8)(D),T=this._monitoredElements.get(O);T&&(T.unlisten(),T.subject.complete(),O.classList.remove("cdk-text-field-autofill-monitored"),O.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(O))}ngOnDestroy(){this._monitoredElements.forEach((D,O)=>this.stopMonitoring(O))}static#e=this.\u0275fac=function(O){return new(O||k)(C.\u0275\u0275inject(_.OD),C.\u0275\u0275inject(C.NgZone))};static#t=this.\u0275prov=C.\u0275\u0275defineInjectable({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})(),l=(()=>{class k{static#e=this.\u0275fac=function(O){return new(O||k)};static#t=this.\u0275mod=C.\u0275\u0275defineNgModule({type:k});static#n=this.\u0275inj=C.\u0275\u0275defineInjector({})}return k})();var c=g(9417),o=g(6600),r=g(2102);function h(k){return Error(`Input type "${k}" isn't supported by matInput.`)}const p=new C.InjectionToken("MAT_INPUT_VALUE_ACCESSOR"),v=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let y=0,M=(()=>{class k{get disabled(){return this._disabled}set disabled(D){this._disabled=(0,t.he)(D),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(D){this._id=D||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(c.Validators.required)??!1}set required(D){this._required=(0,t.he)(D)}get type(){return this._type}set type(D){this._type=D||"text",this._validateType(),!this._isTextarea&&(0,_.MU)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(D){this._errorStateTracker.matcher=D}get value(){return this._inputValueAccessor.value}set value(D){D!==this.value&&(this._inputValueAccessor.value=D,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(D){this._readonly=(0,t.he)(D)}get errorState(){return this._errorStateTracker.errorState}set errorState(D){this._errorStateTracker.errorState=D}constructor(D,O,T,U,S,R,N,A,F,Y){this._elementRef=D,this._platform=O,this.ngControl=T,this._autofillMonitor=A,this._formField=Y,this._uid="mat-input-"+y++,this.focused=!1,this.stateChanges=new u.B,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($=>(0,_.MU)().has($)),this._iOSKeyupListener=$=>{const j=$.target;!j.value&&0===j.selectionStart&&0===j.selectionEnd&&(j.setSelectionRange(1,1),j.setSelectionRange(0,0))};const ee=this._elementRef.nativeElement,ie=ee.nodeName.toLowerCase();this._inputValueAccessor=N||ee,this._previousNativeValue=this.value,this.id=this.id,O.IOS&&F.runOutsideAngular(()=>{D.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new o._ErrorStateTracker(R,T,S,U,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ie,this._isTextarea="textarea"===ie,this._isInFormField=!!Y,this._isNativeSelect&&(this.controlType=ee.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(D=>{this.autofilled=D.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(D){this._elementRef.nativeElement.focus(D)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(D){D!==this.focused&&(this.focused=D,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const D=this._elementRef.nativeElement.value;this._previousNativeValue!==D&&(this._previousNativeValue=D,this.stateChanges.next())}_dirtyCheckPlaceholder(){const D=this._getPlaceholder();if(D!==this._previousPlaceholder){const O=this._elementRef.nativeElement;this._previousPlaceholder=D,D?O.setAttribute("placeholder",D):O.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){v.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let D=this._elementRef.nativeElement.validity;return D&&D.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const D=this._elementRef.nativeElement,O=D.options[0];return this.focused||D.multiple||!this.empty||!!(D.selectedIndex>-1&&O&&O.label)}return this.focused||!this.empty}setDescribedByIds(D){D.length?this._elementRef.nativeElement.setAttribute("aria-describedby",D.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const D=this._elementRef.nativeElement;return this._isNativeSelect&&(D.multiple||D.size>1)}static#e=this.\u0275fac=function(O){return new(O||k)(C.\u0275\u0275directiveInject(C.ElementRef),C.\u0275\u0275directiveInject(_.OD),C.\u0275\u0275directiveInject(c.NgControl,10),C.\u0275\u0275directiveInject(c.NgForm,8),C.\u0275\u0275directiveInject(c.FormGroupDirective,8),C.\u0275\u0275directiveInject(o.ErrorStateMatcher),C.\u0275\u0275directiveInject(p,10),C.\u0275\u0275directiveInject(s),C.\u0275\u0275directiveInject(C.NgZone),C.\u0275\u0275directiveInject(r.MAT_FORM_FIELD,8))};static#t=this.\u0275dir=C.\u0275\u0275defineDirective({type:k,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(O,T){1&O&&C.\u0275\u0275listener("focus",function(){return T._focusChanged(!0)})("blur",function(){return T._focusChanged(!1)})("input",function(){return T._onInput()}),2&O&&(C.\u0275\u0275hostProperty("id",T.id)("disabled",T.disabled)("required",T.required),C.\u0275\u0275attribute("name",T.name||null)("readonly",T.readonly&&!T._isNativeSelect||null)("aria-invalid",T.empty&&T.required?null:T.errorState)("aria-required",T.required)("id",T.id),C.\u0275\u0275classProp("mat-input-server",T._isServer)("mat-mdc-form-field-textarea-control",T._isInFormField&&T._isTextarea)("mat-mdc-form-field-input-control",T._isInFormField)("mdc-text-field__input",T._isInFormField)("mat-mdc-native-select-inline",T._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[C.\u0275\u0275InputFlags.None,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[C.\u0275\u0275ProvidersFeature([{provide:r.MatFormFieldControl,useExisting:k}]),C.\u0275\u0275NgOnChangesFeature]})}return k})(),w=(()=>{class k{static#e=this.\u0275fac=function(O){return new(O||k)};static#t=this.\u0275mod=C.\u0275\u0275defineNgModule({type:k});static#n=this.\u0275inj=C.\u0275\u0275defineInjector({imports:[o.MatCommonModule,r.MatFormFieldModule,r.MatFormFieldModule,l,o.MatCommonModule]})}return k})()},9115:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_MENU_CONTENT:()=>$,MAT_MENU_DEFAULT_OPTIONS:()=>ce,MAT_MENU_PANEL:()=>A,MAT_MENU_SCROLL_STRATEGY:()=>Ye,MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>ct,MENU_PANEL_TOP_PADDING:()=>We,MatMenu:()=>ve,MatMenuContent:()=>j,MatMenuItem:()=>F,MatMenuModule:()=>Ie,MatMenuTrigger:()=>Ne,fadeInItems:()=>V,matMenuAnimations:()=>G,transformMenu:()=>W});var t=g(4438),_=g(6039),C=g(7336),E=g(1413),u=g(7786),b=g(8359),s=g(7673),f=g(5007),d=g(9172),l=g(5558),c=g(6697),o=g(6977),r=g(5964),h=g(3103),p=g(177),v=g(6600),y=g(6939),M=g(9969),w=g(8203),k=g(7987),I=g(6860),D=g(5478);const O=["mat-menu-item",""],T=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],U=["mat-icon, [matMenuItemIcon]","*"];function S(rt,Ee){1&rt&&(t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(0,"svg",2),t.\u0275\u0275element(1,"polygon",3),t.\u0275\u0275elementEnd())}const R=["*"];function N(rt,Ee){if(1&rt){const be=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",0),t.\u0275\u0275listener("keydown",function(Q){t.\u0275\u0275restoreView(be);const pe=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(pe._handleKeydown(Q))})("click",function(){t.\u0275\u0275restoreView(be);const Q=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Q.closed.emit("click"))})("@transformMenu.start",function(Q){t.\u0275\u0275restoreView(be);const pe=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(pe._onAnimationStart(Q))})("@transformMenu.done",function(Q){t.\u0275\u0275restoreView(be);const pe=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(pe._onAnimationDone(Q))}),t.\u0275\u0275elementStart(1,"div",1),t.\u0275\u0275projection(2),t.\u0275\u0275elementEnd()()}if(2&rt){const be=t.\u0275\u0275nextContext();t.\u0275\u0275property("id",be.panelId)("ngClass",be._classList)("@transformMenu",be._panelAnimationState),t.\u0275\u0275attribute("aria-label",be.ariaLabel||null)("aria-labelledby",be.ariaLabelledby||null)("aria-describedby",be.ariaDescribedby||null)}}const A=new t.InjectionToken("MAT_MENU_PANEL");let F=(()=>{class rt{constructor(be,Se,Q,pe,Re){this._elementRef=be,this._document=Se,this._focusMonitor=Q,this._parentMenu=pe,this._changeDetectorRef=Re,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new E.B,this._focused=new E.B,this._highlighted=!1,this._triggersSubmenu=!1,pe?.addItem?.(this)}focus(be,Se){this._focusMonitor&&be?this._focusMonitor.focusVia(this._getHostElement(),be,Se):this._getHostElement().focus(Se),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(be){this.disabled&&(be.preventDefault(),be.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const be=this._elementRef.nativeElement.cloneNode(!0),Se=be.querySelectorAll("mat-icon, .material-icons");for(let Q=0;Q{class rt{constructor(be,Se,Q,pe,Re,bt,it){this._template=be,this._componentFactoryResolver=Se,this._appRef=Q,this._injector=pe,this._viewContainerRef=Re,this._document=bt,this._changeDetectorRef=it,this._attached=new E.B}attach(be={}){this._portal||(this._portal=new y.VA(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new y.aI(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const Se=this._template.elementRef.nativeElement;Se.parentNode.insertBefore(this._outlet.outletElement,Se),this._changeDetectorRef?.markForCheck(),this._portal.attach(this._outlet,be),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}static#e=this.\u0275fac=function(Se){return new(Se||rt)(t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.ComponentFactoryResolver),t.\u0275\u0275directiveInject(t.ApplicationRef),t.\u0275\u0275directiveInject(t.Injector),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(p.DOCUMENT),t.\u0275\u0275directiveInject(t.ChangeDetectorRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:rt,selectors:[["ng-template","matMenuContent",""]],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:$,useExisting:rt}])]})}return rt})();const G={transformMenu:(0,M.hZ)("transformMenu",[(0,M.wk)("void",(0,M.iF)({opacity:0,transform:"scale(0.8)"})),(0,M.kY)("void => enter",(0,M.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,M.iF)({opacity:1,transform:"scale(1)"}))),(0,M.kY)("* => void",(0,M.i0)("100ms 25ms linear",(0,M.iF)({opacity:0})))]),fadeInItems:(0,M.hZ)("fadeInItems",[(0,M.wk)("showing",(0,M.iF)({opacity:1})),(0,M.kY)("void => *",[(0,M.iF)({opacity:0}),(0,M.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},V=G.fadeInItems,W=G.transformMenu;let K=0;const ce=new t.InjectionToken("mat-menu-default-options",{providedIn:"root",factory:function ue(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let ve=(()=>{class rt{get xPosition(){return this._xPosition}set xPosition(be){this._xPosition=be,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(be){this._yPosition=be,this.setPositionClasses()}set panelClass(be){const Se=this._previousPanelClass;Se&&Se.length&&Se.split(" ").forEach(Q=>{this._classList[Q]=!1}),this._previousPanelClass=be,be&&be.length&&(be.split(" ").forEach(Q=>{this._classList[Q]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(be){this.panelClass=be}constructor(be,Se,Q,pe){this._elementRef=be,this._ngZone=Se,this._changeDetectorRef=pe,this._elevationPrefix="mat-elevation-z",this._baseElevation=8,this._directDescendantItems=new t.QueryList,this._classList={},this._panelAnimationState="void",this._animationDone=new E.B,this.closed=new t.EventEmitter,this.close=this.closed,this.panelId="mat-menu-panel-"+K++,this.overlayPanelClass=Q.overlayPanelClass||"",this._xPosition=Q.xPosition,this._yPosition=Q.yPosition,this.backdropClass=Q.backdropClass,this.overlapTrigger=Q.overlapTrigger,this.hasBackdrop=Q.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new _.Bu(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,d.Z)(this._directDescendantItems),(0,l.n)(be=>(0,u.h)(...be.map(Se=>Se._focused)))).subscribe(be=>this._keyManager.updateActiveItem(be)),this._directDescendantItems.changes.subscribe(be=>{const Se=this._keyManager;if("enter"===this._panelAnimationState&&Se.activeItem?._hasFocus()){const Q=be.toArray(),pe=Math.max(0,Math.min(Q.length-1,Se.activeItemIndex||0));Q[pe]&&!Q[pe].disabled?Se.setActiveItem(pe):Se.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,d.Z)(this._directDescendantItems),(0,l.n)(Se=>(0,u.h)(...Se.map(Q=>Q._hovered))))}addItem(be){}removeItem(be){}_handleKeydown(be){const Se=be.keyCode,Q=this._keyManager;switch(Se){case C._f:(0,C.rp)(be)||(be.preventDefault(),this.closed.emit("keydown"));break;case C.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case C.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(Se===C.i7||Se===C.n6)&&Q.setFocusOrigin("keyboard"),void Q.onKeydown(be)}be.stopPropagation()}focusFirstItem(be="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,c.s)(1)).subscribe(()=>{let Se=null;if(this._directDescendantItems.length&&(Se=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!Se||!Se.contains(document.activeElement)){const Q=this._keyManager;Q.setFocusOrigin(be).setFirstItemActive(),!Q.activeItem&&Se&&Se.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(be){const Se=Math.min(this._baseElevation+be,24),Q=`${this._elevationPrefix}${Se}`,pe=Object.keys(this._classList).find(Re=>Re.startsWith(this._elevationPrefix));(!pe||pe===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[Q]=!0,this._previousElevation=Q)}setPositionClasses(be=this.xPosition,Se=this.yPosition){const Q=this._classList;Q["mat-menu-before"]="before"===be,Q["mat-menu-after"]="after"===be,Q["mat-menu-above"]="above"===Se,Q["mat-menu-below"]="below"===Se,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(be){this._animationDone.next(be),this._isAnimating=!1}_onAnimationStart(be){this._isAnimating=!0,"enter"===be.toState&&0===this._keyManager.activeItemIndex&&(be.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,d.Z)(this._allItems)).subscribe(be=>{this._directDescendantItems.reset(be.filter(Se=>Se._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static#e=this.\u0275fac=function(Se){return new(Se||rt)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(ce),t.\u0275\u0275directiveInject(t.ChangeDetectorRef))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:rt,selectors:[["mat-menu"]],contentQueries:function(Se,Q,pe){if(1&Se&&(t.\u0275\u0275contentQuery(pe,$,5),t.\u0275\u0275contentQuery(pe,F,5),t.\u0275\u0275contentQuery(pe,F,4)),2&Se){let Re;t.\u0275\u0275queryRefresh(Re=t.\u0275\u0275loadQuery())&&(Q.lazyContent=Re.first),t.\u0275\u0275queryRefresh(Re=t.\u0275\u0275loadQuery())&&(Q._allItems=Re),t.\u0275\u0275queryRefresh(Re=t.\u0275\u0275loadQuery())&&(Q.items=Re)}},viewQuery:function(Se,Q){if(1&Se&&t.\u0275\u0275viewQuery(t.TemplateRef,5),2&Se){let pe;t.\u0275\u0275queryRefresh(pe=t.\u0275\u0275loadQuery())&&(Q.templateRef=pe.first)}},hostVars:3,hostBindings:function(Se,Q){2&Se&&t.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[t.\u0275\u0275InputFlags.None,"aria-label","ariaLabel"],ariaLabelledby:[t.\u0275\u0275InputFlags.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[t.\u0275\u0275InputFlags.None,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"overlapTrigger","overlapTrigger",t.booleanAttribute],hasBackdrop:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"hasBackdrop","hasBackdrop",be=>null==be?null:(0,t.booleanAttribute)(be)],panelClass:[t.\u0275\u0275InputFlags.None,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:A,useExisting:rt}]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:R,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id","ngClass"],[1,"mat-mdc-menu-content"]],template:function(Se,Q){1&Se&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275template(0,N,3,6,"ng-template"))},dependencies:[p.NgClass],styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-divider{color:var(--mat-menu-divider-color);margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:var(--mat-menu-item-trailing-spacing);padding-right:var(--mat-menu-item-leading-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]),.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon])[dir=rtl]{padding-left:var(--mat-menu-item-with-icon-trailing-spacing);padding-right:var(--mat-menu-item-with-icon-leading-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;padding-right:var(--mat-menu-item-spacing);padding-left:0}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[G.transformMenu,G.fadeInItems]},changeDetection:0})}return rt})();const Ye=new t.InjectionToken("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const rt=(0,t.inject)(k.hJ);return()=>rt.scrollStrategies.reposition()}}),ct={provide:Ye,deps:[k.hJ],useFactory:function pt(rt){return()=>rt.scrollStrategies.reposition()}},Ct=(0,I.BQ)({passive:!0}),We=8;let Ne=(()=>{class rt{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(be){this.menu=be}get menu(){return this._menu}set menu(be){be!==this._menu&&(this._menu=be,this._menuCloseSubscription.unsubscribe(),be&&(this._menuCloseSubscription=be.close.subscribe(Se=>{this._destroyMenu(Se),("click"===Se||"tab"===Se)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Se)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(be,Se,Q,pe,Re,bt,it,ye,He){this._overlay=be,this._element=Se,this._viewContainerRef=Q,this._menuItemInstance=bt,this._dir=it,this._focusMonitor=ye,this._ngZone=He,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=b.yU.EMPTY,this._hoverSubscription=b.yU.EMPTY,this._menuCloseSubscription=b.yU.EMPTY,this._changeDetectorRef=(0,t.inject)(t.ChangeDetectorRef),this._handleTouchStart=De=>{(0,_.w6)(De)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new t.EventEmitter,this.onMenuOpen=this.menuOpened,this.menuClosed=new t.EventEmitter,this.onMenuClose=this.menuClosed,this._scrollStrategy=pe,this._parentMaterialMenu=Re instanceof ve?Re:void 0,Se.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ct)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ct),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&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const be=this.menu;if(this._menuOpen||!be)return;const Se=this._createOverlay(be),Q=Se.getConfig(),pe=Q.positionStrategy;this._setPosition(be,pe),Q.hasBackdrop=null==be.hasBackdrop?!this.triggersSubmenu():be.hasBackdrop,Se.attach(this._getPortal(be)),be.lazyContent&&be.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(be),be instanceof ve&&(be._startAnimation(),be._directDescendantItems.changes.pipe((0,o.Q)(be.close)).subscribe(()=>{pe.withLockedPosition(!1).reapplyLastPosition(),pe.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(be,Se){this._focusMonitor&&be?this._focusMonitor.focusVia(this._element,be,Se):this._element.nativeElement.focus(Se)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(be){if(!this._overlayRef||!this.menuOpen)return;const Se=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===be||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,Se instanceof ve?(Se._resetAnimation(),Se.lazyContent?Se._animationDone.pipe((0,r.p)(Q=>"void"===Q.toState),(0,c.s)(1),(0,o.Q)(Se.lazyContent._attached)).subscribe({next:()=>Se.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),Se?.lazyContent?.detach())}_initMenu(be){be.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,be.direction=this.dir,this._setMenuElevation(be),be.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(be){if(be.setElevation){let Se=0,Q=be.parentMenu;for(;Q;)Se++,Q=Q.parentMenu;be.setElevation(Se)}}_setIsMenuOpen(be){be!==this._menuOpen&&(this._menuOpen=be,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(be),this._changeDetectorRef.markForCheck())}_createOverlay(be){if(!this._overlayRef){const Se=this._getOverlayConfig(be);this._subscribeToPositions(be,Se.positionStrategy),this._overlayRef=this._overlay.create(Se),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(be){return new k.rR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:be.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:be.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(be,Se){be.setPositionClasses&&Se.positionChanges.subscribe(Q=>{const pe="start"===Q.connectionPair.overlayX?"after":"before",Re="top"===Q.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>be.setPositionClasses(pe,Re)):be.setPositionClasses(pe,Re)})}_setPosition(be,Se){let[Q,pe]="before"===be.xPosition?["end","start"]:["start","end"],[Re,bt]="above"===be.yPosition?["bottom","top"]:["top","bottom"],[it,ye]=[Re,bt],[He,De]=[Q,pe],st=0;if(this.triggersSubmenu()){if(De=Q="before"===be.xPosition?"start":"end",pe=He="end"===Q?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const xt=this._parentMaterialMenu.items.first;this._parentInnerPadding=xt?xt._getHostElement().offsetTop:0}st="bottom"===Re?this._parentInnerPadding:-this._parentInnerPadding}}else be.overlapTrigger||(it="top"===Re?"bottom":"top",ye="top"===bt?"bottom":"top");Se.withPositions([{originX:Q,originY:it,overlayX:He,overlayY:Re,offsetY:st},{originX:pe,originY:it,overlayX:De,overlayY:Re,offsetY:st},{originX:Q,originY:ye,overlayX:He,overlayY:bt,offsetY:-st},{originX:pe,originY:ye,overlayX:De,overlayY:bt,offsetY:-st}])}_menuClosingActions(){const be=this._overlayRef.backdropClick(),Se=this._overlayRef.detachments(),Q=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,s.of)(),pe=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,r.p)(Re=>Re!==this._menuItemInstance),(0,r.p)(()=>this._menuOpen)):(0,s.of)();return(0,u.h)(be,Q,pe,Se)}_handleMousedown(be){(0,_._G)(be)||(this._openedBy=0===be.button?"mouse":void 0,this.triggersSubmenu()&&be.preventDefault())}_handleKeydown(be){const Se=be.keyCode;(Se===C.Fm||Se===C.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Se===C.LE&&"ltr"===this.dir||Se===C.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(be){this.triggersSubmenu()?(be.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,r.p)(be=>be===this._menuItemInstance&&!be.disabled),(0,h.c)(0,f.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ve&&this.menu._isAnimating?this.menu._animationDone.pipe((0,c.s)(1),(0,h.c)(0,f.$),(0,o.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(be){return(!this._portal||this._portal.templateRef!==be.templateRef)&&(this._portal=new y.VA(be.templateRef,this._viewContainerRef)),this._portal}static#e=this.\u0275fac=function(Se){return new(Se||rt)(t.\u0275\u0275directiveInject(k.hJ),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(Ye),t.\u0275\u0275directiveInject(A,8),t.\u0275\u0275directiveInject(F,10),t.\u0275\u0275directiveInject(w.dS,8),t.\u0275\u0275directiveInject(_.FN),t.\u0275\u0275directiveInject(t.NgZone))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:rt,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(Se,Q){1&Se&&t.\u0275\u0275listener("click",function(Re){return Q._handleClick(Re)})("mousedown",function(Re){return Q._handleMousedown(Re)})("keydown",function(Re){return Q._handleKeydown(Re)}),2&Se&&t.\u0275\u0275attribute("aria-haspopup",Q.menu?"menu":null)("aria-expanded",Q.menuOpen)("aria-controls",Q.menuOpen?Q.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[t.\u0275\u0275InputFlags.None,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[t.\u0275\u0275InputFlags.None,"matMenuTriggerFor","menu"],menuData:[t.\u0275\u0275InputFlags.None,"matMenuTriggerData","menuData"],restoreFocus:[t.\u0275\u0275InputFlags.None,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0})}return rt})(),Ie=(()=>{class rt{static#e=this.\u0275fac=function(Se){return new(Se||rt)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:rt});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({providers:[ct],imports:[p.CommonModule,v.MatRippleModule,v.MatCommonModule,k.z_,D.Gj,v.MatCommonModule]})}return rt})()},6695:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_PAGINATOR_DEFAULT_OPTIONS:()=>k,MAT_PAGINATOR_INTL_PROVIDER:()=>y,MAT_PAGINATOR_INTL_PROVIDER_FACTORY:()=>v,MatPaginator:()=>D,MatPaginatorIntl:()=>p,MatPaginatorModule:()=>O,PageEvent:()=>w});var t=g(4438),_=g(1413),C=g(2771),E=g(8834),u=g(2798),b=g(4823),s=g(6600),f=g(2102);function d(T,U){if(1&T&&(t.\u0275\u0275elementStart(0,"mat-option",16),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&T){const S=U.$implicit;t.\u0275\u0275property("value",S),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",S," ")}}function l(T,U){if(1&T){const S=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"mat-form-field",13)(1,"mat-select",15),t.\u0275\u0275listener("selectionChange",function(N){t.\u0275\u0275restoreView(S);const A=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(A._changePageSize(N.value))}),t.\u0275\u0275repeaterCreate(2,d,2,2,"mat-option",16,t.\u0275\u0275repeaterTrackByIdentity),t.\u0275\u0275elementEnd()()}if(2&T){const S=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("appearance",S._formFieldAppearance)("color",S.color),t.\u0275\u0275advance(),t.\u0275\u0275property("value",S.pageSize)("disabled",S.disabled)("aria-labelledby",S._pageSizeLabelId)("panelClass",S.selectConfig.panelClass||"")("disableOptionCentering",S.selectConfig.disableOptionCentering),t.\u0275\u0275advance(),t.\u0275\u0275repeater(S._displayedPageSizeOptions)}}function c(T,U){if(1&T&&(t.\u0275\u0275elementStart(0,"div",14),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&T){const S=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate(S.pageSize)}}function o(T,U){if(1&T&&(t.\u0275\u0275elementStart(0,"div",2)(1,"div",12),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(3,l,4,7,"mat-form-field",13)(4,c,2,1,"div",14),t.\u0275\u0275elementEnd()),2&T){const S=t.\u0275\u0275nextContext();t.\u0275\u0275advance(),t.\u0275\u0275attribute("id",S._pageSizeLabelId),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",S._intl.itemsPerPageLabel," "),t.\u0275\u0275advance(),t.\u0275\u0275conditional(3,S._displayedPageSizeOptions.length>1?3:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(4,S._displayedPageSizeOptions.length<=1?4:-1)}}function r(T,U){if(1&T){const S=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",17),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(S);const N=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(N.firstPage())}),t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(1,"svg",7),t.\u0275\u0275element(2,"path",18),t.\u0275\u0275elementEnd()()}if(2&T){const S=t.\u0275\u0275nextContext();t.\u0275\u0275property("matTooltip",S._intl.firstPageLabel)("matTooltipDisabled",S._previousButtonsDisabled())("matTooltipPosition","above")("disabled",S._previousButtonsDisabled()),t.\u0275\u0275attribute("aria-label",S._intl.firstPageLabel)}}function h(T,U){if(1&T){const S=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",19),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(S);const N=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(N.lastPage())}),t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(1,"svg",7),t.\u0275\u0275element(2,"path",20),t.\u0275\u0275elementEnd()()}if(2&T){const S=t.\u0275\u0275nextContext();t.\u0275\u0275property("matTooltip",S._intl.lastPageLabel)("matTooltipDisabled",S._nextButtonsDisabled())("matTooltipPosition","above")("disabled",S._nextButtonsDisabled()),t.\u0275\u0275attribute("aria-label",S._intl.lastPageLabel)}}let p=(()=>{class T{constructor(){this.changes=new _.B,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(S,R,N)=>{if(0==N||0==R)return`0 of ${N}`;const A=S*R;return`${A+1} \u2013 ${A<(N=Math.max(N,0))?Math.min(A+R,N):A+R} of ${N}`}}static#e=this.\u0275fac=function(R){return new(R||T)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})();function v(T){return T||new p}const y={provide:p,deps:[[new t.Optional,new t.SkipSelf,p]],useFactory:v};class w{}const k=new t.InjectionToken("MAT_PAGINATOR_DEFAULT_OPTIONS");let I=0,D=(()=>{class T{get pageIndex(){return this._pageIndex}set pageIndex(S){this._pageIndex=Math.max(S||0,0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(S){this._length=S||0,this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(S){this._pageSize=Math.max(S||0,0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(S){this._pageSizeOptions=(S||[]).map(R=>(0,t.numberAttribute)(R,0)),this._updateDisplayedPageSizeOptions()}constructor(S,R,N){if(this._intl=S,this._changeDetectorRef=R,this._pageSizeLabelId="mat-paginator-page-size-label-"+I++,this._isInitialized=!1,this._initializedStream=new C.m(1),this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this.hidePageSize=!1,this.showFirstLastButtons=!1,this.selectConfig={},this.disabled=!1,this.page=new t.EventEmitter,this.initialized=this._initializedStream,this._intlChanges=S.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),N){const{pageSize:A,pageSizeOptions:F,hidePageSize:Y,showFirstLastButtons:ee}=N;null!=A&&(this._pageSize=A),null!=F&&(this._pageSizeOptions=F),null!=Y&&(this.hidePageSize=Y),null!=ee&&(this.showFirstLastButtons=ee)}this._formFieldAppearance=N?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const S=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(S)}previousPage(){if(!this.hasPreviousPage())return;const S=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(S)}firstPage(){if(!this.hasPreviousPage())return;const S=this.pageIndex;this.pageIndex=0,this._emitPageEvent(S)}lastPage(){if(!this.hasNextPage())return;const S=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(S)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const S=this.getNumberOfPages()-1;return this.pageIndexS-R),this._changeDetectorRef.markForCheck())}_emitPageEvent(S){this.page.emit({previousPageIndex:S,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}static#e=this.\u0275fac=function(R){return new(R||T)(t.\u0275\u0275directiveInject(p),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(k,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:T,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"pageIndex","pageIndex",t.numberAttribute],length:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"length","length",t.numberAttribute],pageSize:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"pageSize","pageSize",t.numberAttribute],pageSizeOptions:"pageSizeOptions",hidePageSize:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"hidePageSize","hidePageSize",t.booleanAttribute],showFirstLastButtons:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"showFirstLastButtons","showFirstLastButtons",t.booleanAttribute],selectConfig:"selectConfig",disabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",t.booleanAttribute]},outputs:{page:"page"},exportAs:["matPaginator"],standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275StandaloneFeature],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-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-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(R,N){1&R&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1),t.\u0275\u0275template(2,o,5,4,"div",2),t.\u0275\u0275elementStart(3,"div",3)(4,"div",4),t.\u0275\u0275text(5),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(6,r,3,5,"button",5),t.\u0275\u0275elementStart(7,"button",6),t.\u0275\u0275listener("click",function(){return N.previousPage()}),t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(8,"svg",7),t.\u0275\u0275element(9,"path",8),t.\u0275\u0275elementEnd()(),t.\u0275\u0275namespaceHTML(),t.\u0275\u0275elementStart(10,"button",9),t.\u0275\u0275listener("click",function(){return N.nextPage()}),t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(11,"svg",7),t.\u0275\u0275element(12,"path",10),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(13,h,3,5,"button",11),t.\u0275\u0275elementEnd()()()),2&R&&(t.\u0275\u0275advance(2),t.\u0275\u0275conditional(2,N.hidePageSize?-1:2),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",N._intl.getRangeLabel(N.pageIndex,N.pageSize,N.length)," "),t.\u0275\u0275advance(),t.\u0275\u0275conditional(6,N.showFirstLastButtons?6:-1),t.\u0275\u0275advance(),t.\u0275\u0275property("matTooltip",N._intl.previousPageLabel)("matTooltipDisabled",N._previousButtonsDisabled())("matTooltipPosition","above")("disabled",N._previousButtonsDisabled()),t.\u0275\u0275attribute("aria-label",N._intl.previousPageLabel),t.\u0275\u0275advance(3),t.\u0275\u0275property("matTooltip",N._intl.nextPageLabel)("matTooltipDisabled",N._nextButtonsDisabled())("matTooltipPosition","above")("disabled",N._nextButtonsDisabled()),t.\u0275\u0275attribute("aria-label",N._intl.nextPageLabel),t.\u0275\u0275advance(3),t.\u0275\u0275conditional(13,N.showFirstLastButtons?13:-1))},dependencies:[f.MatFormField,u.MatSelect,s.MatOption,E.MatIconButton,b.oV],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking);--mat-form-field-container-height:var(--mat-paginator-form-field-container-height);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return T})(),O=(()=>{class T{static#e=this.\u0275fac=function(R){return new(R||T)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:T});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({providers:[y],imports:[E.MatButtonModule,u.MatSelectModule,b.uc,D]})}return T})()},9183:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS:()=>b,MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY:()=>s,MatProgressSpinner:()=>l,MatProgressSpinnerModule:()=>o,MatSpinner:()=>c});var t=g(4438),_=g(177),C=g(6600);const E=["determinateSpinner"];function u(r,h){if(1&r&&(t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(0,"svg",11),t.\u0275\u0275element(1,"circle",12),t.\u0275\u0275elementEnd()),2&r){const p=t.\u0275\u0275nextContext();t.\u0275\u0275attribute("viewBox",p._viewBox()),t.\u0275\u0275advance(),t.\u0275\u0275styleProp("stroke-dasharray",p._strokeCircumference(),"px")("stroke-dashoffset",p._strokeCircumference()/2,"px")("stroke-width",p._circleStrokeWidth(),"%"),t.\u0275\u0275attribute("r",p._circleRadius())}}const b=new t.InjectionToken("mat-progress-spinner-default-options",{providedIn:"root",factory:s});function s(){return{diameter:f}}const f=100;let l=(()=>{class r{get color(){return this._color||this._defaultColor}set color(p){this._color=p}constructor(p,v,y){this._elementRef=p,this._defaultColor="primary",this._value=0,this._diameter=f,this._noopAnimations="NoopAnimations"===v&&!!y&&!y._forceAnimations,this.mode="mat-spinner"===p.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",y&&(y.color&&(this.color=this._defaultColor=y.color),y.diameter&&(this.diameter=y.diameter),y.strokeWidth&&(this.strokeWidth=y.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(p){this._value=Math.max(0,Math.min(100,p||0))}get diameter(){return this._diameter}set diameter(p){this._diameter=p||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(p){this._strokeWidth=p||0}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const p=2*this._circleRadius()+this.strokeWidth;return`0 0 ${p} ${p}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static#e=this.\u0275fac=function(v){return new(v||r)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8),t.\u0275\u0275directiveInject(b))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:r,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(v,y){if(1&v&&t.\u0275\u0275viewQuery(E,5),2&v){let M;t.\u0275\u0275queryRefresh(M=t.\u0275\u0275loadQuery())&&(y._determinateCircle=M.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(v,y){2&v&&(t.\u0275\u0275attribute("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===y.mode?y.value:null)("mode",y.mode),t.\u0275\u0275classMap("mat-"+y.color),t.\u0275\u0275styleProp("width",y.diameter,"px")("height",y.diameter,"px")("--mdc-circular-progress-size",y.diameter+"px")("--mdc-circular-progress-active-indicator-width",y.diameter+"px"),t.\u0275\u0275classProp("_mat-animation-noopable",y._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===y.mode))},inputs:{color:"color",mode:"mode",value:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"value","value",t.numberAttribute],diameter:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"diameter","diameter",t.numberAttribute],strokeWidth:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"strokeWidth","strokeWidth",t.numberAttribute]},exportAs:["matProgressSpinner"],standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275StandaloneFeature],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(v,y){if(1&v&&(t.\u0275\u0275template(0,u,2,8,"ng-template",null,0,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementStart(2,"div",2,1),t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(4,"svg",3),t.\u0275\u0275element(5,"circle",4),t.\u0275\u0275elementEnd()(),t.\u0275\u0275namespaceHTML(),t.\u0275\u0275elementStart(6,"div",5)(7,"div",6)(8,"div",7),t.\u0275\u0275elementContainer(9,8),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(10,"div",9),t.\u0275\u0275elementContainer(11,8),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(12,"div",10),t.\u0275\u0275elementContainer(13,8),t.\u0275\u0275elementEnd()()()),2&v){const M=t.\u0275\u0275reference(1);t.\u0275\u0275advance(4),t.\u0275\u0275attribute("viewBox",y._viewBox()),t.\u0275\u0275advance(),t.\u0275\u0275styleProp("stroke-dasharray",y._strokeCircumference(),"px")("stroke-dashoffset",y._strokeDashOffset(),"px")("stroke-width",y._circleStrokeWidth(),"%"),t.\u0275\u0275attribute("r",y._circleRadius()),t.\u0275\u0275advance(4),t.\u0275\u0275property("ngTemplateOutlet",M),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngTemplateOutlet",M),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngTemplateOutlet",M)}},dependencies:[_.NgTemplateOutlet],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0})}return r})();const c=l;let o=(()=>{class r{static#e=this.\u0275fac=function(v){return new(v||r)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:r});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[_.CommonModule,C.MatCommonModule]})}return r})()},5951:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_RADIO_DEFAULT_OPTIONS:()=>h,MAT_RADIO_DEFAULT_OPTIONS_FACTORY:()=>p,MAT_RADIO_GROUP:()=>r,MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR:()=>o,MatRadioButton:()=>y,MatRadioChange:()=>c,MatRadioGroup:()=>v,MatRadioModule:()=>M});var t=g(4438),_=g(6600),C=g(6039),E=g(5024),u=g(9417),b=g(177);const s=["input"],f=["formField"],d=["*"];let l=0;class c{constructor(k,I){this.source=k,this.value=I}}const o={provide:u.NG_VALUE_ACCESSOR,useExisting:(0,t.forwardRef)(()=>v),multi:!0},r=new t.InjectionToken("MatRadioGroup"),h=new t.InjectionToken("mat-radio-default-options",{providedIn:"root",factory:p});function p(){return{color:"accent"}}let v=(()=>{class w{get name(){return this._name}set name(I){this._name=I,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(I){this._labelPosition="before"===I?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(I){this._value!==I&&(this._value=I,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(I){this._selected=I,this.value=I?I.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(I){this._disabled=I,this._markRadiosForCheck()}get required(){return this._required}set required(I){this._required=I,this._markRadiosForCheck()}constructor(I){this._changeDetector=I,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 t.EventEmitter}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(I=>I===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(I=>{I.name=this.name,I._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(D=>{D.checked=this.value===D.value,D.checked&&(this._selected=D)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new c(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(I=>I._markForCheck())}writeValue(I){this.value=I,this._changeDetector.markForCheck()}registerOnChange(I){this._controlValueAccessorChangeFn=I}registerOnTouched(I){this.onTouched=I}setDisabledState(I){this.disabled=I,this._changeDetector.markForCheck()}static#e=this.\u0275fac=function(D){return new(D||w)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:w,selectors:[["mat-radio-group"]],contentQueries:function(D,O,T){if(1&D&&t.\u0275\u0275contentQuery(T,y,5),2&D){let U;t.\u0275\u0275queryRefresh(U=t.\u0275\u0275loadQuery())&&(O._radios=U)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",t.booleanAttribute],required:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"required","required",t.booleanAttribute]},outputs:{change:"change"},exportAs:["matRadioGroup"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([o,{provide:r,useExisting:w}]),t.\u0275\u0275InputTransformsFeature]})}return w})(),y=(()=>{class w{get checked(){return this._checked}set checked(I){this._checked!==I&&(this._checked=I,I&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!I&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),I&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(I){this._value!==I&&(this._value=I,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===I),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(I){this._labelPosition=I}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(I){this._setDisabled(I)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(I){this._required=I}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(I){this._color=I}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(I,D,O,T,U,S,R,N){this._elementRef=D,this._changeDetector=O,this._focusMonitor=T,this._radioDispatcher=U,this._providerOverride=R,this._uniqueId="mat-radio-"+ ++l,this.id=this._uniqueId,this.disableRipple=!1,this.tabIndex=0,this.change=new t.EventEmitter,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=I,this._noopAnimations="NoopAnimations"===S,N&&(this.tabIndex=(0,t.numberAttribute)(N,0))}focus(I,D){D?this._focusMonitor.focusVia(this._inputElement,D,I):this._inputElement.nativeElement.focus(I)}_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),this._removeUniqueSelectionListener=this._radioDispatcher.listen((I,D)=>{I!==this.id&&D===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(I=>{!I&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new c(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(I){I.stopPropagation()}_onInputInteraction(I){if(I.stopPropagation(),!this.checked&&!this.disabled){const D=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),D&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(I){this._onInputInteraction(I),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(I){this._disabled!==I&&(this._disabled=I,this._changeDetector.markForCheck())}_updateTabIndex(){const I=this.radioGroup;let D;if(D=I&&I.selected&&!this.disabled?I.selected===this?this.tabIndex:-1:this.tabIndex,D!==this._previousTabIndex){const O=this._inputElement?.nativeElement;O&&(O.setAttribute("tabindex",D+""),this._previousTabIndex=D)}}static#e=this.\u0275fac=function(D){return new(D||w)(t.\u0275\u0275directiveInject(r,8),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(C.FN),t.\u0275\u0275directiveInject(E.zP),t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8),t.\u0275\u0275directiveInject(h,8),t.\u0275\u0275injectAttribute("tabindex"))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:w,selectors:[["mat-radio-button"]],viewQuery:function(D,O){if(1&D&&(t.\u0275\u0275viewQuery(s,5),t.\u0275\u0275viewQuery(f,7,t.ElementRef)),2&D){let T;t.\u0275\u0275queryRefresh(T=t.\u0275\u0275loadQuery())&&(O._inputElement=T.first),t.\u0275\u0275queryRefresh(T=t.\u0275\u0275loadQuery())&&(O._rippleTrigger=T.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(D,O){1&D&&t.\u0275\u0275listener("focus",function(){return O._inputElement.nativeElement.focus()}),2&D&&(t.\u0275\u0275attribute("id",O.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),t.\u0275\u0275classProp("mat-primary","primary"===O.color)("mat-accent","accent"===O.color)("mat-warn","warn"===O.color)("mat-mdc-radio-checked",O.checked)("_mat-animation-noopable",O._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[t.\u0275\u0275InputFlags.None,"aria-label","ariaLabel"],ariaLabelledby:[t.\u0275\u0275InputFlags.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[t.\u0275\u0275InputFlags.None,"aria-describedby","ariaDescribedby"],disableRipple:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",t.booleanAttribute],tabIndex:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"tabIndex","tabIndex",I=>null==I?0:(0,t.numberAttribute)(I)],checked:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"checked","checked",t.booleanAttribute],value:"value",labelPosition:"labelPosition",disabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",t.booleanAttribute],required:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"required","required",t.booleanAttribute],color:"color"},outputs:{change:"change"},exportAs:["matRadioButton"],standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:d,decls:13,vars:16,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(D,O){if(1&D){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275projectionDef(),t.\u0275\u0275elementStart(0,"div",2,0)(2,"div",3)(3,"div",4),t.\u0275\u0275listener("click",function(S){return t.\u0275\u0275restoreView(T),t.\u0275\u0275resetView(O._onTouchTargetClick(S))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"input",5,1),t.\u0275\u0275listener("change",function(S){return t.\u0275\u0275restoreView(T),t.\u0275\u0275resetView(O._onInputInteraction(S))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"div",6),t.\u0275\u0275element(7,"div",7)(8,"div",8),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(9,"div",9),t.\u0275\u0275element(10,"div",10),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(11,"label",11),t.\u0275\u0275projection(12),t.\u0275\u0275elementEnd()()}2&D&&(t.\u0275\u0275property("labelPosition",O.labelPosition),t.\u0275\u0275advance(2),t.\u0275\u0275classProp("mdc-radio--disabled",O.disabled),t.\u0275\u0275advance(2),t.\u0275\u0275property("id",O.inputId)("checked",O.checked)("disabled",O.disabled)("required",O.required),t.\u0275\u0275attribute("name",O.name)("value",O.value)("aria-label",O.ariaLabel)("aria-labelledby",O.ariaLabelledby)("aria-describedby",O.ariaDescribedby),t.\u0275\u0275advance(5),t.\u0275\u0275property("matRippleTrigger",O._rippleTrigger.nativeElement)("matRippleDisabled",O._isRippleDisabled())("matRippleCentered",!0),t.\u0275\u0275advance(2),t.\u0275\u0275property("for",O.inputId))},dependencies:[_.MatRipple,_._MatInternalFormField],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);right:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);left:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0})}return w})(),M=(()=>{class w{static#e=this.\u0275fac=function(D){return new(D||w)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:w});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[_.MatCommonModule,b.CommonModule,_.MatRippleModule,y,_.MatCommonModule]})}return w})()},2798:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_SELECT_CONFIG:()=>K,MAT_SELECT_SCROLL_STRATEGY:()=>V,MAT_SELECT_SCROLL_STRATEGY_PROVIDER:()=>ce,MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY:()=>W,MAT_SELECT_TRIGGER:()=>ue,MatError:()=>u.MatError,MatFormField:()=>u.MatFormField,MatHint:()=>u.MatHint,MatLabel:()=>u.MatLabel,MatOptgroup:()=>E.MatOptgroup,MatOption:()=>E.MatOption,MatPrefix:()=>u.MatPrefix,MatSelect:()=>Ye,MatSelectChange:()=>ve,MatSelectModule:()=>ct,MatSelectTrigger:()=>pt,MatSuffix:()=>u.MatSuffix,matSelectAnimations:()=>ee});var t=g(7987),_=g(177),C=g(4438),E=g(6600),u=g(2102),b=g(5478),s=g(6039),f=g(8203),d=g(5024),l=g(7336),c=g(9417),o=g(1413),r=g(9030),h=g(7786),p=g(9172),v=g(5558),y=g(5964),M=g(6354),w=g(3294),k=g(6977),I=g(6697),D=g(9969);const O=["trigger"],T=["panel"],U=[[["mat-select-trigger"]],"*"],S=["mat-select-trigger","*"];function R(Ct,We){if(1&Ct&&(C.\u0275\u0275elementStart(0,"span",4),C.\u0275\u0275text(1),C.\u0275\u0275elementEnd()),2&Ct){const Ne=C.\u0275\u0275nextContext();C.\u0275\u0275advance(),C.\u0275\u0275textInterpolate(Ne.placeholder)}}function N(Ct,We){1&Ct&&C.\u0275\u0275projection(0)}function A(Ct,We){if(1&Ct&&(C.\u0275\u0275elementStart(0,"span",11),C.\u0275\u0275text(1),C.\u0275\u0275elementEnd()),2&Ct){const Ne=C.\u0275\u0275nextContext(2);C.\u0275\u0275advance(),C.\u0275\u0275textInterpolate(Ne.triggerValue)}}function F(Ct,We){if(1&Ct&&(C.\u0275\u0275elementStart(0,"span",10),C.\u0275\u0275template(1,N,1,0)(2,A,2,1),C.\u0275\u0275elementEnd()),2&Ct){const Ne=C.\u0275\u0275nextContext();C.\u0275\u0275advance(),C.\u0275\u0275conditional(1,Ne.customTrigger?1:2)}}function Y(Ct,We){if(1&Ct){const Ne=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementStart(0,"div",12,1),C.\u0275\u0275listener("@transformPanel.done",function(rt){C.\u0275\u0275restoreView(Ne);const Ee=C.\u0275\u0275nextContext();return C.\u0275\u0275resetView(Ee._panelDoneAnimatingStream.next(rt.toState))})("keydown",function(rt){C.\u0275\u0275restoreView(Ne);const Ee=C.\u0275\u0275nextContext();return C.\u0275\u0275resetView(Ee._handleKeydown(rt))}),C.\u0275\u0275projection(2,1),C.\u0275\u0275elementEnd()}if(2&Ct){const Ne=C.\u0275\u0275nextContext();C.\u0275\u0275classMapInterpolate1("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",Ne._getPanelTheme(),""),C.\u0275\u0275property("ngClass",Ne.panelClass)("@transformPanel","showing"),C.\u0275\u0275attribute("id",Ne.id+"-panel")("aria-multiselectable",Ne.multiple)("aria-label",Ne.ariaLabel||null)("aria-labelledby",Ne._getPanelAriaLabelledby())}}const ee={transformPanelWrap:(0,D.hZ)("transformPanelWrap",[(0,D.kY)("* => void",(0,D.P)("@transformPanel",[(0,D.MA)()],{optional:!0}))]),transformPanel:(0,D.hZ)("transformPanel",[(0,D.wk)("void",(0,D.iF)({opacity:0,transform:"scale(1, 0.8)"})),(0,D.kY)("void => showing",(0,D.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,D.iF)({opacity:1,transform:"scale(1, 1)"}))),(0,D.kY)("* => void",(0,D.i0)("100ms linear",(0,D.iF)({opacity:0})))])};let G=0;const V=new C.InjectionToken("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const Ct=(0,C.inject)(t.hJ);return()=>Ct.scrollStrategies.reposition()}});function W(Ct){return()=>Ct.scrollStrategies.reposition()}const K=new C.InjectionToken("MAT_SELECT_CONFIG"),ce={provide:V,deps:[t.hJ],useFactory:W},ue=new C.InjectionToken("MatSelectTrigger");class ve{constructor(We,Ne){this.source=We,this.value=Ne}}let Ye=(()=>{class Ct{_scrollOptionIntoView(Ne){const Ie=this.options.toArray()[Ne];if(Ie){const rt=this.panel.nativeElement,Ee=(0,E._countGroupLabelsBeforeOption)(Ne,this.options,this.optionGroups),be=Ie._getHostElement();rt.scrollTop=0===Ne&&1===Ee?0:(0,E._getOptionScrollPosition)(be.offsetTop,be.offsetHeight,rt.scrollTop,rt.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(Ne){return new ve(this,Ne)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(Ne){this._hideSingleSelectionIndicator=Ne,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(Ne){this._placeholder=Ne,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(c.Validators.required)??!1}set required(Ne){this._required=Ne,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(Ne){this._multiple=Ne}get compareWith(){return this._compareWith}set compareWith(Ne){this._compareWith=Ne,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(Ne){this._assignValue(Ne)&&this._onChange(Ne)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(Ne){this._errorStateTracker.matcher=Ne}get id(){return this._id}set id(Ne){this._id=Ne||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(Ne){this._errorStateTracker.errorState=Ne}constructor(Ne,Ie,rt,Ee,be,Se,Q,pe,Re,bt,it,ye,He,De){this._viewportRuler=Ne,this._changeDetectorRef=Ie,this._elementRef=be,this._dir=Se,this._parentFormField=Re,this.ngControl=bt,this._liveAnnouncer=He,this._defaultOptions=De,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(st,xt)=>st===xt,this._uid="mat-select-"+G++,this._triggerAriaLabelledBy=null,this._destroy=new o.B,this.stateChanges=new o.B,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+G++,this._panelDoneAnimatingStream=new o.B,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new o.B,this.optionSelectionChanges=(0,r.v)(()=>{const st=this.options;return st?st.changes.pipe((0,p.Z)(st),(0,v.n)(()=>(0,h.h)(...st.map(xt=>xt.onSelectionChange)))):this._initialized.pipe((0,v.n)(()=>this.optionSelectionChanges))}),this.openedChange=new C.EventEmitter,this._openedStream=this.openedChange.pipe((0,y.p)(st=>st),(0,M.T)(()=>{})),this._closedStream=this.openedChange.pipe((0,y.p)(st=>!st),(0,M.T)(()=>{})),this.selectionChange=new C.EventEmitter,this.valueChange=new C.EventEmitter,this._trackedModal=null,this._skipPredicate=st=>!this.panelOpen&&st.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),null!=De?.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=De.typeaheadDebounceInterval),this._errorStateTracker=new E._ErrorStateTracker(Ee,bt,pe,Q,this.stateChanges),this._scrollStrategyFactory=ye,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(it)||0,this.id=this.id}ngOnInit(){this._selectionModel=new d.CB(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,w.F)(),(0,k.Q)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe((0,k.Q)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe((0,k.Q)(this._destroy)).subscribe(Ne=>{Ne.added.forEach(Ie=>Ie.select()),Ne.removed.forEach(Ie=>Ie.deselect())}),this.options.changes.pipe((0,p.Z)(null),(0,k.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const Ne=this._getTriggerAriaLabelledby(),Ie=this.ngControl;if(Ne!==this._triggerAriaLabelledBy){const rt=this._elementRef.nativeElement;this._triggerAriaLabelledBy=Ne,Ne?rt.setAttribute("aria-labelledby",Ne):rt.removeAttribute("aria-labelledby")}Ie&&(this._previousControl!==Ie.control&&(void 0!==this._previousControl&&null!==Ie.disabled&&Ie.disabled!==this.disabled&&(this.disabled=Ie.disabled),this._previousControl=Ie.control),this.updateErrorState())}ngOnChanges(Ne){(Ne.disabled||Ne.userAriaDescribedBy)&&this.stateChanges.next(),Ne.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){const Ne=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!Ne)return;const Ie=`${this.id}-panel`;this._trackedModal&&(0,s.Ae)(this._trackedModal,"aria-owns",Ie),(0,s.px)(Ne,"aria-owns",Ie),this._trackedModal=Ne}_clearFromModal(){this._trackedModal&&((0,s.Ae)(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(Ne){this._assignValue(Ne)}registerOnChange(Ne){this._onChange=Ne}registerOnTouched(Ne){this._onTouched=Ne}setDisabledState(Ne){this.disabled=Ne,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const Ne=this._selectionModel.selected.map(Ie=>Ie.viewValue);return this._isRtl()&&Ne.reverse(),Ne.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(Ne){this.disabled||(this.panelOpen?this._handleOpenKeydown(Ne):this._handleClosedKeydown(Ne))}_handleClosedKeydown(Ne){const Ie=Ne.keyCode,rt=Ie===l.n6||Ie===l.i7||Ie===l.UQ||Ie===l.LE,Ee=Ie===l.Fm||Ie===l.t6,be=this._keyManager;if(!be.isTyping()&&Ee&&!(0,l.rp)(Ne)||(this.multiple||Ne.altKey)&&rt)Ne.preventDefault(),this.open();else if(!this.multiple){const Se=this.selected;be.onKeydown(Ne);const Q=this.selected;Q&&Se!==Q&&this._liveAnnouncer.announce(Q.viewValue,1e4)}}_handleOpenKeydown(Ne){const Ie=this._keyManager,rt=Ne.keyCode,Ee=rt===l.n6||rt===l.i7,be=Ie.isTyping();if(Ee&&Ne.altKey)Ne.preventDefault(),this.close();else if(be||rt!==l.Fm&&rt!==l.t6||!Ie.activeItem||(0,l.rp)(Ne))if(!be&&this._multiple&&rt===l.A&&Ne.ctrlKey){Ne.preventDefault();const Se=this.options.some(Q=>!Q.disabled&&!Q.selected);this.options.forEach(Q=>{Q.disabled||(Se?Q.select():Q.deselect())})}else{const Se=Ie.activeItemIndex;Ie.onKeydown(Ne),this._multiple&&Ee&&Ne.shiftKey&&Ie.activeItem&&Ie.activeItemIndex!==Se&&Ie.activeItem._selectViaInteraction()}else Ne.preventDefault(),Ie.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,I.s)(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.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(Ne){if(this.options.forEach(Ie=>Ie.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&Ne)Array.isArray(Ne),Ne.forEach(Ie=>this._selectOptionByValue(Ie)),this._sortValues();else{const Ie=this._selectOptionByValue(Ne);Ie?this._keyManager.updateActiveItem(Ie):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(Ne){const Ie=this.options.find(rt=>{if(this._selectionModel.isSelected(rt))return!1;try{return null!=rt.value&&this._compareWith(rt.value,Ne)}catch{return!1}});return Ie&&this._selectionModel.select(Ie),Ie}_assignValue(Ne){return!!(Ne!==this._value||this._multiple&&Array.isArray(Ne))&&(this.options&&this._setSelectionByValue(Ne),this._value=Ne,!0)}_getOverlayWidth(Ne){return"auto"===this.panelWidth?(Ne instanceof t.$Q?Ne.elementRef:Ne||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const Ne of this.options)Ne._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new s.Au(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const Ne=(0,h.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,k.Q)(Ne)).subscribe(Ie=>{this._onSelect(Ie.source,Ie.isUserInput),Ie.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,h.h)(...this.options.map(Ie=>Ie._stateChanges)).pipe((0,k.Q)(Ne)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(Ne,Ie){const rt=this._selectionModel.isSelected(Ne);null!=Ne.value||this._multiple?(rt!==Ne.selected&&(Ne.selected?this._selectionModel.select(Ne):this._selectionModel.deselect(Ne)),Ie&&this._keyManager.setActiveItem(Ne),this.multiple&&(this._sortValues(),Ie&&this.focus())):(Ne.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(Ne.value)),rt!==this._selectionModel.isSelected(Ne)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const Ne=this.options.toArray();this._selectionModel.sort((Ie,rt)=>this.sortComparator?this.sortComparator(Ie,rt,Ne):Ne.indexOf(Ie)-Ne.indexOf(rt)),this.stateChanges.next()}}_propagateChanges(Ne){let Ie;Ie=this.multiple?this.selected.map(rt=>rt.value):this.selected?this.selected.value:Ne,this._value=Ie,this.valueChange.emit(Ie),this._onChange(Ie),this.selectionChange.emit(this._getChangeEvent(Ie)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let Ne=-1;for(let Ie=0;Ie0}focus(Ne){this._elementRef.nativeElement.focus(Ne)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const Ne=this._parentFormField?.getLabelId();return this.ariaLabelledby?(Ne?Ne+" ":"")+this.ariaLabelledby:Ne}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const Ne=this._parentFormField?.getLabelId();let Ie=(Ne?Ne+" ":"")+this._valueId;return this.ariaLabelledby&&(Ie+=" "+this.ariaLabelledby),Ie}_panelDoneAnimating(Ne){this.openedChange.emit(Ne)}setDescribedByIds(Ne){Ne.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Ne.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static#e=this.\u0275fac=function(Ie){return new(Ie||Ct)(C.\u0275\u0275directiveInject(b.Xj),C.\u0275\u0275directiveInject(C.ChangeDetectorRef),C.\u0275\u0275directiveInject(C.NgZone),C.\u0275\u0275directiveInject(E.ErrorStateMatcher),C.\u0275\u0275directiveInject(C.ElementRef),C.\u0275\u0275directiveInject(f.dS,8),C.\u0275\u0275directiveInject(c.NgForm,8),C.\u0275\u0275directiveInject(c.FormGroupDirective,8),C.\u0275\u0275directiveInject(u.MAT_FORM_FIELD,8),C.\u0275\u0275directiveInject(c.NgControl,10),C.\u0275\u0275injectAttribute("tabindex"),C.\u0275\u0275directiveInject(V),C.\u0275\u0275directiveInject(s.Ai),C.\u0275\u0275directiveInject(K,8))};static#t=this.\u0275cmp=C.\u0275\u0275defineComponent({type:Ct,selectors:[["mat-select"]],contentQueries:function(Ie,rt,Ee){if(1&Ie&&(C.\u0275\u0275contentQuery(Ee,ue,5),C.\u0275\u0275contentQuery(Ee,E.MatOption,5),C.\u0275\u0275contentQuery(Ee,E.MAT_OPTGROUP,5)),2&Ie){let be;C.\u0275\u0275queryRefresh(be=C.\u0275\u0275loadQuery())&&(rt.customTrigger=be.first),C.\u0275\u0275queryRefresh(be=C.\u0275\u0275loadQuery())&&(rt.options=be),C.\u0275\u0275queryRefresh(be=C.\u0275\u0275loadQuery())&&(rt.optionGroups=be)}},viewQuery:function(Ie,rt){if(1&Ie&&(C.\u0275\u0275viewQuery(O,5),C.\u0275\u0275viewQuery(T,5),C.\u0275\u0275viewQuery(t.WB,5)),2&Ie){let Ee;C.\u0275\u0275queryRefresh(Ee=C.\u0275\u0275loadQuery())&&(rt.trigger=Ee.first),C.\u0275\u0275queryRefresh(Ee=C.\u0275\u0275loadQuery())&&(rt.panel=Ee.first),C.\u0275\u0275queryRefresh(Ee=C.\u0275\u0275loadQuery())&&(rt._overlayDir=Ee.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(Ie,rt){1&Ie&&C.\u0275\u0275listener("keydown",function(be){return rt._handleKeydown(be)})("focus",function(){return rt._onFocus()})("blur",function(){return rt._onBlur()}),2&Ie&&(C.\u0275\u0275attribute("id",rt.id)("tabindex",rt.disabled?-1:rt.tabIndex)("aria-controls",rt.panelOpen?rt.id+"-panel":null)("aria-expanded",rt.panelOpen)("aria-label",rt.ariaLabel||null)("aria-required",rt.required.toString())("aria-disabled",rt.disabled.toString())("aria-invalid",rt.errorState)("aria-activedescendant",rt._getAriaActiveDescendant()),C.\u0275\u0275classProp("mat-mdc-select-disabled",rt.disabled)("mat-mdc-select-invalid",rt.errorState)("mat-mdc-select-required",rt.required)("mat-mdc-select-empty",rt.empty)("mat-mdc-select-multiple",rt.multiple))},inputs:{userAriaDescribedBy:[C.\u0275\u0275InputFlags.None,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",C.booleanAttribute],disableRipple:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",C.booleanAttribute],tabIndex:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"tabIndex","tabIndex",Ne=>null==Ne?0:(0,C.numberAttribute)(Ne)],hideSingleSelectionIndicator:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",C.booleanAttribute],placeholder:"placeholder",required:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"required","required",C.booleanAttribute],multiple:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"multiple","multiple",C.booleanAttribute],disableOptionCentering:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableOptionCentering","disableOptionCentering",C.booleanAttribute],compareWith:"compareWith",value:"value",ariaLabel:[C.\u0275\u0275InputFlags.None,"aria-label","ariaLabel"],ariaLabelledby:[C.\u0275\u0275InputFlags.None,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"typeaheadDebounceInterval","typeaheadDebounceInterval",C.numberAttribute],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[C.\u0275\u0275ProvidersFeature([{provide:u.MatFormFieldControl,useExisting:Ct},{provide:E.MAT_OPTION_PARENT_COMPONENT,useExisting:Ct}]),C.\u0275\u0275InputTransformsFeature,C.\u0275\u0275NgOnChangesFeature,C.\u0275\u0275StandaloneFeature],ngContentSelectors:S,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(Ie,rt){if(1&Ie){const Ee=C.\u0275\u0275getCurrentView();C.\u0275\u0275projectionDef(U),C.\u0275\u0275elementStart(0,"div",2,0),C.\u0275\u0275listener("click",function(){return C.\u0275\u0275restoreView(Ee),C.\u0275\u0275resetView(rt.open())}),C.\u0275\u0275elementStart(3,"div",3),C.\u0275\u0275template(4,R,2,1,"span",4)(5,F,3,1),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(6,"div",5)(7,"div",6),C.\u0275\u0275namespaceSVG(),C.\u0275\u0275elementStart(8,"svg",7),C.\u0275\u0275element(9,"path",8),C.\u0275\u0275elementEnd()()()(),C.\u0275\u0275template(10,Y,3,9,"ng-template",9),C.\u0275\u0275listener("backdropClick",function(){return C.\u0275\u0275restoreView(Ee),C.\u0275\u0275resetView(rt.close())})("attach",function(){return C.\u0275\u0275restoreView(Ee),C.\u0275\u0275resetView(rt._onAttached())})("detach",function(){return C.\u0275\u0275restoreView(Ee),C.\u0275\u0275resetView(rt.close())})}if(2&Ie){const Ee=C.\u0275\u0275reference(1);C.\u0275\u0275advance(3),C.\u0275\u0275attribute("id",rt._valueId),C.\u0275\u0275advance(),C.\u0275\u0275conditional(4,rt.empty?4:5),C.\u0275\u0275advance(6),C.\u0275\u0275property("cdkConnectedOverlayPanelClass",rt._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",rt._scrollStrategy)("cdkConnectedOverlayOrigin",rt._preferredOverlayOrigin||Ee)("cdkConnectedOverlayOpen",rt.panelOpen)("cdkConnectedOverlayPositions",rt._positions)("cdkConnectedOverlayWidth",rt._overlayWidth)}},dependencies:[t.$Q,t.WB,_.NgClass],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[ee.transformPanel]},changeDetection:0})}return Ct})(),pt=(()=>{class Ct{static#e=this.\u0275fac=function(Ie){return new(Ie||Ct)};static#t=this.\u0275dir=C.\u0275\u0275defineDirective({type:Ct,selectors:[["mat-select-trigger"]],standalone:!0,features:[C.\u0275\u0275ProvidersFeature([{provide:ue,useExisting:Ct}])]})}return Ct})(),ct=(()=>{class Ct{static#e=this.\u0275fac=function(Ie){return new(Ie||Ct)};static#t=this.\u0275mod=C.\u0275\u0275defineNgModule({type:Ct});static#n=this.\u0275inj=C.\u0275\u0275defineInjector({providers:[ce],imports:[_.CommonModule,t.z_,E.MatOptionModule,E.MatCommonModule,b.Gj,u.MatFormFieldModule,E.MatOptionModule,E.MatCommonModule]})}return Ct})()},450:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS:()=>f,MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR:()=>r,MAT_SLIDE_TOGGLE_VALUE_ACCESSOR:()=>d,MatSlideToggle:()=>o,MatSlideToggleChange:()=>l,MatSlideToggleModule:()=>v,MatSlideToggleRequiredValidator:()=>h,_MatSlideToggleRequiredValidatorModule:()=>p});var t=g(4438),_=g(9417),C=g(6039),E=g(6600);const u=["switch"],b=["*"];function s(y,M){1&y&&(t.\u0275\u0275elementStart(0,"div",10),t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(1,"svg",12),t.\u0275\u0275element(2,"path",13),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"svg",14),t.\u0275\u0275element(4,"path",15),t.\u0275\u0275elementEnd()())}const f=new t.InjectionToken("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),d={provide:_.NG_VALUE_ACCESSOR,useExisting:(0,t.forwardRef)(()=>o),multi:!0};class l{constructor(M,w){this.source=M,this.checked=w}}let c=0,o=(()=>{class y{_createChangeEvent(w){return new l(this,w)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(w){this._checked=w,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(w,k,I,D,O,T){this._elementRef=w,this._focusMonitor=k,this._changeDetectorRef=I,this.defaults=O,this._onChange=U=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new t.EventEmitter,this.toggleChange=new t.EventEmitter,this.tabIndex=parseInt(D)||0,this.color=O.color||"accent",this._noopAnimations="NoopAnimations"===T,this.id=this._uniqueId="mat-mdc-slide-toggle-"+ ++c,this.hideIcon=O.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(w=>{"keyboard"===w||"program"===w?(this._focused=!0,this._changeDetectorRef.markForCheck()):w||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(w){w.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(w){this.checked=!!w}registerOnChange(w){this._onChange=w}registerOnTouched(w){this._onTouched=w}validate(w){return this.required&&!0!==w.value?{required:!0}:null}registerOnValidatorChange(w){this._validatorOnChange=w}setDisabledState(w){this.disabled=w,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new l(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static#e=this.\u0275fac=function(k){return new(k||y)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(C.FN),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275injectAttribute("tabindex"),t.\u0275\u0275directiveInject(f),t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:y,selectors:[["mat-slide-toggle"]],viewQuery:function(k,I){if(1&k&&t.\u0275\u0275viewQuery(u,5),2&k){let D;t.\u0275\u0275queryRefresh(D=t.\u0275\u0275loadQuery())&&(I._switchElement=D.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(k,I){2&k&&(t.\u0275\u0275hostProperty("id",I.id),t.\u0275\u0275attribute("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),t.\u0275\u0275classMap(I.color?"mat-"+I.color:""),t.\u0275\u0275classProp("mat-mdc-slide-toggle-focused",I._focused)("mat-mdc-slide-toggle-checked",I.checked)("_mat-animation-noopable",I._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[t.\u0275\u0275InputFlags.None,"aria-label","ariaLabel"],ariaLabelledby:[t.\u0275\u0275InputFlags.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[t.\u0275\u0275InputFlags.None,"aria-describedby","ariaDescribedby"],required:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"required","required",t.booleanAttribute],color:"color",disabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",t.booleanAttribute],disableRipple:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",t.booleanAttribute],tabIndex:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"tabIndex","tabIndex",w=>null==w?0:(0,t.numberAttribute)(w)],checked:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"checked","checked",t.booleanAttribute],hideIcon:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"hideIcon","hideIcon",t.booleanAttribute]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([d,{provide:_.NG_VALIDATORS,useExisting:y,multi:!0}]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275NgOnChangesFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:b,decls:13,vars:24,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(k,I){if(1&k){const D=t.\u0275\u0275getCurrentView();t.\u0275\u0275projectionDef(),t.\u0275\u0275elementStart(0,"div",1)(1,"button",2,0),t.\u0275\u0275listener("click",function(){return t.\u0275\u0275restoreView(D),t.\u0275\u0275resetView(I._handleClick())}),t.\u0275\u0275element(3,"div",3),t.\u0275\u0275elementStart(4,"div",4)(5,"div",5)(6,"div",6),t.\u0275\u0275element(7,"div",7),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(8,"div",8),t.\u0275\u0275element(9,"div",9),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(10,s,5,0,"div",10),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(11,"label",11),t.\u0275\u0275listener("click",function(T){return t.\u0275\u0275restoreView(D),t.\u0275\u0275resetView(T.stopPropagation())}),t.\u0275\u0275projection(12),t.\u0275\u0275elementEnd()()}if(2&k){const D=t.\u0275\u0275reference(2);t.\u0275\u0275property("labelPosition",I.labelPosition),t.\u0275\u0275advance(),t.\u0275\u0275classProp("mdc-switch--selected",I.checked)("mdc-switch--unselected",!I.checked)("mdc-switch--checked",I.checked)("mdc-switch--disabled",I.disabled),t.\u0275\u0275property("tabIndex",I.disabled?-1:I.tabIndex)("disabled",I.disabled),t.\u0275\u0275attribute("id",I.buttonId)("name",I.name)("aria-label",I.ariaLabel)("aria-labelledby",I._getAriaLabelledBy())("aria-describedby",I.ariaDescribedby)("aria-required",I.required||null)("aria-checked",I.checked),t.\u0275\u0275advance(8),t.\u0275\u0275property("matRippleTrigger",D)("matRippleDisabled",I.disableRipple||I.disabled)("matRippleCentered",!0),t.\u0275\u0275advance(),t.\u0275\u0275conditional(10,I.hideIcon?-1:10),t.\u0275\u0275advance(),t.\u0275\u0275property("for",I.buttonId),t.\u0275\u0275attribute("id",I._labelId)}},dependencies:[E.MatRipple,E._MatInternalFormField],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}.mdc-switch{width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mdc-switch__handle{transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle:active .mdc-switch:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--selected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--unselected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch__track::after,.mdc-switch__track::before{border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color)}.mdc-switch--selected .mdc-switch__track::after,.mdc-switch--selected .mdc-switch__track::before{border-width:var(--mat-switch-selected-track-outline-width)}.mdc-switch--disabled .mdc-switch__track::after,.mdc-switch--disabled .mdc-switch__track::before{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}'],encapsulation:2,changeDetection:0})}return y})();const r={provide:_.NG_VALIDATORS,useExisting:(0,t.forwardRef)(()=>h),multi:!0};let h=(()=>{class y extends _.CheckboxRequiredValidator{static#e=this.\u0275fac=(()=>{let w;return function(I){return(w||(w=t.\u0275\u0275getInheritedFactory(y)))(I||y)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:y,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([r]),t.\u0275\u0275InheritDefinitionFeature]})}return y})(),p=(()=>{class y{static#e=this.\u0275fac=function(k){return new(k||y)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:y});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({})}return y})(),v=(()=>{class y{static#e=this.\u0275fac=function(k){return new(k||y)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:y});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[o,E.MatCommonModule,E.MatCommonModule]})}return y})()},3881:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MatSlider:()=>T,MatSliderChange:()=>D,MatSliderModule:()=>Y,MatSliderRangeThumb:()=>F,MatSliderThumb:()=>A,MatSliderVisualThumb:()=>O});var t=g(8203),_=g(6860),C=g(4438),E=g(6600),u=g(9417),b=g(1413);const s=["knob"],f=["valueIndicatorContainer"];function d(ee,ie){if(1&ee&&(C.\u0275\u0275elementStart(0,"div",2,1)(2,"div",5)(3,"span",6),C.\u0275\u0275text(4),C.\u0275\u0275elementEnd()()()),2&ee){const $=C.\u0275\u0275nextContext();C.\u0275\u0275advance(4),C.\u0275\u0275textInterpolate($.valueIndicatorText)}}const l=["trackActive"],c=["*"];function o(ee,ie){if(1&ee&&C.\u0275\u0275element(0,"div"),2&ee){const $=ie.$implicit,j=ie.$index,G=C.\u0275\u0275nextContext(3);C.\u0275\u0275classMap(0===$?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),C.\u0275\u0275styleProp("transform",G._calcTickMarkTransform(j))}}function r(ee,ie){if(1&ee&&C.\u0275\u0275repeaterCreate(0,o,1,4,"div",8,C.\u0275\u0275repeaterTrackByIdentity),2&ee){const $=C.\u0275\u0275nextContext(2);C.\u0275\u0275repeater($._tickMarks)}}function h(ee,ie){if(1&ee&&(C.\u0275\u0275elementStart(0,"div",6,1),C.\u0275\u0275template(2,r,2,0),C.\u0275\u0275elementEnd()),2&ee){const $=C.\u0275\u0275nextContext();C.\u0275\u0275advance(2),C.\u0275\u0275conditional(2,$._cachedWidth?2:-1)}}function p(ee,ie){if(1&ee&&C.\u0275\u0275element(0,"mat-slider-visual-thumb",7),2&ee){const $=C.\u0275\u0275nextContext();C.\u0275\u0275property("discrete",$.discrete)("thumbPosition",1)("valueIndicatorText",$.startValueIndicatorText)}}var v=function(ee){return ee[ee.START=1]="START",ee[ee.END=2]="END",ee}(v||{}),y=function(ee){return ee[ee.ACTIVE=0]="ACTIVE",ee[ee.INACTIVE=1]="INACTIVE",ee}(y||{});const M=new C.InjectionToken("_MatSlider"),w=new C.InjectionToken("_MatSliderThumb"),k=new C.InjectionToken("_MatSliderRangeThumb"),I=new C.InjectionToken("_MatSliderVisualThumb");class D{}let O=(()=>{class ee{constructor($,j,G,V){this._cdr=$,this._ngZone=j,this._slider=V,this._isHovered=!1,this._isActive=!1,this._isValueIndicatorVisible=!1,this._platform=(0,C.inject)(_.OD),this._onPointerMove=W=>{if(this._sliderInput._isFocused)return;const K=this._hostElement.getBoundingClientRect(),ce=this._slider._isCursorOnSliderThumb(W,K);this._isHovered=ce,ce?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)},this._onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)},this._onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")},this._onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")},this._onDragStart=W=>{0===W.button&&(this._isActive=!0,this._showActiveRipple())},this._onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef),this._platform.SAFARI&&this._showHoverRipple()},this._hostElement=G.nativeElement}ngAfterViewInit(){this._ripple.radius=24,this._sliderInput=this._slider._getInput(this.thumbPosition),this._sliderInputEl=this._sliderInput._hostElement;const $=this._sliderInputEl;this._ngZone.runOutsideAngular(()=>{$.addEventListener("pointermove",this._onPointerMove),$.addEventListener("pointerdown",this._onDragStart),$.addEventListener("pointerup",this._onDragEnd),$.addEventListener("pointerleave",this._onMouseLeave),$.addEventListener("focus",this._onFocus),$.addEventListener("blur",this._onBlur)})}ngOnDestroy(){const $=this._sliderInputEl;$&&($.removeEventListener("pointermove",this._onPointerMove),$.removeEventListener("pointerdown",this._onDragStart),$.removeEventListener("pointerup",this._onDragEnd),$.removeEventListener("pointerleave",this._onMouseLeave),$.removeEventListener("focus",this._onFocus),$.removeEventListener("blur",this._onBlur))}_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple($){return $?.state===E.RippleState.FADING_IN||$?.state===E.RippleState.VISIBLE}_showRipple($,j){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(this.thumbPosition===v.START?v.END:v.START)._showValueIndicator(),!this._slider._globalRippleOptions?.disabled||j))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:$,centered:!0,persistent:!0})}_hideRipple($){if($?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();const j=this._getSibling();j._isShowingAnyRipple()||(this._hideValueIndicator(),j._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(this.thumbPosition===v.START?v.END:v.START)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}static#e=this.\u0275fac=function(j){return new(j||ee)(C.\u0275\u0275directiveInject(C.ChangeDetectorRef),C.\u0275\u0275directiveInject(C.NgZone),C.\u0275\u0275directiveInject(C.ElementRef),C.\u0275\u0275directiveInject(M))};static#t=this.\u0275cmp=C.\u0275\u0275defineComponent({type:ee,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(j,G){if(1&j&&(C.\u0275\u0275viewQuery(E.MatRipple,5),C.\u0275\u0275viewQuery(s,5),C.\u0275\u0275viewQuery(f,5)),2&j){let V;C.\u0275\u0275queryRefresh(V=C.\u0275\u0275loadQuery())&&(G._ripple=V.first),C.\u0275\u0275queryRefresh(V=C.\u0275\u0275loadQuery())&&(G._knob=V.first),C.\u0275\u0275queryRefresh(V=C.\u0275\u0275loadQuery())&&(G._valueIndicatorContainer=V.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},standalone:!0,features:[C.\u0275\u0275ProvidersFeature([{provide:I,useExisting:ee}]),C.\u0275\u0275StandaloneFeature],decls:4,vars:2,consts:[["knob",""],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator-container"],[1,"mdc-slider__thumb-knob"],["matRipple","",1,"mat-mdc-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(j,G){1&j&&(C.\u0275\u0275template(0,d,5,1,"div",2),C.\u0275\u0275element(1,"div",3,0)(3,"div",4)),2&j&&(C.\u0275\u0275conditional(0,G.discrete?0:-1),C.\u0275\u0275advance(3),C.\u0275\u0275property("matRippleDisabled",!0))},dependencies:[E.MatRipple],styles:[".mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}"],encapsulation:2,changeDetection:0})}return ee})(),T=(()=>{class ee{get disabled(){return this._disabled}set disabled($){this._disabled=$;const j=this._getInput(v.END),G=this._getInput(v.START);j&&(j.disabled=this._disabled),G&&(G.disabled=this._disabled)}get discrete(){return this._discrete}set discrete($){this._discrete=$,this._updateValueIndicatorUIs()}get min(){return this._min}set min($){const j=isNaN($)?this._min:$;this._min!==j&&this._updateMin(j)}_updateMin($){const j=this._min;this._min=$,this._isRange?this._updateMinRange({old:j,new:$}):this._updateMinNonRange($),this._onMinMaxOrStepChange()}_updateMinRange($){const j=this._getInput(v.END),G=this._getInput(v.START),V=j.value,W=G.value;G.min=$.new,j.min=Math.max($.new,G.value),G.max=Math.min(j.max,j.value),G._updateWidthInactive(),j._updateWidthInactive(),$.new<$.old?this._onTranslateXChangeBySideEffect(j,G):this._onTranslateXChangeBySideEffect(G,j),V!==j.value&&this._onValueChange(j),W!==G.value&&this._onValueChange(G)}_updateMinNonRange($){const j=this._getInput(v.END);if(j){const G=j.value;j.min=$,j._updateThumbUIByValue(),this._updateTrackUI(j),G!==j.value&&this._onValueChange(j)}}get max(){return this._max}set max($){const j=isNaN($)?this._max:$;this._max!==j&&this._updateMax(j)}_updateMax($){const j=this._max;this._max=$,this._isRange?this._updateMaxRange({old:j,new:$}):this._updateMaxNonRange($),this._onMinMaxOrStepChange()}_updateMaxRange($){const j=this._getInput(v.END),G=this._getInput(v.START),V=j.value,W=G.value;j.max=$.new,G.max=Math.min($.new,j.value),j.min=G.value,j._updateWidthInactive(),G._updateWidthInactive(),$.new>$.old?this._onTranslateXChangeBySideEffect(G,j):this._onTranslateXChangeBySideEffect(j,G),V!==j.value&&this._onValueChange(j),W!==G.value&&this._onValueChange(G)}_updateMaxNonRange($){const j=this._getInput(v.END);if(j){const G=j.value;j.max=$,j._updateThumbUIByValue(),this._updateTrackUI(j),G!==j.value&&this._onValueChange(j)}}get step(){return this._step}set step($){const j=isNaN($)?this._step:$;this._step!==j&&this._updateStep(j)}_updateStep($){this._step=$,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange()}_updateStepRange(){const $=this._getInput(v.END),j=this._getInput(v.START),G=$.value,V=j.value,W=j.value;$.min=this._min,j.max=this._max,$.step=this._step,j.step=this._step,this._platform.SAFARI&&($.value=$.value,j.value=j.value),$.min=Math.max(this._min,j.value),j.max=Math.min(this._max,$.value),j._updateWidthInactive(),$._updateWidthInactive(),$.value`${ce}`,this._rippleRadius=24,this.startValueIndicatorText="",this.endValueIndicatorText="",this._isRange=!1,this._isRtl=!1,this._hasViewInitialized=!1,this._tickMarkTrackWidth=0,this._hasAnimation=!1,this._resizeTimer=null,this._platform=(0,C.inject)(_.OD),this._knobRadius=8,this._thumbsOverlap=!1,this._noopAnimations="NoopAnimations"===K,this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl="rtl"===this._dir.value}ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();const $=this._getInput(v.END),j=this._getInput(v.START);this._isRange=!!$&&!!j,this._cdr.detectChanges();const G=this._getThumb(v.END);this._rippleRadius=G._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._isRange?this._initUIRange($,j):this._initUINonRange($),this._updateTrackUI($),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges()}_initUINonRange($){$.initProps(),$.initUI(),this._updateValueIndicatorUI($),this._hasViewInitialized=!0,$._updateThumbUIByValue()}_initUIRange($,j){$.initProps(),$.initUI(),j.initProps(),j.initUI(),$._updateMinMax(),j._updateMinMax(),$._updateStaticStyles(),j._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,$._updateThumbUIByValue(),j._updateThumbUIByValue()}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null}_onDirChange(){this._isRtl="rtl"===this._dir.value,this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI()}_onDirChangeRange(){const $=this._getInput(v.END),j=this._getInput(v.START);$._setIsLeftThumb(),j._setIsLeftThumb(),$.translateX=$._calcTranslateXByValue(),j.translateX=j._calcTranslateXByValue(),$._updateStaticStyles(),j._updateStaticStyles(),$._updateWidthInactive(),j._updateWidthInactive(),$._updateThumbUIByValue(),j._updateThumbUIByValue()}_onDirChangeNonRange(){this._getInput(v.END)._updateThumbUIByValue()}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize())}),this._resizeObserver.observe(this._elementRef.nativeElement)})}_isActive(){return this._getThumb(v.START)._isActive||this._getThumb(v.END)._isActive}_getValue($=v.END){const j=this._getInput($);return j?j.value:this.min}_skipUpdate(){return!(!this._getInput(v.START)?._skipUIUpdate&&!this._getInput(v.END)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left}_setTrackActiveStyles($){const j=this._trackActive.nativeElement.style;j.left=$.left,j.right=$.right,j.transformOrigin=$.transformOrigin,j.transform=$.transform}_calcTickMarkTransform($){return`translateX(${$*(this._tickMarkTrackWidth/(this._tickMarks.length-1))}px`}_onTranslateXChange($){this._hasViewInitialized&&(this._updateThumbUI($),this._updateTrackUI($),this._updateOverlappingThumbUI($))}_onTranslateXChangeBySideEffect($,j){this._hasViewInitialized&&($._updateThumbUIByValue(),j._updateThumbUIByValue())}_onValueChange($){this._hasViewInitialized&&(this._updateValueIndicatorUI($),this._updateTickMarkUI(),this._cdr.detectChanges())}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){const $=this._getInput(v.END),j=this._getInput(v.START);$._updateThumbUIByValue(),j._updateThumbUIByValue(),$._updateStaticStyles(),j._updateStaticStyles(),$._updateMinMax(),j._updateMinMax(),$._updateWidthInactive(),j._updateWidthInactive()}else{const $=this._getInput(v.END);$&&$._updateThumbUIByValue()}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges()}}_areThumbsOverlapping(){const $=this._getInput(v.START),j=this._getInput(v.END);return!(!$||!j)&&j.translateX-$.translateX<20}_updateOverlappingThumbClassNames($){const j=$.getSibling(),G=this._getThumb($.thumbPosition);this._getThumb(j.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),G._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)}_updateOverlappingThumbUI($){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames($))}_updateThumbUI($){this._skipUpdate()||(this._getThumb($.thumbPosition===v.END?v.END:v.START)._hostElement.style.transform=`translateX(${$.translateX}px)`)}_updateValueIndicatorUI($){if(this._skipUpdate())return;const j=this.displayWith($.value);if(this._hasViewInitialized?$._valuetext=j:$._hostElement.setAttribute("aria-valuetext",j),this.discrete){$.thumbPosition===v.START?this.startValueIndicatorText=j:this.endValueIndicatorText=j;const G=this._getThumb($.thumbPosition);j.length<3?G._hostElement.classList.add("mdc-slider__thumb--short-value"):G._hostElement.classList.remove("mdc-slider__thumb--short-value")}}_updateValueIndicatorUIs(){const $=this._getInput(v.END),j=this._getInput(v.START);$&&this._updateValueIndicatorUI($),j&&this._updateValueIndicatorUI(j)}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;const $=this._step&&this._step>0?this._step:1,G=(Math.floor(this.max/$)*$-this.min)/(this.max-this.min);this._tickMarkTrackWidth=this._cachedWidth*G-6}_updateTrackUI($){this._skipUpdate()||(this._isRange?this._updateTrackUIRange($):this._updateTrackUINonRange($))}_updateTrackUIRange($){const j=$.getSibling();if(!j||!this._cachedWidth)return;const G=Math.abs(j.translateX-$.translateX)/this._cachedWidth;this._setTrackActiveStyles($._isLeftThumb&&this._cachedWidth?{left:"auto",right:this._cachedWidth-j.translateX+"px",transformOrigin:"right",transform:`scaleX(${G})`}:{left:`${j.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${G})`})}_updateTrackUINonRange($){this._setTrackActiveStyles(this._isRtl?{left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-$.fillPercentage})`}:{left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${$.fillPercentage})`})}_updateTickMarkUI(){if(!this.showTickMarks||void 0===this.step||void 0===this.min||void 0===this.max)return;const $=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange($):this._updateTickMarkUINonRange($),this._isRtl&&this._tickMarks.reverse()}_updateTickMarkUINonRange($){const j=this._getValue();let G=Math.max(Math.floor((j-this.min)/$),0),V=Math.max(Math.floor((this.max-j)/$),0);this._isRtl?G++:V++,this._tickMarks=Array(G).fill(y.ACTIVE).concat(Array(V).fill(y.INACTIVE))}_updateTickMarkUIRange($){const j=this._getValue(),G=this._getValue(v.START),V=Math.max(Math.floor((G-this.min)/$),0),W=Math.max(Math.floor((j-G)/$)+1,0),K=Math.max(Math.floor((this.max-j)/$),0);this._tickMarks=Array(V).fill(y.INACTIVE).concat(Array(W).fill(y.ACTIVE),Array(K).fill(y.INACTIVE))}_getInput($){return $===v.END&&this._input?this._input:this._inputs?.length?$===v.START?this._inputs.first:this._inputs.last:void 0}_getThumb($){return $===v.END?this._thumbs?.last:this._thumbs?.first}_setTransition($){this._hasAnimation=!this._platform.IOS&&$&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)}_isCursorOnSliderThumb($,j){const G=j.width/2,ce=$.clientY-(j.y+G);return Math.pow($.clientX-(j.x+G),2)+Math.pow(ce,2)A),multi:!0},N={provide:u.NG_VALUE_ACCESSOR,useExisting:(0,C.forwardRef)(()=>F),multi:!0};let A=(()=>{class ee{get value(){return(0,C.numberAttribute)(this._hostElement.value,0)}set value($){const j=($=isNaN($)?0:$)+"";this._hasSetInitialValue?this._isActive||this._setValue(j):this._initialValue=j}_setValue($){this._hostElement.value=$,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck()}get translateX(){return this._slider.min>=this._slider.max?(this._translateX=this._tickMarkOffset,this._translateX):(void 0===this._translateX&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX($){this._translateX=$}get min(){return(0,C.numberAttribute)(this._hostElement.min,0)}set min($){this._hostElement.min=$+"",this._cdr.detectChanges()}get max(){return(0,C.numberAttribute)(this._hostElement.max,0)}set max($){this._hostElement.max=$+"",this._cdr.detectChanges()}get step(){return(0,C.numberAttribute)(this._hostElement.step,0)}set step($){this._hostElement.step=$+"",this._cdr.detectChanges()}get disabled(){return(0,C.booleanAttribute)(this._hostElement.disabled)}set disabled($){this._hostElement.disabled=$,this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?0===this._translateX?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_setIsFocused($){this._isFocused=$}constructor($,j,G,V){this._ngZone=$,this._elementRef=j,this._cdr=G,this._slider=V,this.valueChange=new C.EventEmitter,this.dragStart=new C.EventEmitter,this.dragEnd=new C.EventEmitter,this.thumbPosition=v.END,this._knobRadius=8,this._tickMarkOffset=3,this._isActive=!1,this._isFocused=!1,this._hasSetInitialValue=!1,this._destroyed=new b.B,this._skipUIUpdate=!1,this._onTouchedFn=()=>{},this._isControlInitialized=!1,this._platform=(0,C.inject)(_.OD),this._hostElement=j.nativeElement,this._ngZone.runOutsideAngular(()=>{this._hostElement.addEventListener("pointerdown",this._onPointerDown.bind(this)),this._hostElement.addEventListener("pointermove",this._onPointerMove.bind(this)),this._hostElement.addEventListener("pointerup",this._onPointerUp.bind(this))})}ngOnDestroy(){this._hostElement.removeEventListener("pointerdown",this._onPointerDown),this._hostElement.removeEventListener("pointermove",this._onPointerMove),this._hostElement.removeEventListener("pointerup",this._onPointerUp),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,void 0===this._initialValue?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._slider._setTransition(!1),this._slider._updateTrackUI(this),this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown($){if(!this.disabled&&0===$.button){if(this._platform.IOS){const j=this._slider._isCursorOnSliderThumb($,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());return this._isActive=j,this._updateWidthActive(),void this._slider._updateDimensions()}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent($,{withAnimation:!0}),this.disabled||(this._handleValueCorrection($),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection($){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue($)},0)}_fixValue($){const j=$.clientX-this._slider._cachedLeft,G=this._slider._cachedWidth,V=0===this._slider.step?1:this._slider.step,W=Math.floor((this._slider.max-this._slider.min)/V),ue=Math.round((this._slider._isRtl?1-j/G:j/G)*W)/W*(this._slider.max-this._slider.min)+this._slider.min,ve=Math.round(ue/V)*V;if(ve===this.value)return this._slider._onValueChange(this),void(this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent($,{withAnimation:this._slider._hasAnimation}));this.value=ve,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent($,{withAnimation:this._slider._hasAnimation})}_onPointerMove($){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent($)}_onPointerUp(){this._isActive&&(this._isActive=!1,this._platform.SAFARI&&this._setIsFocused(!1),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp($){const j=this._tickMarkOffset;return Math.max(Math.min($,this._slider._cachedWidth-this._tickMarkOffset),j)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*(this._slider._cachedWidth-2*this._tickMarkOffset)+this._tickMarkOffset:this.percentage*(this._slider._cachedWidth-2*this._tickMarkOffset)+this._tickMarkOffset}_calcTranslateXByPointerEvent($){return $.clientX-this._slider._cachedLeft}_updateWidthActive(){}_updateWidthInactive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding-2*this._tickMarkOffset}px)`,this._hostElement.style.left=`-${this._slider._rippleRadius-this._tickMarkOffset}px`}_updateThumbUIByValue($){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI($)}_updateThumbUIByPointerEvent($,j){this.translateX=this._clamp(this._calcTranslateXByPointerEvent($)),this._updateThumbUI(j)}_updateThumbUI($){this._slider._setTransition(!!$?.withAnimation),this._slider._onTranslateXChange(this)}writeValue($){(this._isControlInitialized||null!==$)&&(this.value=$)}registerOnChange($){this._onChangeFn=$,this._isControlInitialized=!0}registerOnTouched($){this._onTouchedFn=$}setDisabledState($){this.disabled=$}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}static#e=this.\u0275fac=function(j){return new(j||ee)(C.\u0275\u0275directiveInject(C.NgZone),C.\u0275\u0275directiveInject(C.ElementRef),C.\u0275\u0275directiveInject(C.ChangeDetectorRef),C.\u0275\u0275directiveInject(M))};static#t=this.\u0275dir=C.\u0275\u0275defineDirective({type:ee,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(j,G){1&j&&C.\u0275\u0275listener("change",function(){return G._onChange()})("input",function(){return G._onInput()})("blur",function(){return G._onBlur()})("focus",function(){return G._onFocus()}),2&j&&C.\u0275\u0275attribute("aria-valuetext",G._valuetext)},inputs:{value:[C.\u0275\u0275InputFlags.HasDecoratorInputTransform,"value","value",C.numberAttribute]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],standalone:!0,features:[C.\u0275\u0275ProvidersFeature([R,{provide:w,useExisting:ee}]),C.\u0275\u0275InputTransformsFeature]})}return ee})(),F=(()=>{class ee extends A{getSibling(){return this._sibling||(this._sibling=this._slider._getInput(this._isEndThumb?v.START:v.END)),this._sibling}getMinPos(){const $=this.getSibling();return!this._isLeftThumb&&$?$.translateX:this._tickMarkOffset}getMaxPos(){const $=this.getSibling();return this._isLeftThumb&&$?$.translateX:this._slider._cachedWidth-this._tickMarkOffset}_setIsLeftThumb(){this._isLeftThumb=this._isEndThumb&&this._slider._isRtl||!this._isEndThumb&&!this._slider._isRtl}constructor($,j,G,V){super($,G,V,j),this._cdr=V,this._isEndThumb=this._hostElement.hasAttribute("matSliderEndThumb"),this._setIsLeftThumb(),this.thumbPosition=this._isEndThumb?v.END:v.START}_getDefaultValue(){return this._isEndThumb&&this._slider._isRange?this.max:this.min}_onInput(){super._onInput(),this._updateSibling(),this._isActive||this._updateWidthInactive()}_onNgControlValueChange(){super._onNgControlValueChange(),this.getSibling()?._updateMinMax()}_onPointerDown($){this.disabled||0!==$.button||(this._sibling&&(this._sibling._updateWidthActive(),this._sibling._hostElement.classList.add("mat-mdc-slider-input-no-pointer-events")),super._onPointerDown($))}_onPointerUp(){super._onPointerUp(),this._sibling&&setTimeout(()=>{this._sibling._updateWidthInactive(),this._sibling._hostElement.classList.remove("mat-mdc-slider-input-no-pointer-events")})}_onPointerMove($){super._onPointerMove($),!this._slider.step&&this._isActive&&this._updateSibling()}_fixValue($){super._fixValue($),this._sibling?._updateMinMax()}_clamp($){return Math.max(Math.min($,this.getMaxPos()),this.getMinPos())}_updateMinMax(){const $=this.getSibling();$&&(this._isEndThumb?(this.min=Math.max(this._slider.min,$.value),this.max=this._slider.max):(this.min=this._slider.min,this.max=Math.min(this._slider.max,$.value)))}_updateWidthActive(){const $=2*this._slider._rippleRadius-2*this._slider._inputPadding;this._hostElement.style.width=`${(this._slider._cachedWidth+this._slider._inputPadding-$-2*this._tickMarkOffset)*(this._slider.min{class ee{static#e=this.\u0275fac=function(j){return new(j||ee)};static#t=this.\u0275mod=C.\u0275\u0275defineNgModule({type:ee});static#n=this.\u0275inj=C.\u0275\u0275defineInjector({imports:[E.MatCommonModule,E.MatRippleModule]})}return ee})()},9159:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MatCell:()=>_t,MatCellDef:()=>de,MatColumnDef:()=>It,MatFooterCell:()=>an,MatFooterCellDef:()=>nt,MatFooterRow:()=>dt,MatFooterRowDef:()=>Fe,MatHeaderCell:()=>Gt,MatHeaderCellDef:()=>ke,MatHeaderRow:()=>je,MatHeaderRowDef:()=>Je,MatNoDataRow:()=>qt,MatRecycleRows:()=>Ge,MatRow:()=>At,MatRowDef:()=>et,MatTable:()=>te,MatTableDataSource:()=>jn,MatTableModule:()=>Oi,MatTextColumn:()=>Cn});var t=g(4438),_=g(8203),C=g(5024),E=g(6860),u=g(5478),b=g(177),s=g(1413),f=g(8455),d=g(4412),l=g(4402),c=g(7673),o=g(6977),r=g(6697);const h=[[["caption"]],[["colgroup"],["col"]],"*"],p=["caption","colgroup, col","*"];function v(at,Jt){1&at&&t.\u0275\u0275projection(0,2)}function y(at,Jt){1&at&&(t.\u0275\u0275elementStart(0,"thead",0),t.\u0275\u0275elementContainer(1,1),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(2,"tbody",0),t.\u0275\u0275elementContainer(3,2)(4,3),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"tfoot",0),t.\u0275\u0275elementContainer(6,4),t.\u0275\u0275elementEnd())}function M(at,Jt){1&at&&t.\u0275\u0275elementContainer(0,1)(1,2)(2,3)(3,4)}function w(at,Jt){if(1&at&&(t.\u0275\u0275elementStart(0,"th",3),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&at){const Be=t.\u0275\u0275nextContext();t.\u0275\u0275styleProp("text-align",Be.justify),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",Be.headerText," ")}}function k(at,Jt){if(1&at&&(t.\u0275\u0275elementStart(0,"td",4),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&at){const Be=Jt.$implicit,lt=t.\u0275\u0275nextContext();t.\u0275\u0275styleProp("text-align",lt.justify),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",lt.dataAccessor(Be,lt.name)," ")}}const I=new t.InjectionToken("CDK_TABLE"),D=new t.InjectionToken("text-column-options");let O=(()=>{class at{constructor(Be){this.template=Be}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.TemplateRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","cdkCellDef",""]],standalone:!0})}return at})(),T=(()=>{class at{constructor(Be){this.template=Be}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.TemplateRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","cdkHeaderCellDef",""]],standalone:!0})}return at})(),U=(()=>{class at{constructor(Be){this.template=Be}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.TemplateRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","cdkFooterCellDef",""]],standalone:!0})}return at})(),S=(()=>{class at{get name(){return this._name}set name(Be){this._setNameInput(Be)}get sticky(){return this._sticky}set sticky(Be){Be!==this._sticky&&(this._sticky=Be,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(Be){Be!==this._stickyEnd&&(this._stickyEnd=Be,this._hasStickyChanged=!0)}constructor(Be){this._table=Be,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){const Be=this._hasStickyChanged;return this.resetStickyChanged(),Be}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(Be){Be&&(this._name=Be,this.cssClassFriendlyName=Be.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(I,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","cdkColumnDef",""]],contentQueries:function(lt,Et,nn){if(1<&&(t.\u0275\u0275contentQuery(nn,O,5),t.\u0275\u0275contentQuery(nn,T,5),t.\u0275\u0275contentQuery(nn,U,5)),2<){let _n;t.\u0275\u0275queryRefresh(_n=t.\u0275\u0275loadQuery())&&(Et.cell=_n.first),t.\u0275\u0275queryRefresh(_n=t.\u0275\u0275loadQuery())&&(Et.headerCell=_n.first),t.\u0275\u0275queryRefresh(_n=t.\u0275\u0275loadQuery())&&(Et.footerCell=_n.first)}},inputs:{name:[t.\u0275\u0275InputFlags.None,"cdkColumnDef","name"],sticky:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"sticky","sticky",t.booleanAttribute],stickyEnd:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"stickyEnd","stickyEnd",t.booleanAttribute]},standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:at}]),t.\u0275\u0275InputTransformsFeature]})}return at})();class R{constructor(Jt,Be){Be.nativeElement.classList.add(...Jt._columnCssClassName)}}let N=(()=>{class at extends R{constructor(Be,lt){super(Be,lt)}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(S),t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature]})}return at})(),A=(()=>{class at extends R{constructor(Be,lt){super(Be,lt);const Et=Be._table?._getCellRole();Et&<.nativeElement.setAttribute("role",Et)}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(S),t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature]})}return at})(),F=(()=>{class at extends R{constructor(Be,lt){super(Be,lt);const Et=Be._table?._getCellRole();Et&<.nativeElement.setAttribute("role",Et)}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(S),t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature]})}return at})();class Y{constructor(){this.tasks=[],this.endTasks=[]}}const ee=new t.InjectionToken("_COALESCED_STYLE_SCHEDULER");let ie=(()=>{class at{constructor(Be){this._ngZone=Be,this._currentSchedule=null,this._destroyed=new s.B}schedule(Be){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(Be)}scheduleEnd(Be){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(Be)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Y,this._getScheduleObservable().pipe((0,o.Q)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const Be=this._currentSchedule;this._currentSchedule=new Y;for(const lt of Be.tasks)lt();for(const lt of Be.endTasks)lt()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,f.H)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,r.s)(1))}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275inject(t.NgZone))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:at,factory:at.\u0275fac})}return at})(),j=(()=>{class at{constructor(Be,lt){this.template=Be,this._differs=lt}ngOnChanges(Be){if(!this._columnsDiffer){const lt=Be.columns&&Be.columns.currentValue||[];this._columnsDiffer=this._differs.find(lt).create(),this._columnsDiffer.diff(lt)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(Be){return this instanceof G?Be.headerCell.template:this instanceof V?Be.footerCell.template:Be.cell.template}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.IterableDiffers))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,features:[t.\u0275\u0275NgOnChangesFeature]})}return at})(),G=(()=>{class at extends j{get sticky(){return this._sticky}set sticky(Be){Be!==this._sticky&&(this._sticky=Be,this._hasStickyChanged=!0)}constructor(Be,lt,Et){super(Be,lt),this._table=Et,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(Be){super.ngOnChanges(Be)}hasStickyChanged(){const Be=this._hasStickyChanged;return this.resetStickyChanged(),Be}resetStickyChanged(){this._hasStickyChanged=!1}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.IterableDiffers),t.\u0275\u0275directiveInject(I,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[t.\u0275\u0275InputFlags.None,"cdkHeaderRowDef","columns"],sticky:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkHeaderRowDefSticky","sticky",t.booleanAttribute]},standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]})}return at})(),V=(()=>{class at extends j{get sticky(){return this._sticky}set sticky(Be){Be!==this._sticky&&(this._sticky=Be,this._hasStickyChanged=!0)}constructor(Be,lt,Et){super(Be,lt),this._table=Et,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(Be){super.ngOnChanges(Be)}hasStickyChanged(){const Be=this._hasStickyChanged;return this.resetStickyChanged(),Be}resetStickyChanged(){this._hasStickyChanged=!1}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.IterableDiffers),t.\u0275\u0275directiveInject(I,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[t.\u0275\u0275InputFlags.None,"cdkFooterRowDef","columns"],sticky:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"cdkFooterRowDefSticky","sticky",t.booleanAttribute]},standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]})}return at})(),W=(()=>{class at extends j{constructor(Be,lt,Et){super(Be,lt),this._table=Et}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.IterableDiffers),t.\u0275\u0275directiveInject(I,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","cdkRowDef",""]],inputs:{columns:[t.\u0275\u0275InputFlags.None,"cdkRowDefColumns","columns"],when:[t.\u0275\u0275InputFlags.None,"cdkRowDefWhen","when"]},standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature]})}return at})(),K=(()=>{class at{static#e=this.mostRecentCellOutlet=null;constructor(Be){this._viewContainer=Be,at.mostRecentCellOutlet=this}ngOnDestroy(){at.mostRecentCellOutlet===this&&(at.mostRecentCellOutlet=null)}static#t=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.ViewContainerRef))};static#n=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","cdkCellOutlet",""]],standalone:!0})}return at})(),ce=(()=>{class at{static#e=this.\u0275fac=function(lt){return new(lt||at)};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:at,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[t.\u0275\u0275StandaloneFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(lt,Et){1<&&t.\u0275\u0275elementContainer(0,0)},dependencies:[K],encapsulation:2})}return at})(),ue=(()=>{class at{static#e=this.\u0275fac=function(lt){return new(lt||at)};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:at,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],standalone:!0,features:[t.\u0275\u0275StandaloneFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(lt,Et){1<&&t.\u0275\u0275elementContainer(0,0)},dependencies:[K],encapsulation:2})}return at})(),ve=(()=>{class at{static#e=this.\u0275fac=function(lt){return new(lt||at)};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:at,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[t.\u0275\u0275StandaloneFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(lt,Et){1<&&t.\u0275\u0275elementContainer(0,0)},dependencies:[K],encapsulation:2})}return at})(),Ye=(()=>{class at{constructor(Be){this.templateRef=Be,this._contentClassName="cdk-no-data-row"}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.TemplateRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0})}return at})();const pt=["top","bottom","left","right"];class ct{constructor(Jt,Be,lt,Et,nn=!0,_n=!0,Ue){this._isNativeHtmlTable=Jt,this._stickCellCss=Be,this.direction=lt,this._coalescedStyleScheduler=Et,this._isBrowser=nn,this._needsPositionStickyOnElement=_n,this._positionListener=Ue,this._cachedCellWidths=[],this._borderCellCss={top:`${Be}-border-elem-top`,bottom:`${Be}-border-elem-bottom`,left:`${Be}-border-elem-left`,right:`${Be}-border-elem-right`}}clearStickyPositioning(Jt,Be){const lt=[];for(const Et of Jt)if(Et.nodeType===Et.ELEMENT_NODE){lt.push(Et);for(let nn=0;nn{for(const Et of lt)this._removeStickyStyle(Et,Be)})}updateStickyColumns(Jt,Be,lt,Et=!0){Jt.length&&this._isBrowser&&(Be.some(nn=>nn)||lt.some(nn=>nn))?this._coalescedStyleScheduler.schedule(()=>{const nn=Jt[0],_n=nn.children.length,Ue=this._getCellWidths(nn,Et),ut=this._getStickyStartColumnPositions(Ue,Be),Ke=this._getStickyEndColumnPositions(Ue,lt),mt=Be.lastIndexOf(!0),xe=lt.indexOf(!0),Mt="rtl"===this.direction,H=Mt?"right":"left",me=Mt?"left":"right";for(const le of Jt)for(let $e=0;$e<_n;$e++){const wt=le.children[$e];Be[$e]&&this._addStickyStyle(wt,H,ut[$e],$e===mt),lt[$e]&&this._addStickyStyle(wt,me,Ke[$e],$e===xe)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===mt?[]:Ue.slice(0,mt+1).map((le,$e)=>Be[$e]?le:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===xe?[]:Ue.slice(xe).map((le,$e)=>lt[$e+xe]?le:null).reverse()}))}):this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}))}stickRows(Jt,Be,lt){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{const Et="bottom"===lt?Jt.slice().reverse():Jt,nn="bottom"===lt?Be.slice().reverse():Be,_n=[],Ue=[],ut=[];for(let mt=0,xe=0;mt{const lt=Jt.querySelector("tfoot");lt&&(Be.some(Et=>!Et)?this._removeStickyStyle(lt,["bottom"]):this._addStickyStyle(lt,"bottom",0,!1))})}_removeStickyStyle(Jt,Be){for(const Et of Be)Jt.style[Et]="",Jt.classList.remove(this._borderCellCss[Et]);pt.some(Et=>-1===Be.indexOf(Et)&&Jt.style[Et])?Jt.style.zIndex=this._getCalculatedZIndex(Jt):(Jt.style.zIndex="",this._needsPositionStickyOnElement&&(Jt.style.position=""),Jt.classList.remove(this._stickCellCss))}_addStickyStyle(Jt,Be,lt,Et){Jt.classList.add(this._stickCellCss),Et&&Jt.classList.add(this._borderCellCss[Be]),Jt.style[Be]=`${lt}px`,Jt.style.zIndex=this._getCalculatedZIndex(Jt),this._needsPositionStickyOnElement&&(Jt.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Jt){const Be={top:100,bottom:10,left:1,right:1};let lt=0;for(const Et of pt)Jt.style[Et]&&(lt+=Be[Et]);return lt?`${lt}`:""}_getCellWidths(Jt,Be=!0){if(!Be&&this._cachedCellWidths.length)return this._cachedCellWidths;const lt=[],Et=Jt.children;for(let nn=0;nn0;nn--)Be[nn]&&(lt[nn]=Et,Et+=Jt[nn]);return lt}}const Q=new t.InjectionToken("CDK_SPL");let Re=(()=>{class at{constructor(Be,lt){this.viewContainer=Be,this.elementRef=lt;const Et=(0,t.inject)(I);Et._rowOutlet=this,Et._outletAssigned()}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","rowOutlet",""]],standalone:!0})}return at})(),bt=(()=>{class at{constructor(Be,lt){this.viewContainer=Be,this.elementRef=lt;const Et=(0,t.inject)(I);Et._headerRowOutlet=this,Et._outletAssigned()}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","headerRowOutlet",""]],standalone:!0})}return at})(),it=(()=>{class at{constructor(Be,lt){this.viewContainer=Be,this.elementRef=lt;const Et=(0,t.inject)(I);Et._footerRowOutlet=this,Et._outletAssigned()}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","footerRowOutlet",""]],standalone:!0})}return at})(),ye=(()=>{class at{constructor(Be,lt){this.viewContainer=Be,this.elementRef=lt;const Et=(0,t.inject)(I);Et._noDataRowOutlet=this,Et._outletAssigned()}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","noDataRowOutlet",""]],standalone:!0})}return at})(),st=(()=>{class at{_getCellRole(){if(void 0===this._cellRoleInternal){const Be=this._elementRef.nativeElement.getAttribute("role"),lt="grid"===Be||"treegrid"===Be?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&"cell"===lt?null:lt}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(Be){this._trackByFn=Be}get dataSource(){return this._dataSource}set dataSource(Be){this._dataSource!==Be&&this._switchDataSource(Be)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(Be){this._multiTemplateDataRows=Be,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(Be){this._fixedLayout=Be,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(Be,lt,Et,nn,_n,Ue,ut,Ke,mt,xe,Mt,H){this._differs=Be,this._changeDetectorRef=lt,this._elementRef=Et,this._dir=_n,this._platform=ut,this._viewRepeater=Ke,this._coalescedStyleScheduler=mt,this._viewportRuler=xe,this._stickyPositioningListener=Mt,this._ngZone=H,this._onDestroy=new s.B,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._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new t.EventEmitter,this.viewChange=new d.t({start:0,end:Number.MAX_VALUE}),nn||Et.nativeElement.setAttribute("role","table"),this._document=Ue,this._isServer=!ut.isBrowser,this._isNativeHtmlTable="TABLE"===Et.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((Be,lt)=>this.trackBy?this.trackBy(lt.dataIndex,lt.data):lt),this._viewportRuler.change().pipe((0,o.Q)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(Be=>{Be?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,C.y4)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const Be=this._dataDiffer.diff(this._renderRows);if(!Be)return this._updateNoDataRow(),void this.contentChanged.next();const lt=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(Be,lt,(Et,nn,_n)=>this._getEmbeddedViewArgs(Et.item,_n),Et=>Et.item.data,Et=>{Et.operation===C.Q3.INSERTED&&Et.context&&this._renderCellTemplateForItem(Et.record.item.rowDef,Et.context)}),this._updateRowIndexContext(),Be.forEachIdentityChange(Et=>{lt.get(Et.currentIndex).context.$implicit=Et.item.data}),this._updateNoDataRow(),this._ngZone&&t.NgZone.isInAngularZone()?this._ngZone.onStable.pipe((0,r.s)(1),(0,o.Q)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(Be){this._customColumnDefs.add(Be)}removeColumnDef(Be){this._customColumnDefs.delete(Be)}addRowDef(Be){this._customRowDefs.add(Be)}removeRowDef(Be){this._customRowDefs.delete(Be)}addHeaderRowDef(Be){this._customHeaderRowDefs.add(Be),this._headerRowDefChanged=!0}removeHeaderRowDef(Be){this._customHeaderRowDefs.delete(Be),this._headerRowDefChanged=!0}addFooterRowDef(Be){this._customFooterRowDefs.add(Be),this._footerRowDefChanged=!0}removeFooterRowDef(Be){this._customFooterRowDefs.delete(Be),this._footerRowDefChanged=!0}setNoDataRow(Be){this._customNoDataRow=Be}updateStickyHeaderRowStyles(){const Be=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){const Et=jt(this._headerRowOutlet,"thead");Et&&(Et.style.display=Be.length?"":"none")}const lt=this._headerRowDefs.map(Et=>Et.sticky);this._stickyStyler.clearStickyPositioning(Be,["top"]),this._stickyStyler.stickRows(Be,lt,"top"),this._headerRowDefs.forEach(Et=>Et.resetStickyChanged())}updateStickyFooterRowStyles(){const Be=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){const Et=jt(this._footerRowOutlet,"tfoot");Et&&(Et.style.display=Be.length?"":"none")}const lt=this._footerRowDefs.map(Et=>Et.sticky);this._stickyStyler.clearStickyPositioning(Be,["bottom"]),this._stickyStyler.stickRows(Be,lt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,lt),this._footerRowDefs.forEach(Et=>Et.resetStickyChanged())}updateStickyColumnStyles(){const Be=this._getRenderedRows(this._headerRowOutlet),lt=this._getRenderedRows(this._rowOutlet),Et=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...Be,...lt,...Et],["left","right"]),this._stickyColumnStylesNeedReset=!1),Be.forEach((nn,_n)=>{this._addStickyColumnStyles([nn],this._headerRowDefs[_n])}),this._rowDefs.forEach(nn=>{const _n=[];for(let Ue=0;Ue{this._addStickyColumnStyles([nn],this._footerRowDefs[_n])}),Array.from(this._columnDefsByName.values()).forEach(nn=>nn.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs();const lt=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||lt,this._forceRecalculateCellWidths=lt,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()}_getAllRenderRows(){const Be=[],lt=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let Et=0;Et{const Ue=Et&&Et.has(_n)?Et.get(_n):[];if(Ue.length){const ut=Ue.shift();return ut.dataIndex=lt,ut}return{data:Be,rowDef:_n,dataIndex:lt}})}_cacheColumnDefs(){this._columnDefsByName.clear(),xt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(lt=>{this._columnDefsByName.has(lt.name),this._columnDefsByName.set(lt.name,lt)})}_cacheRowDefs(){this._headerRowDefs=xt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=xt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=xt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const Be=this._rowDefs.filter(lt=>!lt.when);this._defaultRowDef=Be[0]}_renderUpdatedColumns(){const Be=(_n,Ue)=>_n||!!Ue.getColumnsDiff(),lt=this._rowDefs.reduce(Be,!1);lt&&this._forceRenderDataRows();const Et=this._headerRowDefs.reduce(Be,!1);Et&&this._forceRenderHeaderRows();const nn=this._footerRowDefs.reduce(Be,!1);return nn&&this._forceRenderFooterRows(),lt||Et||nn}_switchDataSource(Be){this._data=[],(0,C.y4)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),Be||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=Be}_observeRenderChanges(){if(!this.dataSource)return;let Be;(0,C.y4)(this.dataSource)?Be=this.dataSource.connect(this):(0,l.A)(this.dataSource)?Be=this.dataSource:Array.isArray(this.dataSource)&&(Be=(0,c.of)(this.dataSource)),this._renderChangeSubscription=Be.pipe((0,o.Q)(this._onDestroy)).subscribe(lt=>{this._data=lt||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((Be,lt)=>this._renderRow(this._headerRowOutlet,Be,lt)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((Be,lt)=>this._renderRow(this._footerRowOutlet,Be,lt)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(Be,lt){const Et=Array.from(lt.columns||[]).map(Ue=>this._columnDefsByName.get(Ue)),nn=Et.map(Ue=>Ue.sticky),_n=Et.map(Ue=>Ue.stickyEnd);this._stickyStyler.updateStickyColumns(Be,nn,_n,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(Be){const lt=[];for(let Et=0;Et!nn.when||nn.when(lt,Be));else{let nn=this._rowDefs.find(_n=>_n.when&&_n.when(lt,Be))||this._defaultRowDef;nn&&Et.push(nn)}return Et}_getEmbeddedViewArgs(Be,lt){return{templateRef:Be.rowDef.template,context:{$implicit:Be.data},index:lt}}_renderRow(Be,lt,Et,nn={}){const _n=Be.viewContainer.createEmbeddedView(lt.template,nn,Et);return this._renderCellTemplateForItem(lt,nn),_n}_renderCellTemplateForItem(Be,lt){for(let Et of this._getCellTemplates(Be))K.mostRecentCellOutlet&&K.mostRecentCellOutlet._viewContainer.createEmbeddedView(Et,lt);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const Be=this._rowOutlet.viewContainer;for(let lt=0,Et=Be.length;lt{const Et=this._columnDefsByName.get(lt);return Be.extractCellTemplate(Et)}):[]}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const Be=(lt,Et)=>lt||Et.hasStickyChanged();this._headerRowDefs.reduce(Be,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(Be,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(Be,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new ct(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,c.of)()).pipe((0,o.Q)(this._onDestroy)).subscribe(lt=>{this._stickyStyler.direction=lt,this.updateStickyColumnStyles()})}_getOwnDefs(Be){return Be.filter(lt=>!lt._table||lt._table===this)}_updateNoDataRow(){const Be=this._customNoDataRow||this._noDataRow;if(!Be)return;const lt=0===this._rowOutlet.viewContainer.length;if(lt===this._isShowingNoDataRow)return;const Et=this._noDataRowOutlet.viewContainer;if(lt){const nn=Et.createEmbeddedView(Be.templateRef),_n=nn.rootNodes[0];1===nn.rootNodes.length&&_n?.nodeType===this._document.ELEMENT_NODE&&(_n.setAttribute("role","row"),_n.classList.add(Be._contentClassName))}else Et.clear();this._isShowingNoDataRow=lt,this._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(t.IterableDiffers),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275injectAttribute("role"),t.\u0275\u0275directiveInject(_.dS,8),t.\u0275\u0275directiveInject(b.DOCUMENT),t.\u0275\u0275directiveInject(E.OD),t.\u0275\u0275directiveInject(C.sL),t.\u0275\u0275directiveInject(ee),t.\u0275\u0275directiveInject(u.Xj),t.\u0275\u0275directiveInject(Q,12),t.\u0275\u0275directiveInject(t.NgZone,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:at,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(lt,Et,nn){if(1<&&(t.\u0275\u0275contentQuery(nn,Ye,5),t.\u0275\u0275contentQuery(nn,S,5),t.\u0275\u0275contentQuery(nn,W,5),t.\u0275\u0275contentQuery(nn,G,5),t.\u0275\u0275contentQuery(nn,V,5)),2<){let _n;t.\u0275\u0275queryRefresh(_n=t.\u0275\u0275loadQuery())&&(Et._noDataRow=_n.first),t.\u0275\u0275queryRefresh(_n=t.\u0275\u0275loadQuery())&&(Et._contentColumnDefs=_n),t.\u0275\u0275queryRefresh(_n=t.\u0275\u0275loadQuery())&&(Et._contentRowDefs=_n),t.\u0275\u0275queryRefresh(_n=t.\u0275\u0275loadQuery())&&(Et._contentHeaderRowDefs=_n),t.\u0275\u0275queryRefresh(_n=t.\u0275\u0275loadQuery())&&(Et._contentFooterRowDefs=_n)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(lt,Et){2<&&t.\u0275\u0275classProp("cdk-table-fixed-layout",Et.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"multiTemplateDataRows","multiTemplateDataRows",t.booleanAttribute],fixedLayout:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"fixedLayout","fixedLayout",t.booleanAttribute]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:I,useExisting:at},{provide:C.sL,useClass:C.xn},{provide:ee,useClass:ie},{provide:Q,useValue:null}]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:p,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(lt,Et){1<&&(t.\u0275\u0275projectionDef(h),t.\u0275\u0275projection(0),t.\u0275\u0275projection(1,1),t.\u0275\u0275template(2,v,1,0)(3,y,7,0)(4,M,4,0)),2<&&(t.\u0275\u0275advance(2),t.\u0275\u0275conditional(2,Et._isServer?2:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(3,Et._isNativeHtmlTable?3:4))},dependencies:[bt,Re,ye,it],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return at})();function xt(at,Jt){return at.concat(Array.from(Jt))}function jt(at,Jt){const Be=Jt.toUpperCase();let lt=at.viewContainer.element.nativeElement;for(;lt;){const Et=1===lt.nodeType?lt.nodeName:null;if(Et===Be)return lt;if("TABLE"===Et)break;lt=lt.parentNode}return null}let Xt=(()=>{class at{get name(){return this._name}set name(Be){this._name=Be,this._syncColumnDefName()}constructor(Be,lt){this._table=Be,this._options=lt,this.justify="start",this._options=lt||{}}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((Be,lt)=>Be[lt])),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 Be=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(Be):Be[0].toUpperCase()+Be.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}static#e=this.\u0275fac=function(lt){return new(lt||at)(t.\u0275\u0275directiveInject(st,8),t.\u0275\u0275directiveInject(D,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:at,selectors:[["cdk-text-column"]],viewQuery:function(lt,Et){if(1<&&(t.\u0275\u0275viewQuery(S,7),t.\u0275\u0275viewQuery(O,7),t.\u0275\u0275viewQuery(T,7)),2<){let nn;t.\u0275\u0275queryRefresh(nn=t.\u0275\u0275loadQuery())&&(Et.columnDef=nn.first),t.\u0275\u0275queryRefresh(nn=t.\u0275\u0275loadQuery())&&(Et.cell=nn.first),t.\u0275\u0275queryRefresh(nn=t.\u0275\u0275loadQuery())&&(Et.headerCell=nn.first)}},inputs:{name:"name",headerText:"headerText",dataAccessor:"dataAccessor",justify:"justify"},standalone:!0,features:[t.\u0275\u0275StandaloneFeature],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(lt,Et){1<&&(t.\u0275\u0275elementContainerStart(0,0),t.\u0275\u0275template(1,w,2,3,"th",1)(2,k,2,3,"td",2),t.\u0275\u0275elementContainerEnd())},dependencies:[S,T,N,O,F],encapsulation:2})}return at})(),dn=(()=>{class at{static#e=this.\u0275fac=function(lt){return new(lt||at)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:at});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[u.E9]})}return at})();var rn=g(6600),hn=g(7786),Nt=g(4572),Bt=g(4085),_e=g(6354);const Ze=[[["caption"]],[["colgroup"],["col"]],"*"],Qe=["caption","colgroup, col","*"];function Ot(at,Jt){1&at&&t.\u0275\u0275projection(0,2)}function tt(at,Jt){1&at&&(t.\u0275\u0275elementStart(0,"thead",0),t.\u0275\u0275elementContainer(1,1),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(2,"tbody",2),t.\u0275\u0275elementContainer(3,3)(4,4),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"tfoot",0),t.\u0275\u0275elementContainer(6,5),t.\u0275\u0275elementEnd())}function ft(at,Jt){1&at&&t.\u0275\u0275elementContainer(0,1)(1,3)(2,4)(3,5)}function Le(at,Jt){if(1&at&&(t.\u0275\u0275elementStart(0,"th",3),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&at){const Be=t.\u0275\u0275nextContext();t.\u0275\u0275styleProp("text-align",Be.justify),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",Be.headerText," ")}}function fe(at,Jt){if(1&at&&(t.\u0275\u0275elementStart(0,"td",4),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&at){const Be=Jt.$implicit,lt=t.\u0275\u0275nextContext();t.\u0275\u0275styleProp("text-align",lt.justify),t.\u0275\u0275advance(),t.\u0275\u0275textInterpolate1(" ",lt.dataAccessor(Be,lt.name)," ")}}let Ge=(()=>{class at{static#e=this.\u0275fac=function(lt){return new(lt||at)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:C.sL,useClass:C.DQ}])]})}return at})(),te=(()=>{class at extends st{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:at,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(lt,Et){2<&&t.\u0275\u0275classProp("mdc-table-fixed-layout",Et.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:st,useExisting:at},{provide:I,useExisting:at},{provide:ee,useClass:ie},{provide:C.sL,useClass:C.xn},{provide:Q,useValue:null}]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:Qe,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(lt,Et){1<&&(t.\u0275\u0275projectionDef(Ze),t.\u0275\u0275projection(0),t.\u0275\u0275projection(1,1),t.\u0275\u0275template(2,Ot,1,0)(3,tt,7,0)(4,ft,4,0)),2<&&(t.\u0275\u0275advance(2),t.\u0275\u0275conditional(2,Et._isServer?2:-1),t.\u0275\u0275advance(),t.\u0275\u0275conditional(3,Et._isNativeHtmlTable?3:4))},dependencies:[bt,Re,ye,it],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}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-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}.mat-mdc-table{table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}return at})(),de=(()=>{class at extends O{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","matCellDef",""]],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:O,useExisting:at}]),t.\u0275\u0275InheritDefinitionFeature]})}return at})(),ke=(()=>{class at extends T{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:T,useExisting:at}]),t.\u0275\u0275InheritDefinitionFeature]})}return at})(),nt=(()=>{class at extends U{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","matFooterCellDef",""]],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:U,useExisting:at}]),t.\u0275\u0275InheritDefinitionFeature]})}return at})(),It=(()=>{class at extends S{get name(){return this._name}set name(Be){this._setNameInput(Be)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","matColumnDef",""]],inputs:{name:[t.\u0275\u0275InputFlags.None,"matColumnDef","name"]},standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:S,useExisting:at},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:at}]),t.\u0275\u0275InheritDefinitionFeature]})}return at})(),Gt=(()=>{class at extends N{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature]})}return at})(),an=(()=>{class at extends A{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature]})}return at})(),_t=(()=>{class at extends F{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature]})}return at})(),Je=(()=>{class at extends G{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[t.\u0275\u0275InputFlags.None,"matHeaderRowDef","columns"],sticky:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"matHeaderRowDefSticky","sticky",t.booleanAttribute]},standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:G,useExisting:at}]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275InheritDefinitionFeature]})}return at})(),Fe=(()=>{class at extends V{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","matFooterRowDef",""]],inputs:{columns:[t.\u0275\u0275InputFlags.None,"matFooterRowDef","columns"],sticky:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"matFooterRowDefSticky","sticky",t.booleanAttribute]},standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:V,useExisting:at}]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275InheritDefinitionFeature]})}return at})(),et=(()=>{class at extends W{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["","matRowDef",""]],inputs:{columns:[t.\u0275\u0275InputFlags.None,"matRowDefColumns","columns"],when:[t.\u0275\u0275InputFlags.None,"matRowDefWhen","when"]},standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:W,useExisting:at}]),t.\u0275\u0275InheritDefinitionFeature]})}return at})(),je=(()=>{class at extends ce{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:at,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:ce,useExisting:at}]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275StandaloneFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(lt,Et){1<&&t.\u0275\u0275elementContainer(0,0)},dependencies:[K],encapsulation:2})}return at})(),dt=(()=>{class at extends ue{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:at,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:ue,useExisting:at}]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275StandaloneFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(lt,Et){1<&&t.\u0275\u0275elementContainer(0,0)},dependencies:[K],encapsulation:2})}return at})(),At=(()=>{class at extends ve{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:at,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:ve,useExisting:at}]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275StandaloneFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(lt,Et){1<&&t.\u0275\u0275elementContainer(0,0)},dependencies:[K],encapsulation:2})}return at})(),qt=(()=>{class at extends Ye{constructor(){super(...arguments),this._contentClassName="mat-mdc-no-data-row"}static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:at,selectors:[["ng-template","matNoDataRow",""]],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:Ye,useExisting:at}]),t.\u0275\u0275InheritDefinitionFeature]})}return at})(),Cn=(()=>{class at extends Xt{static#e=this.\u0275fac=(()=>{let Be;return function(Et){return(Be||(Be=t.\u0275\u0275getInheritedFactory(at)))(Et||at)}})();static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:at,selectors:[["mat-text-column"]],standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275StandaloneFeature],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(lt,Et){1<&&(t.\u0275\u0275elementContainerStart(0,0),t.\u0275\u0275template(1,Le,2,3,"th",1)(2,fe,2,3,"td",2),t.\u0275\u0275elementContainerEnd())},dependencies:[It,ke,Gt,de,_t],encapsulation:2})}return at})(),Oi=(()=>{class at{static#e=this.\u0275fac=function(lt){return new(lt||at)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:at});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[rn.MatCommonModule,dn,rn.MatCommonModule]})}return at})();class jn extends C.qS{get data(){return this._data.value}set data(Jt){Jt=Array.isArray(Jt)?Jt:[],this._data.next(Jt),this._renderChangesSubscription||this._filterData(Jt)}get filter(){return this._filter.value}set filter(Jt){this._filter.next(Jt),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Jt){this._sort=Jt,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Jt){this._paginator=Jt,this._updateChangeSubscription()}constructor(Jt=[]){super(),this._renderData=new d.t([]),this._filter=new d.t(""),this._internalPageChanges=new s.B,this._renderChangesSubscription=null,this.sortingDataAccessor=(Be,lt)=>{const Et=Be[lt];if((0,Bt.o1)(Et)){const nn=Number(Et);return nn<9007199254740991?nn:Et}return Et},this.sortData=(Be,lt)=>{const Et=lt.active,nn=lt.direction;return Et&&""!=nn?Be.sort((_n,Ue)=>{let ut=this.sortingDataAccessor(_n,Et),Ke=this.sortingDataAccessor(Ue,Et);const mt=typeof ut,xe=typeof Ke;mt!==xe&&("number"===mt&&(ut+=""),"number"===xe&&(Ke+=""));let Mt=0;return null!=ut&&null!=Ke?ut>Ke?Mt=1:ut{const Et=Object.keys(Be).reduce((_n,Ue)=>_n+Be[Ue]+"\u25ec","").toLowerCase(),nn=lt.trim().toLowerCase();return-1!=Et.indexOf(nn)},this._data=new d.t(Jt),this._updateChangeSubscription()}_updateChangeSubscription(){const Jt=this._sort?(0,hn.h)(this._sort.sortChange,this._sort.initialized):(0,c.of)(null),Be=this._paginator?(0,hn.h)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,c.of)(null),Et=(0,Nt.z)([this._data,this._filter]).pipe((0,_e.T)(([Ue])=>this._filterData(Ue))),nn=(0,Nt.z)([Et,Jt]).pipe((0,_e.T)(([Ue])=>this._orderData(Ue))),_n=(0,Nt.z)([nn,Be]).pipe((0,_e.T)(([Ue])=>this._pageData(Ue)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=_n.subscribe(Ue=>this._renderData.next(Ue))}_filterData(Jt){return this.filteredData=null==this.filter||""===this.filter?Jt:Jt.filter(Be=>this.filterPredicate(Be,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Jt){return this.sort?this.sortData(Jt.slice(),this.sort):Jt}_pageData(Jt){if(!this.paginator)return Jt;const Be=this.paginator.pageIndex*this.paginator.pageSize;return Jt.slice(Be,Be+this.paginator.pageSize)}_updatePaginator(Jt){Promise.resolve().then(()=>{const Be=this.paginator;if(Be&&(Be.length=Jt,Be.pageIndex>0)){const lt=Math.ceil(Be.length/Be.pageSize)-1||0,Et=Math.min(Be.pageIndex,lt);Et!==Be.pageIndex&&(Be.pageIndex=Et,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}},6850:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_TAB:()=>Ee,MAT_TABS_CONFIG:()=>dn,MAT_TAB_CONTENT:()=>Ne,MAT_TAB_GROUP:()=>Se,MAT_TAB_LABEL:()=>rt,MatInkBar:()=>bt,MatPaginatedTabHeader:()=>Xt,MatTab:()=>Q,MatTabBody:()=>hn,MatTabBodyPortal:()=>rn,MatTabChangeEvent:()=>Ze,MatTabContent:()=>Ie,MatTabGroup:()=>_e,MatTabHeader:()=>un,MatTabLabel:()=>be,MatTabLabelWrapper:()=>De,MatTabLink:()=>tt,MatTabNav:()=>Ot,MatTabNavPanel:()=>ft,MatTabsModule:()=>Le,_MAT_INK_BAR_POSITIONER:()=>He,_MAT_INK_BAR_POSITIONER_FACTORY:()=>ye,matTabsAnimations:()=>cn});var t=g(4438),_=g(6600),C=g(6939),E=g(1413),u=g(3726),b=g(7673),s=g(7786),f=g(983),d=g(1985),l=g(1807),c=g(8359),o=g(4412),r=g(5478),h=g(6860),p=g(8203),v=g(6039),y=g(7336),M=g(6977),w=g(6697),k=g(9172),I=g(5558),D=g(5245),O=g(5964),T=g(3294),U=g(2318),S=g(177),R=g(9969);const N=["*"];function A(fe,Ge){1&fe&&t.\u0275\u0275projection(0)}const F=["tabListContainer"],Y=["tabList"],ee=["tabListInner"],ie=["nextPaginator"],$=["previousPaginator"],j=fe=>({animationDuration:fe}),G=(fe,Ge)=>({value:fe,params:Ge});function V(fe,Ge){}const W=["tabBodyWrapper"],K=["tabHeader"];function ce(fe,Ge){}function ue(fe,Ge){if(1&fe&&t.\u0275\u0275template(0,ce,0,0,"ng-template",12),2&fe){const te=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275property("cdkPortalOutlet",te.templateLabel)}}function ve(fe,Ge){if(1&fe&&t.\u0275\u0275text(0),2&fe){const te=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275textInterpolate(te.textLabel)}}function Ye(fe,Ge){if(1&fe){const te=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",7,2),t.\u0275\u0275listener("click",function(){const ke=t.\u0275\u0275restoreView(te),nt=ke.$implicit,It=ke.$index,Gt=t.\u0275\u0275nextContext(),an=t.\u0275\u0275reference(1);return t.\u0275\u0275resetView(Gt._handleClick(nt,an,It))})("cdkFocusChange",function(ke){const nt=t.\u0275\u0275restoreView(te).$index,It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It._tabFocusChanged(ke,nt))}),t.\u0275\u0275element(2,"span",8)(3,"div",9),t.\u0275\u0275elementStart(4,"span",10)(5,"span",11),t.\u0275\u0275template(6,ue,1,1,null,12)(7,ve,1,1),t.\u0275\u0275elementEnd()()()}if(2&fe){const te=Ge.$implicit,de=Ge.$index,ke=t.\u0275\u0275reference(1),nt=t.\u0275\u0275nextContext();t.\u0275\u0275classProp("mdc-tab--active",nt.selectedIndex===de),t.\u0275\u0275property("id",nt._getTabLabelId(de))("ngClass",te.labelClass)("disabled",te.disabled)("fitInkBarToContent",nt.fitInkBarToContent),t.\u0275\u0275attribute("tabIndex",nt._getTabIndex(de))("aria-posinset",de+1)("aria-setsize",nt._tabs.length)("aria-controls",nt._getTabContentId(de))("aria-selected",nt.selectedIndex===de)("aria-label",te.ariaLabel||null)("aria-labelledby",!te.ariaLabel&&te.ariaLabelledby?te.ariaLabelledby:null),t.\u0275\u0275advance(3),t.\u0275\u0275property("matRippleTrigger",ke)("matRippleDisabled",te.disabled||nt.disableRipple),t.\u0275\u0275advance(3),t.\u0275\u0275conditional(6,te.templateLabel?6:7)}}function pt(fe,Ge){1&fe&&t.\u0275\u0275projection(0)}function ct(fe,Ge){if(1&fe){const te=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"mat-tab-body",13),t.\u0275\u0275listener("_onCentered",function(){t.\u0275\u0275restoreView(te);const ke=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(ke._removeTabBodyWrapperHeight())})("_onCentering",function(ke){t.\u0275\u0275restoreView(te);const nt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(nt._setTabBodyWrapperHeight(ke))}),t.\u0275\u0275elementEnd()}if(2&fe){const te=Ge.$implicit,de=Ge.$index,ke=t.\u0275\u0275nextContext();t.\u0275\u0275classProp("mat-mdc-tab-body-active",ke.selectedIndex===de),t.\u0275\u0275property("id",ke._getTabContentId(de))("ngClass",te.bodyClass)("content",te.content)("position",te.position)("origin",te.origin)("animationDuration",ke.animationDuration)("preserveContent",ke.preserveContent),t.\u0275\u0275attribute("tabindex",null!=ke.contentTabIndex&&ke.selectedIndex===de?ke.contentTabIndex:null)("aria-labelledby",ke._getTabLabelId(de))("aria-hidden",ke.selectedIndex!==de)}}const Ct=["mat-tab-nav-bar",""],We=["mat-tab-link",""],Ne=new t.InjectionToken("MatTabContent");let Ie=(()=>{class fe{constructor(te){this.template=te}static#e=this.\u0275fac=function(de){return new(de||fe)(t.\u0275\u0275directiveInject(t.TemplateRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:fe,selectors:[["","matTabContent",""]],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:Ne,useExisting:fe}])]})}return fe})();const rt=new t.InjectionToken("MatTabLabel"),Ee=new t.InjectionToken("MAT_TAB");let be=(()=>{class fe extends C.bV{constructor(te,de,ke){super(te,de),this._closestTab=ke}static#e=this.\u0275fac=function(de){return new(de||fe)(t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(Ee,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:fe,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:rt,useExisting:fe}]),t.\u0275\u0275InheritDefinitionFeature]})}return fe})();const Se=new t.InjectionToken("MAT_TAB_GROUP");let Q=(()=>{class fe{get templateLabel(){return this._templateLabel}set templateLabel(te){this._setTemplateLabelInput(te)}get content(){return this._contentPortal}constructor(te,de){this._viewContainerRef=te,this._closestTabGroup=de,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new E.B,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(te){(te.hasOwnProperty("textLabel")||te.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new C.VA(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(te){te&&te._closestTab===this&&(this._templateLabel=te)}static#e=this.\u0275fac=function(de){return new(de||fe)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(Se,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:fe,selectors:[["mat-tab"]],contentQueries:function(de,ke,nt){if(1&de&&(t.\u0275\u0275contentQuery(nt,be,5),t.\u0275\u0275contentQuery(nt,Ie,7,t.TemplateRef)),2&de){let It;t.\u0275\u0275queryRefresh(It=t.\u0275\u0275loadQuery())&&(ke.templateLabel=It.first),t.\u0275\u0275queryRefresh(It=t.\u0275\u0275loadQuery())&&(ke._explicitContent=It.first)}},viewQuery:function(de,ke){if(1&de&&t.\u0275\u0275viewQuery(t.TemplateRef,7),2&de){let nt;t.\u0275\u0275queryRefresh(nt=t.\u0275\u0275loadQuery())&&(ke._implicitContent=nt.first)}},hostAttrs:["hidden",""],inputs:{disabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",t.booleanAttribute],textLabel:[t.\u0275\u0275InputFlags.None,"label","textLabel"],ariaLabel:[t.\u0275\u0275InputFlags.None,"aria-label","ariaLabel"],ariaLabelledby:[t.\u0275\u0275InputFlags.None,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:Ee,useExisting:fe}]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275NgOnChangesFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:N,decls:1,vars:0,template:function(de,ke){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275template(0,A,1,0,"ng-template"))},encapsulation:2})}return fe})();const pe="mdc-tab-indicator--active",Re="mdc-tab-indicator--no-transition";class bt{constructor(Ge){this._items=Ge}hide(){this._items.forEach(Ge=>Ge.deactivateInkBar())}alignToElement(Ge){const te=this._items.find(ke=>ke.elementRef.nativeElement===Ge),de=this._currentItem;if(te!==de&&(de?.deactivateInkBar(),te)){const ke=de?.elementRef.nativeElement.getBoundingClientRect?.();te.activateInkBar(ke),this._currentItem=te}}}let it=(()=>{class fe{constructor(){this._elementRef=(0,t.inject)(t.ElementRef),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(te){this._fitToContent!==te&&(this._fitToContent=te,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(te){const de=this._elementRef.nativeElement;if(!te||!de.getBoundingClientRect||!this._inkBarContentElement)return void de.classList.add(pe);const ke=de.getBoundingClientRect(),nt=te.width/ke.width,It=te.left-ke.left;de.classList.add(Re),this._inkBarContentElement.style.setProperty("transform",`translateX(${It}px) scaleX(${nt})`),de.getBoundingClientRect(),de.classList.remove(Re),de.classList.add(pe),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(pe)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const te=this._elementRef.nativeElement.ownerDocument||document,de=this._inkBarElement=te.createElement("span"),ke=this._inkBarContentElement=te.createElement("span");de.className="mdc-tab-indicator",ke.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",de.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement).appendChild(this._inkBarElement)}static#e=this.\u0275fac=function(de){return new(de||fe)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:fe,inputs:{fitInkBarToContent:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"fitInkBarToContent","fitInkBarToContent",t.booleanAttribute]},features:[t.\u0275\u0275InputTransformsFeature]})}return fe})();function ye(){return Ge=>({left:Ge?(Ge.offsetLeft||0)+"px":"0",width:Ge?(Ge.offsetWidth||0)+"px":"0"})}const He=new t.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:ye});let De=(()=>{class fe extends it{constructor(te){super(),this.elementRef=te,this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static#e=this.\u0275fac=function(de){return new(de||fe)(t.\u0275\u0275directiveInject(t.ElementRef))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:fe,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(de,ke){2&de&&(t.\u0275\u0275attribute("aria-disabled",!!ke.disabled),t.\u0275\u0275classProp("mat-mdc-tab-disabled",ke.disabled))},inputs:{disabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",t.booleanAttribute]},standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275InheritDefinitionFeature]})}return fe})();const st=(0,h.BQ)({passive:!0});let Xt=(()=>{class fe{get selectedIndex(){return this._selectedIndex}set selectedIndex(te){const de=isNaN(te)?0:te;this._selectedIndex!=de&&(this._selectedIndexChanged=!0,this._selectedIndex=de,this._keyManager&&this._keyManager.updateActiveItem(de))}constructor(te,de,ke,nt,It,Gt,an){this._elementRef=te,this._changeDetectorRef=de,this._viewportRuler=ke,this._dir=nt,this._ngZone=It,this._platform=Gt,this._animationMode=an,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new E.B,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new E.B,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new t.EventEmitter,this.indexFocused=new t.EventEmitter,It.runOutsideAngular(()=>{(0,u.R)(te.nativeElement,"mouseleave").pipe((0,M.Q)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,u.R)(this._previousPaginator.nativeElement,"touchstart",st).pipe((0,M.Q)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,u.R)(this._nextPaginator.nativeElement,"touchstart",st).pipe((0,M.Q)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const te=this._dir?this._dir.change:(0,b.of)("ltr"),de=this._viewportRuler.change(150),ke=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new v.Bu(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,w.s)(1)).subscribe(ke),(0,s.h)(te,de,this._items.changes,this._itemsResized()).pipe((0,M.Q)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),ke()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(nt=>{this.indexFocused.emit(nt),this._setTabFocus(nt)})}_itemsResized(){return"function"!=typeof ResizeObserver?f.w:this._items.changes.pipe((0,k.Z)(this._items),(0,I.n)(te=>new d.c(de=>this._ngZone.runOutsideAngular(()=>{const ke=new ResizeObserver(nt=>de.next(nt));return te.forEach(nt=>ke.observe(nt.elementRef.nativeElement)),()=>{ke.disconnect()}}))),(0,D.i)(1),(0,O.p)(te=>te.some(de=>de.contentRect.width>0&&de.contentRect.height>0)))}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._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(te){if(!(0,y.rp)(te))switch(te.keyCode){case y.Fm:case y.t6:if(this.focusIndex!==this.selectedIndex){const de=this._items.get(this.focusIndex);de&&!de.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(te))}break;default:this._keyManager.onKeydown(te)}}_onContentChanges(){const te=this._elementRef.nativeElement.textContent;te!==this._currentTextContent&&(this._currentTextContent=te||"",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(te){!this._isValidIndex(te)||this.focusIndex===te||!this._keyManager||this._keyManager.setActiveItem(te)}_isValidIndex(te){return!this._items||!!this._items.toArray()[te]}_setTabFocus(te){if(this._showPaginationControls&&this._scrollToLabel(te),this._items&&this._items.length){this._items.toArray()[te].focus();const de=this._tabListContainer.nativeElement;de.scrollLeft="ltr"==this._getLayoutDirection()?0:de.scrollWidth-de.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const te=this.scrollDistance,de="ltr"===this._getLayoutDirection()?-te:te;this._tabList.nativeElement.style.transform=`translateX(${Math.round(de)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(te){this._scrollTo(te)}_scrollHeader(te){return this._scrollTo(this._scrollDistance+("before"==te?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(te){this._stopInterval(),this._scrollHeader(te)}_scrollToLabel(te){if(this.disablePagination)return;const de=this._items?this._items.toArray()[te]:null;if(!de)return;const ke=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:nt,offsetWidth:It}=de.elementRef.nativeElement;let Gt,an;"ltr"==this._getLayoutDirection()?(Gt=nt,an=Gt+It):(an=this._tabListInner.nativeElement.offsetWidth-nt,Gt=an-It);const _t=this.scrollDistance,Lt=this.scrollDistance+ke;Gt<_t?this.scrollDistance-=_t-Gt:an>Lt&&(this.scrollDistance+=Math.min(an-Lt,Gt-_t))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const te=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;te||(this.scrollDistance=0),te!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=te}}_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 te=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,de=te?te.elementRef.nativeElement:null;de?this._inkBar.alignToElement(de):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(te,de){de&&null!=de.button&&0!==de.button||(this._stopInterval(),(0,l.O)(650,100).pipe((0,M.Q)((0,s.h)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:ke,distance:nt}=this._scrollHeader(te);(0===nt||nt>=ke)&&this._stopInterval()}))}_scrollTo(te){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const de=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(de,te)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:de,distance:this._scrollDistance}}static#e=this.\u0275fac=function(de){return new(de||fe)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(r.Xj),t.\u0275\u0275directiveInject(p.dS,8),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(h.OD),t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:fe,inputs:{disablePagination:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disablePagination","disablePagination",t.booleanAttribute],selectedIndex:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"selectedIndex","selectedIndex",t.numberAttribute]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[t.\u0275\u0275InputTransformsFeature]})}return fe})(),un=(()=>{class fe extends Xt{constructor(te,de,ke,nt,It,Gt,an){super(te,de,ke,nt,It,Gt,an),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new bt(this._items),super.ngAfterContentInit()}_itemSelected(te){te.preventDefault()}static#e=this.\u0275fac=function(de){return new(de||fe)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(r.Xj),t.\u0275\u0275directiveInject(p.dS,8),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(h.OD),t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:fe,selectors:[["mat-tab-header"]],contentQueries:function(de,ke,nt){if(1&de&&t.\u0275\u0275contentQuery(nt,De,4),2&de){let It;t.\u0275\u0275queryRefresh(It=t.\u0275\u0275loadQuery())&&(ke._items=It)}},viewQuery:function(de,ke){if(1&de&&(t.\u0275\u0275viewQuery(F,7),t.\u0275\u0275viewQuery(Y,7),t.\u0275\u0275viewQuery(ee,7),t.\u0275\u0275viewQuery(ie,5),t.\u0275\u0275viewQuery($,5)),2&de){let nt;t.\u0275\u0275queryRefresh(nt=t.\u0275\u0275loadQuery())&&(ke._tabListContainer=nt.first),t.\u0275\u0275queryRefresh(nt=t.\u0275\u0275loadQuery())&&(ke._tabList=nt.first),t.\u0275\u0275queryRefresh(nt=t.\u0275\u0275loadQuery())&&(ke._tabListInner=nt.first),t.\u0275\u0275queryRefresh(nt=t.\u0275\u0275loadQuery())&&(ke._nextPaginator=nt.first),t.\u0275\u0275queryRefresh(nt=t.\u0275\u0275loadQuery())&&(ke._previousPaginator=nt.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(de,ke){2&de&&t.\u0275\u0275classProp("mat-mdc-tab-header-pagination-controls-enabled",ke._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==ke._getLayoutDirection())},inputs:{disableRipple:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",t.booleanAttribute]},standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:N,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled","disabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled","disabled"]],template:function(de,ke){if(1&de){const nt=t.\u0275\u0275getCurrentView();t.\u0275\u0275projectionDef(),t.\u0275\u0275elementStart(0,"button",5,0),t.\u0275\u0275listener("click",function(){return t.\u0275\u0275restoreView(nt),t.\u0275\u0275resetView(ke._handlePaginatorClick("before"))})("mousedown",function(Gt){return t.\u0275\u0275restoreView(nt),t.\u0275\u0275resetView(ke._handlePaginatorPress("before",Gt))})("touchend",function(){return t.\u0275\u0275restoreView(nt),t.\u0275\u0275resetView(ke._stopInterval())}),t.\u0275\u0275element(2,"div",6),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"div",7,1),t.\u0275\u0275listener("keydown",function(Gt){return t.\u0275\u0275restoreView(nt),t.\u0275\u0275resetView(ke._handleKeydown(Gt))}),t.\u0275\u0275elementStart(5,"div",8,2),t.\u0275\u0275listener("cdkObserveContent",function(){return t.\u0275\u0275restoreView(nt),t.\u0275\u0275resetView(ke._onContentChanges())}),t.\u0275\u0275elementStart(7,"div",9,3),t.\u0275\u0275projection(9),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(10,"button",10,4),t.\u0275\u0275listener("mousedown",function(Gt){return t.\u0275\u0275restoreView(nt),t.\u0275\u0275resetView(ke._handlePaginatorPress("after",Gt))})("click",function(){return t.\u0275\u0275restoreView(nt),t.\u0275\u0275resetView(ke._handlePaginatorClick("after"))})("touchend",function(){return t.\u0275\u0275restoreView(nt),t.\u0275\u0275resetView(ke._stopInterval())}),t.\u0275\u0275element(12,"div",6),t.\u0275\u0275elementEnd()}2&de&&(t.\u0275\u0275classProp("mat-mdc-tab-header-pagination-disabled",ke._disableScrollBefore),t.\u0275\u0275property("matRippleDisabled",ke._disableScrollBefore||ke.disableRipple)("disabled",ke._disableScrollBefore||null),t.\u0275\u0275advance(3),t.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===ke._animationMode),t.\u0275\u0275advance(7),t.\u0275\u0275classProp("mat-mdc-tab-header-pagination-disabled",ke._disableScrollAfter),t.\u0275\u0275property("matRippleDisabled",ke._disableScrollAfter||ke.disableRipple)("disabled",ke._disableScrollAfter||null))},dependencies:[_.MatRipple,U.Wv],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-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:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}return fe})();const dn=new t.InjectionToken("MAT_TABS_CONFIG"),cn={translateTab:(0,R.hZ)("translateTab",[(0,R.wk)("center, void, left-origin-center, right-origin-center",(0,R.iF)({transform:"none"})),(0,R.wk)("left",(0,R.iF)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,R.wk)("right",(0,R.iF)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,R.kY)("* => left, * => right, left => center, right => center",(0,R.i0)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,R.kY)("void => left-origin-center",[(0,R.iF)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,R.i0)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,R.kY)("void => right-origin-center",[(0,R.iF)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,R.i0)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let rn=(()=>{class fe extends C.I3{constructor(te,de,ke,nt){super(te,de,nt),this._host=ke,this._centeringSub=c.yU.EMPTY,this._leavingSub=c.yU.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,k.Z)(this._host._isCenterPosition(this._host._position))).subscribe(te=>{te&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static#e=this.\u0275fac=function(de){return new(de||fe)(t.\u0275\u0275directiveInject(t.ComponentFactoryResolver),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject((0,t.forwardRef)(()=>hn)),t.\u0275\u0275directiveInject(S.DOCUMENT))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:fe,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[t.\u0275\u0275InheritDefinitionFeature]})}return fe})(),hn=(()=>{class fe{set position(te){this._positionIndex=te,this._computePositionAnimationState()}constructor(te,de,ke){this._elementRef=te,this._dir=de,this._dirChangeSubscription=c.yU.EMPTY,this._translateTabComplete=new E.B,this._onCentering=new t.EventEmitter,this._beforeCentering=new t.EventEmitter,this._afterLeavingCenter=new t.EventEmitter,this._onCentered=new t.EventEmitter(!0),this.animationDuration="500ms",this.preserveContent=!1,de&&(this._dirChangeSubscription=de.change.subscribe(nt=>{this._computePositionAnimationState(nt),ke.markForCheck()})),this._translateTabComplete.pipe((0,T.F)((nt,It)=>nt.fromState===It.fromState&&nt.toState===It.toState)).subscribe(nt=>{this._isCenterPosition(nt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(nt.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(te){const de=this._isCenterPosition(te.toState);this._beforeCentering.emit(de),de&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(te){return"center"==te||"left-origin-center"==te||"right-origin-center"==te}_computePositionAnimationState(te=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==te?"left":"right":this._positionIndex>0?"ltr"==te?"right":"left":"center"}_computePositionFromOrigin(te){const de=this._getLayoutDirection();return"ltr"==de&&te<=0||"rtl"==de&&te>0?"left-origin-center":"right-origin-center"}static#e=this.\u0275fac=function(de){return new(de||fe)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(p.dS,8),t.\u0275\u0275directiveInject(t.ChangeDetectorRef))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:fe,selectors:[["mat-tab-body"]],viewQuery:function(de,ke){if(1&de&&t.\u0275\u0275viewQuery(C.I3,5),2&de){let nt;t.\u0275\u0275queryRefresh(nt=t.\u0275\u0275loadQuery())&&(ke._portalHost=nt.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[t.\u0275\u0275InputFlags.None,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[t.\u0275\u0275StandaloneFeature],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(de,ke){if(1&de){const nt=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",1,0),t.\u0275\u0275listener("@translateTab.start",function(Gt){return t.\u0275\u0275restoreView(nt),t.\u0275\u0275resetView(ke._onTranslateTabStarted(Gt))})("@translateTab.done",function(Gt){return t.\u0275\u0275restoreView(nt),t.\u0275\u0275resetView(ke._translateTabComplete.next(Gt))}),t.\u0275\u0275template(2,V,0,0,"ng-template",2),t.\u0275\u0275elementEnd()}2&de&&t.\u0275\u0275property("@translateTab",t.\u0275\u0275pureFunction2(3,G,ke._position,t.\u0275\u0275pureFunction1(1,j,ke.animationDuration)))},dependencies:[rn,r.uv],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[cn.translateTab]}})}return fe})(),Nt=0,_e=(()=>{class fe{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(te){this._fitInkBarToContent=te,this._changeDetectorRef.markForCheck()}get selectedIndex(){return this._selectedIndex}set selectedIndex(te){this._indexToSelect=isNaN(te)?null:te}get animationDuration(){return this._animationDuration}set animationDuration(te){const de=te+"";this._animationDuration=/^\d+$/.test(de)?te+"ms":de}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(te){this._contentTabIndex=isNaN(te)?null:te}get backgroundColor(){return this._backgroundColor}set backgroundColor(te){const de=this._elementRef.nativeElement.classList;de.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),te&&de.add("mat-tabs-with-background",`mat-background-${te}`),this._backgroundColor=te}constructor(te,de,ke,nt){this._elementRef=te,this._changeDetectorRef=de,this._animationMode=nt,this._tabs=new t.QueryList,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=c.yU.EMPTY,this._tabLabelSubscription=c.yU.EMPTY,this._fitInkBarToContent=!1,this.stretchTabs=!0,this.dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.disablePagination=!1,this.disableRipple=!1,this.preserveContent=!1,this.selectedIndexChange=new t.EventEmitter,this.focusChange=new t.EventEmitter,this.animationDone=new t.EventEmitter,this.selectedTabChange=new t.EventEmitter(!0),this._isServer=!(0,t.inject)(h.OD).isBrowser,this._groupId=Nt++,this.animationDuration=ke&&ke.animationDuration?ke.animationDuration:"500ms",this.disablePagination=!(!ke||null==ke.disablePagination)&&ke.disablePagination,this.dynamicHeight=!(!ke||null==ke.dynamicHeight)&&ke.dynamicHeight,null!=ke?.contentTabIndex&&(this.contentTabIndex=ke.contentTabIndex),this.preserveContent=!!ke?.preserveContent,this.fitInkBarToContent=!(!ke||null==ke.fitInkBarToContent)&&ke.fitInkBarToContent,this.stretchTabs=!ke||null==ke.stretchTabs||ke.stretchTabs}ngAfterContentChecked(){const te=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=te){const de=null==this._selectedIndex;if(!de){this.selectedTabChange.emit(this._createChangeEvent(te));const ke=this._tabBodyWrapper.nativeElement;ke.style.minHeight=ke.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((ke,nt)=>ke.isActive=nt===te),de||(this.selectedIndexChange.emit(te),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((de,ke)=>{de.position=ke-te,null!=this._selectedIndex&&0==de.position&&!de.origin&&(de.origin=te-this._selectedIndex)}),this._selectedIndex!==te&&(this._selectedIndex=te,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const te=this._clampTabIndex(this._indexToSelect);if(te===this._selectedIndex){const de=this._tabs.toArray();let ke;for(let nt=0;nt{de[te].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(te))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,k.Z)(this._allTabs)).subscribe(te=>{this._tabs.reset(te.filter(de=>de._closestTabGroup===this||!de._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(te){const de=this._tabHeader;de&&(de.focusIndex=te)}_focusChanged(te){this._lastFocusedTabIndex=te,this.focusChange.emit(this._createChangeEvent(te))}_createChangeEvent(te){const de=new Ze;return de.index=te,this._tabs&&this._tabs.length&&(de.tab=this._tabs.toArray()[te]),de}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,s.h)(...this._tabs.map(te=>te._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(te){return Math.min(this._tabs.length-1,Math.max(te||0,0))}_getTabLabelId(te){return`mat-tab-label-${this._groupId}-${te}`}_getTabContentId(te){return`mat-tab-content-${this._groupId}-${te}`}_setTabBodyWrapperHeight(te){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return;const de=this._tabBodyWrapper.nativeElement;de.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(de.style.height=te+"px")}_removeTabBodyWrapperHeight(){const te=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=te.clientHeight,te.style.height="",this.animationDone.emit()}_handleClick(te,de,ke){de.focusIndex=ke,te.disabled||(this.selectedIndex=ke)}_getTabIndex(te){return te===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(te,de){te&&"mouse"!==te&&"touch"!==te&&(this._tabHeader.focusIndex=de)}static#e=this.\u0275fac=function(de){return new(de||fe)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(dn,8),t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:fe,selectors:[["mat-tab-group"]],contentQueries:function(de,ke,nt){if(1&de&&t.\u0275\u0275contentQuery(nt,Q,5),2&de){let It;t.\u0275\u0275queryRefresh(It=t.\u0275\u0275loadQuery())&&(ke._allTabs=It)}},viewQuery:function(de,ke){if(1&de&&(t.\u0275\u0275viewQuery(W,5),t.\u0275\u0275viewQuery(K,5)),2&de){let nt;t.\u0275\u0275queryRefresh(nt=t.\u0275\u0275loadQuery())&&(ke._tabBodyWrapper=nt.first),t.\u0275\u0275queryRefresh(nt=t.\u0275\u0275loadQuery())&&(ke._tabHeader=nt.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(de,ke){2&de&&(t.\u0275\u0275classMap("mat-"+(ke.color||"primary")),t.\u0275\u0275styleProp("--mat-tab-animation-duration",ke.animationDuration),t.\u0275\u0275classProp("mat-mdc-tab-group-dynamic-height",ke.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===ke.headerPosition)("mat-mdc-tab-group-stretch-tabs",ke.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"fitInkBarToContent","fitInkBarToContent",t.booleanAttribute],stretchTabs:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"mat-stretch-tabs","stretchTabs",t.booleanAttribute],dynamicHeight:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"dynamicHeight","dynamicHeight",t.booleanAttribute],selectedIndex:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"selectedIndex","selectedIndex",t.numberAttribute],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"contentTabIndex","contentTabIndex",t.numberAttribute],disablePagination:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disablePagination","disablePagination",t.booleanAttribute],disableRipple:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",t.booleanAttribute],preserveContent:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"preserveContent","preserveContent",t.booleanAttribute],backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:Se,useExisting:fe}]),t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:N,decls:9,vars:6,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","ngClass","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","ngClass","content","position","origin","animationDuration","preserveContent"]],template:function(de,ke){if(1&de){const nt=t.\u0275\u0275getCurrentView();t.\u0275\u0275projectionDef(),t.\u0275\u0275elementStart(0,"mat-tab-header",3,0),t.\u0275\u0275listener("indexFocused",function(Gt){return t.\u0275\u0275restoreView(nt),t.\u0275\u0275resetView(ke._focusChanged(Gt))})("selectFocusedIndex",function(Gt){return t.\u0275\u0275restoreView(nt),t.\u0275\u0275resetView(ke.selectedIndex=Gt)}),t.\u0275\u0275repeaterCreate(2,Ye,8,16,"div",4,t.\u0275\u0275repeaterTrackByIdentity),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(4,pt,1,0),t.\u0275\u0275elementStart(5,"div",5,1),t.\u0275\u0275repeaterCreate(7,ct,1,12,"mat-tab-body",6,t.\u0275\u0275repeaterTrackByIdentity),t.\u0275\u0275elementEnd()}2&de&&(t.\u0275\u0275property("selectedIndex",ke.selectedIndex||0)("disableRipple",ke.disableRipple)("disablePagination",ke.disablePagination),t.\u0275\u0275advance(2),t.\u0275\u0275repeater(ke._tabs),t.\u0275\u0275advance(2),t.\u0275\u0275conditional(4,ke._isServer?4:-1),t.\u0275\u0275advance(),t.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===ke._animationMode),t.\u0275\u0275advance(2),t.\u0275\u0275repeater(ke._tabs))},dependencies:[un,De,v.vR,S.NgClass,_.MatRipple,C.I3,hn],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}return fe})();class Ze{}let Qe=0,Ot=(()=>{class fe extends Xt{get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(te){this._fitInkBarToContent.next(te),this._changeDetectorRef.markForCheck()}get animationDuration(){return this._animationDuration}set animationDuration(te){const de=te+"";this._animationDuration=/^\d+$/.test(de)?te+"ms":de}get backgroundColor(){return this._backgroundColor}set backgroundColor(te){const de=this._elementRef.nativeElement.classList;de.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),te&&de.add("mat-tabs-with-background",`mat-background-${te}`),this._backgroundColor=te}constructor(te,de,ke,nt,It,Gt,an,_t){super(te,nt,It,de,ke,Gt,an),this._fitInkBarToContent=new o.t(!1),this.stretchTabs=!0,this.disableRipple=!1,this.color="primary",this.disablePagination=!(!_t||null==_t.disablePagination)&&_t.disablePagination,this.fitInkBarToContent=!(!_t||null==_t.fitInkBarToContent)&&_t.fitInkBarToContent,this.stretchTabs=!_t||null==_t.stretchTabs||_t.stretchTabs}_itemSelected(){}ngAfterContentInit(){this._inkBar=new bt(this._items),this._items.changes.pipe((0,k.Z)(null),(0,M.Q)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}ngAfterViewInit(){super.ngAfterViewInit()}updateActiveLink(){if(!this._items)return;const te=this._items.toArray();for(let de=0;de.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}"],encapsulation:2})}return fe})(),tt=(()=>{class fe extends it{get active(){return this._isActive}set active(te){te!==this._isActive&&(this._isActive=te,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}constructor(te,de,ke,nt,It,Gt){super(),this._tabNavBar=te,this.elementRef=de,this._focusMonitor=It,this._destroyed=new E.B,this._isActive=!1,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.id="mat-tab-link-"+Qe++,this.rippleConfig=ke||{},this.tabIndex=parseInt(nt)||0,"NoopAnimations"===Gt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),te._fitInkBarToContent.pipe((0,M.Q)(this._destroyed)).subscribe(an=>{this.fitInkBarToContent=an})}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),super.ngOnDestroy(),this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(te){(te.keyCode===y.t6||te.keyCode===y.Fm)&&(this.disabled?te.preventDefault():this._tabNavBar.tabPanel&&(te.keyCode===y.t6&&te.preventDefault(),this.elementRef.nativeElement.click()))}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.disabled?-1:this.tabIndex}static#e=this.\u0275fac=function(de){return new(de||fe)(t.\u0275\u0275directiveInject(Ot),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(_.MAT_RIPPLE_GLOBAL_OPTIONS,8),t.\u0275\u0275injectAttribute("tabindex"),t.\u0275\u0275directiveInject(v.FN),t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:fe,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-mdc-focus-indicator"],hostVars:11,hostBindings:function(de,ke){1&de&&t.\u0275\u0275listener("focus",function(){return ke._handleFocus()})("keydown",function(It){return ke._handleKeydown(It)}),2&de&&(t.\u0275\u0275attribute("aria-controls",ke._getAriaControls())("aria-current",ke._getAriaCurrent())("aria-disabled",ke.disabled)("aria-selected",ke._getAriaSelected())("id",ke.id)("tabIndex",ke._getTabIndex())("role",ke._getRole()),t.\u0275\u0275classProp("mat-mdc-tab-disabled",ke.disabled)("mdc-tab--active",ke.active))},inputs:{active:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"active","active",t.booleanAttribute],disabled:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disabled","disabled",t.booleanAttribute],disableRipple:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"disableRipple","disableRipple",t.booleanAttribute],tabIndex:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"tabIndex","tabIndex",te=>null==te?0:(0,t.numberAttribute)(te)],id:"id"},exportAs:["matTabLink"],standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275StandaloneFeature],attrs:We,ngContentSelectors:N,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],template:function(de,ke){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275element(0,"span",0)(1,"div",1),t.\u0275\u0275elementStart(2,"span",2)(3,"span",3),t.\u0275\u0275projection(4),t.\u0275\u0275elementEnd()()),2&de&&(t.\u0275\u0275advance(),t.\u0275\u0275property("matRippleTrigger",ke.elementRef.nativeElement)("matRippleDisabled",ke.rippleDisabled))},dependencies:[_.MatRipple],styles:['.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab-link:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab-link:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}}'],encapsulation:2,changeDetection:0})}return fe})(),ft=(()=>{class fe{constructor(){this.id="mat-tab-nav-panel-"+Qe++}static#e=this.\u0275fac=function(de){return new(de||fe)};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:fe,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(de,ke){2&de&&t.\u0275\u0275attribute("aria-labelledby",ke._activeTabId)("id",ke.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],standalone:!0,features:[t.\u0275\u0275StandaloneFeature],ngContentSelectors:N,decls:1,vars:0,template:function(de,ke){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0})}return fe})(),Le=(()=>{class fe{static#e=this.\u0275fac=function(de){return new(de||fe)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:fe});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[_.MatCommonModule,_.MatCommonModule]})}return fe})()},5911:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MatToolbar:()=>f,MatToolbarModule:()=>l,MatToolbarRow:()=>s,throwToolbarMixedModesError:()=>d});var t=g(4438),_=g(6600),C=g(6860),E=g(177);const u=["*",[["mat-toolbar-row"]]],b=["*","mat-toolbar-row"];let s=(()=>{class c{static#e=this.\u0275fac=function(h){return new(h||c)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:c,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0})}return c})(),f=(()=>{class c{constructor(r,h,p){this._elementRef=r,this._platform=h,this._document=p}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static#e=this.\u0275fac=function(h){return new(h||c)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(C.OD),t.\u0275\u0275directiveInject(E.DOCUMENT))};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:c,selectors:[["mat-toolbar"]],contentQueries:function(h,p,v){if(1&h&&t.\u0275\u0275contentQuery(v,s,5),2&h){let y;t.\u0275\u0275queryRefresh(y=t.\u0275\u0275loadQuery())&&(p._toolbarRows=y)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(h,p){2&h&&(t.\u0275\u0275classMap(p.color?"mat-"+p.color:""),t.\u0275\u0275classProp("mat-toolbar-multiple-rows",p._toolbarRows.length>0)("mat-toolbar-single-row",0===p._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[t.\u0275\u0275StandaloneFeature],ngContentSelectors:b,decls:2,vars:0,template:function(h,p){1&h&&(t.\u0275\u0275projectionDef(u),t.\u0275\u0275projection(0),t.\u0275\u0275projection(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.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;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}return c})();function d(){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 l=(()=>{class c{static#e=this.\u0275fac=function(h){return new(h||c)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:c});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[_.MatCommonModule,_.MatCommonModule]})}return c})()},4823:(Te,ne,g)=>{"use strict";g.d(ne,{oV:()=>Y,uc:()=>$});var t=g(6977),_=g(6697),C=g(4085),E=g(7336),u=g(4438),b=g(177),s=g(6860),f=g(6039),d=g(8203),l=g(7987),c=g(5478),o=g(6939),r=g(1413),p=(g(9969),g(6600));const v=["tooltip"],w=new u.InjectionToken("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const j=(0,u.inject)(l.hJ);return()=>j.scrollStrategies.reposition({scrollThrottle:20})}}),I={provide:w,deps:[l.hJ],useFactory:function k(j){return()=>j.scrollStrategies.reposition({scrollThrottle:20})}},O=new u.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:function D(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),U="tooltip-panel",S=(0,s.BQ)({passive:!0});let Y=(()=>{class j{get position(){return this._position}set position(V){V!==this._position&&(this._position=V,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(V){this._positionAtOrigin=(0,C.he)(V),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(V){this._disabled=(0,C.he)(V),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(V){this._showDelay=(0,C.OE)(V)}get hideDelay(){return this._hideDelay}set hideDelay(V){this._hideDelay=(0,C.OE)(V),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(V){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=V?String(V).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(V){this._tooltipClass=V,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(V,W,K,ce,ue,ve,Ye,pt,ct,Ct,We,Ne){this._overlay=V,this._elementRef=W,this._scrollDispatcher=K,this._viewContainerRef=ce,this._ngZone=ue,this._platform=ve,this._ariaDescriber=Ye,this._focusMonitor=pt,this._dir=Ct,this._defaultOptions=We,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=ee,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new r.B,this._scrollStrategy=ct,this._document=Ne,We&&(this._showDelay=We.showDelay,this._hideDelay=We.hideDelay,We.position&&(this.position=We.position),We.positionAtOrigin&&(this.positionAtOrigin=We.positionAtOrigin),We.touchGestures&&(this.touchGestures=We.touchGestures)),Ct.change.pipe((0,t.Q)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,t.Q)(this._destroyed)).subscribe(V=>{V?"keyboard"===V&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const V=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([W,K])=>{V.removeEventListener(W,K,S)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(V,this.message,"tooltip"),this._focusMonitor.stopMonitoring(V)}show(V=this.showDelay,W){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const K=this._createOverlay(W);this._detach(),this._portal=this._portal||new o.A8(this._tooltipComponent,this._viewContainerRef);const ce=this._tooltipInstance=K.attach(this._portal).instance;ce._triggerElement=this._elementRef.nativeElement,ce._mouseLeaveHideDelay=this._hideDelay,ce.afterHidden().pipe((0,t.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),ce.show(V)}hide(V=this.hideDelay){const W=this._tooltipInstance;W&&(W.isVisible()?W.hide(V):(W._cancelPendingAnimations(),this._detach()))}toggle(V){this._isTooltipVisible()?this.hide():this.show(void 0,V)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(V){if(this._overlayRef){const ce=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!V)&&ce._origin instanceof u.ElementRef)return this._overlayRef;this._detach()}const W=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),K=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&V||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(W);return K.positionChanges.pipe((0,t.Q)(this._destroyed)).subscribe(ce=>{this._updateCurrentPositionClass(ce.connectionPair),this._tooltipInstance&&ce.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:K,panelClass:`${this._cssClassPrefix}-${U}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,t.Q)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,t.Q)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,t.Q)(this._destroyed)).subscribe(ce=>{this._isTooltipVisible()&&ce.keyCode===E._f&&!(0,E.rp)(ce)&&(ce.preventDefault(),ce.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(V){const W=V.getConfig().positionStrategy,K=this._getOrigin(),ce=this._getOverlayPosition();W.withPositions([this._addOffset({...K.main,...ce.main}),this._addOffset({...K.fallback,...ce.fallback})])}_addOffset(V){const K=!this._dir||"ltr"==this._dir.value;return"top"===V.originY?V.offsetY=-8:"bottom"===V.originY?V.offsetY=8:"start"===V.originX?V.offsetX=K?-8:8:"end"===V.originX&&(V.offsetX=K?8:-8),V}_getOrigin(){const V=!this._dir||"ltr"==this._dir.value,W=this.position;let K;"above"==W||"below"==W?K={originX:"center",originY:"above"==W?"top":"bottom"}:"before"==W||"left"==W&&V||"right"==W&&!V?K={originX:"start",originY:"center"}:("after"==W||"right"==W&&V||"left"==W&&!V)&&(K={originX:"end",originY:"center"});const{x:ce,y:ue}=this._invertPosition(K.originX,K.originY);return{main:K,fallback:{originX:ce,originY:ue}}}_getOverlayPosition(){const V=!this._dir||"ltr"==this._dir.value,W=this.position;let K;"above"==W?K={overlayX:"center",overlayY:"bottom"}:"below"==W?K={overlayX:"center",overlayY:"top"}:"before"==W||"left"==W&&V||"right"==W&&!V?K={overlayX:"end",overlayY:"center"}:("after"==W||"right"==W&&V||"left"==W&&!V)&&(K={overlayX:"start",overlayY:"center"});const{x:ce,y:ue}=this._invertPosition(K.overlayX,K.overlayY);return{main:K,fallback:{overlayX:ce,overlayY:ue}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,_.s)(1),(0,t.Q)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(V){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=V,this._tooltipInstance._markForCheck())}_invertPosition(V,W){return"above"===this.position||"below"===this.position?"top"===W?W="bottom":"bottom"===W&&(W="top"):"end"===V?V="start":"start"===V&&(V="end"),{x:V,y:W}}_updateCurrentPositionClass(V){const{overlayY:W,originX:K,originY:ce}=V;let ue;if(ue="center"===W?this._dir&&"rtl"===this._dir.value?"end"===K?"left":"right":"start"===K?"left":"right":"bottom"===W&&"top"===ce?"above":"below",ue!==this._currentPosition){const ve=this._overlayRef;if(ve){const Ye=`${this._cssClassPrefix}-${U}-`;ve.removePanelClass(Ye+this._currentPosition),ve.addPanelClass(Ye+ue)}this._currentPosition=ue}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",V=>{let W;this._setupPointerExitEventsIfNeeded(),void 0!==V.x&&void 0!==V.y&&(W=V),this.show(void 0,W)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",V=>{const W=V.targetTouches?.[0],K=W?{x:W.clientX,y:W.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,K),this._defaultOptions.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const V=[];if(this._platformSupportsMouseEvents())V.push(["mouseleave",W=>{const K=W.relatedTarget;(!K||!this._overlayRef?.overlayElement.contains(K))&&this.hide()}],["wheel",W=>this._wheelListener(W)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const W=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};V.push(["touchend",W],["touchcancel",W])}this._addListeners(V),this._passiveListeners.push(...V)}_addListeners(V){V.forEach(([W,K])=>{this._elementRef.nativeElement.addEventListener(W,K,S)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(V){if(this._isTooltipVisible()){const W=this._document.elementFromPoint(V.clientX,V.clientY),K=this._elementRef.nativeElement;W!==K&&!K.contains(W)&&this.hide()}}_disableNativeGesturesIfNecessary(){const V=this.touchGestures;if("off"!==V){const W=this._elementRef.nativeElement,K=W.style;("on"===V||"INPUT"!==W.nodeName&&"TEXTAREA"!==W.nodeName)&&(K.userSelect=K.msUserSelect=K.webkitUserSelect=K.MozUserSelect="none"),("on"===V||!W.draggable)&&(K.webkitUserDrag="none"),K.touchAction="none",K.webkitTapHighlightColor="transparent"}}static#e=this.\u0275fac=function(W){return new(W||j)(u.\u0275\u0275directiveInject(l.hJ),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(c.R),u.\u0275\u0275directiveInject(u.ViewContainerRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(s.OD),u.\u0275\u0275directiveInject(f.vr),u.\u0275\u0275directiveInject(f.FN),u.\u0275\u0275directiveInject(w),u.\u0275\u0275directiveInject(d.dS),u.\u0275\u0275directiveInject(O,8),u.\u0275\u0275directiveInject(b.DOCUMENT))};static#t=this.\u0275dir=u.\u0275\u0275defineDirective({type:j,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(W,K){2&W&&u.\u0275\u0275classProp("mat-mdc-tooltip-disabled",K.disabled)},inputs:{position:[u.\u0275\u0275InputFlags.None,"matTooltipPosition","position"],positionAtOrigin:[u.\u0275\u0275InputFlags.None,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[u.\u0275\u0275InputFlags.None,"matTooltipDisabled","disabled"],showDelay:[u.\u0275\u0275InputFlags.None,"matTooltipShowDelay","showDelay"],hideDelay:[u.\u0275\u0275InputFlags.None,"matTooltipHideDelay","hideDelay"],touchGestures:[u.\u0275\u0275InputFlags.None,"matTooltipTouchGestures","touchGestures"],message:[u.\u0275\u0275InputFlags.None,"matTooltip","message"],tooltipClass:[u.\u0275\u0275InputFlags.None,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0})}return j})(),ee=(()=>{class j{constructor(V,W,K){this._changeDetectorRef=V,this._elementRef=W,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new r.B,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled="NoopAnimations"===K}show(V){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},V)}hide(V){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},V)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:V}){(!V||!this._triggerElement.contains(V))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const V=this._elementRef.nativeElement.getBoundingClientRect();return V.height>24&&V.width>=200}_handleAnimationEnd({animationName:V}){(V===this._showAnimation||V===this._hideAnimation)&&this._finalizeAnimation(V===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(V){V?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(V){const W=this._tooltip.nativeElement,K=this._showAnimation,ce=this._hideAnimation;if(W.classList.remove(V?ce:K),W.classList.add(V?K:ce),this._isVisible=V,V&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const ue=getComputedStyle(W);("0s"===ue.getPropertyValue("animation-duration")||"none"===ue.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}V&&this._onShow(),this._animationsDisabled&&(W.classList.add("_mat-animation-noopable"),this._finalizeAnimation(V))}static#e=this.\u0275fac=function(W){return new(W||j)(u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:j,selectors:[["mat-tooltip-component"]],viewQuery:function(W,K){if(1&W&&u.\u0275\u0275viewQuery(v,7),2&W){let ce;u.\u0275\u0275queryRefresh(ce=u.\u0275\u0275loadQuery())&&(K._tooltip=ce.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(W,K){1&W&&u.\u0275\u0275listener("mouseleave",function(ue){return K._handleMouseLeave(ue)}),2&W&&u.\u0275\u0275styleProp("zoom",K.isVisible()?1:null)},standalone:!0,features:[u.\u0275\u0275StandaloneFeature],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(W,K){if(1&W){const ce=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"div",1,0),u.\u0275\u0275listener("animationend",function(ve){return u.\u0275\u0275restoreView(ce),u.\u0275\u0275resetView(K._handleAnimationEnd(ve))}),u.\u0275\u0275elementStart(2,"div",2),u.\u0275\u0275text(3),u.\u0275\u0275elementEnd()()}2&W&&(u.\u0275\u0275classProp("mdc-tooltip--multiline",K._isMultiline),u.\u0275\u0275property("ngClass",K.tooltipClass),u.\u0275\u0275advance(3),u.\u0275\u0275textInterpolate(K.message))},dependencies:[b.NgClass],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return j})(),$=(()=>{class j{static#e=this.\u0275fac=function(W){return new(W||j)};static#t=this.\u0275mod=u.\u0275\u0275defineNgModule({type:j});static#n=this.\u0275inj=u.\u0275\u0275defineInjector({providers:[I],imports:[f.Pd,b.CommonModule,l.z_,p.MatCommonModule,p.MatCommonModule,c.Gj]})}return j})()},345:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{BrowserModule:()=>Ee,By:()=>De,DomSanitizer:()=>rn,EVENT_MANAGER_PLUGINS:()=>c,EventManager:()=>o,EventManagerPlugin:()=>r,HAMMER_GESTURE_CONFIG:()=>jt,HAMMER_LOADER:()=>Xt,HammerGestureConfig:()=>un,HammerModule:()=>cn,HydrationFeatureKind:()=>Nt,Meta:()=>be,REMOVE_STYLES_ON_COMPONENT_DESTROY:()=>D,Title:()=>Q,TransferState:()=>Le,VERSION:()=>tt,bootstrapApplication:()=>K,createApplication:()=>ce,disableDebugTools:()=>He,enableDebugTools:()=>ye,makeStateKey:()=>ft,platformBrowser:()=>We,provideClientHydration:()=>Ot,provideProtractorTestingSupport:()=>ve,withHttpTransferCacheOptions:()=>Ze,withNoHttpTransferCache:()=>_e,\u0275BrowserDomAdapter:()=>u,\u0275BrowserGetTestability:()=>d,\u0275DomEventsPlugin:()=>$,\u0275DomRendererFactory2:()=>S,\u0275DomSanitizerImpl:()=>hn,\u0275HammerGesturesPlugin:()=>dn,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>Ct,\u0275KeyEventsPlugin:()=>W,\u0275SharedStylesHost:()=>p,\u0275getDOM:()=>_.\u0275getDOM,\u0275initDomAdapter:()=>Ye});var t=g(4438),_=g(177),C=g(1626);class E extends _.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class u extends E{static makeCurrent(){(0,_.\u0275setRootDomAdapter)(new u)}onAndCancel(Ge,te,de){return Ge.addEventListener(te,de),()=>{Ge.removeEventListener(te,de)}}dispatchEvent(Ge,te){Ge.dispatchEvent(te)}remove(Ge){Ge.parentNode&&Ge.parentNode.removeChild(Ge)}createElement(Ge,te){return(te=te||this.getDefaultDocument()).createElement(Ge)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ge){return Ge.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ge){return Ge instanceof DocumentFragment}getGlobalEventTarget(Ge,te){return"window"===te?window:"document"===te?Ge:"body"===te?Ge.body:null}getBaseHref(Ge){const te=function s(){return b=b||document.querySelector("base"),b?b.getAttribute("href"):null}();return null==te?null:function f(fe){return new URL(fe,document.baseURI).pathname}(te)}resetBaseElement(){b=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ge){return(0,_.\u0275parseCookieValue)(document.cookie,Ge)}}let b=null;class d{addToWindow(Ge){t.\u0275global.getAngularTestability=(de,ke=!0)=>{const nt=Ge.findTestabilityInTree(de,ke);if(null==nt)throw new t.\u0275RuntimeError(5103,!1);return nt},t.\u0275global.getAllAngularTestabilities=()=>Ge.getAllTestabilities(),t.\u0275global.getAllAngularRootElements=()=>Ge.getAllRootElements(),t.\u0275global.frameworkStabilizers||(t.\u0275global.frameworkStabilizers=[]),t.\u0275global.frameworkStabilizers.push(de=>{const ke=t.\u0275global.getAllAngularTestabilities();let nt=ke.length;const It=function(){nt--,0==nt&&de()};ke.forEach(Gt=>{Gt.whenStable(It)})})}findTestabilityInTree(Ge,te,de){return null==te?null:Ge.getTestability(te)??(de?(0,_.\u0275getDOM)().isShadowRoot(te)?this.findTestabilityInTree(Ge,te.host,!0):this.findTestabilityInTree(Ge,te.parentElement,!0):null)}}let l=(()=>{class fe{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(de){return new(de||fe)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac})}return fe})();const c=new t.InjectionToken("");let o=(()=>{class fe{constructor(te,de){this._zone=de,this._eventNameToPlugin=new Map,te.forEach(ke=>{ke.manager=this}),this._plugins=te.slice().reverse()}addEventListener(te,de,ke){return this._findPluginFor(de).addEventListener(te,de,ke)}getZone(){return this._zone}_findPluginFor(te){let de=this._eventNameToPlugin.get(te);if(de)return de;if(de=this._plugins.find(nt=>nt.supports(te)),!de)throw new t.\u0275RuntimeError(5101,!1);return this._eventNameToPlugin.set(te,de),de}static#e=this.\u0275fac=function(de){return new(de||fe)(t.\u0275\u0275inject(c),t.\u0275\u0275inject(t.NgZone))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac})}return fe})();class r{constructor(Ge){this._doc=Ge}}const h="ng-app-id";let p=(()=>{class fe{constructor(te,de,ke,nt={}){this.doc=te,this.appId=de,this.nonce=ke,this.platformId=nt,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,_.isPlatformServer)(nt),this.resetHostNodes()}addStyles(te){for(const de of te)1===this.changeUsageCount(de,1)&&this.onStyleAdded(de)}removeStyles(te){for(const de of te)this.changeUsageCount(de,-1)<=0&&this.onStyleRemoved(de)}ngOnDestroy(){const te=this.styleNodesInDOM;te&&(te.forEach(de=>de.remove()),te.clear());for(const de of this.getAllStyles())this.onStyleRemoved(de);this.resetHostNodes()}addHost(te){this.hostNodes.add(te);for(const de of this.getAllStyles())this.addStyleToHost(te,de)}removeHost(te){this.hostNodes.delete(te)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(te){for(const de of this.hostNodes)this.addStyleToHost(de,te)}onStyleRemoved(te){const de=this.styleRef;de.get(te)?.elements?.forEach(ke=>ke.remove()),de.delete(te)}collectServerRenderedStyles(){const te=this.doc.head?.querySelectorAll(`style[${h}="${this.appId}"]`);if(te?.length){const de=new Map;return te.forEach(ke=>{null!=ke.textContent&&de.set(ke.textContent,ke)}),de}return null}changeUsageCount(te,de){const ke=this.styleRef;if(ke.has(te)){const nt=ke.get(te);return nt.usage+=de,nt.usage}return ke.set(te,{usage:de,elements:[]}),de}getStyleElement(te,de){const ke=this.styleNodesInDOM,nt=ke?.get(de);if(nt?.parentNode===te)return ke.delete(de),nt.removeAttribute(h),nt;{const It=this.doc.createElement("style");return this.nonce&&It.setAttribute("nonce",this.nonce),It.textContent=de,this.platformIsServer&&It.setAttribute(h,this.appId),te.appendChild(It),It}}addStyleToHost(te,de){const ke=this.getStyleElement(te,de),nt=this.styleRef,It=nt.get(de)?.elements;It?It.push(ke):nt.set(de,{elements:[ke],usage:1})}resetHostNodes(){const te=this.hostNodes;te.clear(),te.add(this.doc.head)}static#e=this.\u0275fac=function(de){return new(de||fe)(t.\u0275\u0275inject(_.DOCUMENT),t.\u0275\u0275inject(t.APP_ID),t.\u0275\u0275inject(t.CSP_NONCE,8),t.\u0275\u0275inject(t.PLATFORM_ID))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac})}return fe})();const v={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/",math:"http://www.w3.org/1998/MathML/"},y=/%COMP%/g,M="%COMP%",w=`_nghost-${M}`,k=`_ngcontent-${M}`,D=new t.InjectionToken("",{providedIn:"root",factory:()=>!0});function U(fe,Ge){return Ge.map(te=>te.replace(y,fe))}let S=(()=>{class fe{constructor(te,de,ke,nt,It,Gt,an,_t=null){this.eventManager=te,this.sharedStylesHost=de,this.appId=ke,this.removeStylesOnCompDestroy=nt,this.doc=It,this.platformId=Gt,this.ngZone=an,this.nonce=_t,this.rendererByCompId=new Map,this.platformIsServer=(0,_.isPlatformServer)(Gt),this.defaultRenderer=new R(te,It,an,this.platformIsServer)}createRenderer(te,de){if(!te||!de)return this.defaultRenderer;this.platformIsServer&&de.encapsulation===t.ViewEncapsulation.ShadowDom&&(de={...de,encapsulation:t.ViewEncapsulation.Emulated});const ke=this.getOrCreateRenderer(te,de);return ke instanceof ie?ke.applyToHost(te):ke instanceof ee&&ke.applyStyles(),ke}getOrCreateRenderer(te,de){const ke=this.rendererByCompId;let nt=ke.get(de.id);if(!nt){const It=this.doc,Gt=this.ngZone,an=this.eventManager,_t=this.sharedStylesHost,Lt=this.removeStylesOnCompDestroy,Je=this.platformIsServer;switch(de.encapsulation){case t.ViewEncapsulation.Emulated:nt=new ie(an,_t,de,this.appId,Lt,It,Gt,Je);break;case t.ViewEncapsulation.ShadowDom:return new Y(an,_t,te,de,It,Gt,this.nonce,Je);default:nt=new ee(an,_t,de,Lt,It,Gt,Je)}ke.set(de.id,nt)}return nt}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(de){return new(de||fe)(t.\u0275\u0275inject(o),t.\u0275\u0275inject(p),t.\u0275\u0275inject(t.APP_ID),t.\u0275\u0275inject(D),t.\u0275\u0275inject(_.DOCUMENT),t.\u0275\u0275inject(t.PLATFORM_ID),t.\u0275\u0275inject(t.NgZone),t.\u0275\u0275inject(t.CSP_NONCE))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac})}return fe})();class R{constructor(Ge,te,de,ke){this.eventManager=Ge,this.doc=te,this.ngZone=de,this.platformIsServer=ke,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(Ge,te){return te?this.doc.createElementNS(v[te]||te,Ge):this.doc.createElement(Ge)}createComment(Ge){return this.doc.createComment(Ge)}createText(Ge){return this.doc.createTextNode(Ge)}appendChild(Ge,te){(F(Ge)?Ge.content:Ge).appendChild(te)}insertBefore(Ge,te,de){Ge&&(F(Ge)?Ge.content:Ge).insertBefore(te,de)}removeChild(Ge,te){Ge&&Ge.removeChild(te)}selectRootElement(Ge,te){let de="string"==typeof Ge?this.doc.querySelector(Ge):Ge;if(!de)throw new t.\u0275RuntimeError(-5104,!1);return te||(de.textContent=""),de}parentNode(Ge){return Ge.parentNode}nextSibling(Ge){return Ge.nextSibling}setAttribute(Ge,te,de,ke){if(ke){te=ke+":"+te;const nt=v[ke];nt?Ge.setAttributeNS(nt,te,de):Ge.setAttribute(te,de)}else Ge.setAttribute(te,de)}removeAttribute(Ge,te,de){if(de){const ke=v[de];ke?Ge.removeAttributeNS(ke,te):Ge.removeAttribute(`${de}:${te}`)}else Ge.removeAttribute(te)}addClass(Ge,te){Ge.classList.add(te)}removeClass(Ge,te){Ge.classList.remove(te)}setStyle(Ge,te,de,ke){ke&(t.RendererStyleFlags2.DashCase|t.RendererStyleFlags2.Important)?Ge.style.setProperty(te,de,ke&t.RendererStyleFlags2.Important?"important":""):Ge.style[te]=de}removeStyle(Ge,te,de){de&t.RendererStyleFlags2.DashCase?Ge.style.removeProperty(te):Ge.style[te]=""}setProperty(Ge,te,de){null!=Ge&&(Ge[te]=de)}setValue(Ge,te){Ge.nodeValue=te}listen(Ge,te,de){if("string"==typeof Ge&&!(Ge=(0,_.\u0275getDOM)().getGlobalEventTarget(this.doc,Ge)))throw new Error(`Unsupported event target ${Ge} for event ${te}`);return this.eventManager.addEventListener(Ge,te,this.decoratePreventDefault(de))}decoratePreventDefault(Ge){return te=>{if("__ngUnwrap__"===te)return Ge;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Ge(te)):Ge(te))&&te.preventDefault()}}}function F(fe){return"TEMPLATE"===fe.tagName&&void 0!==fe.content}class Y extends R{constructor(Ge,te,de,ke,nt,It,Gt,an){super(Ge,nt,It,an),this.sharedStylesHost=te,this.hostEl=de,this.shadowRoot=de.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const _t=U(ke.id,ke.styles);for(const Lt of _t){const Je=document.createElement("style");Gt&&Je.setAttribute("nonce",Gt),Je.textContent=Lt,this.shadowRoot.appendChild(Je)}}nodeOrShadowRoot(Ge){return Ge===this.hostEl?this.shadowRoot:Ge}appendChild(Ge,te){return super.appendChild(this.nodeOrShadowRoot(Ge),te)}insertBefore(Ge,te,de){return super.insertBefore(this.nodeOrShadowRoot(Ge),te,de)}removeChild(Ge,te){return super.removeChild(this.nodeOrShadowRoot(Ge),te)}parentNode(Ge){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ge)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class ee extends R{constructor(Ge,te,de,ke,nt,It,Gt,an){super(Ge,nt,It,Gt),this.sharedStylesHost=te,this.removeStylesOnCompDestroy=ke,this.styles=an?U(an,de.styles):de.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class ie extends ee{constructor(Ge,te,de,ke,nt,It,Gt,an){const _t=ke+"-"+de.id;super(Ge,te,de,nt,It,Gt,an,_t),this.contentAttr=function O(fe){return k.replace(y,fe)}(_t),this.hostAttr=function T(fe){return w.replace(y,fe)}(_t)}applyToHost(Ge){this.applyStyles(),this.setAttribute(Ge,this.hostAttr,"")}createElement(Ge,te){const de=super.createElement(Ge,te);return super.setAttribute(de,this.contentAttr,""),de}}let $=(()=>{class fe extends r{constructor(te){super(te)}supports(te){return!0}addEventListener(te,de,ke){return te.addEventListener(de,ke,!1),()=>this.removeEventListener(te,de,ke)}removeEventListener(te,de,ke){return te.removeEventListener(de,ke)}static#e=this.\u0275fac=function(de){return new(de||fe)(t.\u0275\u0275inject(_.DOCUMENT))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac})}return fe})();const j=["alt","control","meta","shift"],G={"\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"},V={alt:fe=>fe.altKey,control:fe=>fe.ctrlKey,meta:fe=>fe.metaKey,shift:fe=>fe.shiftKey};let W=(()=>{class fe extends r{constructor(te){super(te)}supports(te){return null!=fe.parseEventName(te)}addEventListener(te,de,ke){const nt=fe.parseEventName(de),It=fe.eventCallback(nt.fullKey,ke,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,_.\u0275getDOM)().onAndCancel(te,nt.domEventName,It))}static parseEventName(te){const de=te.toLowerCase().split("."),ke=de.shift();if(0===de.length||"keydown"!==ke&&"keyup"!==ke)return null;const nt=fe._normalizeKey(de.pop());let It="",Gt=de.indexOf("code");if(Gt>-1&&(de.splice(Gt,1),It="code."),j.forEach(_t=>{const Lt=de.indexOf(_t);Lt>-1&&(de.splice(Lt,1),It+=_t+".")}),It+=nt,0!=de.length||0===nt.length)return null;const an={};return an.domEventName=ke,an.fullKey=It,an}static matchEventFullKeyCode(te,de){let ke=G[te.key]||te.key,nt="";return de.indexOf("code.")>-1&&(ke=te.code,nt="code."),!(null==ke||!ke)&&(ke=ke.toLowerCase()," "===ke?ke="space":"."===ke&&(ke="dot"),j.forEach(It=>{It!==ke&&(0,V[It])(te)&&(nt+=It+".")}),nt+=ke,nt===de)}static eventCallback(te,de,ke){return nt=>{fe.matchEventFullKeyCode(nt,te)&&ke.runGuarded(()=>de(nt))}}static _normalizeKey(te){return"esc"===te?"escape":te}static#e=this.\u0275fac=function(de){return new(de||fe)(t.\u0275\u0275inject(_.DOCUMENT))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac})}return fe})();function K(fe,Ge){return(0,t.\u0275internalCreateApplication)({rootComponent:fe,...ue(Ge)})}function ce(fe){return(0,t.\u0275internalCreateApplication)(ue(fe))}function ue(fe){return{appProviders:[...rt,...fe?.providers??[]],platformProviders:Ct}}function ve(){return[...Ie]}function Ye(){u.makeCurrent()}const Ct=[{provide:t.PLATFORM_ID,useValue:_.\u0275PLATFORM_BROWSER_ID},{provide:t.PLATFORM_INITIALIZER,useValue:Ye,multi:!0},{provide:_.DOCUMENT,useFactory:function ct(){return(0,t.\u0275setDocument)(document),document},deps:[]}],We=(0,t.createPlatformFactory)(t.platformCore,"browser",Ct),Ne=new t.InjectionToken(""),Ie=[{provide:t.\u0275TESTABILITY_GETTER,useClass:d,deps:[]},{provide:t.\u0275TESTABILITY,useClass:t.Testability,deps:[t.NgZone,t.TestabilityRegistry,t.\u0275TESTABILITY_GETTER]},{provide:t.Testability,useClass:t.Testability,deps:[t.NgZone,t.TestabilityRegistry,t.\u0275TESTABILITY_GETTER]}],rt=[{provide:t.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:t.ErrorHandler,useFactory:function pt(){return new t.ErrorHandler},deps:[]},{provide:c,useClass:$,multi:!0,deps:[_.DOCUMENT,t.NgZone,t.PLATFORM_ID]},{provide:c,useClass:W,multi:!0,deps:[_.DOCUMENT]},S,p,o,{provide:t.RendererFactory2,useExisting:S},{provide:_.XhrFactory,useClass:l,deps:[]},[]];let Ee=(()=>{class fe{constructor(te){}static withServerTransition(te){return{ngModule:fe,providers:[{provide:t.APP_ID,useValue:te.appId}]}}static#e=this.\u0275fac=function(de){return new(de||fe)(t.\u0275\u0275inject(Ne,12))};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:fe});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({providers:[...rt,...Ie],imports:[_.CommonModule,t.ApplicationModule]})}return fe})(),be=(()=>{class fe{constructor(te){this._doc=te,this._dom=(0,_.\u0275getDOM)()}addTag(te,de=!1){return te?this._getOrCreateElement(te,de):null}addTags(te,de=!1){return te?te.reduce((ke,nt)=>(nt&&ke.push(this._getOrCreateElement(nt,de)),ke),[]):[]}getTag(te){return te&&this._doc.querySelector(`meta[${te}]`)||null}getTags(te){if(!te)return[];const de=this._doc.querySelectorAll(`meta[${te}]`);return de?[].slice.call(de):[]}updateTag(te,de){if(!te)return null;de=de||this._parseSelector(te);const ke=this.getTag(de);return ke?this._setMetaElementAttributes(te,ke):this._getOrCreateElement(te,!0)}removeTag(te){this.removeTagElement(this.getTag(te))}removeTagElement(te){te&&this._dom.remove(te)}_getOrCreateElement(te,de=!1){if(!de){const It=this._parseSelector(te),Gt=this.getTags(It).filter(an=>this._containsAttributes(te,an))[0];if(void 0!==Gt)return Gt}const ke=this._dom.createElement("meta");return this._setMetaElementAttributes(te,ke),this._doc.getElementsByTagName("head")[0].appendChild(ke),ke}_setMetaElementAttributes(te,de){return Object.keys(te).forEach(ke=>de.setAttribute(this._getMetaKeyMap(ke),te[ke])),de}_parseSelector(te){const de=te.name?"name":"property";return`${de}="${te[de]}"`}_containsAttributes(te,de){return Object.keys(te).every(ke=>de.getAttribute(this._getMetaKeyMap(ke))===te[ke])}_getMetaKeyMap(te){return Se[te]||te}static#e=this.\u0275fac=function(de){return new(de||fe)(t.\u0275\u0275inject(_.DOCUMENT))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"})}return fe})();const Se={httpEquiv:"http-equiv"};let Q=(()=>{class fe{constructor(te){this._doc=te}getTitle(){return this._doc.title}setTitle(te){this._doc.title=te||""}static#e=this.\u0275fac=function(de){return new(de||fe)(t.\u0275\u0275inject(_.DOCUMENT))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"})}return fe})();function pe(fe,Ge){(typeof COMPILED>"u"||!COMPILED)&&((t.\u0275global.ng=t.\u0275global.ng||{})[fe]=Ge)}class Re{constructor(Ge,te){this.msPerTick=Ge,this.numTicks=te}}class bt{constructor(Ge){this.appRef=Ge.injector.get(t.ApplicationRef)}timeChangeDetection(Ge){const te=Ge&&Ge.record,de="Change Detection";te&&"profile"in console&&"function"==typeof console.profile&&console.profile(de);const ke=performance.now();let nt=0;for(;nt<5||performance.now()-ke<500;)this.appRef.tick(),nt++;const It=performance.now();te&&"profileEnd"in console&&"function"==typeof console.profileEnd&&console.profileEnd(de);const Gt=(It-ke)/nt;return console.log(`ran ${nt} change detection cycles`),console.log(`${Gt.toFixed(2)} ms per check`),new Re(Gt,nt)}}const it="profiler";function ye(fe){return pe(it,new bt(fe)),fe}function He(){pe(it,null)}class De{static all(){return()=>!0}static css(Ge){return te=>null!=te.nativeElement&&function st(fe,Ge){return!!(0,_.\u0275getDOM)().isElementNode(fe)&&(fe.matches&&fe.matches(Ge)||fe.msMatchesSelector&&fe.msMatchesSelector(Ge)||fe.webkitMatchesSelector&&fe.webkitMatchesSelector(Ge))}(te.nativeElement,Ge)}static directive(Ge){return te=>-1!==te.providerTokens.indexOf(Ge)}}const xt={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},jt=new t.InjectionToken("HammerGestureConfig"),Xt=new t.InjectionToken("HammerLoader");let un=(()=>{class fe{constructor(){this.events=[],this.overrides={}}buildHammer(te){const de=new Hammer(te,this.options);de.get("pinch").set({enable:!0}),de.get("rotate").set({enable:!0});for(const ke in this.overrides)de.get(ke).set(this.overrides[ke]);return de}static#e=this.\u0275fac=function(de){return new(de||fe)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac})}return fe})(),dn=(()=>{class fe extends r{constructor(te,de,ke,nt){super(te),this._config=de,this.console=ke,this.loader=nt,this._loaderPromise=null}supports(te){return!(!xt.hasOwnProperty(te.toLowerCase())&&!this.isCustomEvent(te)||!window.Hammer&&!this.loader)}addEventListener(te,de,ke){const nt=this.manager.getZone();if(de=de.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||nt.runOutsideAngular(()=>this.loader());let It=!1,Gt=()=>{It=!0};return nt.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?It||(Gt=this.addEventListener(te,de,ke)):Gt=()=>{}}).catch(()=>{Gt=()=>{}})),()=>{Gt()}}return nt.runOutsideAngular(()=>{const It=this._config.buildHammer(te),Gt=function(an){nt.runGuarded(function(){ke(an)})};return It.on(de,Gt),()=>{It.off(de,Gt),"function"==typeof It.destroy&&It.destroy()}})}isCustomEvent(te){return this._config.events.indexOf(te)>-1}static#e=this.\u0275fac=function(de){return new(de||fe)(t.\u0275\u0275inject(_.DOCUMENT),t.\u0275\u0275inject(jt),t.\u0275\u0275inject(t.\u0275Console),t.\u0275\u0275inject(Xt,8))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac})}return fe})(),cn=(()=>{class fe{static#e=this.\u0275fac=function(de){return new(de||fe)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:fe});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({providers:[{provide:c,useClass:dn,multi:!0,deps:[_.DOCUMENT,jt,t.\u0275Console,[new t.Optional,Xt]]},{provide:jt,useClass:un,deps:[]}]})}return fe})(),rn=(()=>{class fe{static#e=this.\u0275fac=function(de){return new(de||fe)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:fe,factory:function(de){let ke=null;return ke=de?new(de||fe):t.\u0275\u0275inject(hn),ke},providedIn:"root"})}return fe})(),hn=(()=>{class fe extends rn{constructor(te){super(),this._doc=te}sanitize(te,de){if(null==de)return null;switch(te){case t.SecurityContext.NONE:return de;case t.SecurityContext.HTML:return(0,t.\u0275allowSanitizationBypassAndThrow)(de,"HTML")?(0,t.\u0275unwrapSafeValue)(de):(0,t.\u0275_sanitizeHtml)(this._doc,String(de)).toString();case t.SecurityContext.STYLE:return(0,t.\u0275allowSanitizationBypassAndThrow)(de,"Style")?(0,t.\u0275unwrapSafeValue)(de):de;case t.SecurityContext.SCRIPT:if((0,t.\u0275allowSanitizationBypassAndThrow)(de,"Script"))return(0,t.\u0275unwrapSafeValue)(de);throw new t.\u0275RuntimeError(5200,!1);case t.SecurityContext.URL:return(0,t.\u0275allowSanitizationBypassAndThrow)(de,"URL")?(0,t.\u0275unwrapSafeValue)(de):(0,t.\u0275_sanitizeUrl)(String(de));case t.SecurityContext.RESOURCE_URL:if((0,t.\u0275allowSanitizationBypassAndThrow)(de,"ResourceURL"))return(0,t.\u0275unwrapSafeValue)(de);throw new t.\u0275RuntimeError(5201,!1);default:throw new t.\u0275RuntimeError(5202,!1)}}bypassSecurityTrustHtml(te){return(0,t.\u0275bypassSanitizationTrustHtml)(te)}bypassSecurityTrustStyle(te){return(0,t.\u0275bypassSanitizationTrustStyle)(te)}bypassSecurityTrustScript(te){return(0,t.\u0275bypassSanitizationTrustScript)(te)}bypassSecurityTrustUrl(te){return(0,t.\u0275bypassSanitizationTrustUrl)(te)}bypassSecurityTrustResourceUrl(te){return(0,t.\u0275bypassSanitizationTrustResourceUrl)(te)}static#e=this.\u0275fac=function(de){return new(de||fe)(t.\u0275\u0275inject(_.DOCUMENT))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"})}return fe})();var Nt=function(fe){return fe[fe.NoHttpTransferCache=0]="NoHttpTransferCache",fe[fe.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",fe}(Nt||{});function Bt(fe,Ge=[],te={}){return{\u0275kind:fe,\u0275providers:Ge}}function _e(){return Bt(Nt.NoHttpTransferCache)}function Ze(fe){return Bt(Nt.HttpTransferCacheOptions,(0,C.\u0275withHttpTransferCache)(fe))}function Ot(...fe){const Ge=[],te=new Set,de=te.has(Nt.HttpTransferCacheOptions);for(const{\u0275providers:ke,\u0275kind:nt}of fe)te.add(nt),ke.length&&Ge.push(ke);return(0,t.makeEnvironmentProviders)([[],(0,t.\u0275withDomHydration)(),te.has(Nt.NoHttpTransferCache)||de?[]:(0,C.\u0275withHttpTransferCache)({}),Ge])}const tt=new t.Version("17.3.3"),ft=t.makeStateKey,Le=t.TransferState},7901:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{ActivatedRoute:()=>Hn,ActivatedRouteSnapshot:()=>Ji,ActivationEnd:()=>hi,ActivationStart:()=>_i,BaseRouteReuseStrategy:()=>Ko,ChildActivationEnd:()=>ar,ChildActivationStart:()=>yi,ChildrenOutletContexts:()=>qn,DefaultTitleStrategy:()=>Ss,DefaultUrlSerializer:()=>jt,EventType:()=>ut,GuardsCheckEnd:()=>Gn,GuardsCheckStart:()=>ln,NavigationCancel:()=>me,NavigationCancellationCode:()=>Mt,NavigationEnd:()=>xe,NavigationError:()=>$e,NavigationSkipped:()=>le,NavigationSkippedCode:()=>H,NavigationStart:()=>mt,NoPreloading:()=>fi,OutletContext:()=>$i,PRIMARY_OUTLET:()=>V,PreloadAllModules:()=>jr,PreloadingStrategy:()=>tr,ROUTER_CONFIGURATION:()=>is,ROUTER_INITIALIZER:()=>hr,ROUTES:()=>Rr,ResolveEnd:()=>ti,ResolveStart:()=>Jn,RouteConfigLoadEnd:()=>Fn,RouteConfigLoadStart:()=>In,RouteReuseStrategy:()=>uo,Router:()=>ci,RouterEvent:()=>Ke,RouterLink:()=>Qn,RouterLinkActive:()=>Yi,RouterLinkWithHref:()=>Qn,RouterModule:()=>fs,RouterOutlet:()=>Sr,RouterPreloader:()=>mn,RouterState:()=>vn,RouterStateSnapshot:()=>Gi,RoutesRecognized:()=>wt,Scroll:()=>xi,TitleStrategy:()=>Ws,UrlHandlingStrategy:()=>lo,UrlSegment:()=>ye,UrlSegmentGroup:()=>it,UrlSerializer:()=>xt,UrlTree:()=>bt,VERSION:()=>wl,convertToParamMap:()=>ce,createUrlTreeFromSnapshot:()=>Lt,defaultUrlMatcher:()=>ue,mapToCanActivate:()=>Xo,mapToCanActivateChild:()=>ss,mapToCanDeactivate:()=>ha,mapToCanMatch:()=>Zs,mapToResolve:()=>Cl,provideRouter:()=>cr,provideRoutes:()=>pr,withComponentInputBinding:()=>fo,withDebugTracing:()=>Ao,withDisabledInitialNavigation:()=>Qi,withEnabledBlockingInitialNavigation:()=>Gs,withHashLocation:()=>Zo,withInMemoryScrolling:()=>rs,withNavigationErrorHandler:()=>Os,withPreloading:()=>Pr,withRouterConfig:()=>Ys,withViewTransitions:()=>Rs,\u0275EmptyOutletComponent:()=>vt,\u0275ROUTER_PROVIDERS:()=>po,\u0275afterNextNavigation:()=>ot,\u0275loadChildren:()=>Lr});var t=g(4438),_=g(4402),C=g(8455),E=g(7673),u=g(4412),b=g(4572),s=g(9350),f=g(2688),d=g(9030),l=g(1203),c=g(8810),o=g(983),r=g(17),h=g(1413),p=g(8359),v=g(177),y=g(6354),M=g(5558),w=g(6697),k=g(9172),I=g(5964),D=g(3028),O=g(1594),T=g(274),U=g(8141),S=g(9437),R=g(1943),N=g(9901),A=g(7018),F=g(5109),Y=g(3703),ee=g(980),ie=g(9898),$=g(6977),j=g(6365),G=g(345);const V="primary",W=Symbol("RouteTitle");class K{constructor(re){this.params=re||{}}has(re){return Object.prototype.hasOwnProperty.call(this.params,re)}get(re){if(this.has(re)){const X=this.params[re];return Array.isArray(X)?X[0]:X}return null}getAll(re){if(this.has(re)){const X=this.params[re];return Array.isArray(X)?X:[X]}return[]}get keys(){return Object.keys(this.params)}}function ce(z){return new K(z)}function ue(z,re,X){const se=X.path.split("/");if(se.length>z.length||"full"===X.pathMatch&&(re.hasChildren()||se.lengthse[ze]===Me)}return z===re}function Ct(z){return z.length>0?z[z.length-1]:null}function We(z){return(0,_.A)(z)?z:(0,t.\u0275isPromise)(z)?(0,C.H)(Promise.resolve(z)):(0,E.of)(z)}const Ne={exact:function be(z,re,X){if(!De(z.segments,re.segments)||!Re(z.segments,re.segments,X)||z.numberOfChildren!==re.numberOfChildren)return!1;for(const se in re.children)if(!z.children[se]||!be(z.children[se],re.children[se],X))return!1;return!0},subset:Q},Ie={exact:function Ee(z,re){return Ye(z,re)},subset:function Se(z,re){return Object.keys(re).length<=Object.keys(z).length&&Object.keys(re).every(X=>ct(z[X],re[X]))},ignored:()=>!0};function rt(z,re,X){return Ne[X.paths](z.root,re.root,X.matrixParams)&&Ie[X.queryParams](z.queryParams,re.queryParams)&&!("exact"===X.fragment&&z.fragment!==re.fragment)}function Q(z,re,X){return pe(z,re,re.segments,X)}function pe(z,re,X,se){if(z.segments.length>X.length){const Me=z.segments.slice(0,X.length);return!(!De(Me,X)||re.hasChildren()||!Re(Me,X,se))}if(z.segments.length===X.length){if(!De(z.segments,X)||!Re(z.segments,X,se))return!1;for(const Me in re.children)if(!z.children[Me]||!Q(z.children[Me],re.children[Me],se))return!1;return!0}{const Me=X.slice(0,z.segments.length),ze=X.slice(z.segments.length);return!!(De(z.segments,Me)&&Re(z.segments,Me,se)&&z.children[V])&&pe(z.children[V],re,ze,se)}}function Re(z,re,X){return re.every((se,Me)=>Ie[X](z[Me].parameters,se.parameters))}class bt{constructor(re=new it([],{}),X={},se=null){this.root=re,this.queryParams=X,this.fragment=se}get queryParamMap(){return this._queryParamMap??=ce(this.queryParams),this._queryParamMap}toString(){return Xt.serialize(this)}}class it{constructor(re,X){this.segments=re,this.children=X,this.parent=null,Object.values(X).forEach(se=>se.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return un(this)}}class ye{constructor(re,X){this.path=re,this.parameters=X}get parameterMap(){return this._parameterMap??=ce(this.parameters),this._parameterMap}toString(){return Ze(this)}}function De(z,re){return z.length===re.length&&z.every((X,se)=>X.path===re[se].path)}let xt=(()=>{class z{static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:()=>new jt,providedIn:"root"})}return z})();class jt{parse(re){const X=new nt(re);return new bt(X.parseRootSegment(),X.parseQueryParams(),X.parseFragment())}serialize(re){const X=`/${dn(re.root,!0)}`,se=function Ot(z){const re=Object.entries(z).map(([X,se])=>Array.isArray(se)?se.map(Me=>`${rn(X)}=${rn(Me)}`).join("&"):`${rn(X)}=${rn(se)}`).filter(X=>X);return re.length?`?${re.join("&")}`:""}(re.queryParams);return`${X}${se}${"string"==typeof re.fragment?`#${function hn(z){return encodeURI(z)}(re.fragment)}`:""}`}}const Xt=new jt;function un(z){return z.segments.map(re=>Ze(re)).join("/")}function dn(z,re){if(!z.hasChildren())return un(z);if(re){const X=z.children[V]?dn(z.children[V],!1):"",se=[];return Object.entries(z.children).forEach(([Me,ze])=>{Me!==V&&se.push(`${Me}:${dn(ze,!1)}`)}),se.length>0?`${X}(${se.join("//")})`:X}{const X=function st(z,re){let X=[];return Object.entries(z.children).forEach(([se,Me])=>{se===V&&(X=X.concat(re(Me,se)))}),Object.entries(z.children).forEach(([se,Me])=>{se!==V&&(X=X.concat(re(Me,se)))}),X}(z,(se,Me)=>Me===V?[dn(z.children[V],!1)]:[`${Me}:${dn(se,!1)}`]);return 1===Object.keys(z.children).length&&null!=z.children[V]?`${un(z)}/${X[0]}`:`${un(z)}/(${X.join("//")})`}}function cn(z){return encodeURIComponent(z).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rn(z){return cn(z).replace(/%3B/gi,";")}function Nt(z){return cn(z).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bt(z){return decodeURIComponent(z)}function _e(z){return Bt(z.replace(/\+/g,"%20"))}function Ze(z){return`${Nt(z.path)}${function Qe(z){return Object.entries(z).map(([re,X])=>`;${Nt(re)}=${Nt(X)}`).join("")}(z.parameters)}`}const tt=/^[^\/()?;#]+/;function ft(z){const re=z.match(tt);return re?re[0]:""}const Le=/^[^\/()?;=#]+/,Ge=/^[^=?&#]+/,de=/^[^&#]+/;class nt{constructor(re){this.url=re,this.remaining=re}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new it([],{}):new it([],this.parseChildren())}parseQueryParams(){const re={};if(this.consumeOptional("?"))do{this.parseQueryParam(re)}while(this.consumeOptional("&"));return re}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const re=[];for(this.peekStartsWith("(")||re.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),re.push(this.parseSegment());let X={};this.peekStartsWith("/(")&&(this.capture("/"),X=this.parseParens(!0));let se={};return this.peekStartsWith("(")&&(se=this.parseParens(!1)),(re.length>0||Object.keys(X).length>0)&&(se[V]=new it(re,X)),se}parseSegment(){const re=ft(this.remaining);if(""===re&&this.peekStartsWith(";"))throw new t.\u0275RuntimeError(4009,!1);return this.capture(re),new ye(Bt(re),this.parseMatrixParams())}parseMatrixParams(){const re={};for(;this.consumeOptional(";");)this.parseParam(re);return re}parseParam(re){const X=function fe(z){const re=z.match(Le);return re?re[0]:""}(this.remaining);if(!X)return;this.capture(X);let se="";if(this.consumeOptional("=")){const Me=ft(this.remaining);Me&&(se=Me,this.capture(se))}re[Bt(X)]=Bt(se)}parseQueryParam(re){const X=function te(z){const re=z.match(Ge);return re?re[0]:""}(this.remaining);if(!X)return;this.capture(X);let se="";if(this.consumeOptional("=")){const yt=function ke(z){const re=z.match(de);return re?re[0]:""}(this.remaining);yt&&(se=yt,this.capture(se))}const Me=_e(X),ze=_e(se);if(re.hasOwnProperty(Me)){let yt=re[Me];Array.isArray(yt)||(yt=[yt],re[Me]=yt),yt.push(ze)}else re[Me]=ze}parseParens(re){const X={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const se=ft(this.remaining),Me=this.remaining[se.length];if("/"!==Me&&")"!==Me&&";"!==Me)throw new t.\u0275RuntimeError(4010,!1);let ze;se.indexOf(":")>-1?(ze=se.slice(0,se.indexOf(":")),this.capture(ze),this.capture(":")):re&&(ze=V);const yt=this.parseChildren();X[ze]=1===Object.keys(yt).length?yt[V]:new it([],yt),this.consumeOptional("//")}return X}peekStartsWith(re){return this.remaining.startsWith(re)}consumeOptional(re){return!!this.peekStartsWith(re)&&(this.remaining=this.remaining.substring(re.length),!0)}capture(re){if(!this.consumeOptional(re))throw new t.\u0275RuntimeError(4011,!1)}}function It(z){return z.segments.length>0?new it([],{[V]:z}):z}function Gt(z){const re={};for(const[se,Me]of Object.entries(z.children)){const ze=Gt(Me);if(se===V&&0===ze.segments.length&&ze.hasChildren())for(const[yt,Yt]of Object.entries(ze.children))re[yt]=Yt;else(ze.segments.length>0||ze.hasChildren())&&(re[se]=ze)}return function an(z){if(1===z.numberOfChildren&&z.children[V]){const re=z.children[V];return new it(z.segments.concat(re.segments),re.children)}return z}(new it(z.segments,re))}function _t(z){return z instanceof bt}function Lt(z,re,X=null,se=null){return Fe(Je(z),re,X,se)}function Je(z){let re;const Me=It(function X(ze){const yt={};for(const zt of ze.children){const Mn=X(zt);yt[zt.outlet]=Mn}const Yt=new it(ze.url,yt);return ze===z&&(re=Yt),Yt}(z.root));return re??Me}function Fe(z,re,X,se){let Me=z;for(;Me.parent;)Me=Me.parent;if(0===re.length)return dt(Me,Me,Me,X,se);const ze=function Cn(z){if("string"==typeof z[0]&&1===z.length&&"/"===z[0])return new qt(!0,0,z);let re=0,X=!1;const se=z.reduce((Me,ze,yt)=>{if("object"==typeof ze&&null!=ze){if(ze.outlets){const Yt={};return Object.entries(ze.outlets).forEach(([zt,Mn])=>{Yt[zt]="string"==typeof Mn?Mn.split("/"):Mn}),[...Me,{outlets:Yt}]}if(ze.segmentPath)return[...Me,ze.segmentPath]}return"string"!=typeof ze?[...Me,ze]:0===yt?(ze.split("/").forEach((Yt,zt)=>{0==zt&&"."===Yt||(0==zt&&""===Yt?X=!0:".."===Yt?re++:""!=Yt&&Me.push(Yt))}),Me):[...Me,ze]},[]);return new qt(X,re,se)}(re);if(ze.toRoot())return dt(Me,Me,new it([],{}),X,se);const yt=function Oi(z,re,X){if(z.isAbsolute)return new Ln(re,!0,0);if(!X)return new Ln(re,!1,NaN);if(null===X.parent)return new Ln(X,!0,0);const se=et(z.commands[0])?0:1;return function Ei(z,re,X){let se=z,Me=re,ze=X;for(;ze>Me;){if(ze-=Me,se=se.parent,!se)throw new t.\u0275RuntimeError(4005,!1);Me=se.segments.length}return new Ln(se,!1,Me-ze)}(X,X.segments.length-1+se,z.numberOfDoubleDots)}(ze,Me,z),Yt=yt.processChildren?Jt(yt.segmentGroup,yt.index,ze.commands):at(yt.segmentGroup,yt.index,ze.commands);return dt(Me,yt.segmentGroup,Yt,X,se)}function et(z){return"object"==typeof z&&null!=z&&!z.outlets&&!z.segmentPath}function je(z){return"object"==typeof z&&null!=z&&z.outlets}function dt(z,re,X,se,Me){let yt,ze={};se&&Object.entries(se).forEach(([zt,Mn])=>{ze[zt]=Array.isArray(Mn)?Mn.map(L=>`${L}`):`${Mn}`}),yt=z===re?X:At(z,re,X);const Yt=It(Gt(yt));return new bt(Yt,ze,Me)}function At(z,re,X){const se={};return Object.entries(z.children).forEach(([Me,ze])=>{se[Me]=ze===re?X:At(ze,re,X)}),new it(z.segments,se)}class qt{constructor(re,X,se){if(this.isAbsolute=re,this.numberOfDoubleDots=X,this.commands=se,re&&se.length>0&&et(se[0]))throw new t.\u0275RuntimeError(4003,!1);const Me=se.find(je);if(Me&&Me!==Ct(se))throw new t.\u0275RuntimeError(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ln{constructor(re,X,se){this.segmentGroup=re,this.processChildren=X,this.index=se}}function at(z,re,X){if(z??=new it([],{}),0===z.segments.length&&z.hasChildren())return Jt(z,re,X);const se=function Be(z,re,X){let se=0,Me=re;const ze={match:!1,pathIndex:0,commandIndex:0};for(;Me=X.length)return ze;const yt=z.segments[Me],Yt=X[se];if(je(Yt))break;const zt=`${Yt}`,Mn=se0&&void 0===zt)break;if(zt&&Mn&&"object"==typeof Mn&&void 0===Mn.outlets){if(!_n(zt,Mn,yt))return ze;se+=2}else{if(!_n(zt,{},yt))return ze;se++}Me++}return{match:!0,pathIndex:Me,commandIndex:se}}(z,re,X),Me=X.slice(se.commandIndex);if(se.match&&se.pathIndexze!==V)&&z.children[V]&&1===z.numberOfChildren&&0===z.children[V].segments.length){const ze=Jt(z.children[V],re,X);return new it(z.segments,ze.children)}return Object.entries(se).forEach(([ze,yt])=>{"string"==typeof yt&&(yt=[yt]),null!==yt&&(Me[ze]=at(z.children[ze],re,yt))}),Object.entries(z.children).forEach(([ze,yt])=>{void 0===se[ze]&&(Me[ze]=yt)}),new it(z.segments,Me)}}function lt(z,re,X){const se=z.segments.slice(0,re);let Me=0;for(;Me{"string"==typeof se&&(se=[se]),null!==se&&(re[X]=lt(new it([],{}),0,se))}),re}function nn(z){const re={};return Object.entries(z).forEach(([X,se])=>re[X]=`${se}`),re}function _n(z,re,X){return z==X.path&&Ye(re,X.parameters)}const Ue="imperative";var ut=function(z){return z[z.NavigationStart=0]="NavigationStart",z[z.NavigationEnd=1]="NavigationEnd",z[z.NavigationCancel=2]="NavigationCancel",z[z.NavigationError=3]="NavigationError",z[z.RoutesRecognized=4]="RoutesRecognized",z[z.ResolveStart=5]="ResolveStart",z[z.ResolveEnd=6]="ResolveEnd",z[z.GuardsCheckStart=7]="GuardsCheckStart",z[z.GuardsCheckEnd=8]="GuardsCheckEnd",z[z.RouteConfigLoadStart=9]="RouteConfigLoadStart",z[z.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",z[z.ChildActivationStart=11]="ChildActivationStart",z[z.ChildActivationEnd=12]="ChildActivationEnd",z[z.ActivationStart=13]="ActivationStart",z[z.ActivationEnd=14]="ActivationEnd",z[z.Scroll=15]="Scroll",z[z.NavigationSkipped=16]="NavigationSkipped",z}(ut||{});class Ke{constructor(re,X){this.id=re,this.url=X}}class mt extends Ke{constructor(re,X,se="imperative",Me=null){super(re,X),this.type=ut.NavigationStart,this.navigationTrigger=se,this.restoredState=Me}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class xe extends Ke{constructor(re,X,se){super(re,X),this.urlAfterRedirects=se,this.type=ut.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Mt=function(z){return z[z.Redirect=0]="Redirect",z[z.SupersededByNewNavigation=1]="SupersededByNewNavigation",z[z.NoDataFromResolver=2]="NoDataFromResolver",z[z.GuardRejected=3]="GuardRejected",z}(Mt||{}),H=function(z){return z[z.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",z[z.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",z}(H||{});class me extends Ke{constructor(re,X,se,Me){super(re,X),this.reason=se,this.code=Me,this.type=ut.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class le extends Ke{constructor(re,X,se,Me){super(re,X),this.reason=se,this.code=Me,this.type=ut.NavigationSkipped}}class $e extends Ke{constructor(re,X,se,Me){super(re,X),this.error=se,this.target=Me,this.type=ut.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class wt extends Ke{constructor(re,X,se,Me){super(re,X),this.urlAfterRedirects=se,this.state=Me,this.type=ut.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ln extends Ke{constructor(re,X,se,Me){super(re,X),this.urlAfterRedirects=se,this.state=Me,this.type=ut.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gn extends Ke{constructor(re,X,se,Me,ze){super(re,X),this.urlAfterRedirects=se,this.state=Me,this.shouldActivate=ze,this.type=ut.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Jn extends Ke{constructor(re,X,se,Me){super(re,X),this.urlAfterRedirects=se,this.state=Me,this.type=ut.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ti extends Ke{constructor(re,X,se,Me){super(re,X),this.urlAfterRedirects=se,this.state=Me,this.type=ut.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class In{constructor(re){this.route=re,this.type=ut.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Fn{constructor(re){this.route=re,this.type=ut.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class yi{constructor(re){this.snapshot=re,this.type=ut.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ar{constructor(re){this.snapshot=re,this.type=ut.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _i{constructor(re){this.snapshot=re,this.type=ut.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hi{constructor(re){this.snapshot=re,this.type=ut.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xi{constructor(re,X,se){this.routerEvent=re,this.position=X,this.anchor=se,this.type=ut.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ri{}class On{constructor(re){this.url=re}}class $i{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new qn,this.attachRef=null}}let qn=(()=>{class z{constructor(){this.contexts=new Map}onChildOutletCreated(X,se){const Me=this.getOrCreateContext(X);Me.outlet=se,this.contexts.set(X,Me)}onChildOutletDestroyed(X){const se=this.getContext(X);se&&(se.outlet=null,se.attachRef=null)}onOutletDeactivated(){const X=this.contexts;return this.contexts=new Map,X}onOutletReAttached(X){this.contexts=X}getOrCreateContext(X){let se=this.getContext(X);return se||(se=new $i,this.contexts.set(X,se)),se}getContext(X){return this.contexts.get(X)||null}static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})();class Zn{constructor(re){this._root=re}get root(){return this._root.value}parent(re){const X=this.pathFromRoot(re);return X.length>1?X[X.length-2]:null}children(re){const X=ii(re,this._root);return X?X.children.map(se=>se.value):[]}firstChild(re){const X=ii(re,this._root);return X&&X.children.length>0?X.children[0].value:null}siblings(re){const X=Wi(re,this._root);return X.length<2?[]:X[X.length-2].children.map(Me=>Me.value).filter(Me=>Me!==re)}pathFromRoot(re){return Wi(re,this._root).map(X=>X.value)}}function ii(z,re){if(z===re.value)return re;for(const X of re.children){const se=ii(z,X);if(se)return se}return null}function Wi(z,re){if(z===re.value)return[re];for(const X of re.children){const se=Wi(z,X);if(se.length)return se.unshift(re),se}return[]}class Ui{constructor(re,X){this.value=re,this.children=X}toString(){return`TreeNode(${this.value})`}}function Un(z){const re={};return z&&z.children.forEach(X=>re[X.value.outlet]=X),re}class vn extends Zn{constructor(re,X){super(re),this.snapshot=X,lr(this,re)}toString(){return this.snapshot.toString()}}function Dn(z){const re=function Rn(z){const ze=new Ji([],{},{},"",{},V,z,null,{});return new Gi("",new Ui(ze,[]))}(z),X=new u.t([new ye("",{})]),se=new u.t({}),Me=new u.t({}),ze=new u.t({}),yt=new u.t(""),Yt=new Hn(X,se,ze,yt,Me,V,z,re.root);return Yt.snapshot=re.root,new vn(new Ui(Yt,[]),re)}class Hn{constructor(re,X,se,Me,ze,yt,Yt,zt){this.urlSubject=re,this.paramsSubject=X,this.queryParamsSubject=se,this.fragmentSubject=Me,this.dataSubject=ze,this.outlet=yt,this.component=Yt,this._futureSnapshot=zt,this.title=this.dataSubject?.pipe((0,y.T)(Mn=>Mn[W]))??(0,E.of)(void 0),this.url=re,this.params=X,this.queryParams=se,this.fragment=Me,this.data=ze}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.params.pipe((0,y.T)(re=>ce(re))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,y.T)(re=>ce(re))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ji(z,re,X="emptyOnly"){let se;const{routeConfig:Me}=z;return se=null===re||"always"!==X&&""!==Me?.path&&(re.component||re.routeConfig?.loadComponent)?{params:{...z.params},data:{...z.data},resolve:{...z.data,...z._resolvedData??{}}}:{params:{...re.params,...z.params},data:{...re.data,...z.data},resolve:{...z.data,...re.data,...Me?.data,...z._resolvedData}},Me&&_s(Me)&&(se.resolve[W]=Me.title),se}class Ji{get title(){return this.data?.[W]}constructor(re,X,se,Me,ze,yt,Yt,zt,Mn){this.url=re,this.params=X,this.queryParams=se,this.fragment=Me,this.data=ze,this.outlet=yt,this.component=Yt,this.routeConfig=zt,this._resolve=Mn}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??=ce(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ce(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(se=>se.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Gi extends Zn{constructor(re,X){super(X),this.url=re,lr(this,X)}toString(){return Hr(this._root)}}function lr(z,re){re.value._routerState=z,re.children.forEach(X=>lr(z,X))}function Hr(z){const re=z.children.length>0?` { ${z.children.map(Hr).join(", ")} } `:"";return`${z.value}${re}`}function Tr(z){if(z.snapshot){const re=z.snapshot,X=z._futureSnapshot;z.snapshot=X,Ye(re.queryParams,X.queryParams)||z.queryParamsSubject.next(X.queryParams),re.fragment!==X.fragment&&z.fragmentSubject.next(X.fragment),Ye(re.params,X.params)||z.paramsSubject.next(X.params),function ve(z,re){if(z.length!==re.length)return!1;for(let X=0;XYe(X.parameters,re[se].parameters))}(z.url,re.url);return X&&!(!z.parent!=!re.parent)&&(!z.parent||wr(z.parent,re.parent))}function _s(z){return"string"==typeof z.title||null===z.title}let Sr=(()=>{class z{constructor(){this.activated=null,this._activatedRoute=null,this.name=V,this.activateEvents=new t.EventEmitter,this.deactivateEvents=new t.EventEmitter,this.attachEvents=new t.EventEmitter,this.detachEvents=new t.EventEmitter,this.parentContexts=(0,t.inject)(qn),this.location=(0,t.inject)(t.ViewContainerRef),this.changeDetector=(0,t.inject)(t.ChangeDetectorRef),this.environmentInjector=(0,t.inject)(t.EnvironmentInjector),this.inputBinder=(0,t.inject)(Ur,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(X){if(X.name){const{firstChange:se,previousValue:Me}=X.name;if(se)return;this.isTrackedInParentContexts(Me)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Me)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(X){return this.parentContexts.getContext(X)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const X=this.parentContexts.getContext(this.name);X?.route&&(X.attachRef?this.attach(X.attachRef,X.route):this.activateWith(X.route,X.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new t.\u0275RuntimeError(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new t.\u0275RuntimeError(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new t.\u0275RuntimeError(4012,!1);this.location.detach();const X=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(X.instance),X}attach(X,se){this.activated=X,this._activatedRoute=se,this.location.insert(X.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(X.instance)}deactivate(){if(this.activated){const X=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(X)}}activateWith(X,se){if(this.isActivated)throw new t.\u0275RuntimeError(4013,!1);this._activatedRoute=X;const Me=this.location,yt=X.snapshot.component,Yt=this.parentContexts.getOrCreateContext(this.name).children,zt=new Fr(X,Yt,Me.injector);this.activated=Me.createComponent(yt,{index:Me.length,injector:zt,environmentInjector:se??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:z,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[t.\u0275\u0275NgOnChangesFeature]})}return z})();class Fr{constructor(re,X,se){this.route=re,this.childContexts=X,this.parent=se,this.__ngOutletInjector=!0}get(re,X){return re===Hn?this.route:re===qn?this.childContexts:this.parent.get(re,X)}}const Ur=new t.InjectionToken("");let mr=(()=>{class z{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(X){this.unsubscribeFromRouteData(X),this.subscribeToRouteData(X)}unsubscribeFromRouteData(X){this.outletDataSubscriptions.get(X)?.unsubscribe(),this.outletDataSubscriptions.delete(X)}subscribeToRouteData(X){const{activatedRoute:se}=X,Me=(0,b.z)([se.queryParams,se.params,se.data]).pipe((0,M.n)(([ze,yt,Yt],zt)=>(Yt={...ze,...yt,...Yt},0===zt?(0,E.of)(Yt):Promise.resolve(Yt)))).subscribe(ze=>{if(!X.isActivated||!X.activatedComponentRef||X.activatedRoute!==se||null===se.component)return void this.unsubscribeFromRouteData(X);const yt=(0,t.reflectComponentType)(se.component);if(yt)for(const{templateName:Yt}of yt.inputs)X.activatedComponentRef.setInput(Yt,ze[Yt]);else this.unsubscribeFromRouteData(X)});this.outletDataSubscriptions.set(X,Me)}static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac})}return z})();function Li(z,re,X){if(X&&z.shouldReuseRoute(re.value,X.value.snapshot)){const se=X.value;se._futureSnapshot=re.value;const Me=function ts(z,re,X){return re.children.map(se=>{for(const Me of X.children)if(z.shouldReuseRoute(se.value,Me.value.snapshot))return Li(z,se,Me);return Li(z,se)})}(z,re,X);return new Ui(se,Me)}{if(z.shouldAttach(re.value)){const ze=z.retrieve(re.value);if(null!==ze){const yt=ze.route;return yt.value._futureSnapshot=re.value,yt.children=re.children.map(Yt=>Li(z,Yt)),yt}}const se=function Bn(z){return new Hn(new u.t(z.url),new u.t(z.params),new u.t(z.queryParams),new u.t(z.fragment),new u.t(z.data),z.outlet,z.component,z)}(re.value),Me=re.children.map(ze=>Li(z,ze));return new Ui(se,Me)}}const zr="ngNavigationCancelingError";function us(z,re){const{redirectTo:X,navigationBehaviorOptions:se}=_t(re)?{redirectTo:re,navigationBehaviorOptions:void 0}:re,Me=br(!1,Mt.Redirect);return Me.url=X,Me.navigationBehaviorOptions=se,Me}function br(z,re){const X=new Error(`NavigationCancelingError: ${z||""}`);return X[zr]=!0,X.cancellationCode=re,X}function Dt(z){return!!z&&z[zr]}let vt=(()=>{class z{static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:z,selectors:[["ng-component"]],standalone:!0,features:[t.\u0275\u0275StandaloneFeature],decls:1,vars:0,template:function(se,Me){1&se&&t.\u0275\u0275element(0,"router-outlet")},dependencies:[Sr],encapsulation:2})}return z})();function Mi(z){const re=z.children&&z.children.map(Mi),X=re?{...z,children:re}:{...z};return!X.component&&!X.loadComponent&&(re||X.loadChildren)&&X.outlet&&X.outlet!==V&&(X.component=vt),X}function Xn(z){return z.outlet||V}function Vn(z){if(!z)return null;if(z.routeConfig?._injector)return z.routeConfig._injector;for(let re=z.parent;re;re=re.parent){const X=re.routeConfig;if(X?._loadedInjector)return X._loadedInjector;if(X?._injector)return X._injector}return null}class ur{constructor(re,X,se,Me,ze){this.routeReuseStrategy=re,this.futureState=X,this.currState=se,this.forwardEvent=Me,this.inputBindingEnabled=ze}activate(re){const X=this.futureState._root,se=this.currState?this.currState._root:null;this.deactivateChildRoutes(X,se,re),Tr(this.futureState.root),this.activateChildRoutes(X,se,re)}deactivateChildRoutes(re,X,se){const Me=Un(X);re.children.forEach(ze=>{const yt=ze.value.outlet;this.deactivateRoutes(ze,Me[yt],se),delete Me[yt]}),Object.values(Me).forEach(ze=>{this.deactivateRouteAndItsChildren(ze,se)})}deactivateRoutes(re,X,se){const Me=re.value,ze=X?X.value:null;if(Me===ze)if(Me.component){const yt=se.getContext(Me.outlet);yt&&this.deactivateChildRoutes(re,X,yt.children)}else this.deactivateChildRoutes(re,X,se);else ze&&this.deactivateRouteAndItsChildren(X,se)}deactivateRouteAndItsChildren(re,X){re.value.component&&this.routeReuseStrategy.shouldDetach(re.value.snapshot)?this.detachAndStoreRouteSubtree(re,X):this.deactivateRouteAndOutlet(re,X)}detachAndStoreRouteSubtree(re,X){const se=X.getContext(re.value.outlet),Me=se&&re.value.component?se.children:X,ze=Un(re);for(const yt of Object.values(ze))this.deactivateRouteAndItsChildren(yt,Me);if(se&&se.outlet){const yt=se.outlet.detach(),Yt=se.children.onOutletDeactivated();this.routeReuseStrategy.store(re.value.snapshot,{componentRef:yt,route:re,contexts:Yt})}}deactivateRouteAndOutlet(re,X){const se=X.getContext(re.value.outlet),Me=se&&re.value.component?se.children:X,ze=Un(re);for(const yt of Object.values(ze))this.deactivateRouteAndItsChildren(yt,Me);se&&(se.outlet&&(se.outlet.deactivate(),se.children.onOutletDeactivated()),se.attachRef=null,se.route=null)}activateChildRoutes(re,X,se){const Me=Un(X);re.children.forEach(ze=>{this.activateRoutes(ze,Me[ze.value.outlet],se),this.forwardEvent(new hi(ze.value.snapshot))}),re.children.length&&this.forwardEvent(new ar(re.value.snapshot))}activateRoutes(re,X,se){const Me=re.value,ze=X?X.value:null;if(Tr(Me),Me===ze)if(Me.component){const yt=se.getOrCreateContext(Me.outlet);this.activateChildRoutes(re,X,yt.children)}else this.activateChildRoutes(re,X,se);else if(Me.component){const yt=se.getOrCreateContext(Me.outlet);if(this.routeReuseStrategy.shouldAttach(Me.snapshot)){const Yt=this.routeReuseStrategy.retrieve(Me.snapshot);this.routeReuseStrategy.store(Me.snapshot,null),yt.children.onOutletReAttached(Yt.contexts),yt.attachRef=Yt.componentRef,yt.route=Yt.route.value,yt.outlet&&yt.outlet.attach(Yt.componentRef,Yt.route.value),Tr(Yt.route.value),this.activateChildRoutes(re,null,yt.children)}else{const Yt=Vn(Me.snapshot);yt.attachRef=null,yt.route=Me,yt.injector=Yt,yt.outlet&&yt.outlet.activateWith(Me,yt.injector),this.activateChildRoutes(re,null,yt.children)}}else this.activateChildRoutes(re,null,se)}}class Bi{constructor(re){this.path=re,this.route=this.path[this.path.length-1]}}class Ar{constructor(re,X){this.component=re,this.route=X}}function Wr(z,re,X){const se=z._root;return qi(se,re?re._root:null,X,[se.value])}function Br(z,re){const X=Symbol(),se=re.get(z,X);return se===X?"function"!=typeof z||(0,t.\u0275isInjectable)(z)?re.get(z):z:se}function qi(z,re,X,se,Me={canDeactivateChecks:[],canActivateChecks:[]}){const ze=Un(re);return z.children.forEach(yt=>{(function di(z,re,X,se,Me={canDeactivateChecks:[],canActivateChecks:[]}){const ze=z.value,yt=re?re.value:null,Yt=X?X.getContext(z.value.outlet):null;if(yt&&ze.routeConfig===yt.routeConfig){const zt=function ns(z,re,X){if("function"==typeof X)return X(z,re);switch(X){case"pathParamsChange":return!De(z.url,re.url);case"pathParamsOrQueryParamsChange":return!De(z.url,re.url)||!Ye(z.queryParams,re.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!wr(z,re)||!Ye(z.queryParams,re.queryParams);default:return!wr(z,re)}}(yt,ze,ze.routeConfig.runGuardsAndResolvers);zt?Me.canActivateChecks.push(new Bi(se)):(ze.data=yt.data,ze._resolvedData=yt._resolvedData),qi(z,re,ze.component?Yt?Yt.children:null:X,se,Me),zt&&Yt&&Yt.outlet&&Yt.outlet.isActivated&&Me.canDeactivateChecks.push(new Ar(Yt.outlet.component,yt))}else yt&&Gr(re,Yt,Me),Me.canActivateChecks.push(new Bi(se)),qi(z,null,ze.component?Yt?Yt.children:null:X,se,Me)})(yt,ze[yt.value.outlet],X,se.concat([yt.value]),Me),delete ze[yt.value.outlet]}),Object.entries(ze).forEach(([yt,Yt])=>Gr(Yt,X.getContext(yt),Me)),Me}function Gr(z,re,X){const se=Un(z),Me=z.value;Object.entries(se).forEach(([ze,yt])=>{Gr(yt,Me.component?re?re.children.getContext(ze):null:re,X)}),X.canDeactivateChecks.push(new Ar(Me.component&&re&&re.outlet&&re.outlet.isActivated?re.outlet.component:null,Me))}function $r(z){return"function"==typeof z}function Ae(z){return z instanceof s.G||"EmptyError"===z?.name}const ae=Symbol("INITIAL_VALUE");function Ve(){return(0,M.n)(z=>(0,b.z)(z.map(re=>re.pipe((0,w.s)(1),(0,k.Z)(ae)))).pipe((0,y.T)(re=>{for(const X of re)if(!0!==X){if(X===ae)return ae;if(!1===X||X instanceof bt)return X}return!0}),(0,I.p)(re=>re!==ae),(0,w.s)(1)))}function Io(z){return(0,l.F)((0,U.M)(re=>{if(_t(re))throw us(0,re)}),(0,y.T)(re=>!0===re))}class no{constructor(re){this.segmentGroup=re||null}}class $o extends Error{constructor(re){super(),this.urlTree=re}}function bs(z){return(0,c.$)(new no(z))}class jo{constructor(re,X){this.urlSerializer=re,this.urlTree=X}lineralizeSegments(re,X){let se=[],Me=X.root;for(;;){if(se=se.concat(Me.segments),0===Me.numberOfChildren)return(0,E.of)(se);if(Me.numberOfChildren>1||!Me.children[V])return(0,c.$)(new t.\u0275RuntimeError(4e3,!1));Me=Me.children[V]}}applyRedirectCommands(re,X,se){const Me=this.applyRedirectCreateUrlTree(X,this.urlSerializer.parse(X),re,se);if(X.startsWith("/"))throw new $o(Me);return Me}applyRedirectCreateUrlTree(re,X,se,Me){const ze=this.createSegmentGroup(re,X.root,se,Me);return new bt(ze,this.createQueryParams(X.queryParams,this.urlTree.queryParams),X.fragment)}createQueryParams(re,X){const se={};return Object.entries(re).forEach(([Me,ze])=>{if("string"==typeof ze&&ze.startsWith(":")){const Yt=ze.substring(1);se[Me]=X[Yt]}else se[Me]=ze}),se}createSegmentGroup(re,X,se,Me){const ze=this.createSegments(re,X.segments,se,Me);let yt={};return Object.entries(X.children).forEach(([Yt,zt])=>{yt[Yt]=this.createSegmentGroup(re,zt,se,Me)}),new it(ze,yt)}createSegments(re,X,se,Me){return X.map(ze=>ze.path.startsWith(":")?this.findPosParam(re,ze,Me):this.findOrReturn(ze,se))}findPosParam(re,X,se){const Me=se[X.path.substring(1)];if(!Me)throw new t.\u0275RuntimeError(4001,!1);return Me}findOrReturn(re,X){let se=0;for(const Me of X){if(Me.path===re.path)return X.splice(se),Me;se++}return re}}const Fs={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function aa(z,re,X,se,Me){const ze=Us(z,re,X);return ze.matched?(se=function Tt(z,re){return z.providers&&!z._injector&&(z._injector=(0,t.createEnvironmentInjector)(z.providers,re,`Route: ${z.path}`)),z._injector??re}(re,se),function Ni(z,re,X,se){const Me=re.canMatch;if(!Me||0===Me.length)return(0,E.of)(!0);const ze=Me.map(yt=>{const Yt=Br(yt,z);return We(function Ce(z){return z&&$r(z.canMatch)}(Yt)?Yt.canMatch(re,X):(0,t.runInInjectionContext)(z,()=>Yt(re,X)))});return(0,E.of)(ze).pipe(Ve(),Io())}(se,re,X).pipe((0,y.T)(yt=>!0===yt?ze:{...Fs}))):(0,E.of)(ze)}function Us(z,re,X){if("**"===re.path)return function Bs(z){return{matched:!0,parameters:z.length>0?Ct(z).parameters:{},consumedSegments:z,remainingSegments:[],positionalParamSegments:{}}}(X);if(""===re.path)return"full"===re.pathMatch&&(z.hasChildren()||X.length>0)?{...Fs}:{matched:!0,consumedSegments:[],remainingSegments:X,parameters:{},positionalParamSegments:{}};const Me=(re.matcher||ue)(X,z,re);if(!Me)return{...Fs};const ze={};Object.entries(Me.posParams??{}).forEach(([Yt,zt])=>{ze[Yt]=zt.path});const yt=Me.consumed.length>0?{...ze,...Me.consumed[Me.consumed.length-1].parameters}:ze;return{matched:!0,consumedSegments:Me.consumed,remainingSegments:X.slice(Me.consumed.length),parameters:yt,positionalParamSegments:Me.posParams??{}}}function Xr(z,re,X,se){return X.length>0&&function pi(z,re,X){return X.some(se=>Or(z,re,se)&&Xn(se)!==V)}(z,X,se)?{segmentGroup:new it(re,oi(se,new it(X,z.children))),slicedSegments:[]}:0===X.length&&function er(z,re,X){return X.some(se=>Or(z,re,se))}(z,X,se)?{segmentGroup:new it(z.segments,To(z,X,se,z.children)),slicedSegments:X}:{segmentGroup:new it(z.segments,z.children),slicedSegments:X}}function To(z,re,X,se){const Me={};for(const ze of X)if(Or(z,re,ze)&&!se[Xn(ze)]){const yt=new it([],{});Me[Xn(ze)]=yt}return{...se,...Me}}function oi(z,re){const X={};X[V]=re;for(const se of z)if(""===se.path&&Xn(se)!==V){const Me=new it([],{});X[Xn(se)]=Me}return X}function Or(z,re,X){return(!(z.hasChildren()||re.length>0)||"full"!==X.pathMatch)&&""===X.path}class Ts{}class la{constructor(re,X,se,Me,ze,yt,Yt){this.injector=re,this.configLoader=X,this.rootComponentType=se,this.config=Me,this.urlTree=ze,this.paramsInheritanceStrategy=yt,this.urlSerializer=Yt,this.applyRedirects=new jo(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(re){return new t.\u0275RuntimeError(4002,`'${re.segmentGroup}'`)}recognize(){const re=Xr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(re).pipe((0,y.T)(X=>{const se=new Ji([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},V,this.rootComponentType,null,{}),Me=new Ui(se,X),ze=new Gi("",Me),yt=Lt(se,[],this.urlTree.queryParams,this.urlTree.fragment);return yt.queryParams=this.urlTree.queryParams,ze.url=this.urlSerializer.serialize(yt),this.inheritParamsAndData(ze._root,null),{state:ze,tree:yt}}))}match(re){return this.processSegmentGroup(this.injector,this.config,re,V).pipe((0,S.W)(se=>{if(se instanceof $o)return this.urlTree=se.urlTree,this.match(se.urlTree.root);throw se instanceof no?this.noMatchError(se):se}))}inheritParamsAndData(re,X){const se=re.value,Me=ji(se,X,this.paramsInheritanceStrategy);se.params=Object.freeze(Me.params),se.data=Object.freeze(Me.data),re.children.forEach(ze=>this.inheritParamsAndData(ze,se))}processSegmentGroup(re,X,se,Me){return 0===se.segments.length&&se.hasChildren()?this.processChildren(re,X,se):this.processSegment(re,X,se,se.segments,Me,!0).pipe((0,y.T)(ze=>ze instanceof Ui?[ze]:[]))}processChildren(re,X,se){const Me=[];for(const ze of Object.keys(se.children))"primary"===ze?Me.unshift(ze):Me.push(ze);return(0,C.H)(Me).pipe((0,T.H)(ze=>{const yt=se.children[ze],Yt=function Ti(z,re){const X=z.filter(se=>Xn(se)===re);return X.push(...z.filter(se=>Xn(se)!==re)),X}(X,ze);return this.processSegmentGroup(re,Yt,yt,ze)}),(0,R.S)((ze,yt)=>(ze.push(...yt),ze)),(0,N.U)(null),(0,A.H)(),(0,D.Z)(ze=>{if(null===ze)return bs(se);const yt=Vs(ze);return function ys(z){z.sort((re,X)=>re.value.outlet===V?-1:X.value.outlet===V?1:re.value.outlet.localeCompare(X.value.outlet))}(yt),(0,E.of)(yt)}))}processSegment(re,X,se,Me,ze,yt){return(0,C.H)(X).pipe((0,T.H)(Yt=>this.processSegmentAgainstRoute(Yt._injector??re,X,Yt,se,Me,ze,yt).pipe((0,S.W)(zt=>{if(zt instanceof no)return(0,E.of)(null);throw zt}))),(0,O.$)(Yt=>!!Yt),(0,S.W)(Yt=>{if(Ae(Yt))return function io(z,re,X){return 0===re.length&&!z.children[X]}(se,Me,ze)?(0,E.of)(new Ts):bs(se);throw Yt}))}processSegmentAgainstRoute(re,X,se,Me,ze,yt,Yt){return function dr(z,re,X,se){return!!(Xn(z)===se||se!==V&&Or(re,X,z))&&Us(re,z,X).matched}(se,Me,ze,yt)?void 0===se.redirectTo?this.matchSegmentAgainstRoute(re,Me,se,ze,yt):this.allowRedirects&&Yt?this.expandSegmentAgainstRouteUsingRedirect(re,Me,X,se,ze,yt):bs(Me):bs(Me)}expandSegmentAgainstRouteUsingRedirect(re,X,se,Me,ze,yt){const{matched:Yt,consumedSegments:zt,positionalParamSegments:Mn,remainingSegments:L}=Us(X,Me,ze);if(!Yt)return bs(X);Me.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const we=this.applyRedirects.applyRedirectCommands(zt,Me.redirectTo,Mn);return this.applyRedirects.lineralizeSegments(Me,we).pipe((0,D.Z)(Z=>this.processSegment(re,se,X,Z.concat(L),yt,!1)))}matchSegmentAgainstRoute(re,X,se,Me,ze){const yt=aa(X,se,Me,re);return"**"===se.path&&(X.children={}),yt.pipe((0,M.n)(Yt=>Yt.matched?this.getChildConfig(re=se._injector??re,se,Me).pipe((0,M.n)(({routes:zt})=>{const Mn=se._loadedInjector??re,{consumedSegments:L,remainingSegments:we,parameters:Z}=Yt,Xe=new Ji(L,Z,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function js(z){return z.data||{}}(se),Xn(se),se.component??se._loadedComponent??null,se,function Ta(z){return z.resolve||{}}(se)),{segmentGroup:gt,slicedSegments:ht}=Xr(X,L,we,zt);if(0===ht.length&>.hasChildren())return this.processChildren(Mn,zt,gt).pipe((0,y.T)(Ut=>null===Ut?null:new Ui(Xe,Ut)));if(0===zt.length&&0===ht.length)return(0,E.of)(new Ui(Xe,[]));const Kt=Xn(se)===ze;return this.processSegment(Mn,zt,gt,ht,Kt?V:ze,!0).pipe((0,y.T)(Ut=>new Ui(Xe,Ut instanceof Ui?[Ut]:[])))})):bs(X)))}getChildConfig(re,X,se){return X.children?(0,E.of)({routes:X.children,injector:re}):X.loadChildren?void 0!==X._loadedRoutes?(0,E.of)({routes:X._loadedRoutes,injector:X._loadedInjector}):function Ns(z,re,X,se){const Me=re.canLoad;if(void 0===Me||0===Me.length)return(0,E.of)(!0);const ze=Me.map(yt=>{const Yt=Br(yt,z);return We(function Yr(z){return z&&$r(z.canLoad)}(Yt)?Yt.canLoad(re,X):(0,t.runInInjectionContext)(z,()=>Yt(re,X)))});return(0,E.of)(ze).pipe(Ve(),Io())}(re,X,se).pipe((0,D.Z)(Me=>Me?this.configLoader.loadChildren(re,X).pipe((0,U.M)(ze=>{X._loadedRoutes=ze.routes,X._loadedInjector=ze.injector})):function Vo(z){return(0,c.$)(br(!1,Mt.GuardRejected))}())):(0,E.of)({routes:[],injector:re})}}function ro(z){const re=z.value.routeConfig;return re&&""===re.path}function Vs(z){const re=[],X=new Set;for(const se of z){if(!ro(se)){re.push(se);continue}const Me=re.find(ze=>se.value.routeConfig===ze.value.routeConfig);void 0!==Me?(Me.children.push(...se.children),X.add(Me)):re.push(se)}for(const se of X){const Me=Vs(se.children);re.push(new Ui(se.value,Me))}return re.filter(se=>!X.has(se))}function zs(z){const re=z.children.map(X=>zs(X)).flat();return[z,...re]}function oo(z){return(0,M.n)(re=>{const X=z(re);return X?(0,C.H)(X).pipe((0,y.T)(()=>re)):(0,E.of)(re)})}let Ws=(()=>{class z{buildTitle(X){let se,Me=X.root;for(;void 0!==Me;)se=this.getResolvedTitleForRoute(Me)??se,Me=Me.children.find(ze=>ze.outlet===V);return se}getResolvedTitleForRoute(X){return X.data[W]}static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:()=>(0,t.inject)(Ss),providedIn:"root"})}return z})(),Ss=(()=>{class z extends Ws{constructor(X){super(),this.title=X}updateTitle(X){const se=this.buildTitle(X);void 0!==se&&this.title.setTitle(se)}static#e=this.\u0275fac=function(se){return new(se||z)(t.\u0275\u0275inject(G.Title))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})();const is=new t.InjectionToken("",{providedIn:"root",factory:()=>({})}),Rr=new t.InjectionToken("");let Cs=(()=>{class z{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,t.inject)(t.Compiler)}loadComponent(X){if(this.componentLoaders.get(X))return this.componentLoaders.get(X);if(X._loadedComponent)return(0,E.of)(X._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(X);const se=We(X.loadComponent()).pipe((0,y.T)(ao),(0,U.M)(ze=>{this.onLoadEndListener&&this.onLoadEndListener(X),X._loadedComponent=ze}),(0,ee.j)(()=>{this.componentLoaders.delete(X)})),Me=new r.G(se,()=>new h.B).pipe((0,ie.B)());return this.componentLoaders.set(X,Me),Me}loadChildren(X,se){if(this.childrenLoaders.get(se))return this.childrenLoaders.get(se);if(se._loadedRoutes)return(0,E.of)({routes:se._loadedRoutes,injector:se._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(se);const ze=Lr(se,this.compiler,X,this.onLoadEndListener).pipe((0,ee.j)(()=>{this.childrenLoaders.delete(se)})),yt=new r.G(ze,()=>new h.B).pipe((0,ie.B)());return this.childrenLoaders.set(se,yt),yt}static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})();function Lr(z,re,X,se){return We(z.loadChildren()).pipe((0,y.T)(ao),(0,D.Z)(Me=>Me instanceof t.NgModuleFactory||Array.isArray(Me)?(0,E.of)(Me):(0,C.H)(re.compileModuleAsync(Me))),(0,y.T)(Me=>{se&&se(z);let ze,yt;return Array.isArray(Me)?yt=Me:(ze=Me.create(X).injector,yt=ze.get(Rr,[],{optional:!0,self:!0}).flat()),{routes:yt.map(Mi),injector:ze}}))}function ao(z){return function As(z){return z&&"object"==typeof z&&"default"in z}(z)?z.default:z}let lo=(()=>{class z{static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:()=>(0,t.inject)(Go),providedIn:"root"})}return z})(),Go=(()=>{class z{shouldProcessUrl(X){return!0}extract(X){return X}merge(X,se){return X}static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})();const So=new t.InjectionToken(""),ws=new t.InjectionToken("");function Ki(z,re,X){const se=z.get(ws),Me=z.get(v.DOCUMENT);return z.get(t.NgZone).runOutsideAngular(()=>{if(!Me.startViewTransition||se.skipNextTransition)return se.skipNextTransition=!1,Promise.resolve();let ze;const yt=new Promise(Mn=>{ze=Mn}),Yt=Me.startViewTransition(()=>(ze(),function ca(z){return new Promise(re=>{(0,t.afterNextRender)(re,{injector:z})})}(z))),{onViewTransitionCreated:zt}=se;return zt&&(0,t.runInInjectionContext)(z,()=>zt({transition:Yt,from:re,to:X})),yt})}let co=(()=>{class z{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new h.B,this.transitionAbortSubject=new h.B,this.configLoader=(0,t.inject)(Cs),this.environmentInjector=(0,t.inject)(t.EnvironmentInjector),this.urlSerializer=(0,t.inject)(xt),this.rootContexts=(0,t.inject)(qn),this.location=(0,t.inject)(v.Location),this.inputBindingEnabled=null!==(0,t.inject)(Ur,{optional:!0}),this.titleStrategy=(0,t.inject)(Ws),this.options=(0,t.inject)(is,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,t.inject)(lo),this.createViewTransition=(0,t.inject)(So,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,E.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Me=>this.events.next(new Fn(Me)),this.configLoader.onLoadStartListener=Me=>this.events.next(new In(Me))}complete(){this.transitions?.complete()}handleNavigationRequest(X){const se=++this.navigationId;this.transitions?.next({...this.transitions.value,...X,id:se})}setupNavigations(X,se,Me){return this.transitions=new u.t({id:0,currentUrlTree:se,currentRawUrl:se,extractedUrl:this.urlHandlingStrategy.extract(se),urlAfterRedirects:this.urlHandlingStrategy.extract(se),rawUrl:se,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ue,restoredState:null,currentSnapshot:Me.snapshot,targetSnapshot:null,currentRouterState:Me,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,I.p)(ze=>0!==ze.id),(0,y.T)(ze=>({...ze,extractedUrl:this.urlHandlingStrategy.extract(ze.rawUrl)})),(0,M.n)(ze=>{let yt=!1,Yt=!1;return(0,E.of)(ze).pipe((0,M.n)(zt=>{if(this.navigationId>ze.id)return this.cancelNavigationTransition(ze,"",Mt.SupersededByNewNavigation),o.w;this.currentTransition=ze,this.currentNavigation={id:zt.id,initialUrl:zt.rawUrl,extractedUrl:zt.extractedUrl,trigger:zt.source,extras:zt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const Mn=!X.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!Mn&&"reload"!==(zt.extras.onSameUrlNavigation??X.onSameUrlNavigation)){const we="";return this.events.next(new le(zt.id,this.urlSerializer.serialize(zt.rawUrl),we,H.IgnoredSameUrlNavigation)),zt.resolve(null),o.w}if(this.urlHandlingStrategy.shouldProcessUrl(zt.rawUrl))return(0,E.of)(zt).pipe((0,M.n)(we=>{const Z=this.transitions?.getValue();return this.events.next(new mt(we.id,this.urlSerializer.serialize(we.extractedUrl),we.source,we.restoredState)),Z!==this.transitions?.getValue()?o.w:Promise.resolve(we)}),function Hs(z,re,X,se,Me,ze){return(0,D.Z)(yt=>function $s(z,re,X,se,Me,ze,yt="emptyOnly"){return new la(z,re,X,se,Me,yt,ze).recognize()}(z,re,X,se,yt.extractedUrl,Me,ze).pipe((0,y.T)(({state:Yt,tree:zt})=>({...yt,targetSnapshot:Yt,urlAfterRedirects:zt}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,X.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,U.M)(we=>{ze.targetSnapshot=we.targetSnapshot,ze.urlAfterRedirects=we.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:we.urlAfterRedirects};const Z=new wt(we.id,this.urlSerializer.serialize(we.extractedUrl),this.urlSerializer.serialize(we.urlAfterRedirects),we.targetSnapshot);this.events.next(Z)}));if(Mn&&this.urlHandlingStrategy.shouldProcessUrl(zt.currentRawUrl)){const{id:we,extractedUrl:Z,source:Xe,restoredState:gt,extras:ht}=zt,Kt=new mt(we,this.urlSerializer.serialize(Z),Xe,gt);this.events.next(Kt);const Ut=Dn(this.rootComponentType).snapshot;return this.currentTransition=ze={...zt,targetSnapshot:Ut,urlAfterRedirects:Z,extras:{...ht,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Z,(0,E.of)(ze)}{const we="";return this.events.next(new le(zt.id,this.urlSerializer.serialize(zt.extractedUrl),we,H.IgnoredByUrlHandlingStrategy)),zt.resolve(null),o.w}}),(0,U.M)(zt=>{const Mn=new ln(zt.id,this.urlSerializer.serialize(zt.extractedUrl),this.urlSerializer.serialize(zt.urlAfterRedirects),zt.targetSnapshot);this.events.next(Mn)}),(0,y.T)(zt=>(this.currentTransition=ze={...zt,guards:Wr(zt.targetSnapshot,zt.currentSnapshot,this.rootContexts)},ze)),function St(z,re){return(0,D.Z)(X=>{const{targetSnapshot:se,currentSnapshot:Me,guards:{canActivateChecks:ze,canDeactivateChecks:yt}}=X;return 0===yt.length&&0===ze.length?(0,E.of)({...X,guardsResult:!0}):function xn(z,re,X,se){return(0,C.H)(z).pipe((0,D.Z)(Me=>function Bo(z,re,X,se,Me){const ze=re&&re.routeConfig?re.routeConfig.canDeactivate:null;if(!ze||0===ze.length)return(0,E.of)(!0);const yt=ze.map(Yt=>{const zt=Vn(re)??Me,Mn=Br(Yt,zt);return We(function Do(z){return z&&$r(z.canDeactivate)}(Mn)?Mn.canDeactivate(z,re,X,se):(0,t.runInInjectionContext)(zt,()=>Mn(z,re,X,se))).pipe((0,O.$)())});return(0,E.of)(yt).pipe(Ve())}(Me.component,Me.route,X,re,se)),(0,O.$)(Me=>!0!==Me,!0))}(yt,se,Me,z).pipe((0,D.Z)(Yt=>Yt&&function Kr(z){return"boolean"==typeof z}(Yt)?function ni(z,re,X,se){return(0,C.H)(re).pipe((0,T.H)(Me=>(0,f.x)(function Vr(z,re){return null!==z&&re&&re(new yi(z)),(0,E.of)(!0)}(Me.route.parent,se),function Er(z,re){return null!==z&&re&&re(new _i(z)),(0,E.of)(!0)}(Me.route,se),function kr(z,re,X){const se=re[re.length-1],ze=re.slice(0,re.length-1).reverse().map(yt=>function to(z){const re=z.routeConfig?z.routeConfig.canActivateChild:null;return re&&0!==re.length?{node:z,guards:re}:null}(yt)).filter(yt=>null!==yt).map(yt=>(0,d.v)(()=>{const Yt=yt.guards.map(zt=>{const Mn=Vn(yt.node)??X,L=Br(zt,Mn);return We(function Qr(z){return z&&$r(z.canActivateChild)}(L)?L.canActivateChild(se,z):(0,t.runInInjectionContext)(Mn,()=>L(se,z))).pipe((0,O.$)())});return(0,E.of)(Yt).pipe(Ve())}));return(0,E.of)(ze).pipe(Ve())}(z,Me.path,X),function Is(z,re,X){const se=re.routeConfig?re.routeConfig.canActivate:null;if(!se||0===se.length)return(0,E.of)(!0);const Me=se.map(ze=>(0,d.v)(()=>{const yt=Vn(re)??X,Yt=Br(ze,yt);return We(function Zr(z){return z&&$r(z.canActivate)}(Yt)?Yt.canActivate(re,z):(0,t.runInInjectionContext)(yt,()=>Yt(re,z))).pipe((0,O.$)())}));return(0,E.of)(Me).pipe(Ve())}(z,Me.route,X))),(0,O.$)(Me=>!0!==Me,!0))}(se,ze,z,re):(0,E.of)(Yt)),(0,y.T)(Yt=>({...X,guardsResult:Yt})))})}(this.environmentInjector,zt=>this.events.next(zt)),(0,U.M)(zt=>{if(ze.guardsResult=zt.guardsResult,_t(zt.guardsResult))throw us(0,zt.guardsResult);const Mn=new Gn(zt.id,this.urlSerializer.serialize(zt.extractedUrl),this.urlSerializer.serialize(zt.urlAfterRedirects),zt.targetSnapshot,!!zt.guardsResult);this.events.next(Mn)}),(0,I.p)(zt=>!!zt.guardsResult||(this.cancelNavigationTransition(zt,"",Mt.GuardRejected),!1)),oo(zt=>{if(zt.guards.canActivateChecks.length)return(0,E.of)(zt).pipe((0,U.M)(Mn=>{const L=new Jn(Mn.id,this.urlSerializer.serialize(Mn.extractedUrl),this.urlSerializer.serialize(Mn.urlAfterRedirects),Mn.targetSnapshot);this.events.next(L)}),(0,M.n)(Mn=>{let L=!1;return(0,E.of)(Mn).pipe(function ds(z,re){return(0,D.Z)(X=>{const{targetSnapshot:se,guards:{canActivateChecks:Me}}=X;if(!Me.length)return(0,E.of)(X);const ze=new Set(Me.map(zt=>zt.route)),yt=new Set;for(const zt of ze)if(!yt.has(zt))for(const Mn of zs(zt))yt.add(Mn);let Yt=0;return(0,C.H)(yt).pipe((0,T.H)(zt=>ze.has(zt)?function Wo(z,re,X,se){const Me=z.routeConfig,ze=z._resolve;return void 0!==Me?.title&&!_s(Me)&&(ze[W]=Me.title),function so(z,re,X,se){const Me=pt(z);if(0===Me.length)return(0,E.of)({});const ze={};return(0,C.H)(Me).pipe((0,D.Z)(yt=>function hs(z,re,X,se){const Me=Vn(re)??se,ze=Br(z,Me);return We(ze.resolve?ze.resolve(re,X):(0,t.runInInjectionContext)(Me,()=>ze(re,X)))}(z[yt],re,X,se).pipe((0,O.$)(),(0,U.M)(Yt=>{ze[yt]=Yt}))),(0,F.o)(1),(0,Y.u)(ze),(0,S.W)(yt=>Ae(yt)?o.w:(0,c.$)(yt)))}(ze,z,re,se).pipe((0,y.T)(yt=>(z._resolvedData=yt,z.data=ji(z,z.parent,X).resolve,null)))}(zt,se,z,re):(zt.data=ji(zt,zt.parent,z).resolve,(0,E.of)(void 0))),(0,U.M)(()=>Yt++),(0,F.o)(1),(0,D.Z)(zt=>Yt===yt.size?(0,E.of)(X):o.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,U.M)({next:()=>L=!0,complete:()=>{L||this.cancelNavigationTransition(Mn,"",Mt.NoDataFromResolver)}}))}),(0,U.M)(Mn=>{const L=new ti(Mn.id,this.urlSerializer.serialize(Mn.extractedUrl),this.urlSerializer.serialize(Mn.urlAfterRedirects),Mn.targetSnapshot);this.events.next(L)}))}),oo(zt=>{const Mn=L=>{const we=[];L.routeConfig?.loadComponent&&!L.routeConfig._loadedComponent&&we.push(this.configLoader.loadComponent(L.routeConfig).pipe((0,U.M)(Z=>{L.component=Z}),(0,y.T)(()=>{})));for(const Z of L.children)we.push(...Mn(Z));return we};return(0,b.z)(Mn(zt.targetSnapshot.root)).pipe((0,N.U)(null),(0,w.s)(1))}),oo(()=>this.afterPreactivation()),(0,M.n)(()=>{const{currentSnapshot:zt,targetSnapshot:Mn}=ze,L=this.createViewTransition?.(this.environmentInjector,zt.root,Mn.root);return L?(0,C.H)(L).pipe((0,y.T)(()=>ze)):(0,E.of)(ze)}),(0,y.T)(zt=>{const Mn=function es(z,re,X){const se=Li(z,re._root,X?X._root:void 0);return new vn(se,re)}(X.routeReuseStrategy,zt.targetSnapshot,zt.currentRouterState);return this.currentTransition=ze={...zt,targetRouterState:Mn},this.currentNavigation.targetRouterState=Mn,ze}),(0,U.M)(()=>{this.events.next(new Ri)}),((z,re,X,se)=>(0,y.T)(Me=>(new ur(re,Me.targetRouterState,Me.currentRouterState,X,se).activate(z),Me)))(this.rootContexts,X.routeReuseStrategy,zt=>this.events.next(zt),this.inputBindingEnabled),(0,w.s)(1),(0,U.M)({next:zt=>{yt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new xe(zt.id,this.urlSerializer.serialize(zt.extractedUrl),this.urlSerializer.serialize(zt.urlAfterRedirects))),this.titleStrategy?.updateTitle(zt.targetRouterState.snapshot),zt.resolve(!0)},complete:()=>{yt=!0}}),(0,$.Q)(this.transitionAbortSubject.pipe((0,U.M)(zt=>{throw zt}))),(0,ee.j)(()=>{!yt&&!Yt&&this.cancelNavigationTransition(ze,"",Mt.SupersededByNewNavigation),this.currentTransition?.id===ze.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,S.W)(zt=>{if(Yt=!0,Dt(zt))this.events.next(new me(ze.id,this.urlSerializer.serialize(ze.extractedUrl),zt.message,zt.cancellationCode)),function vs(z){return Dt(z)&&_t(z.url)}(zt)?this.events.next(new On(zt.url)):ze.resolve(!1);else{this.events.next(new $e(ze.id,this.urlSerializer.serialize(ze.extractedUrl),zt,ze.targetSnapshot??void 0));try{ze.resolve(X.errorHandler(zt))}catch(Mn){this.options.resolveNavigationPromiseOnError?ze.resolve(!1):ze.reject(Mn)}}return o.w}))}))}cancelNavigationTransition(X,se,Me){const ze=new me(X.id,this.urlSerializer.serialize(X.extractedUrl),se,Me);this.events.next(ze),X.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})();function ks(z){return z!==Ue}let uo=(()=>{class z{static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:()=>(0,t.inject)(J),providedIn:"root"})}return z})();class Ko{shouldDetach(re){return!1}store(re,X){}shouldAttach(re){return!1}retrieve(re){return null}shouldReuseRoute(re,X){return re.routeConfig===X.routeConfig}}let J=(()=>{class z extends Ko{static#e=this.\u0275fac=(()=>{let X;return function(Me){return(X||(X=t.\u0275\u0275getInheritedFactory(z)))(Me||z)}})();static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})(),Pe=(()=>{class z{static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:()=>(0,t.inject)(oe),providedIn:"root"})}return z})(),oe=(()=>{class z extends Pe{constructor(){super(...arguments),this.location=(0,t.inject)(v.Location),this.urlSerializer=(0,t.inject)(xt),this.options=(0,t.inject)(is,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,t.inject)(lo),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new bt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Dn(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(X){return this.location.subscribe(se=>{"popstate"===se.type&&X(se.url,se.state)})}handleRouterEvent(X,se){if(X instanceof mt)this.stateMemento=this.createStateMemento();else if(X instanceof le)this.rawUrlTree=se.initialUrl;else if(X instanceof wt){if("eager"===this.urlUpdateStrategy&&!se.extras.skipLocationChange){const Me=this.urlHandlingStrategy.merge(se.finalUrl,se.initialUrl);this.setBrowserUrl(Me,se)}}else X instanceof Ri?(this.currentUrlTree=se.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(se.finalUrl,se.initialUrl),this.routerState=se.targetRouterState,"deferred"===this.urlUpdateStrategy&&(se.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,se))):X instanceof me&&(X.code===Mt.GuardRejected||X.code===Mt.NoDataFromResolver)?this.restoreHistory(se):X instanceof $e?this.restoreHistory(se,!0):X instanceof xe&&(this.lastSuccessfulId=X.id,this.currentPageId=this.browserPageId)}setBrowserUrl(X,se){const Me=this.urlSerializer.serialize(X);if(this.location.isCurrentPathEqualTo(Me)||se.extras.replaceUrl){const yt={...se.extras.state,...this.generateNgRouterState(se.id,this.browserPageId)};this.location.replaceState(Me,"",yt)}else{const ze={...se.extras.state,...this.generateNgRouterState(se.id,this.browserPageId+1)};this.location.go(Me,"",ze)}}restoreHistory(X,se=!1){if("computed"===this.canceledNavigationResolution){const ze=this.currentPageId-this.browserPageId;0!==ze?this.location.historyGo(ze):this.currentUrlTree===X.finalUrl&&0===ze&&(this.resetState(X),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(se&&this.resetState(X),this.resetUrlToCurrentUrlTree())}resetState(X){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,X.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(X,se){return"computed"===this.canceledNavigationResolution?{navigationId:X,\u0275routerPageId:se}:{navigationId:X}}static#e=this.\u0275fac=(()=>{let X;return function(Me){return(X||(X=t.\u0275\u0275getInheritedFactory(z)))(Me||z)}})();static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})();var ge=function(z){return z[z.COMPLETE=0]="COMPLETE",z[z.FAILED=1]="FAILED",z[z.REDIRECTING=2]="REDIRECTING",z}(ge||{});function ot(z,re){z.events.pipe((0,I.p)(X=>X instanceof xe||X instanceof me||X instanceof $e||X instanceof le),(0,y.T)(X=>X instanceof xe||X instanceof le?ge.COMPLETE:X instanceof me&&(X.code===Mt.Redirect||X.code===Mt.SupersededByNewNavigation)?ge.REDIRECTING:ge.FAILED),(0,I.p)(X=>X!==ge.REDIRECTING),(0,w.s)(1)).subscribe(()=>{re()})}function Ht(z){throw z}const Qt={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},wn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ci=(()=>{class z{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,t.inject)(t.\u0275Console),this.stateManager=(0,t.inject)(Pe),this.options=(0,t.inject)(is,{optional:!0})||{},this.pendingTasks=(0,t.inject)(t.\u0275PendingTasks),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,t.inject)(co),this.urlSerializer=(0,t.inject)(xt),this.location=(0,t.inject)(v.Location),this.urlHandlingStrategy=(0,t.inject)(lo),this._events=new h.B,this.errorHandler=this.options.errorHandler||Ht,this.navigated=!1,this.routeReuseStrategy=(0,t.inject)(uo),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,t.inject)(Rr,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,t.inject)(Ur,{optional:!0}),this.eventsSubscription=new p.yU,this.isNgZoneEnabled=(0,t.inject)(t.NgZone)instanceof t.NgZone&&t.NgZone.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:X=>{this.console.warn(X)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const X=this.navigationTransitions.events.subscribe(se=>{try{const Me=this.navigationTransitions.currentTransition,ze=this.navigationTransitions.currentNavigation;if(null!==Me&&null!==ze)if(this.stateManager.handleRouterEvent(se,ze),se instanceof me&&se.code!==Mt.Redirect&&se.code!==Mt.SupersededByNewNavigation)this.navigated=!0;else if(se instanceof xe)this.navigated=!0;else if(se instanceof On){const yt=this.urlHandlingStrategy.merge(se.url,Me.currentRawUrl),Yt={info:Me.extras.info,skipLocationChange:Me.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ks(Me.source)};this.scheduleNavigation(yt,Ue,null,Yt,{resolve:Me.resolve,reject:Me.reject,promise:Me.promise})}(function Di(z){return!(z instanceof Ri||z instanceof On)})(se)&&this._events.next(se)}catch(Me){this.navigationTransitions.transitionAbortSubject.next(Me)}});this.eventsSubscription.add(X)}resetRootComponentType(X){this.routerState.root.component=X,this.navigationTransitions.rootComponentType=X}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ue,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((X,se)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(X,"popstate",se)},0)})}navigateToSyncWithBrowser(X,se,Me){const ze={replaceUrl:!0},yt=Me?.navigationId?Me:null;if(Me){const zt={...Me};delete zt.navigationId,delete zt.\u0275routerPageId,0!==Object.keys(zt).length&&(ze.state=zt)}const Yt=this.parseUrl(X);this.scheduleNavigation(Yt,se,yt,ze)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(X){this.config=X.map(Mi),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(X,se={}){const{relativeTo:Me,queryParams:ze,fragment:yt,queryParamsHandling:Yt,preserveFragment:zt}=se,Mn=zt?this.currentUrlTree.fragment:yt;let we,L=null;switch(Yt){case"merge":L={...this.currentUrlTree.queryParams,...ze};break;case"preserve":L=this.currentUrlTree.queryParams;break;default:L=ze||null}null!==L&&(L=this.removeEmptyProps(L));try{we=Je(Me?Me.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof X[0]||!X[0].startsWith("/"))&&(X=[]),we=this.currentUrlTree.root}return Fe(we,X,L,Mn??null)}navigateByUrl(X,se={skipLocationChange:!1}){const Me=_t(X)?X:this.parseUrl(X),ze=this.urlHandlingStrategy.merge(Me,this.rawUrlTree);return this.scheduleNavigation(ze,Ue,null,se)}navigate(X,se={skipLocationChange:!1}){return function Si(z){for(let re=0;re(null!=ze&&(se[Me]=ze),se),{})}scheduleNavigation(X,se,Me,ze,yt){if(this.disposed)return Promise.resolve(!1);let Yt,zt,Mn;yt?(Yt=yt.resolve,zt=yt.reject,Mn=yt.promise):Mn=new Promise((we,Z)=>{Yt=we,zt=Z});const L=this.pendingTasks.add();return ot(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(L))}),this.navigationTransitions.handleNavigationRequest({source:se,restoredState:Me,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:X,extras:ze,resolve:Yt,reject:zt,promise:Mn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Mn.catch(we=>Promise.reject(we))}static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})(),Qn=(()=>{class z{constructor(X,se,Me,ze,yt,Yt){this.router=X,this.route=se,this.tabIndexAttribute=Me,this.renderer=ze,this.el=yt,this.locationStrategy=Yt,this.href=null,this.commands=null,this.onChanges=new h.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const zt=yt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===zt||"area"===zt,this.isAnchorElement?this.subscription=X.events.subscribe(Mn=>{Mn instanceof xe&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(X){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",X)}ngOnChanges(X){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(X){null!=X?(this.commands=Array.isArray(X)?X:[X],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(X,se,Me,ze,yt){const Yt=this.urlTree;return!!(null===Yt||this.isAnchorElement&&(0!==X||se||Me||ze||yt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(Yt,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const X=this.urlTree;this.href=null!==X&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(X)):null;const se=null===this.href?null:(0,t.\u0275\u0275sanitizeUrlOrResourceUrl)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",se)}applyAttributeValue(X,se){const Me=this.renderer,ze=this.el.nativeElement;null!==se?Me.setAttribute(ze,X,se):Me.removeAttribute(ze,X)}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:this.preserveFragment})}static#e=this.\u0275fac=function(se){return new(se||z)(t.\u0275\u0275directiveInject(ci),t.\u0275\u0275directiveInject(Hn),t.\u0275\u0275injectAttribute("tabindex"),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(v.LocationStrategy))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:z,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(se,Me){1&se&&t.\u0275\u0275listener("click",function(yt){return Me.onClick(yt.button,yt.ctrlKey,yt.shiftKey,yt.altKey,yt.metaKey)}),2&se&&t.\u0275\u0275attribute("target",Me.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"preserveFragment","preserveFragment",t.booleanAttribute],skipLocationChange:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",t.booleanAttribute],replaceUrl:[t.\u0275\u0275InputFlags.HasDecoratorInputTransform,"replaceUrl","replaceUrl",t.booleanAttribute],routerLink:"routerLink"},standalone:!0,features:[t.\u0275\u0275InputTransformsFeature,t.\u0275\u0275NgOnChangesFeature]})}return z})(),Yi=(()=>{class z{get isActive(){return this._isActive}constructor(X,se,Me,ze,yt){this.router=X,this.element=se,this.renderer=Me,this.cdr=ze,this.link=yt,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.EventEmitter,this.routerEventsSubscription=X.events.subscribe(Yt=>{Yt instanceof xe&&this.update()})}ngAfterContentInit(){(0,E.of)(this.links.changes,(0,E.of)(null)).pipe((0,j.U)()).subscribe(X=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const X=[...this.links.toArray(),this.link].filter(se=>!!se).map(se=>se.onChanges);this.linkInputChangesSubscription=(0,C.H)(X).pipe((0,j.U)()).subscribe(se=>{this._isActive!==this.isLinkActive(this.router)(se)&&this.update()})}set routerLinkActive(X){const se=Array.isArray(X)?X:X.split(" ");this.classes=se.filter(Me=>!!Me)}ngOnChanges(X){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const X=this.hasActiveLinks();this.classes.forEach(se=>{X?this.renderer.addClass(this.element.nativeElement,se):this.renderer.removeClass(this.element.nativeElement,se)}),X&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==X&&(this._isActive=X,this.cdr.markForCheck(),this.isActiveChange.emit(X))})}isLinkActive(X){const se=function Ci(z){return!!z.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Me=>{const ze=Me.urlTree;return!!ze&&X.isActive(ze,se)}}hasActiveLinks(){const X=this.isLinkActive(this.router);return this.link&&X(this.link)||this.links.some(X)}static#e=this.\u0275fac=function(se){return new(se||z)(t.\u0275\u0275directiveInject(ci),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(Qn,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:z,selectors:[["","routerLinkActive",""]],contentQueries:function(se,Me,ze){if(1&se&&t.\u0275\u0275contentQuery(ze,Qn,5),2&se){let yt;t.\u0275\u0275queryRefresh(yt=t.\u0275\u0275loadQuery())&&(Me.links=yt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.\u0275\u0275NgOnChangesFeature]})}return z})();class tr{}let jr=(()=>{class z{preload(X,se){return se().pipe((0,S.W)(()=>(0,E.of)(null)))}static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})(),fi=(()=>{class z{preload(X,se){return(0,E.of)(null)}static#e=this.\u0275fac=function(se){return new(se||z)};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})(),mn=(()=>{class z{constructor(X,se,Me,ze,yt){this.router=X,this.injector=Me,this.preloadingStrategy=ze,this.loader=yt}setUpPreloading(){this.subscription=this.router.events.pipe((0,I.p)(X=>X instanceof xe),(0,T.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(X,se){const Me=[];for(const ze of se){ze.providers&&!ze._injector&&(ze._injector=(0,t.createEnvironmentInjector)(ze.providers,X,`Route: ${ze.path}`));const yt=ze._injector??X,Yt=ze._loadedInjector??yt;(ze.loadChildren&&!ze._loadedRoutes&&void 0===ze.canLoad||ze.loadComponent&&!ze._loadedComponent)&&Me.push(this.preloadConfig(yt,ze)),(ze.children||ze._loadedRoutes)&&Me.push(this.processRoutes(Yt,ze.children??ze._loadedRoutes))}return(0,C.H)(Me).pipe((0,j.U)())}preloadConfig(X,se){return this.preloadingStrategy.preload(se,()=>{let Me;Me=se.loadChildren&&void 0===se.canLoad?this.loader.loadChildren(X,se):(0,E.of)(null);const ze=Me.pipe((0,D.Z)(yt=>null===yt?(0,E.of)(void 0):(se._loadedRoutes=yt.routes,se._loadedInjector=yt.injector,this.processRoutes(yt.injector??X,yt.routes))));if(se.loadComponent&&!se._loadedComponent){const yt=this.loader.loadComponent(se);return(0,C.H)([ze,yt]).pipe((0,j.U)())}return ze})}static#e=this.\u0275fac=function(se){return new(se||z)(t.\u0275\u0275inject(ci),t.\u0275\u0275inject(t.Compiler),t.\u0275\u0275inject(t.EnvironmentInjector),t.\u0275\u0275inject(tr),t.\u0275\u0275inject(Cs))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})();const kn=new t.InjectionToken("");let Ai=(()=>{class z{constructor(X,se,Me,ze,yt={}){this.urlSerializer=X,this.transitions=se,this.viewportScroller=Me,this.zone=ze,this.options=yt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},yt.scrollPositionRestoration||="disabled",yt.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(X=>{X instanceof mt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=X.navigationTrigger,this.restoredId=X.restoredState?X.restoredState.navigationId:0):X instanceof xe?(this.lastId=X.id,this.scheduleScrollEvent(X,this.urlSerializer.parse(X.urlAfterRedirects).fragment)):X instanceof le&&X.code===H.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(X,this.urlSerializer.parse(X.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(X=>{X instanceof xi&&(X.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(X.position):X.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(X.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(X,se){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new xi(X,"popstate"===this.lastSource?this.store[this.restoredId]:null,se))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(se){t.\u0275\u0275invalidFactory()};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac})}return z})();function cr(z,...re){return(0,t.makeEnvironmentProviders)([{provide:Rr,multi:!0,useValue:z},[],{provide:Hn,useFactory:nr,deps:[ci]},{provide:t.APP_BOOTSTRAP_LISTENER,multi:!0,useFactory:Wn},re.map(X=>X.\u0275providers)])}function nr(z){return z.routerState.root}function Hi(z,re){return{\u0275kind:z,\u0275providers:re}}function pr(z){return[{provide:Rr,multi:!0,useValue:z},[]]}function rs(z={}){return Hi(4,[{provide:kn,useFactory:()=>{const X=(0,t.inject)(v.ViewportScroller),se=(0,t.inject)(t.NgZone),Me=(0,t.inject)(co),ze=(0,t.inject)(xt);return new Ai(ze,Me,X,se,z)}}])}function Wn(){const z=(0,t.inject)(t.Injector);return re=>{const X=z.get(t.ApplicationRef);if(re!==X.components[0])return;const se=z.get(ci),Me=z.get(Nr);1===z.get(Yo)&&se.initialNavigation(),z.get(Ks,null,t.InjectFlags.Optional)?.setUpPreloading(),z.get(kn,null,t.InjectFlags.Optional)?.init(),se.resetRootComponentType(X.componentTypes[0]),Me.closed||(Me.next(),Me.complete(),Me.unsubscribe())}}const Nr=new t.InjectionToken("",{factory:()=>new h.B}),Yo=new t.InjectionToken("",{providedIn:"root",factory:()=>1});function Gs(){return Hi(2,[{provide:Yo,useValue:0},{provide:t.APP_INITIALIZER,multi:!0,deps:[t.Injector],useFactory:re=>{const X=re.get(v.LOCATION_INITIALIZED,Promise.resolve());return()=>X.then(()=>new Promise(se=>{const Me=re.get(ci),ze=re.get(Nr);ot(Me,()=>{se(!0)}),re.get(co).afterPreactivation=()=>(se(!0),ze.closed?(0,E.of)(void 0):ze),Me.initialNavigation()}))}}])}function Qi(){return Hi(3,[{provide:t.APP_INITIALIZER,multi:!0,useFactory:()=>{const re=(0,t.inject)(ci);return()=>{re.setUpLocationChangeListener()}}},{provide:Yo,useValue:2}])}function Ao(){let z=[];return z=[],Hi(1,z)}const Ks=new t.InjectionToken("");function Pr(z){return Hi(0,[{provide:Ks,useExisting:mn},{provide:tr,useExisting:z}])}function Ys(z){return Hi(5,[{provide:is,useValue:z}])}function Zo(){return Hi(6,[{provide:v.LocationStrategy,useClass:v.HashLocationStrategy}])}function Os(z){return Hi(7,[{provide:t.ENVIRONMENT_INITIALIZER,multi:!0,useValue:()=>{const X=(0,t.inject)(t.EnvironmentInjector);(0,t.inject)(ci).events.subscribe(se=>{se instanceof $e&&(0,t.runInInjectionContext)(X,()=>z(se))})}}])}function fo(){return Hi(8,[mr,{provide:Ur,useExisting:mr}])}function Rs(z){return Hi(9,[{provide:So,useValue:Ki},{provide:ws,useValue:{skipNextTransition:!!z?.skipInitialTransition,...z}}])}const mo=new t.InjectionToken("ROUTER_FORROOT_GUARD"),po=[v.Location,{provide:xt,useClass:jt},ci,qn,{provide:Hn,useFactory:nr,deps:[ci]},Cs,[]];let fs=(()=>{class z{constructor(X){}static forRoot(X,se){return{ngModule:z,providers:[po,[],{provide:Rr,multi:!0,useValue:X},{provide:mo,useFactory:ua,deps:[[ci,new t.Optional,new t.SkipSelf]]},{provide:is,useValue:se||{}},se?.useHash?{provide:v.LocationStrategy,useClass:v.HashLocationStrategy}:{provide:v.LocationStrategy,useClass:v.PathLocationStrategy},{provide:kn,useFactory:()=>{const z=(0,t.inject)(v.ViewportScroller),re=(0,t.inject)(t.NgZone),X=(0,t.inject)(is),se=(0,t.inject)(co),Me=(0,t.inject)(xt);return X.scrollOffset&&z.setOffset(X.scrollOffset),new Ai(Me,se,z,re,X)}},se?.preloadingStrategy?Pr(se.preloadingStrategy).\u0275providers:[],se?.initialNavigation?yr(se):[],se?.bindToComponentInputs?fo().\u0275providers:[],se?.enableViewTransitions?Rs().\u0275providers:[],[{provide:hr,useFactory:Wn},{provide:t.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:hr}]]}}static forChild(X){return{ngModule:z,providers:[{provide:Rr,multi:!0,useValue:X}]}}static#e=this.\u0275fac=function(se){return new(se||z)(t.\u0275\u0275inject(mo,8))};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:z});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({})}return z})();function ua(z){return"guarded"}function yr(z){return["disabled"===z.initialNavigation?Qi().\u0275providers:[],"enabledBlocking"===z.initialNavigation?Gs().\u0275providers:[]]}const hr=new t.InjectionToken("");function Zs(z){return z.map(re=>(...X)=>(0,t.inject)(re).canMatch(...X))}function Xo(z){return z.map(re=>(...X)=>(0,t.inject)(re).canActivate(...X))}function ss(z){return z.map(re=>(...X)=>(0,t.inject)(re).canActivateChild(...X))}function ha(z){return z.map(re=>(...X)=>(0,t.inject)(re).canDeactivate(...X))}function Cl(z){return(...re)=>(0,t.inject)(z).resolve(...re)}const wl=new t.Version("17.3.3")},3955:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{DEFAULT_LANGUAGE:()=>R,FakeMissingTranslationHandler:()=>p,MissingTranslationHandler:()=>h,TranslateCompiler:()=>D,TranslateDefaultParser:()=>I,TranslateDirective:()=>F,TranslateFakeCompiler:()=>O,TranslateFakeLoader:()=>r,TranslateLoader:()=>o,TranslateModule:()=>ee,TranslateParser:()=>k,TranslatePipe:()=>Y,TranslateService:()=>A,TranslateStore:()=>T,USE_DEFAULT_LANG:()=>S,USE_EXTEND:()=>N,USE_STORE:()=>U});var t=g(4438),_=g(7673),C=g(4402),E=g(7468),u=g(2688),b=g(9030),s=g(6697),f=g(4668),d=g(6354),l=g(274),c=g(5558);class o{}let r=(()=>{class ie extends o{getTranslation(j){return(0,_.of)({})}static \u0275fac=(()=>{let j;return function(V){return(j||(j=t.\u0275\u0275getInheritedFactory(ie)))(V||ie)}})();static \u0275prov=t.\u0275\u0275defineInjectable({token:ie,factory:ie.\u0275fac})}return ie})();class h{}let p=(()=>{class ie{handle(j){return j.key}static \u0275fac=function(G){return new(G||ie)};static \u0275prov=t.\u0275\u0275defineInjectable({token:ie,factory:ie.\u0275fac})}return ie})();function v(ie,$){if(ie===$)return!0;if(null===ie||null===$)return!1;if(ie!=ie&&$!=$)return!0;let V,W,K,j=typeof ie;if(j==typeof $&&"object"==j){if(!Array.isArray(ie)){if(Array.isArray($))return!1;for(W in K=Object.create(null),ie){if(!v(ie[W],$[W]))return!1;K[W]=!0}for(W in $)if(!(W in K)&&typeof $[W]<"u")return!1;return!0}if(!Array.isArray($))return!1;if((V=ie.length)==$.length){for(W=0;W{M($[G])?G in ie?j[G]=w(ie[G],$[G]):Object.assign(j,{[G]:$[G]}):Object.assign(j,{[G]:$[G]})}),j}class k{}let I=(()=>{class ie extends k{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(j,G){let V;return V="string"==typeof j?this.interpolateString(j,G):"function"==typeof j?this.interpolateFunction(j,G):j,V}getValue(j,G){let V="string"==typeof G?G.split("."):[G];G="";do{G+=V.shift(),!y(j)||!y(j[G])||"object"!=typeof j[G]&&V.length?V.length?G+=".":j=void 0:(j=j[G],G="")}while(V.length);return j}interpolateFunction(j,G){return j(G)}interpolateString(j,G){return G?j.replace(this.templateMatcher,(V,W)=>{let K=this.getValue(G,W);return y(K)?K:V}):j}static \u0275fac=(()=>{let j;return function(V){return(j||(j=t.\u0275\u0275getInheritedFactory(ie)))(V||ie)}})();static \u0275prov=t.\u0275\u0275defineInjectable({token:ie,factory:ie.\u0275fac})}return ie})();class D{}let O=(()=>{class ie extends D{compile(j,G){return j}compileTranslations(j,G){return j}static \u0275fac=(()=>{let j;return function(V){return(j||(j=t.\u0275\u0275getInheritedFactory(ie)))(V||ie)}})();static \u0275prov=t.\u0275\u0275defineInjectable({token:ie,factory:ie.\u0275fac})}return ie})();class T{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new t.EventEmitter;onLangChange=new t.EventEmitter;onDefaultLangChange=new t.EventEmitter}const U=new t.InjectionToken("USE_STORE"),S=new t.InjectionToken("USE_DEFAULT_LANG"),R=new t.InjectionToken("DEFAULT_LANGUAGE"),N=new t.InjectionToken("USE_EXTEND");let A=(()=>{class ie{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new t.EventEmitter;_onLangChange=new t.EventEmitter;_onDefaultLangChange=new t.EventEmitter;_defaultLang;_currentLang;_langs=[];_translations={};_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(j){this.isolate?this._defaultLang=j:this.store.defaultLang=j}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(j){this.isolate?this._currentLang=j:this.store.currentLang=j}get langs(){return this.isolate?this._langs:this.store.langs}set langs(j){this.isolate?this._langs=j:this.store.langs=j}get translations(){return this.isolate?this._translations:this.store.translations}set translations(j){this.isolate?this._translations=j:this.store.translations=j}constructor(j,G,V,W,K,ce=!0,ue=!1,ve=!1,Ye){this.store=j,this.currentLoader=G,this.compiler=V,this.parser=W,this.missingTranslationHandler=K,this.useDefaultLang=ce,this.isolate=ue,this.extend=ve,Ye&&this.setDefaultLang(Ye)}setDefaultLang(j){if(j===this.defaultLang)return;let G=this.retrieveTranslations(j);typeof G<"u"?(null==this.defaultLang&&(this.defaultLang=j),G.pipe((0,s.s)(1)).subscribe(V=>{this.changeDefaultLang(j)})):this.changeDefaultLang(j)}getDefaultLang(){return this.defaultLang}use(j){if(j===this.currentLang)return(0,_.of)(this.translations[j]);let G=this.retrieveTranslations(j);return typeof G<"u"?(this.currentLang||(this.currentLang=j),G.pipe((0,s.s)(1)).subscribe(V=>{this.changeLang(j)}),G):(this.changeLang(j),(0,_.of)(this.translations[j]))}retrieveTranslations(j){let G;return(typeof this.translations[j]>"u"||this.extend)&&(this._translationRequests[j]=this._translationRequests[j]||this.getTranslation(j),G=this._translationRequests[j]),G}getTranslation(j){this.pending=!0;const G=this.currentLoader.getTranslation(j).pipe((0,f.t)(1),(0,s.s)(1));return this.loadingTranslations=G.pipe((0,d.T)(V=>this.compiler.compileTranslations(V,j)),(0,f.t)(1),(0,s.s)(1)),this.loadingTranslations.subscribe({next:V=>{this.translations[j]=this.extend&&this.translations[j]?{...V,...this.translations[j]}:V,this.updateLangs(),this.pending=!1},error:V=>{this.pending=!1}}),G}setTranslation(j,G,V=!1){G=this.compiler.compileTranslations(G,j),this.translations[j]=(V||this.extend)&&this.translations[j]?w(this.translations[j],G):G,this.updateLangs(),this.onTranslationChange.emit({lang:j,translations:this.translations[j]})}getLangs(){return this.langs}addLangs(j){j.forEach(G=>{-1===this.langs.indexOf(G)&&this.langs.push(G)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(j,G,V){let W;if(G instanceof Array){let K={},ce=!1;for(let ue of G)K[ue]=this.getParsedResult(j,ue,V),(0,C.A)(K[ue])&&(ce=!0);if(ce){const ue=G.map(ve=>(0,C.A)(K[ve])?K[ve]:(0,_.of)(K[ve]));return(0,E.p)(ue).pipe((0,d.T)(ve=>{let Ye={};return ve.forEach((pt,ct)=>{Ye[G[ct]]=pt}),Ye}))}return K}if(j&&(W=this.parser.interpolate(this.parser.getValue(j,G),V)),typeof W>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(W=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],G),V)),typeof W>"u"){let K={key:G,translateService:this};typeof V<"u"&&(K.interpolateParams=V),W=this.missingTranslationHandler.handle(K)}return typeof W<"u"?W:G}get(j,G){if(!y(j)||!j.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,l.H)(V=>(V=this.getParsedResult(V,j,G),(0,C.A)(V)?V:(0,_.of)(V))));{let V=this.getParsedResult(this.translations[this.currentLang],j,G);return(0,C.A)(V)?V:(0,_.of)(V)}}getStreamOnTranslationChange(j,G){if(!y(j)||!j.length)throw new Error('Parameter "key" required');return(0,u.x)((0,b.v)(()=>this.get(j,G)),this.onTranslationChange.pipe((0,c.n)(V=>{const W=this.getParsedResult(V.translations,j,G);return"function"==typeof W.subscribe?W:(0,_.of)(W)})))}stream(j,G){if(!y(j)||!j.length)throw new Error('Parameter "key" required');return(0,u.x)((0,b.v)(()=>this.get(j,G)),this.onLangChange.pipe((0,c.n)(V=>{const W=this.getParsedResult(V.translations,j,G);return(0,C.A)(W)?W:(0,_.of)(W)})))}instant(j,G){if(!y(j)||!j.length)throw new Error('Parameter "key" required');let V=this.getParsedResult(this.translations[this.currentLang],j,G);if((0,C.A)(V)){if(j instanceof Array){let W={};return j.forEach((K,ce)=>{W[j[ce]]=j[ce]}),W}return j}return V}set(j,G,V=this.currentLang){this.translations[V][j]=this.compiler.compile(G,V),this.updateLangs(),this.onTranslationChange.emit({lang:V,translations:this.translations[V]})}changeLang(j){this.currentLang=j,this.onLangChange.emit({lang:j,translations:this.translations[j]}),null==this.defaultLang&&this.changeDefaultLang(j)}changeDefaultLang(j){this.defaultLang=j,this.onDefaultLangChange.emit({lang:j,translations:this.translations[j]})}reloadLang(j){return this.resetLang(j),this.getTranslation(j)}resetLang(j){this._translationRequests[j]=void 0,this.translations[j]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let j=window.navigator.languages?window.navigator.languages[0]:null;return j=j||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof j>"u"?void 0:(-1!==j.indexOf("-")&&(j=j.split("-")[0]),-1!==j.indexOf("_")&&(j=j.split("_")[0]),j)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let j=window.navigator.languages?window.navigator.languages[0]:null;return j=j||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,j}static \u0275fac=function(G){return new(G||ie)(t.\u0275\u0275inject(T),t.\u0275\u0275inject(o),t.\u0275\u0275inject(D),t.\u0275\u0275inject(k),t.\u0275\u0275inject(h),t.\u0275\u0275inject(S),t.\u0275\u0275inject(U),t.\u0275\u0275inject(N),t.\u0275\u0275inject(R))};static \u0275prov=t.\u0275\u0275defineInjectable({token:ie,factory:ie.\u0275fac})}return ie})(),F=(()=>{class ie{translateService;element;_ref;key;lastParams;currentParams;onLangChangeSub;onDefaultLangChangeSub;onTranslationChangeSub;set translate(j){j&&(this.key=j,this.checkNodes())}set translateParams(j){v(this.currentParams,j)||(this.currentParams=j,this.checkNodes(!0))}constructor(j,G,V){this.translateService=j,this.element=G,this._ref=V,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(W=>{W.lang===this.translateService.currentLang&&this.checkNodes(!0,W.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(W=>{this.checkNodes(!0,W.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(W=>{this.checkNodes(!0)}))}ngAfterViewChecked(){this.checkNodes()}checkNodes(j=!1,G){let V=this.element.nativeElement.childNodes;V.length||(this.setContent(this.element.nativeElement,this.key),V=this.element.nativeElement.childNodes);for(let W=0;W{K!==j&&(G.lastKey=j),G.originalContent||(G.originalContent=this.getContent(G)),G.currentValue=y(K)?K:G.originalContent||j,this.setContent(G,this.key?G.currentValue:G.originalContent.replace(j,G.currentValue)),this._ref.markForCheck()};if(y(V)){let K=this.translateService.getParsedResult(V,j,this.currentParams);(0,C.A)(K)?K.subscribe({next:W}):W(K)}else this.translateService.get(j,this.currentParams).subscribe(W)}}getContent(j){return y(j.textContent)?j.textContent:j.data}setContent(j,G){y(j.textContent)?j.textContent=G:j.data=G}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}static \u0275fac=function(G){return new(G||ie)(t.\u0275\u0275directiveInject(A),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ChangeDetectorRef))};static \u0275dir=t.\u0275\u0275defineDirective({type:ie,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}})}return ie})(),Y=(()=>{class ie{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(j,G){this.translate=j,this._ref=G}updateValue(j,G,V){let W=K=>{this.value=void 0!==K?K:j,this.lastKey=j,this._ref.markForCheck()};if(V){let K=this.translate.getParsedResult(V,j,G);(0,C.A)(K.subscribe)?K.subscribe(W):W(K)}this.translate.get(j,G).subscribe(W)}transform(j,...G){if(!j||!j.length)return j;if(v(j,this.lastKey)&&v(G,this.lastParams))return this.value;let V;if(y(G[0])&&G.length)if("string"==typeof G[0]&&G[0].length){let W=G[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{V=JSON.parse(W)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${G[0]}`)}}else"object"==typeof G[0]&&!Array.isArray(G[0])&&(V=G[0]);return this.lastKey=j,this.lastParams=G,this.updateValue(j,V),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(W=>{this.lastKey&&W.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(j,V,W.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(W=>{this.lastKey&&(this.lastKey=null,this.updateValue(j,V,W.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(j,V))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(G){return new(G||ie)(t.\u0275\u0275directiveInject(A,16),t.\u0275\u0275directiveInject(t.ChangeDetectorRef,16))};static \u0275pipe=t.\u0275\u0275definePipe({name:"translate",type:ie,pure:!1});static \u0275prov=t.\u0275\u0275defineInjectable({token:ie,factory:ie.\u0275fac})}return ie})(),ee=(()=>{class ie{static forRoot(j={}){return{ngModule:ie,providers:[j.loader||{provide:o,useClass:r},j.compiler||{provide:D,useClass:O},j.parser||{provide:k,useClass:I},j.missingTranslationHandler||{provide:h,useClass:p},T,{provide:U,useValue:j.isolate},{provide:S,useValue:j.useDefaultLang},{provide:N,useValue:j.extend},{provide:R,useValue:j.defaultLanguage},A]}}static forChild(j={}){return{ngModule:ie,providers:[j.loader||{provide:o,useClass:r},j.compiler||{provide:D,useClass:O},j.parser||{provide:k,useClass:I},j.missingTranslationHandler||{provide:h,useClass:p},{provide:U,useValue:j.isolate},{provide:S,useValue:j.useDefaultLang},{provide:N,useValue:j.extend},{provide:R,useValue:j.defaultLanguage},A]}}static \u0275fac=function(G){return new(G||ie)};static \u0275mod=t.\u0275\u0275defineNgModule({type:ie});static \u0275inj=t.\u0275\u0275defineInjector({})}return ie})()},5635:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{TranslateHttpLoader:()=>t});class t{http;prefix;suffix;constructor(C,E="/assets/i18n/",u=".json"){this.http=C,this.prefix=E,this.suffix=u}getTranslation(C){return this.http.get(`${this.prefix}${C}${this.suffix}`)}}},1244:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{AUTH_CONFIG:()=>hn,AbstractValidationHandler:()=>ve,AuthConfig:()=>K,DateTimeProvider:()=>S,DefaultHashHandler:()=>ye,DefaultOAuthInterceptor:()=>xt,HashHandler:()=>Re,JwksValidationHandler:()=>rn,LoginOptions:()=>N,MemoryStorage:()=>Y,NullValidationHandler:()=>O,OAuthErrorEvent:()=>G,OAuthEvent:()=>ie,OAuthInfoEvent:()=>j,OAuthLogger:()=>A,OAuthModule:()=>dn,OAuthModuleConfig:()=>T,OAuthNoopResourceServerErrorHandler:()=>st,OAuthResourceServerConfig:()=>U,OAuthResourceServerErrorHandler:()=>De,OAuthService:()=>He,OAuthStorage:()=>F,OAuthSuccessEvent:()=>$,ReceivedTokens:()=>ee,SystemDateTimeProvider:()=>R,UrlHelperService:()=>Ye,ValidationHandler:()=>ue,provideOAuthClient:()=>un});var t=g(467),_=g(4438),C=g(177),E=g(1626),u=g(1413),b=g(7673),s=g(8455),f=g(1033),d=g(8810),l=g(4572),c=g(7786),o=g(5964),r=g(8141),h=g(152),p=g(3103),v=g(5558),y=g(6354),M=g(1594),w=g(9437),k=g(2087),I=g(6697),D=g(3028);class O{validateSignature(Bt){return Promise.resolve(null)}validateAtHash(Bt){return Promise.resolve(!0)}}class T{}class U{}class S{}let R=(()=>{class Nt extends S{now(){return Date.now()}new(){return new Date}static#e=this.\u0275fac=(()=>{let _e;return function(Qe){return(_e||(_e=_.\u0275\u0275getInheritedFactory(Nt)))(Qe||Nt)}})();static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Nt,factory:Nt.\u0275fac})}return Nt})();class N{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class A{}class F{}let Y=(()=>{class Nt{constructor(){this.data=new Map}getItem(_e){return this.data.get(_e)}removeItem(_e){this.data.delete(_e)}setItem(_e,Ze){this.data.set(_e,Ze)}static#e=this.\u0275fac=function(Ze){return new(Ze||Nt)};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Nt,factory:Nt.\u0275fac})}return Nt})();class ee{}class ie{constructor(Bt){this.type=Bt}}class $ extends ie{constructor(Bt,_e=null){super(Bt),this.info=_e}}class j extends ie{constructor(Bt,_e=null){super(Bt),this.info=_e}}class G extends ie{constructor(Bt,_e,Ze=null){super(Bt),this.reason=_e,this.params=Ze}}function V(Nt){const Bt=Nt.replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(Bt).split("").map(function(_e){return"%"+("00"+_e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function W(Nt){return btoa(Nt).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class K{constructor(Bt){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="",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.decreaseExpirationBySec=0,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.disableIdTokenTimer=!1,this.checkOrigin=!1,this.openUri=_e=>{location.href=_e},Bt&&Object.assign(this,Bt)}}class ce{encodeKey(Bt){return encodeURIComponent(Bt)}encodeValue(Bt){return encodeURIComponent(Bt)}decodeKey(Bt){return decodeURIComponent(Bt)}decodeValue(Bt){return decodeURIComponent(Bt)}}class ue{}class ve{validateAtHash(Bt){var _e=this;return(0,t.A)(function*(){const Ze=_e.inferHashAlgorithm(Bt.idTokenHeader),Qe=yield _e.calcHash(Bt.accessToken,Ze),tt=W(Qe.substr(0,Qe.length/2)),ft=Bt.idTokenClaims.at_hash.replace(/=/g,"");return tt!==ft&&(console.error("exptected at_hash: "+tt),console.error("actual at_hash: "+ft)),tt===ft})()}inferHashAlgorithm(Bt){const _e=Bt.alg;if(!_e.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+_e);return"sha-"+_e.substr(2)}}let Ye=(()=>{class Nt{getHashFragmentParams(_e){let Ze=_e||window.location.hash;if(Ze=decodeURIComponent(Ze),0!==Ze.indexOf("#"))return{};const Qe=Ze.indexOf("?");return Ze=Ze.substr(Qe>-1?Qe+1:1),this.parseQueryString(Ze)}parseQueryString(_e){const Ze={};let Qe,Ot,tt,ft,Le,fe;if(null===_e)return Ze;const Ge=_e.split("&");for(let te=0;te=64;){for(Ot=Bt[0],tt=Bt[1],ft=Bt[2],Le=Bt[3],fe=Bt[4],Ge=Bt[5],te=Bt[6],de=Bt[7],nt=0;nt<16;nt++)It=Ze+4*nt,Nt[nt]=(255&_e[It])<<24|(255&_e[It+1])<<16|(255&_e[It+2])<<8|255&_e[It+3];for(nt=16;nt<64;nt++)ke=Nt[nt-2],Gt=(ke>>>17|ke<<15)^(ke>>>19|ke<<13)^ke>>>10,ke=Nt[nt-15],an=(ke>>>7|ke<<25)^(ke>>>18|ke<<14)^ke>>>3,Nt[nt]=(Gt+Nt[nt-7]|0)+(an+Nt[nt-16]|0);for(nt=0;nt<64;nt++)Gt=(((fe>>>6|fe<<26)^(fe>>>11|fe<<21)^(fe>>>25|fe<<7))+(fe&Ge^~fe&te)|0)+(de+(Ct[nt]+Nt[nt]|0)|0)|0,an=((Ot>>>2|Ot<<30)^(Ot>>>13|Ot<<19)^(Ot>>>22|Ot<<10))+(Ot&tt^Ot&ft^tt&ft)|0,de=te,te=Ge,Ge=fe,fe=Le+Gt|0,Le=ft,ft=tt,tt=Ot,Ot=Gt+an|0;Bt[0]+=Ot,Bt[1]+=tt,Bt[2]+=ft,Bt[3]+=Le,Bt[4]+=fe,Bt[5]+=Ge,Bt[6]+=te,Bt[7]+=de,Ze+=64,Qe-=64}return Ze}class Ne{constructor(){this.digestLength=32,this.blockSize=64,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()}reset(){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}clean(){for(let Bt=0;Bt0){for(;this.bufferLength<64&&_e>0;)this.buffer[this.bufferLength++]=Bt[Ze++],_e--;64===this.bufferLength&&(We(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(_e>=64&&(Ze=We(this.temp,this.state,Bt,Ze,_e),_e%=64);_e>0;)this.buffer[this.bufferLength++]=Bt[Ze++],_e--;return this}finish(Bt){if(!this.finished){const _e=this.bytesHashed,Ze=this.bufferLength,Qe=_e/536870912|0,Ot=_e<<3,tt=_e%64<56?64:128;this.buffer[Ze]=128;for(let ft=Ze+1;ft>>24&255,this.buffer[tt-7]=Qe>>>16&255,this.buffer[tt-6]=Qe>>>8&255,this.buffer[tt-5]=Qe>>>0&255,this.buffer[tt-4]=Ot>>>24&255,this.buffer[tt-3]=Ot>>>16&255,this.buffer[tt-2]=Ot>>>8&255,this.buffer[tt-1]=Ot>>>0&255,We(this.temp,this.state,this.buffer,0,tt),this.finished=!0}for(let _e=0;_e<8;_e++)Bt[4*_e+0]=this.state[_e]>>>24&255,Bt[4*_e+1]=this.state[_e]>>>16&255,Bt[4*_e+2]=this.state[_e]>>>8&255,Bt[4*_e+3]=this.state[_e]>>>0&255;return this}digest(){const Bt=new Uint8Array(this.digestLength);return this.finish(Bt),Bt}_saveState(Bt){for(let _e=0;_e{class Nt{calcHash(_e,Ze){return(0,t.A)(function*(){return function it(Nt){const Bt=[];for(let _e=0;_e{class Nt extends K{constructor(_e,Ze,Qe,Ot,tt,ft,Le,fe,Ge,te){super(),this.ngZone=_e,this.http=Ze,this.config=tt,this.urlHelper=ft,this.logger=Le,this.crypto=fe,this.dateTimeService=te,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new u.B,this.discoveryDocumentLoadedSubject=new u.B,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=Ge,tt||(tt={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),Ot&&(this.tokenValidationHandler=Ot),tt&&this.configure(tt);try{Qe?this.setStorage(Qe):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(de){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",de)}if(this.checkLocalStorageAccessable()){const de=window?.navigator?.userAgent;(de?.includes("MSIE ")||de?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const _e="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(_e,_e),localStorage.removeItem(_e),0))}catch{return!1}}configure(_e){Object.assign(this,new K,_e),this.config=Object.assign({},new K,_e),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,o.p)(_e=>"token_received"===_e.type)).subscribe(()=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(_e={},Ze,Qe=!0){let Ot=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,r.M)(tt=>{"token_received"===tt.type?Ot=!0:"logout"===tt.type&&(Ot=!1)}),(0,o.p)(tt=>"token_expires"===tt.type&&(null==Ze||"any"===Ze||tt.info===Ze)),(0,h.B)(1e3)).subscribe(()=>{Ot&&this.refreshInternal(_e,Qe).catch(()=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(_e,Ze){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(_e,Ze):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(_e=null){return this.loadDiscoveryDocument().then(()=>this.tryLogin(_e))}loadDiscoveryDocumentAndLogin(_e=null){return this.loadDiscoveryDocumentAndTryLogin(_e=_e||{}).then(()=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof _e.state?_e.state:""),!1))}debug(..._e){this.showDebugInformation&&this.logger.debug(..._e)}validateUrlFromDiscoveryDocument(_e){const Ze=[],Qe=this.validateUrlForHttps(_e),Ot=this.validateUrlAgainstIssuer(_e);return Qe||Ze.push("https for all urls required. Also for urls received by discovery."),Ot||Ze.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),Ze}validateUrlForHttps(_e){if(!_e)return!0;const Ze=_e.toLowerCase();return!(!1!==this.requireHttps&&(!Ze.match(/^http:\/\/localhost($|[:/])/)&&!Ze.match(/^http:\/\/localhost($|[:/])/)||"remoteOnly"!==this.requireHttps))||Ze.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(_e,Ze){if(!_e)throw new Error(`'${Ze}' should not be null`);if(!this.validateUrlForHttps(_e))throw new Error(`'${Ze}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(_e){return!this.strictDiscoveryDocumentValidation||!_e||_e.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,o.p)(_e=>"token_received"===_e.type)).subscribe(()=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),!this.disableIdTokenTimer&&this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const _e=this.getAccessTokenExpiration(),Ze=this.getAccessTokenStoredAt(),Qe=this.calcTimeout(Ze,_e);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,b.of)(new j("token_expires","access_token")).pipe((0,p.c)(Qe)).subscribe(Ot=>{this.ngZone.run(()=>{this.eventsSubject.next(Ot)})})})}setupIdTokenTimer(){const _e=this.getIdTokenExpiration(),Ze=this.getIdTokenStoredAt(),Qe=this.calcTimeout(Ze,_e);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,b.of)(new j("token_expires","id_token")).pipe((0,p.c)(Qe)).subscribe(Ot=>{this.ngZone.run(()=>{this.eventsSubject.next(Ot)})})})}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(_e,Ze){const Qe=this.dateTimeService.now(),tt=Math.max(0,(Ze-_e)*this.timeoutFactor-(Qe-_e)),ft=2147483647;return tt>ft?ft:tt}setStorage(_e){this._storage=_e,this.configChanged()}loadDiscoveryDocument(_e=null){return new Promise((Ze,Qe)=>{_e||((_e=this.issuer||"").endsWith("/")||(_e+="/"),_e+=".well-known/openid-configuration"),this.validateUrlForHttps(_e)?this.http.get(_e).subscribe(Ot=>{if(!this.validateDiscoveryDocument(Ot))return this.eventsSubject.next(new G("discovery_document_validation_error",null)),void Qe("discovery_document_validation_error");this.loginUrl=Ot.authorization_endpoint,this.logoutUrl=Ot.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=Ot.grant_types_supported,this.issuer=Ot.issuer,this.tokenEndpoint=Ot.token_endpoint,this.userinfoEndpoint=Ot.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=Ot.jwks_uri,this.sessionCheckIFrameUrl=Ot.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(Ot),this.revocationEndpoint=Ot.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(tt=>{const Le=new $("discovery_document_loaded",{discoveryDocument:Ot,jwks:tt});this.eventsSubject.next(Le),Ze(Le)}).catch(tt=>{this.eventsSubject.next(new G("discovery_document_load_error",tt)),Qe(tt)})},Ot=>{this.logger.error("error loading discovery document",Ot),this.eventsSubject.next(new G("discovery_document_load_error",Ot)),Qe(Ot)}):Qe("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((_e,Ze)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(Qe=>{this.jwks=Qe,_e(Qe)},Qe=>{this.logger.error("error loading jwks",Qe),this.eventsSubject.next(new G("jwks_load_error",Qe)),Ze(Qe)}):_e(null)})}validateDiscoveryDocument(_e){let Ze;return this.skipIssuerCheck||_e.issuer===this.issuer?(Ze=this.validateUrlFromDiscoveryDocument(_e.authorization_endpoint),Ze.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",Ze),!1):(Ze=this.validateUrlFromDiscoveryDocument(_e.end_session_endpoint),Ze.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",Ze),!1):(Ze=this.validateUrlFromDiscoveryDocument(_e.token_endpoint),Ze.length>0&&this.logger.error("error validating token_endpoint in discovery document",Ze),Ze=this.validateUrlFromDiscoveryDocument(_e.revocation_endpoint),Ze.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",Ze),Ze=this.validateUrlFromDiscoveryDocument(_e.userinfo_endpoint),Ze.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",Ze),!1):(Ze=this.validateUrlFromDiscoveryDocument(_e.jwks_uri),Ze.length>0?(this.logger.error("error validating jwks_uri in discovery document",Ze),!1):(this.sessionChecksEnabled&&!_e.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: "+_e.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(_e,Ze,Qe=new E.HttpHeaders){return this.fetchTokenUsingPasswordFlow(_e,Ze,Qe).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((_e,Ze)=>{const Qe=(new E.HttpHeaders).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:Qe,observe:"response",responseType:"text"}).subscribe(Ot=>{if(this.debug("userinfo received",JSON.stringify(Ot)),Ot.headers.get("content-type").startsWith("application/json")){let tt=JSON.parse(Ot.body);const ft=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!ft.sub||tt.sub!==ft.sub))return void Ze("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");tt=Object.assign({},ft,tt),this._storage.setItem("id_token_claims_obj",JSON.stringify(tt)),this.eventsSubject.next(new $("user_profile_loaded")),_e({info:tt})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new $("user_profile_loaded")),_e(JSON.parse(Ot.body))},Ot=>{this.logger.error("error loading user info",Ot),this.eventsSubject.next(new G("user_profile_load_error",Ot)),Ze(Ot)})})}fetchTokenUsingPasswordFlow(_e,Ze,Qe=new E.HttpHeaders){return this.fetchTokenUsingGrant("password",{username:_e,password:Ze},Qe)}fetchTokenUsingGrant(_e,Ze,Qe=new E.HttpHeaders){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let Ot=new E.HttpParams({encoder:new ce}).set("grant_type",_e).set("scope",this.scope);if(this.useHttpBasicAuth){const tt=btoa(`${this.clientId}:${this.dummyClientSecret}`);Qe=Qe.set("Authorization","Basic "+tt)}if(this.useHttpBasicAuth||(Ot=Ot.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(Ot=Ot.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const tt of Object.getOwnPropertyNames(this.customQueryParams))Ot=Ot.set(tt,this.customQueryParams[tt]);for(const tt of Object.keys(Ze))Ot=Ot.set(tt,Ze[tt]);return Qe=Qe.set("Content-Type","application/x-www-form-urlencoded"),new Promise((tt,ft)=>{this.http.post(this.tokenEndpoint,Ot,{headers:Qe}).subscribe(Le=>{this.debug("tokenResponse",Le),this.storeAccessTokenResponse(Le.access_token,Le.refresh_token,Le.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Le.scope,this.extractRecognizedCustomParameters(Le)),this.oidc&&Le.id_token&&this.processIdToken(Le.id_token,Le.access_token).then(fe=>{this.storeIdToken(fe),tt(Le)}),this.eventsSubject.next(new $("token_received")),tt(Le)},Le=>{this.logger.error("Error performing ${grantType} flow",Le),this.eventsSubject.next(new G("token_error",Le)),ft(Le)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((_e,Ze)=>{let Qe=new E.HttpParams({encoder:new ce}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),Ot=(new E.HttpHeaders).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const tt=btoa(`${this.clientId}:${this.dummyClientSecret}`);Ot=Ot.set("Authorization","Basic "+tt)}if(this.useHttpBasicAuth||(Qe=Qe.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(Qe=Qe.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const tt of Object.getOwnPropertyNames(this.customQueryParams))Qe=Qe.set(tt,this.customQueryParams[tt]);this.http.post(this.tokenEndpoint,Qe,{headers:Ot}).pipe((0,v.n)(tt=>this.oidc&&tt.id_token?(0,s.H)(this.processIdToken(tt.id_token,tt.access_token,!0)).pipe((0,r.M)(ft=>this.storeIdToken(ft)),(0,y.T)(()=>tt)):(0,b.of)(tt))).subscribe(tt=>{this.debug("refresh tokenResponse",tt),this.storeAccessTokenResponse(tt.access_token,tt.refresh_token,tt.expires_in||this.fallbackAccessTokenExpirationTimeInSec,tt.scope,this.extractRecognizedCustomParameters(tt)),this.eventsSubject.next(new $("token_received")),this.eventsSubject.next(new $("token_refreshed")),_e(tt)},tt=>{this.logger.error("Error refreshing token",tt),this.eventsSubject.next(new G("token_refresh_error",tt)),Ze(tt)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=_e=>{const Ze=this.processMessageEventMessage(_e);this.checkOrigin&&_e.origin!==location.origin&&console.error("wrong origin requested silent refresh!"),this.tryLogin({customHashFragment:Ze,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(Qe=>this.debug("tryLogin during silent refresh failed",Qe))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(_e={},Ze=!0){const Qe=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(_e.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(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const Ot=this.document.getElementById(this.silentRefreshIFrameName);Ot&&this.document.body.removeChild(Ot),this.silentRefreshSubject=Qe.sub;const tt=this.document.createElement("iframe");tt.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,Ze,_e).then(te=>{tt.setAttribute("src",te),this.silentRefreshShowIFrame||(tt.style.display="none"),this.document.body.appendChild(tt)});const Le=this.events.pipe((0,o.p)(te=>te instanceof G),(0,M.$)()),fe=this.events.pipe((0,o.p)(te=>"token_received"===te.type),(0,M.$)()),Ge=(0,b.of)(new G("silent_refresh_timeout",null)).pipe((0,p.c)(this.silentRefreshTimeout));return(0,f.O)([Le,fe,Ge]).pipe((0,y.T)(te=>{if(te instanceof G)throw"silent_refresh_timeout"===te.type||(te=new G("silent_refresh_error",te)),this.eventsSubject.next(te),te;return"token_received"===te.type&&(te=new $("silently_refreshed"),this.eventsSubject.next(te)),te})).toPromise()}initImplicitFlowInPopup(_e){return this.initLoginFlowInPopup(_e)}initLoginFlowInPopup(_e){return _e=_e||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(Ze=>new Promise((Qe,Ot)=>{let Le,ft=null;_e.windowRef?_e.windowRef&&!_e.windowRef.closed&&(ft=_e.windowRef,ft.location.href=Ze):ft=window.open(Ze,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(_e));const fe=nt=>{this.tryLogin({customHashFragment:nt,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{te(),Qe(!0)},It=>{te(),Ot(It)})};ft?Le=window.setInterval(()=>{(!ft||ft.closed)&&(te(),Ot(new G("popup_closed",{})))},500):Ot(new G("popup_blocked",{}));const te=()=>{window.clearInterval(Le),window.removeEventListener("storage",ke),window.removeEventListener("message",de),null!==ft&&ft.close(),ft=null},de=nt=>{const It=this.processMessageEventMessage(nt);It&&null!==It?(window.removeEventListener("storage",ke),fe(It)):console.log("false event firing")},ke=nt=>{"auth_hash"===nt.key&&(window.removeEventListener("message",de),fe(nt.newValue))};window.addEventListener("message",de),window.addEventListener("storage",ke)}))}calculatePopupFeatures(_e){const Ze=_e.height||470,Qe=_e.width||500,Ot=window.screenLeft+(window.outerWidth-Qe)/2;return`location=no,toolbar=no,width=${Qe},height=${Ze},top=${window.screenTop+(window.outerHeight-Ze)/2},left=${Ot}`}processMessageEventMessage(_e){let Ze="#";if(this.silentRefreshMessagePrefix&&(Ze+=this.silentRefreshMessagePrefix),!_e||!_e.data||"string"!=typeof _e.data)return;const Qe=_e.data;return Qe.startsWith(Ze)?"#"+Qe.substr(Ze.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(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=_e=>{const Ze=_e.origin.toLowerCase(),Qe=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),Qe.startsWith(Ze)){switch(_e.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",_e)}else this.debug("sessionCheckEventListener","wrong origin",Ze,"expected",Qe,"event",_e)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new j("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new j("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(()=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new j("session_terminated")),this.logOut(!0)):this.refreshToken().then(()=>{this.debug("token refresh after session change worked")}).catch(()=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new j("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,o.p)(_e=>"silently_refreshed"===_e.type||"silent_refresh_timeout"===_e.type||"silent_refresh_error"===_e.type),(0,M.$)()).subscribe(_e=>{"silently_refreshed"!==_e.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new j("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new j("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const _e=this.document.getElementById(this.sessionCheckIFrameName);_e&&this.document.body.removeChild(_e);const Ze=this.document.createElement("iframe");Ze.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),Ze.setAttribute("src",this.sessionCheckIFrameUrl),Ze.style.display="none",this.document.body.appendChild(Ze),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 _e=this.document.getElementById(this.sessionCheckIFrameName);_e||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const Ze=this.getSessionState();Ze||this.stopSessionCheckTimer(),_e.contentWindow.postMessage(this.clientId+" "+Ze,this.issuer)}createLoginUrl(_e="",Ze="",Qe="",Ot=!1,tt={}){var ft=this;return(0,t.A)(function*(){const Le=ft;let fe;fe=Qe||ft.redirectUri;const Ge=yield ft.createAndSaveNonce();if(_e=_e?Ge+ft.config.nonceStateSeparator+encodeURIComponent(_e):Ge,!ft.requestAccessToken&&!ft.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");ft.responseType=ft.config.responseType?ft.config.responseType:ft.oidc&&ft.requestAccessToken?"id_token token":ft.oidc&&!ft.requestAccessToken?"id_token":"token";const te=Le.loginUrl.indexOf("?")>-1?"&":"?";let de=Le.scope;ft.oidc&&!de.match(/(^|\s)openid($|\s)/)&&(de="openid "+de);let ke=Le.loginUrl+te+"response_type="+encodeURIComponent(Le.responseType)+"&client_id="+encodeURIComponent(Le.clientId)+"&state="+encodeURIComponent(_e)+"&redirect_uri="+encodeURIComponent(fe)+"&scope="+encodeURIComponent(de);if(ft.responseType.includes("code")&&!ft.disablePKCE){const[nt,It]=yield ft.createChallangeVerifierPairForPKCE();ft.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",It):ft._storage.setItem("PKCE_verifier",It),ke+="&code_challenge="+nt,ke+="&code_challenge_method=S256"}Ze&&(ke+="&login_hint="+encodeURIComponent(Ze)),Le.resource&&(ke+="&resource="+encodeURIComponent(Le.resource)),Le.oidc&&(ke+="&nonce="+encodeURIComponent(Ge)),Ot&&(ke+="&prompt=none");for(const nt of Object.keys(tt))ke+="&"+encodeURIComponent(nt)+"="+encodeURIComponent(tt[nt]);if(ft.customQueryParams)for(const nt of Object.getOwnPropertyNames(ft.customQueryParams))ke+="&"+nt+"="+encodeURIComponent(ft.customQueryParams[nt]);return ke})()}initImplicitFlowInternal(_e="",Ze=""){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 Qe={},Ot=null;"string"==typeof Ze?Ot=Ze:"object"==typeof Ze&&(Qe=Ze),this.createLoginUrl(_e,Ot,null,!1,Qe).then(this.config.openUri).catch(tt=>{console.error("Error in initImplicitFlow",tt),this.inImplicitFlow=!1})}initImplicitFlow(_e="",Ze=""){""!==this.loginUrl?this.initImplicitFlowInternal(_e,Ze):this.events.pipe((0,o.p)(Qe=>"discovery_document_loaded"===Qe.type)).subscribe(()=>this.initImplicitFlowInternal(_e,Ze))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(_e){const Ze=this;if(_e.onTokenReceived){const Qe={idClaims:Ze.getIdentityClaims(),idToken:Ze.getIdToken(),accessToken:Ze.getAccessToken(),state:Ze.state};_e.onTokenReceived(Qe)}}storeAccessTokenResponse(_e,Ze,Qe,Ot,tt){if(this._storage.setItem("access_token",_e),Ot&&!Array.isArray(Ot)?this._storage.setItem("granted_scopes",JSON.stringify(Ot.split(" "))):Ot&&Array.isArray(Ot)&&this._storage.setItem("granted_scopes",JSON.stringify(Ot)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),Qe){const ft=1e3*Qe,fe=this.dateTimeService.new().getTime()+ft;this._storage.setItem("expires_at",""+fe)}Ze&&this._storage.setItem("refresh_token",Ze),tt&&tt.forEach((ft,Le)=>{this._storage.setItem(Le,ft)})}tryLogin(_e=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(_e).then(()=>!0):this.tryLoginImplicitFlow(_e)}parseQueryString(_e){return _e&&0!==_e.length?("?"===_e.charAt(0)&&(_e=_e.substr(1)),this.urlHelper.parseQueryString(_e)):{}}tryLoginCodeFlow(_e=null){var Ze=this;return(0,t.A)(function*(){const Qe=(_e=_e||{}).customHashFragment?_e.customHashFragment.substring(1):window.location.search,Ot=Ze.getCodePartsFromUrl(Qe),tt=Ot.code,ft=Ot.state,Le=Ot.session_state;if(!_e.preventClearHashAfterLogin){const te=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,te)}const[fe,Ge]=Ze.parseState(ft);if(Ze.state=Ge,Ot.error){Ze.debug("error trying to login"),Ze.handleLoginError(_e,Ot);const te=new G("code_error",{},Ot);return Ze.eventsSubject.next(te),Promise.reject(te)}if(!_e.disableNonceCheck){if(!fe)return Ze.saveRequestedRoute(),Promise.resolve();if(!_e.disableOAuth2StateCheck&&!Ze.validateNonce(fe)){const de=new G("invalid_nonce_in_state",null);return Ze.eventsSubject.next(de),Promise.reject(de)}}return Ze.storeSessionState(Le),tt&&(yield Ze.getTokenFromCode(tt,_e),Ze.restoreRequestedRoute()),Promise.resolve()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const _e=this._storage.getItem("requested_route");_e&&history.replaceState(null,"",window.location.origin+_e)}getCodePartsFromUrl(_e){return _e&&0!==_e.length?("?"===_e.charAt(0)&&(_e=_e.substr(1)),this.urlHelper.parseQueryString(_e)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(_e,Ze){let Qe=new E.HttpParams({encoder:new ce}).set("grant_type","authorization_code").set("code",_e).set("redirect_uri",Ze.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let Ot;Ot=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),Ot?Qe=Qe.set("code_verifier",Ot):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(Qe,Ze)}fetchAndProcessToken(_e,Ze){Ze=Ze||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let Qe=(new E.HttpHeaders).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const Ot=btoa(`${this.clientId}:${this.dummyClientSecret}`);Qe=Qe.set("Authorization","Basic "+Ot)}return this.useHttpBasicAuth||(_e=_e.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(_e=_e.set("client_secret",this.dummyClientSecret)),new Promise((Ot,tt)=>{if(this.customQueryParams)for(const ft of Object.getOwnPropertyNames(this.customQueryParams))_e=_e.set(ft,this.customQueryParams[ft]);this.http.post(this.tokenEndpoint,_e,{headers:Qe}).subscribe(ft=>{this.debug("refresh tokenResponse",ft),this.storeAccessTokenResponse(ft.access_token,ft.refresh_token,ft.expires_in||this.fallbackAccessTokenExpirationTimeInSec,ft.scope,this.extractRecognizedCustomParameters(ft)),this.oidc&&ft.id_token?this.processIdToken(ft.id_token,ft.access_token,Ze.disableNonceCheck).then(Le=>{this.storeIdToken(Le),this.eventsSubject.next(new $("token_received")),this.eventsSubject.next(new $("token_refreshed")),Ot(ft)}).catch(Le=>{this.eventsSubject.next(new G("token_validation_error",Le)),console.error("Error validating tokens"),console.error(Le),tt(Le)}):(this.eventsSubject.next(new $("token_received")),this.eventsSubject.next(new $("token_refreshed")),Ot(ft))},ft=>{console.error("Error getting token",ft),this.eventsSubject.next(new G("token_refresh_error",ft)),tt(ft)})})}tryLoginImplicitFlow(_e=null){let Ze;Ze=(_e=_e||{}).customHashFragment?this.urlHelper.getHashFragmentParams(_e.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",Ze);const Qe=Ze.state,[Ot,tt]=this.parseState(Qe);if(this.state=tt,Ze.error){this.debug("error trying to login"),this.handleLoginError(_e,Ze);const te=new G("token_error",{},Ze);return this.eventsSubject.next(te),Promise.reject(te)}const ft=Ze.access_token,Le=Ze.id_token,fe=Ze.session_state,Ge=Ze.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!ft||this.requestAccessToken&&!_e.disableOAuth2StateCheck&&!Qe||this.oidc&&!Le)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!fe&&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&&!_e.disableNonceCheck&&!this.validateNonce(Ot)){const de=new G("invalid_nonce_in_state",null);return this.eventsSubject.next(de),Promise.reject(de)}return this.requestAccessToken&&this.storeAccessTokenResponse(ft,null,Ze.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Ge),this.oidc?this.processIdToken(Le,ft,_e.disableNonceCheck).then(te=>_e.validationHandler?_e.validationHandler({accessToken:ft,idClaims:te.idTokenClaims,idToken:te.idToken,state:Qe}).then(()=>te):te).then(te=>(this.storeIdToken(te),this.storeSessionState(fe),this.clearHashAfterLogin&&!_e.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new $("token_received")),this.callOnTokenReceivedIfExists(_e),this.inImplicitFlow=!1,!0)).catch(te=>(this.eventsSubject.next(new G("token_validation_error",te)),this.logger.error("Error validating tokens"),this.logger.error(te),Promise.reject(te))):(this.eventsSubject.next(new $("token_received")),this.clearHashAfterLogin&&!_e.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(_e),Promise.resolve(!0))}parseState(_e){let Ze=_e,Qe="";if(_e){const Ot=_e.indexOf(this.config.nonceStateSeparator);Ot>-1&&(Ze=_e.substr(0,Ot),Qe=_e.substr(Ot+this.config.nonceStateSeparator.length))}return[Ze,Qe]}validateNonce(_e){let Ze;return Ze=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Ze===_e||(console.error("Validating access_token failed, wrong state/nonce.",Ze,_e),!1)}storeIdToken(_e){this._storage.setItem("id_token",_e.idToken),this._storage.setItem("id_token_claims_obj",_e.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+_e.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(_e){this._storage.setItem("session_state",_e)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(_e,Ze){_e.onLoginError&&_e.onLoginError(Ze),this.clearHashAfterLogin&&!_e.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(_e=6e5){return this.clockSkewInSec||0===this.clockSkewInSec?1e3*this.clockSkewInSec:_e}processIdToken(_e,Ze,Qe=!1){const Ot=_e.split("."),ft=V(this.padBase64(Ot[0])),Le=JSON.parse(ft),Ge=V(this.padBase64(Ot[1])),te=JSON.parse(Ge);let de;if(de=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(te.aud)){if(te.aud.every(_t=>_t!==this.clientId)){const _t="Wrong audience: "+te.aud.join(",");return this.logger.warn(_t),Promise.reject(_t)}}else if(te.aud!==this.clientId){const _t="Wrong audience: "+te.aud;return this.logger.warn(_t),Promise.reject(_t)}if(!te.sub){const _t="No sub claim in id_token";return this.logger.warn(_t),Promise.reject(_t)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==te.sub){const _t=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${te.sub}`;return this.logger.warn(_t),Promise.reject(_t)}if(!te.iat){const _t="No iat claim in id_token";return this.logger.warn(_t),Promise.reject(_t)}if(!this.skipIssuerCheck&&te.iss!==this.issuer){const _t="Wrong issuer: "+te.iss;return this.logger.warn(_t),Promise.reject(_t)}if(!Qe&&te.nonce!==de){const _t="Wrong nonce: "+te.nonce;return this.logger.warn(_t),Promise.reject(_t)}if(Object.prototype.hasOwnProperty.call(this,"responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!te.at_hash){const _t="An at_hash is needed!";return this.logger.warn(_t),Promise.reject(_t)}const ke=this.dateTimeService.now(),nt=1e3*te.iat,It=1e3*te.exp,Gt=this.getClockSkewInMsec();if(nt-Gt>=ke||It+Gt-this.decreaseExpirationBySec<=ke){const _t="Token has expired";return console.error(_t),console.error({now:ke,issuedAtMSec:nt,expiresAtMSec:It}),Promise.reject(_t)}const an={accessToken:Ze,idToken:_e,jwks:this.jwks,idTokenClaims:te,idTokenHeader:Le,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(an).then(()=>({idToken:_e,idTokenClaims:te,idTokenClaimsJson:Ge,idTokenHeader:Le,idTokenHeaderJson:ft,idTokenExpiresAt:It})):this.checkAtHash(an).then(_t=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!_t){const Lt="Wrong at_hash";return this.logger.warn(Lt),Promise.reject(Lt)}return this.checkSignature(an).then(()=>{const Je={idToken:_e,idTokenClaims:te,idTokenClaimsJson:Ge,idTokenHeader:Le,idTokenHeaderJson:ft,idTokenExpiresAt:It};return this.disableAtHashCheck?Je:this.checkAtHash(an).then(Fe=>{if(this.requestAccessToken&&!Fe){const et="Wrong at_hash";return this.logger.warn(et),Promise.reject(et)}return Je})})})}getIdentityClaims(){const _e=this._storage.getItem("id_token_claims_obj");return _e?JSON.parse(_e):null}getGrantedScopes(){const _e=this._storage.getItem("granted_scopes");return _e?JSON.parse(_e):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(_e){for(;_e.length%4!=0;)_e+="=";return _e}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 _e=this._storage.getItem("expires_at"),Ze=this.dateTimeService.new();return!(_e&&parseInt(_e,10)-this.decreaseExpirationBySec=0&&null!==this._storage.getItem(_e)?JSON.parse(this._storage.getItem(_e)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(_e={},Ze=""){let Qe=!1;"boolean"==typeof _e&&(Qe=_e,_e={});const Ot=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(ft=>this._storage.removeItem(ft)),this.silentRefreshSubject=null,this.eventsSubject.next(new j("logout")),!this.logoutUrl||Qe)return;let tt;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)tt=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(Ot)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let ft=new E.HttpParams({encoder:new ce});Ot&&(ft=ft.set("id_token_hint",Ot));const Le=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";Le&&(ft=ft.set("post_logout_redirect_uri",Le),Ze&&(ft=ft.set("state",Ze)));for(const fe in _e)ft=ft.set(fe,_e[fe]);tt=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+ft.toString()}this.config.openUri(tt)}createAndSaveNonce(){const _e=this;return this.createNonce().then(function(Ze){return _e.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",Ze):_e._storage.setItem("nonce",Ze),Ze})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const _e=this.document.getElementById(this.silentRefreshIFrameName);_e&&_e.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const Ze=this.document.getElementById(this.sessionCheckIFrameName);Ze&&Ze.remove()}createNonce(){return new Promise(_e=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const Ze="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let Qe=45,Ot="";const tt=typeof self>"u"?null:self.crypto||self.msCrypto;if(tt){let ft=new Uint8Array(Qe);tt.getRandomValues(ft),ft.map||(ft.map=Array.prototype.map),ft=ft.map(Le=>Ze.charCodeAt(Le%66)),Ot=String.fromCharCode.apply(null,ft)}else for(;0"discovery_document_loaded"===Qe.type)).subscribe(()=>this.initCodeFlowInternal(_e,Ze))}initCodeFlowInternal(_e="",Ze={}){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 Qe={},Ot=null;"string"==typeof Ze?Ot=Ze:"object"==typeof Ze&&(Qe=Ze),this.createLoginUrl(_e,Ot,null,!1,Qe).then(this.config.openUri).catch(tt=>{console.error("Error in initAuthorizationCodeFlow"),console.error(tt)})}createChallangeVerifierPairForPKCE(){var _e=this;return(0,t.A)(function*(){if(!_e.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const Ze=yield _e.createNonce();return[W(yield _e.crypto.calcHash(Ze,"sha-256")),Ze]})()}extractRecognizedCustomParameters(_e){const Ze=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(Qe=>{_e[Qe]&&Ze.set(Qe,JSON.stringify(_e[Qe]))}),Ze}revokeTokenAndLogout(_e={},Ze=!1){const Qe=this.revocationEndpoint,Ot=this.getAccessToken(),tt=this.getRefreshToken();if(!Ot)return Promise.resolve();let ft=new E.HttpParams({encoder:new ce}),Le=(new E.HttpHeaders).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const fe=btoa(`${this.clientId}:${this.dummyClientSecret}`);Le=Le.set("Authorization","Basic "+fe)}if(this.useHttpBasicAuth||(ft=ft.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(ft=ft.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const fe of Object.getOwnPropertyNames(this.customQueryParams))ft=ft.set(fe,this.customQueryParams[fe]);return new Promise((fe,Ge)=>{let te,de;if(Ot){const ke=ft.set("token",Ot).set("token_type_hint","access_token");te=this.http.post(Qe,ke,{headers:Le})}else te=(0,b.of)(null);if(tt){const ke=ft.set("token",tt).set("token_type_hint","refresh_token");de=this.http.post(Qe,ke,{headers:Le})}else de=(0,b.of)(null);Ze&&(te=te.pipe((0,w.W)(ke=>0===ke.status?(0,b.of)(null):(0,d.$)(ke))),de=de.pipe((0,w.W)(ke=>0===ke.status?(0,b.of)(null):(0,d.$)(ke)))),(0,l.z)([te,de]).subscribe(ke=>{this.logOut(_e),fe(ke),this.logger.info("Token successfully revoked")},ke=>{this.logger.error("Error revoking token",ke),this.eventsSubject.next(new G("token_revoke_error",ke)),Ge(ke)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}static#e=this.\u0275fac=function(Ze){return new(Ze||Nt)(_.\u0275\u0275inject(_.NgZone),_.\u0275\u0275inject(E.HttpClient),_.\u0275\u0275inject(F,8),_.\u0275\u0275inject(ue,8),_.\u0275\u0275inject(K,8),_.\u0275\u0275inject(Ye),_.\u0275\u0275inject(A),_.\u0275\u0275inject(Re,8),_.\u0275\u0275inject(C.DOCUMENT),_.\u0275\u0275inject(S))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Nt,factory:Nt.\u0275fac})}return Nt})();class De{}class st{handleError(Bt){return(0,d.$)(Bt)}}let xt=(()=>{class Nt{constructor(_e,Ze,Qe){this.oAuthService=_e,this.errorHandler=Ze,this.moduleConfig=Qe}checkUrl(_e){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(_e):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(Ze=>_e.toLowerCase().startsWith(Ze.toLowerCase()))}intercept(_e,Ze){const Qe=_e.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(Qe)?this.moduleConfig.resourceServer.sendAccessToken?(0,c.h)((0,b.of)(this.oAuthService.getAccessToken()).pipe((0,o.p)(tt=>!!tt)),this.oAuthService.events.pipe((0,o.p)(tt=>"token_received"===tt.type),(0,k.w)(this.oAuthService.waitForTokenInMsec||0),(0,w.W)(()=>(0,b.of)(null)),(0,y.T)(()=>this.oAuthService.getAccessToken()))).pipe((0,I.s)(1),(0,D.Z)(tt=>{if(tt){const Le=_e.headers.set("Authorization","Bearer "+tt);_e=_e.clone({headers:Le})}return Ze.handle(_e).pipe((0,w.W)(ft=>this.errorHandler.handleError(ft)))})):Ze.handle(_e).pipe((0,w.W)(tt=>this.errorHandler.handleError(tt))):Ze.handle(_e)}static#e=this.\u0275fac=function(Ze){return new(Ze||Nt)(_.\u0275\u0275inject(He),_.\u0275\u0275inject(De),_.\u0275\u0275inject(T,8))};static#t=this.\u0275prov=_.\u0275\u0275defineInjectable({token:Nt,factory:Nt.\u0275fac})}return Nt})();function jt(){return console}function Xt(){return typeof sessionStorage<"u"?sessionStorage:new Y}function un(Nt=null,Bt=O){return(0,_.makeEnvironmentProviders)([He,Ye,{provide:A,useFactory:jt},{provide:F,useFactory:Xt},{provide:ue,useClass:Bt},{provide:Re,useClass:ye},{provide:De,useClass:st},{provide:T,useValue:Nt},{provide:E.HTTP_INTERCEPTORS,useClass:xt,multi:!0},{provide:S,useClass:R}])}let dn=(()=>{class Nt{static forRoot(_e=null,Ze=O){return{ngModule:Nt,providers:[un(_e,Ze)]}}static#e=this.\u0275fac=function(Ze){return new(Ze||Nt)};static#t=this.\u0275mod=_.\u0275\u0275defineNgModule({type:Nt});static#n=this.\u0275inj=_.\u0275\u0275defineInjector({imports:[C.CommonModule]})}return Nt})();class rn extends O{constructor(){super(),console.error("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")}}const hn=new _.InjectionToken("AUTH_CONFIG")},2774:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{HIGHLIGHT_OPTIONS:()=>v,Highlight:()=>O,HighlightJS:()=>D,HighlightLoader:()=>k,HighlightModule:()=>T});var t=g(4438),_=g(177),C=g(4412),E=g(5964),u=g(6697),b=g(5558),s=g(8141),f=g(983),d=g(9437),l=g(8810),c=g(4437),o=g(6354),r=g(8455),h=g(536),p=g(345);const v=new t.InjectionToken("HIGHLIGHT_OPTIONS");let y;let k=(()=>{class U{constructor(R,N,A){this.doc=R,this.platformId=N,this._options=A,this._ready=new C.t(null),this.ready=this._ready.asObservable().pipe((0,E.p)(F=>!!F),(0,u.s)(1)),(0,_.isPlatformBrowser)(N)&&(R.defaultView.hljs?this._ready.next(R.defaultView.hljs):(this._loadLibrary().pipe((0,b.n)(F=>this._options&&this._options.lineNumbersLoader?(R.defaultView.hljs=F,this.loadLineNumbers().pipe((0,s.M)(Y=>{Y.activateLineNumbers(),this._ready.next(F)}))):(this._ready.next(F),f.w)),(0,d.W)(F=>(console.error("[HLJS] ",F),f.w))).subscribe(),this._options?.themePath&&this.loadTheme(this._options.themePath)))}_loadLibrary(){if(this._options){if(this._options.fullLibraryLoader&&this._options.coreLibraryLoader)return(0,l.$)(()=>"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,l.$)(()=>"The highlighting languages were imported they are not needed!");if(this._options.coreLibraryLoader&&!this._options.languages)return(0,l.$)(()=>"The highlighting languages were not imported!");if(!this._options.coreLibraryLoader&&this._options.languages)return(0,l.$)(()=>"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,b.n)(R=>this._loadLanguages(R)))}return(0,l.$)(()=>"Highlight.js library was not imported!")}_loadLanguages(R){const N=Object.entries(this._options.languages).map(([A,F])=>I(F()).pipe((0,s.M)(Y=>R.registerLanguage(A,Y))));return(0,c.y)(...N).pipe((0,o.T)(()=>R))}loadCoreLibrary(){return I(this._options.coreLibraryLoader())}loadFullLibrary(){return I(this._options.fullLibraryLoader())}loadLineNumbers(){return(0,r.H)(this._options.lineNumbersLoader())}setTheme(R){(0,_.isPlatformBrowser)(this.platformId)&&(this._themeLinkElement?this._themeLinkElement.href=R:this.loadTheme(R))}loadTheme(R){this._themeLinkElement=this.doc.createElement("link"),this._themeLinkElement.href=R,this._themeLinkElement.type="text/css",this._themeLinkElement.rel="stylesheet",this._themeLinkElement.media="screen,print",this.doc.head.appendChild(this._themeLinkElement)}static#e=this.\u0275fac=function(N){return new(N||U)(t.\u0275\u0275inject(_.DOCUMENT),t.\u0275\u0275inject(t.PLATFORM_ID),t.\u0275\u0275inject(v,8))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"})}return U})();const I=U=>(0,r.H)(U).pipe((0,E.p)(S=>!!S?.default),(0,o.T)(S=>S.default));let D=(()=>{class U{get hljs(){return this._hljs}constructor(R,N){this._loader=R,this._hljs=null,R.ready.subscribe(A=>{this._hljs=A,N&&N.config&&(A.configure(N.config),A.listLanguages().length<1&&console.error("[HighlightJS]: No languages were registered!"))})}highlight(R,{language:N,ignoreIllegals:A}){return this._loader.ready.pipe((0,o.T)(F=>F.highlight(R,{language:N,ignoreIllegals:A})))}highlightAuto(R,N){return this._loader.ready.pipe((0,o.T)(A=>A.highlightAuto(R,N)))}highlightElement(R){return this._loader.ready.pipe((0,o.T)(N=>N.highlightElement(R)))}highlightAll(){return this._loader.ready.pipe((0,o.T)(R=>R.highlightAll()))}configure(R){return this._loader.ready.pipe((0,o.T)(N=>N.configure(R)))}registerLanguage(R,N){return this._loader.ready.pipe((0,s.M)(A=>A.registerLanguage(R,N)))}unregisterLanguage(R){return this._loader.ready.pipe((0,s.M)(N=>N.unregisterLanguage(R)))}registerAliases(R,{languageName:N}){return this._loader.ready.pipe((0,s.M)(A=>A.registerAliases(R,{languageName:N})))}listLanguages(){return this._loader.ready.pipe((0,o.T)(R=>R.listLanguages()))}getLanguage(R){return this._loader.ready.pipe((0,o.T)(N=>N.getLanguage(R)))}safeMode(){return this._loader.ready.pipe((0,o.T)(R=>R.safeMode()))}debugMode(){return this._loader.ready.pipe((0,o.T)(R=>R.debugMode()))}lineNumbersBlock(R){return this._loader.ready.pipe((0,E.p)(N=>!!N.lineNumbersBlock),(0,s.M)(N=>N.lineNumbersBlock(R)))}static#e=this.\u0275fac=function(N){return new(N||U)(t.\u0275\u0275inject(k),t.\u0275\u0275inject(v,8))};static#t=this.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"})}return U})(),O=(()=>{class U{constructor(R,N,A,F,Y){this._hljs=N,this._sanitizer=A,this.platformId=F,this._options=Y,this.highlighted=new t.EventEmitter,this._nativeElement=R.nativeElement}ngOnChanges(R){(0,_.isPlatformBrowser)(this.platformId)&&null!==R?.code?.currentValue&&R.code.currentValue!==R.code.previousValue&&(this.code?this.highlightElement(this.code,this.languages):this.setTextContent(""))}highlightElement(R,N){this.setTextContent(R),this._hljs.highlightAuto(R,N).subscribe(A=>{this.setInnerHTML(A?.value),this.lineNumbers&&this._options&&this._options.lineNumbersLoader&&this.addLineNumbers(),this.highlighted.emit(A)})}addLineNumbers(){this.destroyLineNumbersObserver(),h.X.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(R){h.X.schedule(()=>this._nativeElement.textContent=R)}setInnerHTML(R){h.X.schedule(()=>this._nativeElement.innerHTML=function w(U){return function M(){if(!y)try{y=window?.trustedTypes?.createPolicy("ngx-highlightjs",{createHTML:U=>U})}catch{}return y}()?.createHTML(U)||U}(this._sanitizer.sanitize(t.SecurityContext.HTML,R)||""))}static#e=this.\u0275fac=function(N){return new(N||U)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(D),t.\u0275\u0275directiveInject(p.DomSanitizer),t.\u0275\u0275directiveInject(t.PLATFORM_ID),t.\u0275\u0275directiveInject(v,8))};static#t=this.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["","highlight",""]],hostVars:2,hostBindings:function(N,A){2&N&&t.\u0275\u0275classProp("hljs",!0)},inputs:{code:[t.\u0275\u0275InputFlags.None,"highlight","code"],languages:"languages",lineNumbers:"lineNumbers"},outputs:{highlighted:"highlighted"},standalone:!0,features:[t.\u0275\u0275NgOnChangesFeature]})}return U})(),T=(()=>{class U{static#e=this.\u0275fac=function(N){return new(N||U)};static#t=this.\u0275mod=t.\u0275\u0275defineNgModule({type:U});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({})}return U})()},4110:(Te,ne,g)=>{"use strict";g.r(ne),g.d(ne,{MAT_SELECTSEARCH_DEFAULT_OPTIONS:()=>ve,MatSelectNoEntriesFoundDirective:()=>Ye,MatSelectSearchClearDirective:()=>ce,MatSelectSearchComponent:()=>pt,MatSelectSearchVersion:()=>ct,NgxMatSelectSearchModule:()=>Ct,configurableDefaultOptions:()=>ue});var t=g(7336),_=g(4438),C=g(9417),E=g(6600),u=g(2102),b=g(2798),s=g(4412),f=g(7673),d=g(4572),l=g(1413),c=g(5558),o=g(6354),r=g(9172),h=g(3103),p=g(6977),v=g(6697),y=g(8141),M=g(5964),w=g(5478),k=g(177),I=g(8834),D=g(2765),O=g(9213),T=g(9183),U=g(4823),S=g(1997);const R=["searchSelectInput"],N=["innerSelectSearch"],A=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],F=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"],Y=(We,Ne)=>({"mat-select-search-inner-multiple":We,"mat-select-search-inner-toggle-all":Ne});function ee(We,Ne){if(1&We){const Ie=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"mat-checkbox",12),_.\u0275\u0275listener("change",function(Ee){_.\u0275\u0275restoreView(Ie);const be=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(be._emitSelectAllBooleanToParent(Ee.checked))}),_.\u0275\u0275elementEnd()}if(2&We){const Ie=_.\u0275\u0275nextContext();_.\u0275\u0275property("color",null==Ie.matFormField?null:Ie.matFormField.color)("checked",Ie.toggleAllCheckboxChecked)("indeterminate",Ie.toggleAllCheckboxIndeterminate)("matTooltip",Ie.toggleAllCheckboxTooltipMessage)("matTooltipPosition",Ie.toggleAllCheckboxTooltipPosition)}}function ie(We,Ne){1&We&&_.\u0275\u0275element(0,"mat-spinner",13)}function $(We,Ne){1&We&&_.\u0275\u0275projection(0,1,["*ngIf","clearIcon; else defaultIcon"])}function j(We,Ne){if(1&We&&(_.\u0275\u0275elementStart(0,"mat-icon",16),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&We){const Ie=_.\u0275\u0275nextContext(2);_.\u0275\u0275property("svgIcon",Ie.closeSvgIcon),_.\u0275\u0275advance(),_.\u0275\u0275textInterpolate1(" ",Ie.closeSvgIcon?null:Ie.closeIcon," ")}}function G(We,Ne){if(1&We){const Ie=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"button",14),_.\u0275\u0275listener("click",function(){_.\u0275\u0275restoreView(Ie);const Ee=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(Ee._reset(!0))}),_.\u0275\u0275template(1,$,1,0,"ng-content",15)(2,j,2,2,"ng-template",null,2,_.\u0275\u0275templateRefExtractor),_.\u0275\u0275elementEnd()}if(2&We){const Ie=_.\u0275\u0275reference(3),rt=_.\u0275\u0275nextContext();_.\u0275\u0275advance(),_.\u0275\u0275property("ngIf",rt.clearIcon)("ngIfElse",Ie)}}function V(We,Ne){1&We&&_.\u0275\u0275projection(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function W(We,Ne){if(1&We&&_.\u0275\u0275text(0),2&We){const Ie=_.\u0275\u0275nextContext(2);_.\u0275\u0275textInterpolate(Ie.noEntriesFoundLabel)}}function K(We,Ne){if(1&We&&(_.\u0275\u0275elementStart(0,"div",17),_.\u0275\u0275template(1,V,1,0,"ng-content",15)(2,W,1,1,"ng-template",null,3,_.\u0275\u0275templateRefExtractor),_.\u0275\u0275elementEnd()),2&We){const Ie=_.\u0275\u0275reference(3),rt=_.\u0275\u0275nextContext();_.\u0275\u0275advance(),_.\u0275\u0275property("ngIf",rt.noEntriesFound)("ngIfElse",Ie)}}let ce=(()=>{class We{}return We.\u0275fac=function(Ie){return new(Ie||We)},We.\u0275dir=_.\u0275\u0275defineDirective({type:We,selectors:[["","ngxMatSelectSearchClear",""]]}),We})();const ue=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],ve=new _.InjectionToken("mat-selectsearch-default-options");let Ye=(()=>{class We{}return We.\u0275fac=function(Ie){return new(Ie||We)},We.\u0275dir=_.\u0275\u0275defineDirective({type:We,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),We})(),pt=(()=>{class We{constructor(Ie,rt,Ee,be=null,Se=null,Q){this.matSelect=Ie,this.changeDetectorRef=rt,this._viewportRuler=Ee,this.matOption=be,this.matFormField=Se,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new _.EventEmitter,this.onTouched=pe=>{},this._options$=new s.t(null),this.optionsList$=this._options$.pipe((0,c.n)(pe=>pe?pe.changes.pipe((0,o.T)(Re=>Re.toArray()),(0,r.Z)(pe.toArray())):(0,f.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,o.T)(pe=>pe?pe.length:0)),this._formControl=new C.FormControl(""),this._showNoEntriesFound$=(0,d.z)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,o.T)(([pe,Re])=>this.noEntriesFoundLabel&&pe&&Re===this.getOptionsLengthOffset())),this._onDestroy=new l.B,this.applyDefaultOptions(Q)}get value(){return this._formControl.value}set _options(Ie){this._options$.next(Ie)}get _options(){return this._options$.getValue()}applyDefaultOptions(Ie){if(Ie)for(const rt of ue)Ie.hasOwnProperty(rt)&&(this[rt]=Ie[rt])}ngOnInit(){this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe((0,h.c)(1),(0,p.Q)(this._onDestroy)).subscribe(Ie=>{Ie?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,v.s)(1),(0,c.n)(Ie=>{this._options=this.matSelect.options;let rt=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe((0,y.M)(()=>{setTimeout(()=>{const Ee=this._options.toArray(),be=Ee[this.getOptionsLengthOffset()],Se=this.matSelect._keyManager;Se&&this.matSelect.panelOpen&&be&&((!rt||!this.matSelect.compareWith(rt.value,be.value)||!Se.activeItem||!Ee.find(pe=>this.matSelect.compareWith(pe.value,Se.activeItem.value)))&&Se.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),rt=be})}))})).pipe((0,p.Q)(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe((0,p.Q)(this._onDestroy)).subscribe(Ie=>{this.matOption&&(Ie?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,p.Q)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,p.Q)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(Ie){this.toggleAll.emit(Ie)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(Ie){(Ie.key&&1===Ie.key.length||Ie.keyCode>=t.A&&Ie.keyCode<=t.Z||Ie.keyCode>=t.f2&&Ie.keyCode<=t.bn||Ie.keyCode===t.t6||this.preventHomeEndKeyPropagation&&(Ie.keyCode===t.yZ||Ie.keyCode===t.Kp))&&Ie.stopPropagation(),this.matSelect.multiple&&Ie.key&&Ie.keyCode===t.Fm&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&Ie.keyCode===t._f&&this.value&&(this._reset(!0),Ie.stopPropagation())}_handleKeyup(Ie){if(Ie.keyCode===t.i7||Ie.keyCode===t.n6){const rt=this.matSelect._getAriaActiveDescendant(),Ee=this._options.toArray().findIndex(be=>be.id===rt);-1!==Ee&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[Ee]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",rt))}}writeValue(Ie){this._lastExternalInputValue=Ie,this._formControl.setValue(Ie),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(Ie){this._formControl.valueChanges.pipe((0,M.p)(rt=>rt!==this._lastExternalInputValue),(0,y.M)(()=>this._lastExternalInputValue=void 0),(0,p.Q)(this._onDestroy)).subscribe(Ie)}registerOnTouched(Ie){this.onTouched=Ie}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const Ie=this.matSelect.panel.nativeElement,rt=Ie.scrollTop;this.searchSelectInput.nativeElement.focus(),Ie.scrollTop=rt}_reset(Ie){this._formControl.setValue(""),Ie&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,p.Q)(this._onDestroy)).subscribe(Ie=>{let rt=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!Ie||!Array.isArray(Ie))&&(Ie=[]);const Ee=this.matSelect.options.map(be=>be.value);this.previousSelectedValues.forEach(be=>{!Ie.some(Se=>this.matSelect.compareWith(Se,be))&&!Ee.some(Se=>this.matSelect.compareWith(Se,be))&&(Ie.push(be),rt=!0)})}this.previousSelectedValues=Ie,rt&&this.matSelect._onChange(Ie)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let rt,Ie=this.innerSelectSearch.nativeElement;for(;Ie=Ie.parentElement;)if(Ie.classList.contains("mat-select-panel")){rt=Ie;break}rt&&(this.innerSelectSearch.nativeElement.style.width=rt.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return We.\u0275fac=function(Ie){return new(Ie||We)(_.\u0275\u0275directiveInject(b.MatSelect),_.\u0275\u0275directiveInject(_.ChangeDetectorRef),_.\u0275\u0275directiveInject(w.Xj),_.\u0275\u0275directiveInject(E.MatOption,8),_.\u0275\u0275directiveInject(u.MatFormField,8),_.\u0275\u0275directiveInject(ve,8))},We.\u0275cmp=_.\u0275\u0275defineComponent({type:We,selectors:[["ngx-mat-select-search"]],contentQueries:function(Ie,rt,Ee){if(1&Ie&&(_.\u0275\u0275contentQuery(Ee,ce,5),_.\u0275\u0275contentQuery(Ee,Ye,5)),2&Ie){let be;_.\u0275\u0275queryRefresh(be=_.\u0275\u0275loadQuery())&&(rt.clearIcon=be.first),_.\u0275\u0275queryRefresh(be=_.\u0275\u0275loadQuery())&&(rt.noEntriesFound=be.first)}},viewQuery:function(Ie,rt){if(1&Ie&&(_.\u0275\u0275viewQuery(R,7,_.ElementRef),_.\u0275\u0275viewQuery(N,7,_.ElementRef)),2&Ie){let Ee;_.\u0275\u0275queryRefresh(Ee=_.\u0275\u0275loadQuery())&&(rt.searchSelectInput=Ee.first),_.\u0275\u0275queryRefresh(Ee=_.\u0275\u0275loadQuery())&&(rt.innerSelectSearch=Ee.first)}},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[_.\u0275\u0275ProvidersFeature([{provide:C.NG_VALUE_ACCESSOR,useExisting:(0,_.forwardRef)(()=>We),multi:!0}])],ngContentSelectors:F,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["defaultIcon",""],["defaultNoEntriesFound",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],[1,"mat-select-search-inner-row"],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"]],template:function(Ie,rt){if(1&Ie){const Ee=_.\u0275\u0275getCurrentView();_.\u0275\u0275projectionDef(A),_.\u0275\u0275element(0,"input",4),_.\u0275\u0275elementStart(1,"div",5,0)(3,"div",6),_.\u0275\u0275template(4,ee,1,5,"mat-checkbox",7),_.\u0275\u0275elementStart(5,"input",8,1),_.\u0275\u0275listener("keydown",function(Se){return _.\u0275\u0275restoreView(Ee),_.\u0275\u0275resetView(rt._handleKeydown(Se))})("keyup",function(Se){return _.\u0275\u0275restoreView(Ee),_.\u0275\u0275resetView(rt._handleKeyup(Se))})("blur",function(){return _.\u0275\u0275restoreView(Ee),_.\u0275\u0275resetView(rt.onBlur())}),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(7,ie,1,0,"mat-spinner",9)(8,G,4,2,"button",10),_.\u0275\u0275projection(9),_.\u0275\u0275elementEnd(),_.\u0275\u0275element(10,"mat-divider"),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(11,K,4,2,"div",11),_.\u0275\u0275pipe(12,"async")}2&Ie&&(_.\u0275\u0275advance(),_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction2(11,Y,rt.matSelect.multiple,rt._isToggleAllCheckboxVisible())),_.\u0275\u0275advance(3),_.\u0275\u0275property("ngIf",rt._isToggleAllCheckboxVisible()),_.\u0275\u0275advance(),_.\u0275\u0275property("type",rt.type)("formControl",rt._formControl)("placeholder",rt.placeholderLabel),_.\u0275\u0275attribute("aria-label",rt.ariaLabel),_.\u0275\u0275advance(2),_.\u0275\u0275property("ngIf",rt.searching),_.\u0275\u0275advance(),_.\u0275\u0275property("ngIf",!rt.hideClearSearchButton&&rt.value&&!rt.searching),_.\u0275\u0275advance(3),_.\u0275\u0275property("ngIf",_.\u0275\u0275pipeBind1(12,9,rt._showNoEntriesFound$)))},dependencies:[k.NgClass,k.NgIf,C.DefaultValueAccessor,C.NgControlStatus,C.FormControlDirective,I.MatIconButton,D.MatCheckbox,O.MatIcon,T.MatProgressSpinner,U.oV,S.MatDivider,k.AsyncPipe],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-select-panel-background-color)}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-select-panel-background-color);padding:0 44px 0 16px;height:calc(3em - 1px);line-height:calc(3em - 1px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-left:5px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding-top:8px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:0}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px} .mat-mdc-option[aria-disabled=true].contains-mat-select-search{position:sticky;top:-8px;z-index:1;opacity:1;margin-top:-8px;pointer-events:all} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-mdc-option[aria-disabled=true].contains-mat-select-search mat-pseudo-checkbox{display:none} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mdc-list-item__primary-text{opacity:1}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}"],changeDetection:0}),We})();const ct="7.0.6";let Ct=(()=>{class We{}return We.\u0275fac=function(Ie){return new(Ie||We)},We.\u0275mod=_.\u0275\u0275defineNgModule({type:We}),We.\u0275inj=_.\u0275\u0275defineInjector({imports:[k.CommonModule,C.ReactiveFormsModule,I.MatButtonModule,D.MatCheckboxModule,O.MatIconModule,T.MatProgressSpinnerModule,U.uc,S.MatDividerModule]}),We})()},994:(Te,ne,g)=>{"use strict";function u(L){let we=L.length;for(;--we>=0;)L[we]=0}g.r(ne),g.d(ne,{Deflate:()=>z,Inflate:()=>Me,constants:()=>zt,default:()=>Mn,deflate:()=>re,deflateRaw:()=>X,gzip:()=>se,inflate:()=>ze,inflateRaw:()=>yt,ungzip:()=>Yt});const T=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]),U=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]),S=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),R=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),A=new Array(576);u(A);const F=new Array(60);u(F);const Y=new Array(512);u(Y);const ee=new Array(256);u(ee);const ie=new Array(29);u(ie);const $=new Array(30);function j(L,we,Z,Xe,gt){this.static_tree=L,this.extra_bits=we,this.extra_base=Z,this.elems=Xe,this.max_length=gt,this.has_stree=L&&L.length}let G,V,W;function K(L,we){this.dyn_tree=L,this.max_code=0,this.stat_desc=we}u($);const ce=L=>L<256?Y[L]:Y[256+(L>>>7)],ue=(L,we)=>{L.pending_buf[L.pending++]=255&we,L.pending_buf[L.pending++]=we>>>8&255},ve=(L,we,Z)=>{L.bi_valid>16-Z?(L.bi_buf|=we<>16-L.bi_valid,L.bi_valid+=Z-16):(L.bi_buf|=we<{ve(L,Z[2*we],Z[2*we+1])},pt=(L,we)=>{let Z=0;do{Z|=1&L,L>>>=1,Z<<=1}while(--we>0);return Z>>>1},We=(L,we,Z)=>{const Xe=new Array(16);let ht,Kt,gt=0;for(ht=1;ht<=15;ht++)gt=gt+Z[ht-1]<<1,Xe[ht]=gt;for(Kt=0;Kt<=we;Kt++){let Ut=L[2*Kt+1];0!==Ut&&(L[2*Kt]=pt(Xe[Ut]++,Ut))}},Ie=L=>{let we;for(we=0;we<286;we++)L.dyn_ltree[2*we]=0;for(we=0;we<30;we++)L.dyn_dtree[2*we]=0;for(we=0;we<19;we++)L.bl_tree[2*we]=0;L.dyn_ltree[512]=1,L.opt_len=L.static_len=0,L.sym_next=L.matches=0},rt=L=>{L.bi_valid>8?ue(L,L.bi_buf):L.bi_valid>0&&(L.pending_buf[L.pending++]=L.bi_buf),L.bi_buf=0,L.bi_valid=0},Ee=(L,we,Z,Xe)=>{const gt=2*we,ht=2*Z;return L[gt]{const Xe=L.heap[Z];let gt=Z<<1;for(;gt<=L.heap_len&&(gt{let Xe,gt,Kt,Ut,ht=0;if(0!==L.sym_next)do{Xe=255&L.pending_buf[L.sym_buf+ht++],Xe+=(255&L.pending_buf[L.sym_buf+ht++])<<8,gt=L.pending_buf[L.sym_buf+ht++],0===Xe?Ye(L,gt,we):(Kt=ee[gt],Ye(L,Kt+256+1,we),Ut=T[Kt],0!==Ut&&(gt-=ie[Kt],ve(L,gt,Ut)),Xe--,Kt=ce(Xe),Ye(L,Kt,Z),Ut=U[Kt],0!==Ut&&(Xe-=$[Kt],ve(L,Xe,Ut)))}while(ht{const Z=we.dyn_tree,Xe=we.stat_desc.static_tree,gt=we.stat_desc.has_stree,ht=we.stat_desc.elems;let Kt,Ut,Pt,Nn=-1;for(L.heap_len=0,L.heap_max=573,Kt=0;Kt>1;Kt>=1;Kt--)be(L,Z,Kt);Pt=ht;do{Kt=L.heap[1],L.heap[1]=L.heap[L.heap_len--],be(L,Z,1),Ut=L.heap[1],L.heap[--L.heap_max]=Kt,L.heap[--L.heap_max]=Ut,Z[2*Pt]=Z[2*Kt]+Z[2*Ut],L.depth[Pt]=(L.depth[Kt]>=L.depth[Ut]?L.depth[Kt]:L.depth[Ut])+1,Z[2*Kt+1]=Z[2*Ut+1]=Pt,L.heap[1]=Pt++,be(L,Z,1)}while(L.heap_len>=2);L.heap[--L.heap_max]=L.heap[1],((L,we)=>{const Z=we.dyn_tree,Xe=we.max_code,gt=we.stat_desc.static_tree,ht=we.stat_desc.has_stree,Kt=we.stat_desc.extra_bits,Ut=we.stat_desc.extra_base,Nn=we.stat_desc.max_length;let Pt,Zt,Pi,An,pn,zn,sr=0;for(An=0;An<=15;An++)L.bl_count[An]=0;for(Z[2*L.heap[L.heap_max]+1]=0,Pt=L.heap_max+1;Pt<573;Pt++)Zt=L.heap[Pt],An=Z[2*Z[2*Zt+1]+1]+1,An>Nn&&(An=Nn,sr++),Z[2*Zt+1]=An,!(Zt>Xe)&&(L.bl_count[An]++,pn=0,Zt>=Ut&&(pn=Kt[Zt-Ut]),zn=Z[2*Zt],L.opt_len+=zn*(An+pn),ht&&(L.static_len+=zn*(gt[2*Zt+1]+pn)));if(0!==sr){do{for(An=Nn-1;0===L.bl_count[An];)An--;L.bl_count[An]--,L.bl_count[An+1]+=2,L.bl_count[Nn]--,sr-=2}while(sr>0);for(An=Nn;0!==An;An--)for(Zt=L.bl_count[An];0!==Zt;)Pi=L.heap[--Pt],!(Pi>Xe)&&(Z[2*Pi+1]!==An&&(L.opt_len+=(An-Z[2*Pi+1])*Z[2*Pi],Z[2*Pi+1]=An),Zt--)}})(L,we),We(Z,Nn,L.bl_count)},pe=(L,we,Z)=>{let Xe,ht,gt=-1,Kt=we[1],Ut=0,Nn=7,Pt=4;for(0===Kt&&(Nn=138,Pt=3),we[2*(Z+1)+1]=65535,Xe=0;Xe<=Z;Xe++)ht=Kt,Kt=we[2*(Xe+1)+1],!(++Ut{let Xe,ht,gt=-1,Kt=we[1],Ut=0,Nn=7,Pt=4;for(0===Kt&&(Nn=138,Pt=3),Xe=0;Xe<=Z;Xe++)if(ht=Kt,Kt=we[2*(Xe+1)+1],!(++Ut{ve(L,0+(Xe?1:0),3),rt(L),ue(L,Z),ue(L,~Z),Z&&L.pending_buf.set(L.window.subarray(we,we+Z),L.pending),L.pending+=Z};var Nt={_tr_init:L=>{He||((()=>{let L,we,Z,Xe,gt;const ht=new Array(16);for(Z=0,Xe=0;Xe<28;Xe++)for(ie[Xe]=Z,L=0;L<1<>=7;Xe<30;Xe++)for($[Xe]=gt<<7,L=0;L<1<{let gt,ht,Kt=0;L.level>0?(2===L.strm.data_type&&(L.strm.data_type=(L=>{let Z,we=4093624447;for(Z=0;Z<=31;Z++,we>>>=1)if(1&we&&0!==L.dyn_ltree[2*Z])return 0;if(0!==L.dyn_ltree[18]||0!==L.dyn_ltree[20]||0!==L.dyn_ltree[26])return 1;for(Z=32;Z<256;Z++)if(0!==L.dyn_ltree[2*Z])return 1;return 0})(L)),Q(L,L.l_desc),Q(L,L.d_desc),Kt=(L=>{let we;for(pe(L,L.dyn_ltree,L.l_desc.max_code),pe(L,L.dyn_dtree,L.d_desc.max_code),Q(L,L.bl_desc),we=18;we>=3&&0===L.bl_tree[2*R[we]+1];we--);return L.opt_len+=3*(we+1)+5+5+4,we})(L),gt=L.opt_len+3+7>>>3,ht=L.static_len+3+7>>>3,ht<=gt&&(gt=ht)):gt=ht=Z+5,Z+4<=gt&&-1!==we?st(L,we,Z,Xe):4===L.strategy||ht===gt?(ve(L,2+(Xe?1:0),3),Se(L,A,F)):(ve(L,4+(Xe?1:0),3),((L,we,Z,Xe)=>{let gt;for(ve(L,we-257,5),ve(L,Z-1,5),ve(L,Xe-4,4),gt=0;gt(L.pending_buf[L.sym_buf+L.sym_next++]=we,L.pending_buf[L.sym_buf+L.sym_next++]=we>>8,L.pending_buf[L.sym_buf+L.sym_next++]=Z,0===we?L.dyn_ltree[2*Z]++:(L.matches++,we--,L.dyn_ltree[2*(ee[Z]+256+1)]++,L.dyn_dtree[2*ce(we)]++),L.sym_next===L.sym_end),_tr_align:L=>{ve(L,2,3),Ye(L,256,A),(L=>{16===L.bi_valid?(ue(L,L.bi_buf),L.bi_buf=0,L.bi_valid=0):L.bi_valid>=8&&(L.pending_buf[L.pending++]=255&L.bi_buf,L.bi_buf>>=8,L.bi_valid-=8)})(L)}},_e=(L,we,Z,Xe)=>{let gt=65535&L,ht=L>>>16&65535,Kt=0;for(;0!==Z;){Kt=Z>2e3?2e3:Z,Z-=Kt;do{gt=gt+we[Xe++]|0,ht=ht+gt|0}while(--Kt);gt%=65521,ht%=65521}return gt|ht<<16};const Qe=new Uint32Array((()=>{let L,we=[];for(var Z=0;Z<256;Z++){L=Z;for(var Xe=0;Xe<8;Xe++)L=1&L?3988292384^L>>>1:L>>>1;we[Z]=L}return we})());var tt=(L,we,Z,Xe)=>{const gt=Qe,ht=Xe+Z;L^=-1;for(let Kt=Xe;Kt>>8^gt[255&(L^we[Kt])];return~L},ft={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"},Le={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:fe,_tr_stored_block:Ge,_tr_flush_block:te,_tr_tally:de,_tr_align:ke}=Nt,{Z_NO_FLUSH:nt,Z_PARTIAL_FLUSH:It,Z_FULL_FLUSH:Gt,Z_FINISH:an,Z_BLOCK:_t,Z_OK:Lt,Z_STREAM_END:Je,Z_STREAM_ERROR:Fe,Z_DATA_ERROR:et,Z_BUF_ERROR:je,Z_DEFAULT_COMPRESSION:dt,Z_FILTERED:At,Z_HUFFMAN_ONLY:qt,Z_RLE:Cn,Z_FIXED:Ln,Z_DEFAULT_STRATEGY:Oi,Z_UNKNOWN:Ei,Z_DEFLATED:jn}=Le,Mt=262,hi=(L,we)=>(L.msg=ft[we],we),xi=L=>2*L-(L>4?9:0),Ri=L=>{let we=L.length;for(;--we>=0;)L[we]=0},On=L=>{let we,Z,Xe,gt=L.w_size;we=L.hash_size,Xe=we;do{Z=L.head[--Xe],L.head[Xe]=Z>=gt?Z-gt:0}while(--we);we=gt,Xe=we;do{Z=L.prev[--Xe],L.prev[Xe]=Z>=gt?Z-gt:0}while(--we)};let $i=(L,we,Z)=>(we<{const we=L.state;let Z=we.pending;Z>L.avail_out&&(Z=L.avail_out),0!==Z&&(L.output.set(we.pending_buf.subarray(we.pending_out,we.pending_out+Z),L.next_out),L.next_out+=Z,we.pending_out+=Z,L.total_out+=Z,L.avail_out-=Z,we.pending-=Z,0===we.pending&&(we.pending_out=0))},Zn=(L,we)=>{te(L,L.block_start>=0?L.block_start:-1,L.strstart-L.block_start,we),L.block_start=L.strstart,qn(L.strm)},ii=(L,we)=>{L.pending_buf[L.pending++]=we},Wi=(L,we)=>{L.pending_buf[L.pending++]=we>>>8&255,L.pending_buf[L.pending++]=255&we},Ui=(L,we,Z,Xe)=>{let gt=L.avail_in;return gt>Xe&&(gt=Xe),0===gt?0:(L.avail_in-=gt,we.set(L.input.subarray(L.next_in,L.next_in+gt),Z),1===L.state.wrap?L.adler=_e(L.adler,we,gt,Z):2===L.state.wrap&&(L.adler=tt(L.adler,we,gt,Z)),L.next_in+=gt,L.total_in+=gt,gt)},Un=(L,we)=>{let gt,ht,Z=L.max_chain_length,Xe=L.strstart,Kt=L.prev_length,Ut=L.nice_match;const Nn=L.strstart>L.w_size-Mt?L.strstart-(L.w_size-Mt):0,Pt=L.window,Zt=L.w_mask,Pi=L.prev,An=L.strstart+258;let pn=Pt[Xe+Kt-1],zn=Pt[Xe+Kt];L.prev_length>=L.good_match&&(Z>>=2),Ut>L.lookahead&&(Ut=L.lookahead);do{if(gt=we,Pt[gt+Kt]===zn&&Pt[gt+Kt-1]===pn&&Pt[gt]===Pt[Xe]&&Pt[++gt]===Pt[Xe+1]){Xe+=2,gt++;do{}while(Pt[++Xe]===Pt[++gt]&&Pt[++Xe]===Pt[++gt]&&Pt[++Xe]===Pt[++gt]&&Pt[++Xe]===Pt[++gt]&&Pt[++Xe]===Pt[++gt]&&Pt[++Xe]===Pt[++gt]&&Pt[++Xe]===Pt[++gt]&&Pt[++Xe]===Pt[++gt]&&XeKt){if(L.match_start=we,Kt=ht,ht>=Ut)break;pn=Pt[Xe+Kt-1],zn=Pt[Xe+Kt]}}}while((we=Pi[we&Zt])>Nn&&0!=--Z);return Kt<=L.lookahead?Kt:L.lookahead},vn=L=>{const we=L.w_size;let Z,Xe,gt;do{if(Xe=L.window_size-L.lookahead-L.strstart,L.strstart>=we+(we-Mt)&&(L.window.set(L.window.subarray(we,we+we-Xe),0),L.match_start-=we,L.strstart-=we,L.block_start-=we,L.insert>L.strstart&&(L.insert=L.strstart),On(L),Xe+=we),0===L.strm.avail_in)break;if(Z=Ui(L.strm,L.window,L.strstart+L.lookahead,Xe),L.lookahead+=Z,L.lookahead+L.insert>=3)for(gt=L.strstart-L.insert,L.ins_h=L.window[gt],L.ins_h=$i(L,L.ins_h,L.window[gt+1]);L.insert&&(L.ins_h=$i(L,L.ins_h,L.window[gt+3-1]),L.prev[gt&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=gt,gt++,L.insert--,!(L.lookahead+L.insert<3)););}while(L.lookahead{let Xe,gt,ht,Z=L.pending_buf_size-5>L.w_size?L.w_size:L.pending_buf_size-5,Kt=0,Ut=L.strm.avail_in;do{if(Xe=65535,ht=L.bi_valid+42>>3,L.strm.avail_outgt+L.strm.avail_in&&(Xe=gt+L.strm.avail_in),Xe>ht&&(Xe=ht),Xe>8,L.pending_buf[L.pending-2]=~Xe,L.pending_buf[L.pending-1]=~Xe>>8,qn(L.strm),gt&&(gt>Xe&&(gt=Xe),L.strm.output.set(L.window.subarray(L.block_start,L.block_start+gt),L.strm.next_out),L.strm.next_out+=gt,L.strm.avail_out-=gt,L.strm.total_out+=gt,L.block_start+=gt,Xe-=gt),Xe&&(Ui(L.strm,L.strm.output,L.strm.next_out,Xe),L.strm.next_out+=Xe,L.strm.avail_out-=Xe,L.strm.total_out+=Xe)}while(0===Kt);return Ut-=L.strm.avail_in,Ut&&(Ut>=L.w_size?(L.matches=2,L.window.set(L.strm.input.subarray(L.strm.next_in-L.w_size,L.strm.next_in),0),L.strstart=L.w_size,L.insert=L.strstart):(L.window_size-L.strstart<=Ut&&(L.strstart-=L.w_size,L.window.set(L.window.subarray(L.w_size,L.w_size+L.strstart),0),L.matches<2&&L.matches++,L.insert>L.strstart&&(L.insert=L.strstart)),L.window.set(L.strm.input.subarray(L.strm.next_in-Ut,L.strm.next_in),L.strstart),L.strstart+=Ut,L.insert+=Ut>L.w_size-L.insert?L.w_size-L.insert:Ut),L.block_start=L.strstart),L.high_waterht&&L.block_start>=L.w_size&&(L.block_start-=L.w_size,L.strstart-=L.w_size,L.window.set(L.window.subarray(L.w_size,L.w_size+L.strstart),0),L.matches<2&&L.matches++,ht+=L.w_size,L.insert>L.strstart&&(L.insert=L.strstart)),ht>L.strm.avail_in&&(ht=L.strm.avail_in),ht&&(Ui(L.strm,L.window,L.strstart,ht),L.strstart+=ht,L.insert+=ht>L.w_size-L.insert?L.w_size-L.insert:ht),L.high_water>3,ht=L.pending_buf_size-ht>65535?65535:L.pending_buf_size-ht,Z=ht>L.w_size?L.w_size:ht,gt=L.strstart-L.block_start,(gt>=Z||(gt||we===an)&&we!==nt&&0===L.strm.avail_in&><=ht)&&(Xe=gt>ht?ht:gt,Kt=we===an&&0===L.strm.avail_in&&Xe===gt?1:0,Ge(L,L.block_start,Xe,Kt),L.block_start+=Xe,qn(L.strm)),Kt?3:1)},Rn=(L,we)=>{let Z,Xe;for(;;){if(L.lookahead=3&&(L.ins_h=$i(L,L.ins_h,L.window[L.strstart+3-1]),Z=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart),0!==Z&&L.strstart-Z<=L.w_size-Mt&&(L.match_length=Un(L,Z)),L.match_length>=3)if(Xe=de(L,L.strstart-L.match_start,L.match_length-3),L.lookahead-=L.match_length,L.match_length<=L.max_lazy_match&&L.lookahead>=3){L.match_length--;do{L.strstart++,L.ins_h=$i(L,L.ins_h,L.window[L.strstart+3-1]),Z=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart}while(0!=--L.match_length);L.strstart++}else L.strstart+=L.match_length,L.match_length=0,L.ins_h=L.window[L.strstart],L.ins_h=$i(L,L.ins_h,L.window[L.strstart+1]);else Xe=de(L,0,L.window[L.strstart]),L.lookahead--,L.strstart++;if(Xe&&(Zn(L,!1),0===L.strm.avail_out))return 1}return L.insert=L.strstart<2?L.strstart:2,we===an?(Zn(L,!0),0===L.strm.avail_out?3:4):L.sym_next&&(Zn(L,!1),0===L.strm.avail_out)?1:2},Hn=(L,we)=>{let Z,Xe,gt;for(;;){if(L.lookahead=3&&(L.ins_h=$i(L,L.ins_h,L.window[L.strstart+3-1]),Z=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart),L.prev_length=L.match_length,L.prev_match=L.match_start,L.match_length=2,0!==Z&&L.prev_length4096)&&(L.match_length=2)),L.prev_length>=3&&L.match_length<=L.prev_length){gt=L.strstart+L.lookahead-3,Xe=de(L,L.strstart-1-L.prev_match,L.prev_length-3),L.lookahead-=L.prev_length-1,L.prev_length-=2;do{++L.strstart<=gt&&(L.ins_h=$i(L,L.ins_h,L.window[L.strstart+3-1]),Z=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart)}while(0!=--L.prev_length);if(L.match_available=0,L.match_length=2,L.strstart++,Xe&&(Zn(L,!1),0===L.strm.avail_out))return 1}else if(L.match_available){if(Xe=de(L,0,L.window[L.strstart-1]),Xe&&Zn(L,!1),L.strstart++,L.lookahead--,0===L.strm.avail_out)return 1}else L.match_available=1,L.strstart++,L.lookahead--}return L.match_available&&(Xe=de(L,0,L.window[L.strstart-1]),L.match_available=0),L.insert=L.strstart<2?L.strstart:2,we===an?(Zn(L,!0),0===L.strm.avail_out?3:4):L.sym_next&&(Zn(L,!1),0===L.strm.avail_out)?1:2};function Gi(L,we,Z,Xe,gt){this.good_length=L,this.max_lazy=we,this.nice_length=Z,this.max_chain=Xe,this.func=gt}const lr=[new Gi(0,0,0,0,Dn),new Gi(4,4,8,4,Rn),new Gi(4,5,16,8,Rn),new Gi(4,6,32,32,Rn),new Gi(4,4,16,16,Hn),new Gi(8,16,32,32,Hn),new Gi(8,16,128,128,Hn),new Gi(8,32,128,256,Hn),new Gi(32,128,258,1024,Hn),new Gi(32,258,258,4096,Hn)];function Tr(){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=jn,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),Ri(this.dyn_ltree),Ri(this.dyn_dtree),Ri(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),Ri(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Ri(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const wr=L=>{if(!L)return 1;const we=L.state;return!we||we.strm!==L||42!==we.status&&57!==we.status&&69!==we.status&&73!==we.status&&91!==we.status&&103!==we.status&&113!==we.status&&666!==we.status?1:0},_s=L=>{if(wr(L))return hi(L,Fe);L.total_in=L.total_out=0,L.data_type=Ei;const we=L.state;return we.pending=0,we.pending_out=0,we.wrap<0&&(we.wrap=-we.wrap),we.status=2===we.wrap?57:we.wrap?42:113,L.adler=2===we.wrap?0:1,we.last_flush=-2,fe(we),Lt},Sr=L=>{const we=_s(L);return we===Lt&&(L=>{L.window_size=2*L.w_size,Ri(L.head),L.max_lazy_match=lr[L.level].max_lazy,L.good_match=lr[L.level].good_length,L.nice_match=lr[L.level].nice_length,L.max_chain_length=lr[L.level].max_chain,L.strstart=0,L.block_start=0,L.lookahead=0,L.insert=0,L.match_length=L.prev_length=2,L.match_available=0,L.ins_h=0})(L.state),we},Ur=(L,we,Z,Xe,gt,ht)=>{if(!L)return Fe;let Kt=1;if(we===dt&&(we=6),Xe<0?(Kt=0,Xe=-Xe):Xe>15&&(Kt=2,Xe-=16),gt<1||gt>9||Z!==jn||Xe<8||Xe>15||we<0||we>9||ht<0||ht>Ln||8===Xe&&1!==Kt)return hi(L,Fe);8===Xe&&(Xe=9);const Ut=new Tr;return L.state=Ut,Ut.strm=L,Ut.status=42,Ut.wrap=Kt,Ut.gzhead=null,Ut.w_bits=Xe,Ut.w_size=1<Ur(L,we,jn,15,8,Oi),deflateInit2:Ur,deflateReset:Sr,deflateResetKeep:_s,deflateSetHeader:(L,we)=>wr(L)||2!==L.state.wrap?Fe:(L.state.gzhead=we,Lt),deflate:(L,we)=>{if(wr(L)||we>_t||we<0)return L?hi(L,Fe):Fe;const Z=L.state;if(!L.output||0!==L.avail_in&&!L.input||666===Z.status&&we!==an)return hi(L,0===L.avail_out?je:Fe);const Xe=Z.last_flush;if(Z.last_flush=we,0!==Z.pending){if(qn(L),0===L.avail_out)return Z.last_flush=-1,Lt}else if(0===L.avail_in&&xi(we)<=xi(Xe)&&we!==an)return hi(L,je);if(666===Z.status&&0!==L.avail_in)return hi(L,je);if(42===Z.status&&0===Z.wrap&&(Z.status=113),42===Z.status){let gt=jn+(Z.w_bits-8<<4)<<8,ht=-1;if(ht=Z.strategy>=qt||Z.level<2?0:Z.level<6?1:6===Z.level?2:3,gt|=ht<<6,0!==Z.strstart&&(gt|=32),gt+=31-gt%31,Wi(Z,gt),0!==Z.strstart&&(Wi(Z,L.adler>>>16),Wi(Z,65535&L.adler)),L.adler=1,Z.status=113,qn(L),0!==Z.pending)return Z.last_flush=-1,Lt}if(57===Z.status)if(L.adler=0,ii(Z,31),ii(Z,139),ii(Z,8),Z.gzhead)ii(Z,(Z.gzhead.text?1:0)+(Z.gzhead.hcrc?2:0)+(Z.gzhead.extra?4:0)+(Z.gzhead.name?8:0)+(Z.gzhead.comment?16:0)),ii(Z,255&Z.gzhead.time),ii(Z,Z.gzhead.time>>8&255),ii(Z,Z.gzhead.time>>16&255),ii(Z,Z.gzhead.time>>24&255),ii(Z,9===Z.level?2:Z.strategy>=qt||Z.level<2?4:0),ii(Z,255&Z.gzhead.os),Z.gzhead.extra&&Z.gzhead.extra.length&&(ii(Z,255&Z.gzhead.extra.length),ii(Z,Z.gzhead.extra.length>>8&255)),Z.gzhead.hcrc&&(L.adler=tt(L.adler,Z.pending_buf,Z.pending,0)),Z.gzindex=0,Z.status=69;else if(ii(Z,0),ii(Z,0),ii(Z,0),ii(Z,0),ii(Z,0),ii(Z,9===Z.level?2:Z.strategy>=qt||Z.level<2?4:0),ii(Z,3),Z.status=113,qn(L),0!==Z.pending)return Z.last_flush=-1,Lt;if(69===Z.status){if(Z.gzhead.extra){let gt=Z.pending,ht=(65535&Z.gzhead.extra.length)-Z.gzindex;for(;Z.pending+ht>Z.pending_buf_size;){let Ut=Z.pending_buf_size-Z.pending;if(Z.pending_buf.set(Z.gzhead.extra.subarray(Z.gzindex,Z.gzindex+Ut),Z.pending),Z.pending=Z.pending_buf_size,Z.gzhead.hcrc&&Z.pending>gt&&(L.adler=tt(L.adler,Z.pending_buf,Z.pending-gt,gt)),Z.gzindex+=Ut,qn(L),0!==Z.pending)return Z.last_flush=-1,Lt;gt=0,ht-=Ut}let Kt=new Uint8Array(Z.gzhead.extra);Z.pending_buf.set(Kt.subarray(Z.gzindex,Z.gzindex+ht),Z.pending),Z.pending+=ht,Z.gzhead.hcrc&&Z.pending>gt&&(L.adler=tt(L.adler,Z.pending_buf,Z.pending-gt,gt)),Z.gzindex=0}Z.status=73}if(73===Z.status){if(Z.gzhead.name){let ht,gt=Z.pending;do{if(Z.pending===Z.pending_buf_size){if(Z.gzhead.hcrc&&Z.pending>gt&&(L.adler=tt(L.adler,Z.pending_buf,Z.pending-gt,gt)),qn(L),0!==Z.pending)return Z.last_flush=-1,Lt;gt=0}ht=Z.gzindexgt&&(L.adler=tt(L.adler,Z.pending_buf,Z.pending-gt,gt)),Z.gzindex=0}Z.status=91}if(91===Z.status){if(Z.gzhead.comment){let ht,gt=Z.pending;do{if(Z.pending===Z.pending_buf_size){if(Z.gzhead.hcrc&&Z.pending>gt&&(L.adler=tt(L.adler,Z.pending_buf,Z.pending-gt,gt)),qn(L),0!==Z.pending)return Z.last_flush=-1,Lt;gt=0}ht=Z.gzindexgt&&(L.adler=tt(L.adler,Z.pending_buf,Z.pending-gt,gt))}Z.status=103}if(103===Z.status){if(Z.gzhead.hcrc){if(Z.pending+2>Z.pending_buf_size&&(qn(L),0!==Z.pending))return Z.last_flush=-1,Lt;ii(Z,255&L.adler),ii(Z,L.adler>>8&255),L.adler=0}if(Z.status=113,qn(L),0!==Z.pending)return Z.last_flush=-1,Lt}if(0!==L.avail_in||0!==Z.lookahead||we!==nt&&666!==Z.status){let gt=0===Z.level?Dn(Z,we):Z.strategy===qt?((L,we)=>{let Z;for(;;){if(0===L.lookahead&&(vn(L),0===L.lookahead)){if(we===nt)return 1;break}if(L.match_length=0,Z=de(L,0,L.window[L.strstart]),L.lookahead--,L.strstart++,Z&&(Zn(L,!1),0===L.strm.avail_out))return 1}return L.insert=0,we===an?(Zn(L,!0),0===L.strm.avail_out?3:4):L.sym_next&&(Zn(L,!1),0===L.strm.avail_out)?1:2})(Z,we):Z.strategy===Cn?((L,we)=>{let Z,Xe,gt,ht;const Kt=L.window;for(;;){if(L.lookahead<=258){if(vn(L),L.lookahead<=258&&we===nt)return 1;if(0===L.lookahead)break}if(L.match_length=0,L.lookahead>=3&&L.strstart>0&&(gt=L.strstart-1,Xe=Kt[gt],Xe===Kt[++gt]&&Xe===Kt[++gt]&&Xe===Kt[++gt])){ht=L.strstart+258;do{}while(Xe===Kt[++gt]&&Xe===Kt[++gt]&&Xe===Kt[++gt]&&Xe===Kt[++gt]&&Xe===Kt[++gt]&&Xe===Kt[++gt]&&Xe===Kt[++gt]&&Xe===Kt[++gt]&>L.lookahead&&(L.match_length=L.lookahead)}if(L.match_length>=3?(Z=de(L,1,L.match_length-3),L.lookahead-=L.match_length,L.strstart+=L.match_length,L.match_length=0):(Z=de(L,0,L.window[L.strstart]),L.lookahead--,L.strstart++),Z&&(Zn(L,!1),0===L.strm.avail_out))return 1}return L.insert=0,we===an?(Zn(L,!0),0===L.strm.avail_out?3:4):L.sym_next&&(Zn(L,!1),0===L.strm.avail_out)?1:2})(Z,we):lr[Z.level].func(Z,we);if((3===gt||4===gt)&&(Z.status=666),1===gt||3===gt)return 0===L.avail_out&&(Z.last_flush=-1),Lt;if(2===gt&&(we===It?ke(Z):we!==_t&&(Ge(Z,0,0,!1),we===Gt&&(Ri(Z.head),0===Z.lookahead&&(Z.strstart=0,Z.block_start=0,Z.insert=0))),qn(L),0===L.avail_out))return Z.last_flush=-1,Lt}return we!==an?Lt:Z.wrap<=0?Je:(2===Z.wrap?(ii(Z,255&L.adler),ii(Z,L.adler>>8&255),ii(Z,L.adler>>16&255),ii(Z,L.adler>>24&255),ii(Z,255&L.total_in),ii(Z,L.total_in>>8&255),ii(Z,L.total_in>>16&255),ii(Z,L.total_in>>24&255)):(Wi(Z,L.adler>>>16),Wi(Z,65535&L.adler)),qn(L),Z.wrap>0&&(Z.wrap=-Z.wrap),0!==Z.pending?Lt:Je)},deflateEnd:L=>{if(wr(L))return Fe;const we=L.state.status;return L.state=null,113===we?hi(L,et):Lt},deflateSetDictionary:(L,we)=>{let Z=we.length;if(wr(L))return Fe;const Xe=L.state,gt=Xe.wrap;if(2===gt||1===gt&&42!==Xe.status||Xe.lookahead)return Fe;if(1===gt&&(L.adler=_e(L.adler,we,Z,0)),Xe.wrap=0,Z>=Xe.w_size){0===gt&&(Ri(Xe.head),Xe.strstart=0,Xe.block_start=0,Xe.insert=0);let Nn=new Uint8Array(Xe.w_size);Nn.set(we.subarray(Z-Xe.w_size,Z),0),we=Nn,Z=Xe.w_size}const ht=L.avail_in,Kt=L.next_in,Ut=L.input;for(L.avail_in=Z,L.next_in=0,L.input=we,vn(Xe);Xe.lookahead>=3;){let Nn=Xe.strstart,Pt=Xe.lookahead-2;do{Xe.ins_h=$i(Xe,Xe.ins_h,Xe.window[Nn+3-1]),Xe.prev[Nn&Xe.w_mask]=Xe.head[Xe.ins_h],Xe.head[Xe.ins_h]=Nn,Nn++}while(--Pt);Xe.strstart=Nn,Xe.lookahead=2,vn(Xe)}return Xe.strstart+=Xe.lookahead,Xe.block_start=Xe.strstart,Xe.insert=Xe.lookahead,Xe.lookahead=0,Xe.match_length=Xe.prev_length=2,Xe.match_available=0,L.next_in=Kt,L.input=Ut,L.avail_in=ht,Xe.wrap=gt,Lt},deflateInfo:"pako deflate (from Nodeca project)"};const Wt=(L,we)=>Object.prototype.hasOwnProperty.call(L,we);var bn={assign:function(L){const we=Array.prototype.slice.call(arguments,1);for(;we.length;){const Z=we.shift();if(Z){if("object"!=typeof Z)throw new TypeError(Z+"must be non-object");for(const Xe in Z)Wt(Z,Xe)&&(L[Xe]=Z[Xe])}}return L},flattenChunks:L=>{let we=0;for(let Xe=0,gt=L.length;Xe=252?6:L>=248?5:L>=240?4:L>=224?3:L>=192?2:1;$n[254]=$n[254]=1;var ri={string2buf:L=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(L);let we,Z,Xe,gt,ht,Kt=L.length,Ut=0;for(gt=0;gt>>6,we[ht++]=128|63&Z):Z<65536?(we[ht++]=224|Z>>>12,we[ht++]=128|Z>>>6&63,we[ht++]=128|63&Z):(we[ht++]=240|Z>>>18,we[ht++]=128|Z>>>12&63,we[ht++]=128|Z>>>6&63,we[ht++]=128|63&Z);return we},buf2string:(L,we)=>{const Z=we||L.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(L.subarray(0,we));let Xe,gt;const ht=new Array(2*Z);for(gt=0,Xe=0;Xe4)ht[gt++]=65533,Xe+=Ut-1;else{for(Kt&=2===Ut?31:3===Ut?15:7;Ut>1&&Xe1?ht[gt++]=65533:Kt<65536?ht[gt++]=Kt:(Kt-=65536,ht[gt++]=55296|Kt>>10&1023,ht[gt++]=56320|1023&Kt)}}return((L,we)=>{if(we<65534&&L.subarray&&Tn)return String.fromCharCode.apply(null,L.length===we?L:L.subarray(0,we));let Z="";for(let Xe=0;Xe{(we=we||L.length)>L.length&&(we=L.length);let Z=we-1;for(;Z>=0&&128==(192&L[Z]);)Z--;return Z<0||0===Z?we:Z+$n[L[Z]]>we?Z:we}},ur=function li(){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 Bi=Object.prototype.toString,{Z_NO_FLUSH:Ar,Z_SYNC_FLUSH:Wr,Z_FULL_FLUSH:to,Z_FINISH:Br,Z_OK:qi,Z_STREAM_END:di,Z_DEFAULT_COMPRESSION:ns,Z_DEFAULT_STRATEGY:Gr,Z_DEFLATED:$r}=Le;function Kr(L){this.options=bn.assign({level:ns,method:$r,chunkSize:16384,windowBits:15,memLevel:8,strategy:Gr},L||{});let we=this.options;we.raw&&we.windowBits>0?we.windowBits=-we.windowBits:we.gzip&&we.windowBits>0&&we.windowBits<16&&(we.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ur,this.strm.avail_out=0;let Z=$t.deflateInit2(this.strm,we.level,we.method,we.windowBits,we.memLevel,we.strategy);if(Z!==qi)throw new Error(ft[Z]);if(we.header&&$t.deflateSetHeader(this.strm,we.header),we.dictionary){let Xe;if(Xe="string"==typeof we.dictionary?ri.string2buf(we.dictionary):"[object ArrayBuffer]"===Bi.call(we.dictionary)?new Uint8Array(we.dictionary):we.dictionary,Z=$t.deflateSetDictionary(this.strm,Xe),Z!==qi)throw new Error(ft[Z]);this._dict_set=!0}}function Yr(L,we){const Z=new Kr(we);if(Z.push(L,!0),Z.err)throw Z.msg||ft[Z.err];return Z.result}Kr.prototype.push=function(L,we){const Z=this.strm,Xe=this.options.chunkSize;let gt,ht;if(this.ended)return!1;for(ht=we===~~we?we:!0===we?Br:Ar,Z.input="string"==typeof L?ri.string2buf(L):"[object ArrayBuffer]"===Bi.call(L)?new Uint8Array(L):L,Z.next_in=0,Z.avail_in=Z.input.length;;)if(0===Z.avail_out&&(Z.output=new Uint8Array(Xe),Z.next_out=0,Z.avail_out=Xe),(ht===Wr||ht===to)&&Z.avail_out<=6)this.onData(Z.output.subarray(0,Z.next_out)),Z.avail_out=0;else{if(gt=$t.deflate(Z,ht),gt===di)return Z.next_out>0&&this.onData(Z.output.subarray(0,Z.next_out)),gt=$t.deflateEnd(this.strm),this.onEnd(gt),this.ended=!0,gt===qi;if(0!==Z.avail_out){if(ht>0&&Z.next_out>0)this.onData(Z.output.subarray(0,Z.next_out)),Z.avail_out=0;else if(0===Z.avail_in)break}else this.onData(Z.output)}return!0},Kr.prototype.onData=function(L){this.chunks.push(L)},Kr.prototype.onEnd=function(L){L===qi&&(this.result=bn.flattenChunks(this.chunks)),this.chunks=[],this.err=L,this.msg=this.strm.msg};var St={Deflate:Kr,deflate:Yr,deflateRaw:function Zr(L,we){return(we=we||{}).raw=!0,Yr(L,we)},gzip:function Qr(L,we){return(we=we||{}).gzip=!0,Yr(L,we)},constants:Le};const xn=16209;var Er=function(we,Z){let Xe,gt,ht,Kt,Ut,Nn,Pt,Zt,Pi,An,pn,zn,sr,wi,ui,Fi,mi,Sn,Ii,Cr,Pn,zi,vi,si;const gi=we.state;Xe=we.next_in,vi=we.input,gt=Xe+(we.avail_in-5),ht=we.next_out,si=we.output,Kt=ht-(Z-we.avail_out),Ut=ht+(we.avail_out-257),Nn=gi.dmax,Pt=gi.wsize,Zt=gi.whave,Pi=gi.wnext,An=gi.window,pn=gi.hold,zn=gi.bits,sr=gi.lencode,wi=gi.distcode,ui=(1<>>24,pn>>>=Sn,zn-=Sn,Sn=mi>>>16&255,0===Sn)si[ht++]=65535&mi;else{if(!(16&Sn)){if(64&Sn){if(32&Sn){gi.mode=16191;break e}we.msg="invalid literal/length code",gi.mode=xn;break e}mi=sr[(65535&mi)+(pn&(1<>>=Sn,zn-=Sn),zn<15&&(pn+=vi[Xe++]<>>24,pn>>>=Sn,zn-=Sn,Sn=mi>>>16&255,16&Sn){if(Cr=65535&mi,Sn&=15,znNn){we.msg="invalid distance too far back",gi.mode=xn;break e}if(pn>>>=Sn,zn-=Sn,Sn=ht-Kt,Cr>Sn){if(Sn=Cr-Sn,Sn>Zt&&gi.sane){we.msg="invalid distance too far back",gi.mode=xn;break e}if(Pn=0,zi=An,0===Pi){if(Pn+=Pt-Sn,Sn2;)si[ht++]=zi[Pn++],si[ht++]=zi[Pn++],si[ht++]=zi[Pn++],Ii-=3;Ii&&(si[ht++]=zi[Pn++],Ii>1&&(si[ht++]=zi[Pn++]))}else{Pn=ht-Cr;do{si[ht++]=si[Pn++],si[ht++]=si[Pn++],si[ht++]=si[Pn++],Ii-=3}while(Ii>2);Ii&&(si[ht++]=si[Pn++],Ii>1&&(si[ht++]=si[Pn++]))}break}if(64&Sn){we.msg="invalid distance code",gi.mode=xn;break e}mi=wi[(65535&mi)+(pn&(1<>3,Xe-=Ii,zn-=Ii<<3,pn&=(1<{const Nn=Ut.bits;let mi,Sn,Ii,Cr,Pn,vi,Pt=0,Zt=0,Pi=0,An=0,pn=0,zn=0,sr=0,wi=0,ui=0,Fi=0,zi=null;const si=new Uint16Array(16),gi=new Uint16Array(16);let Vi,Jo,_o,ko=null;for(Pt=0;Pt<=15;Pt++)si[Pt]=0;for(Zt=0;Zt=1&&0===si[An];An--);if(pn>An&&(pn=An),0===An)return gt[ht++]=20971520,gt[ht++]=20971520,Ut.bits=1,0;for(Pi=1;Pi0&&(0===L||1!==An))return-1;for(gi[1]=0,Pt=1;Pt<15;Pt++)gi[Pt+1]=gi[Pt]+si[Pt];for(Zt=0;Zt852||2===L&&ui>592)return 1;for(;;){Vi=Pt-sr,Kt[Zt]+1=vi?(Jo=ko[Kt[Zt]-vi],_o=zi[Kt[Zt]-vi]):(Jo=96,_o=0),mi=1<>sr)+Sn]=Vi<<24|Jo<<16|_o}while(0!==Sn);for(mi=1<>=1;if(0!==mi?(Fi&=mi-1,Fi+=mi):Fi=0,Zt++,0==--si[Pt]){if(Pt===An)break;Pt=we[Z+Kt[Zt]]}if(Pt>pn&&(Fi&Cr)!==Ii){for(0===sr&&(sr=pn),Pn+=Pi,zn=Pt-sr,wi=1<852||2===L&&ui>592)return 1;Ii=Fi&Cr,gt[Ii]=pn<<24|zn<<16|Pn-ht}}return 0!==Fi&&(gt[Pn+Fi]=Pt-sr<<24|64<<16),Ut.bits=pn,0};const{Z_FINISH:aa,Z_BLOCK:Us,Z_TREES:Bs,Z_OK:Xr,Z_STREAM_END:To,Z_NEED_DICT:oi,Z_STREAM_ERROR:pi,Z_DATA_ERROR:er,Z_MEM_ERROR:Or,Z_BUF_ERROR:dr,Z_DEFLATED:io}=Le,Ts=16180,Hs=16190,ds=16191,is=16199,Rr=16200,Ki=16209,Pe=L=>(L>>>24&255)+(L>>>8&65280)+((65280&L)<<8)+((255&L)<<24);function oe(){this.strm=null,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 ge=L=>{if(!L)return 1;const we=L.state;return!we||we.strm!==L||we.mode16211?1:0},ot=L=>{if(ge(L))return pi;const we=L.state;return L.total_in=L.total_out=we.total=0,L.msg="",we.wrap&&(L.adler=1&we.wrap),we.mode=Ts,we.last=0,we.havedict=0,we.flags=-1,we.dmax=32768,we.head=null,we.hold=0,we.bits=0,we.lencode=we.lendyn=new Int32Array(852),we.distcode=we.distdyn=new Int32Array(592),we.sane=1,we.back=-1,Xr},Ht=L=>{if(ge(L))return pi;const we=L.state;return we.wsize=0,we.whave=0,we.wnext=0,ot(L)},Qt=(L,we)=>{let Z;if(ge(L))return pi;const Xe=L.state;return we<0?(Z=0,we=-we):(Z=5+(we>>4),we<48&&(we&=15)),we&&(we<8||we>15)?pi:(null!==Xe.window&&Xe.wbits!==we&&(Xe.window=null),Xe.wrap=Z,Xe.wbits=we,Ht(L))},wn=(L,we)=>{if(!L)return pi;const Z=new oe;L.state=Z,Z.strm=L,Z.window=null,Z.mode=Ts;const Xe=Qt(L,we);return Xe!==Xr&&(L.state=null),Xe};let Di,Qn,Si=!0;const Yi=L=>{if(Si){Di=new Int32Array(512),Qn=new Int32Array(32);let we=0;for(;we<144;)L.lens[we++]=8;for(;we<256;)L.lens[we++]=9;for(;we<280;)L.lens[we++]=7;for(;we<288;)L.lens[we++]=8;for(Ps(1,L.lens,0,288,Di,0,L.work,{bits:9}),we=0;we<32;)L.lens[we++]=5;Ps(2,L.lens,0,32,Qn,0,L.work,{bits:5}),Si=!1}L.lencode=Di,L.lenbits=9,L.distcode=Qn,L.distbits=5},Ci=(L,we,Z,Xe)=>{let gt;const ht=L.state;return null===ht.window&&(ht.wsize=1<=ht.wsize?(ht.window.set(we.subarray(Z-ht.wsize,Z),0),ht.wnext=0,ht.whave=ht.wsize):(gt=ht.wsize-ht.wnext,gt>Xe&&(gt=Xe),ht.window.set(we.subarray(Z-Xe,Z-Xe+gt),ht.wnext),(Xe-=gt)?(ht.window.set(we.subarray(Z-Xe,Z),0),ht.wnext=Xe,ht.whave=ht.wsize):(ht.wnext+=gt,ht.wnext===ht.wsize&&(ht.wnext=0),ht.whavewn(L,15),inflateInit2:wn,inflate:(L,we)=>{let Z,Xe,gt,ht,Kt,Ut,Nn,Pt,Zt,Pi,An,pn,zn,sr,ui,Fi,mi,Sn,Ii,Cr,Pn,zi,wi=0;const vi=new Uint8Array(4);let si,gi;const ko=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ge(L)||!L.output||!L.input&&0!==L.avail_in)return pi;Z=L.state,Z.mode===ds&&(Z.mode=16192),Kt=L.next_out,gt=L.output,Nn=L.avail_out,ht=L.next_in,Xe=L.input,Ut=L.avail_in,Pt=Z.hold,Zt=Z.bits,Pi=Ut,An=Nn,zi=Xr;e:for(;;)switch(Z.mode){case Ts:if(0===Z.wrap){Z.mode=16192;break}for(;Zt<16;){if(0===Ut)break e;Ut--,Pt+=Xe[ht++]<>>8&255,Z.check=tt(Z.check,vi,2,0),Pt=0,Zt=0,Z.mode=16181;break}if(Z.head&&(Z.head.done=!1),!(1&Z.wrap)||(((255&Pt)<<8)+(Pt>>8))%31){L.msg="incorrect header check",Z.mode=Ki;break}if((15&Pt)!==io){L.msg="unknown compression method",Z.mode=Ki;break}if(Pt>>>=4,Zt-=4,Pn=8+(15&Pt),0===Z.wbits&&(Z.wbits=Pn),Pn>15||Pn>Z.wbits){L.msg="invalid window size",Z.mode=Ki;break}Z.dmax=1<>8&1),512&Z.flags&&4&Z.wrap&&(vi[0]=255&Pt,vi[1]=Pt>>>8&255,Z.check=tt(Z.check,vi,2,0)),Pt=0,Zt=0,Z.mode=16182;case 16182:for(;Zt<32;){if(0===Ut)break e;Ut--,Pt+=Xe[ht++]<>>8&255,vi[2]=Pt>>>16&255,vi[3]=Pt>>>24&255,Z.check=tt(Z.check,vi,4,0)),Pt=0,Zt=0,Z.mode=16183;case 16183:for(;Zt<16;){if(0===Ut)break e;Ut--,Pt+=Xe[ht++]<>8),512&Z.flags&&4&Z.wrap&&(vi[0]=255&Pt,vi[1]=Pt>>>8&255,Z.check=tt(Z.check,vi,2,0)),Pt=0,Zt=0,Z.mode=16184;case 16184:if(1024&Z.flags){for(;Zt<16;){if(0===Ut)break e;Ut--,Pt+=Xe[ht++]<>>8&255,Z.check=tt(Z.check,vi,2,0)),Pt=0,Zt=0}else Z.head&&(Z.head.extra=null);Z.mode=16185;case 16185:if(1024&Z.flags&&(pn=Z.length,pn>Ut&&(pn=Ut),pn&&(Z.head&&(Pn=Z.head.extra_len-Z.length,Z.head.extra||(Z.head.extra=new Uint8Array(Z.head.extra_len)),Z.head.extra.set(Xe.subarray(ht,ht+pn),Pn)),512&Z.flags&&4&Z.wrap&&(Z.check=tt(Z.check,Xe,pn,ht)),Ut-=pn,ht+=pn,Z.length-=pn),Z.length))break e;Z.length=0,Z.mode=16186;case 16186:if(2048&Z.flags){if(0===Ut)break e;pn=0;do{Pn=Xe[ht+pn++],Z.head&&Pn&&Z.length<65536&&(Z.head.name+=String.fromCharCode(Pn))}while(Pn&&pn>9&1,Z.head.done=!0),L.adler=Z.check=0,Z.mode=ds;break;case 16189:for(;Zt<32;){if(0===Ut)break e;Ut--,Pt+=Xe[ht++]<>>=7&Zt,Zt-=7&Zt,Z.mode=16206;break}for(;Zt<3;){if(0===Ut)break e;Ut--,Pt+=Xe[ht++]<>>=1,Zt-=1,3&Pt){case 0:Z.mode=16193;break;case 1:if(Yi(Z),Z.mode=is,we===Bs){Pt>>>=2,Zt-=2;break e}break;case 2:Z.mode=16196;break;case 3:L.msg="invalid block type",Z.mode=Ki}Pt>>>=2,Zt-=2;break;case 16193:for(Pt>>>=7&Zt,Zt-=7&Zt;Zt<32;){if(0===Ut)break e;Ut--,Pt+=Xe[ht++]<>>16^65535)){L.msg="invalid stored block lengths",Z.mode=Ki;break}if(Z.length=65535&Pt,Pt=0,Zt=0,Z.mode=16194,we===Bs)break e;case 16194:Z.mode=16195;case 16195:if(pn=Z.length,pn){if(pn>Ut&&(pn=Ut),pn>Nn&&(pn=Nn),0===pn)break e;gt.set(Xe.subarray(ht,ht+pn),Kt),Ut-=pn,ht+=pn,Nn-=pn,Kt+=pn,Z.length-=pn;break}Z.mode=ds;break;case 16196:for(;Zt<14;){if(0===Ut)break e;Ut--,Pt+=Xe[ht++]<>>=5,Zt-=5,Z.ndist=1+(31&Pt),Pt>>>=5,Zt-=5,Z.ncode=4+(15&Pt),Pt>>>=4,Zt-=4,Z.nlen>286||Z.ndist>30){L.msg="too many length or distance symbols",Z.mode=Ki;break}Z.have=0,Z.mode=16197;case 16197:for(;Z.have>>=3,Zt-=3}for(;Z.have<19;)Z.lens[ko[Z.have++]]=0;if(Z.lencode=Z.lendyn,Z.lenbits=7,si={bits:Z.lenbits},zi=Ps(0,Z.lens,0,19,Z.lencode,0,Z.work,si),Z.lenbits=si.bits,zi){L.msg="invalid code lengths set",Z.mode=Ki;break}Z.have=0,Z.mode=16198;case 16198:for(;Z.have>>24,Fi=wi>>>16&255,mi=65535&wi,!(ui<=Zt);){if(0===Ut)break e;Ut--,Pt+=Xe[ht++]<>>=ui,Zt-=ui,Z.lens[Z.have++]=mi;else{if(16===mi){for(gi=ui+2;Zt>>=ui,Zt-=ui,0===Z.have){L.msg="invalid bit length repeat",Z.mode=Ki;break}Pn=Z.lens[Z.have-1],pn=3+(3&Pt),Pt>>>=2,Zt-=2}else if(17===mi){for(gi=ui+3;Zt>>=ui,Zt-=ui,Pn=0,pn=3+(7&Pt),Pt>>>=3,Zt-=3}else{for(gi=ui+7;Zt>>=ui,Zt-=ui,Pn=0,pn=11+(127&Pt),Pt>>>=7,Zt-=7}if(Z.have+pn>Z.nlen+Z.ndist){L.msg="invalid bit length repeat",Z.mode=Ki;break}for(;pn--;)Z.lens[Z.have++]=Pn}}if(Z.mode===Ki)break;if(0===Z.lens[256]){L.msg="invalid code -- missing end-of-block",Z.mode=Ki;break}if(Z.lenbits=9,si={bits:Z.lenbits},zi=Ps(1,Z.lens,0,Z.nlen,Z.lencode,0,Z.work,si),Z.lenbits=si.bits,zi){L.msg="invalid literal/lengths set",Z.mode=Ki;break}if(Z.distbits=6,Z.distcode=Z.distdyn,si={bits:Z.distbits},zi=Ps(2,Z.lens,Z.nlen,Z.ndist,Z.distcode,0,Z.work,si),Z.distbits=si.bits,zi){L.msg="invalid distances set",Z.mode=Ki;break}if(Z.mode=is,we===Bs)break e;case is:Z.mode=Rr;case Rr:if(Ut>=6&&Nn>=258){L.next_out=Kt,L.avail_out=Nn,L.next_in=ht,L.avail_in=Ut,Z.hold=Pt,Z.bits=Zt,Er(L,An),Kt=L.next_out,gt=L.output,Nn=L.avail_out,ht=L.next_in,Xe=L.input,Ut=L.avail_in,Pt=Z.hold,Zt=Z.bits,Z.mode===ds&&(Z.back=-1);break}for(Z.back=0;wi=Z.lencode[Pt&(1<>>24,Fi=wi>>>16&255,mi=65535&wi,!(ui<=Zt);){if(0===Ut)break e;Ut--,Pt+=Xe[ht++]<>Sn)],ui=wi>>>24,Fi=wi>>>16&255,mi=65535&wi,!(Sn+ui<=Zt);){if(0===Ut)break e;Ut--,Pt+=Xe[ht++]<>>=Sn,Zt-=Sn,Z.back+=Sn}if(Pt>>>=ui,Zt-=ui,Z.back+=ui,Z.length=mi,0===Fi){Z.mode=16205;break}if(32&Fi){Z.back=-1,Z.mode=ds;break}if(64&Fi){L.msg="invalid literal/length code",Z.mode=Ki;break}Z.extra=15&Fi,Z.mode=16201;case 16201:if(Z.extra){for(gi=Z.extra;Zt>>=Z.extra,Zt-=Z.extra,Z.back+=Z.extra}Z.was=Z.length,Z.mode=16202;case 16202:for(;wi=Z.distcode[Pt&(1<>>24,Fi=wi>>>16&255,mi=65535&wi,!(ui<=Zt);){if(0===Ut)break e;Ut--,Pt+=Xe[ht++]<>Sn)],ui=wi>>>24,Fi=wi>>>16&255,mi=65535&wi,!(Sn+ui<=Zt);){if(0===Ut)break e;Ut--,Pt+=Xe[ht++]<>>=Sn,Zt-=Sn,Z.back+=Sn}if(Pt>>>=ui,Zt-=ui,Z.back+=ui,64&Fi){L.msg="invalid distance code",Z.mode=Ki;break}Z.offset=mi,Z.extra=15&Fi,Z.mode=16203;case 16203:if(Z.extra){for(gi=Z.extra;Zt>>=Z.extra,Zt-=Z.extra,Z.back+=Z.extra}if(Z.offset>Z.dmax){L.msg="invalid distance too far back",Z.mode=Ki;break}Z.mode=16204;case 16204:if(0===Nn)break e;if(pn=An-Nn,Z.offset>pn){if(pn=Z.offset-pn,pn>Z.whave&&Z.sane){L.msg="invalid distance too far back",Z.mode=Ki;break}pn>Z.wnext?(pn-=Z.wnext,zn=Z.wsize-pn):zn=Z.wnext-pn,pn>Z.length&&(pn=Z.length),sr=Z.window}else sr=gt,zn=Kt-Z.offset,pn=Z.length;pn>Nn&&(pn=Nn),Nn-=pn,Z.length-=pn;do{gt[Kt++]=sr[zn++]}while(--pn);0===Z.length&&(Z.mode=Rr);break;case 16205:if(0===Nn)break e;gt[Kt++]=Z.length,Nn--,Z.mode=Rr;break;case 16206:if(Z.wrap){for(;Zt<32;){if(0===Ut)break e;Ut--,Pt|=Xe[ht++]<{if(ge(L))return pi;let we=L.state;return we.window&&(we.window=null),L.state=null,Xr},inflateGetHeader:(L,we)=>{if(ge(L))return pi;const Z=L.state;return 2&Z.wrap?(Z.head=we,we.done=!1,Xr):pi},inflateSetDictionary:(L,we)=>{const Z=we.length;let Xe,gt,ht;return ge(L)||(Xe=L.state,0!==Xe.wrap&&Xe.mode!==Hs)?pi:Xe.mode===Hs&&(gt=1,gt=_e(gt,we,Z,0),gt!==Xe.check)?er:(ht=Ci(L,we,Z,Z),ht?(Xe.mode=16210,Or):(Xe.havedict=1,Xr))},inflateInfo:"pako inflate (from Nodeca project)"},Gs=function Yo(){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 Qi=Object.prototype.toString,{Z_NO_FLUSH:Ao,Z_FINISH:Ks,Z_OK:Pr,Z_STREAM_END:Ys,Z_NEED_DICT:Zo,Z_STREAM_ERROR:Os,Z_DATA_ERROR:fo,Z_MEM_ERROR:Rs}=Le;function Kn(L){this.options=bn.assign({chunkSize:65536,windowBits:15,to:""},L||{});const we=this.options;we.raw&&we.windowBits>=0&&we.windowBits<16&&(we.windowBits=-we.windowBits,0===we.windowBits&&(we.windowBits=-15)),we.windowBits>=0&&we.windowBits<16&&!(L&&L.windowBits)&&(we.windowBits+=32),we.windowBits>15&&we.windowBits<48&&(15&we.windowBits||(we.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ur,this.strm.avail_out=0;let Z=Nr.inflateInit2(this.strm,we.windowBits);if(Z!==Pr)throw new Error(ft[Z]);if(this.header=new Gs,Nr.inflateGetHeader(this.strm,this.header),we.dictionary&&("string"==typeof we.dictionary?we.dictionary=ri.string2buf(we.dictionary):"[object ArrayBuffer]"===Qi.call(we.dictionary)&&(we.dictionary=new Uint8Array(we.dictionary)),we.raw&&(Z=Nr.inflateSetDictionary(this.strm,we.dictionary),Z!==Pr)))throw new Error(ft[Z])}function mo(L,we){const Z=new Kn(we);if(Z.push(L),Z.err)throw Z.msg||ft[Z.err];return Z.result}Kn.prototype.push=function(L,we){const Z=this.strm,Xe=this.options.chunkSize,gt=this.options.dictionary;let ht,Kt,Ut;if(this.ended)return!1;for(Kt=we===~~we?we:!0===we?Ks:Ao,Z.input="[object ArrayBuffer]"===Qi.call(L)?new Uint8Array(L):L,Z.next_in=0,Z.avail_in=Z.input.length;;){for(0===Z.avail_out&&(Z.output=new Uint8Array(Xe),Z.next_out=0,Z.avail_out=Xe),ht=Nr.inflate(Z,Kt),ht===Zo&>&&(ht=Nr.inflateSetDictionary(Z,gt),ht===Pr?ht=Nr.inflate(Z,Kt):ht===fo&&(ht=Zo));Z.avail_in>0&&ht===Ys&&Z.state.wrap>0&&0!==L[Z.next_in];)Nr.inflateReset(Z),ht=Nr.inflate(Z,Kt);switch(ht){case Os:case fo:case Zo:case Rs:return this.onEnd(ht),this.ended=!0,!1}if(Ut=Z.avail_out,Z.next_out&&(0===Z.avail_out||ht===Ys))if("string"===this.options.to){let Nn=ri.utf8border(Z.output,Z.next_out),Pt=Z.next_out-Nn,Zt=ri.buf2string(Z.output,Nn);Z.next_out=Pt,Z.avail_out=Xe-Pt,Pt&&Z.output.set(Z.output.subarray(Nn,Nn+Pt),0),this.onData(Zt)}else this.onData(Z.output.length===Z.next_out?Z.output:Z.output.subarray(0,Z.next_out));if(ht!==Pr||0!==Ut){if(ht===Ys)return ht=Nr.inflateEnd(this.strm),this.onEnd(ht),this.ended=!0,!0;if(0===Z.avail_in)break}}return!0},Kn.prototype.onData=function(L){this.chunks.push(L)},Kn.prototype.onEnd=function(L){L===Pr&&(this.result="string"===this.options.to?this.chunks.join(""):bn.flattenChunks(this.chunks)),this.chunks=[],this.err=L,this.msg=this.strm.msg};var yr={Inflate:Kn,inflate:mo,inflateRaw:function po(L,we){return(we=we||{}).raw=!0,mo(L,we)},ungzip:mo,constants:Le};const{Deflate:hr,deflate:da,deflateRaw:Zs,gzip:Xo}=St,{Inflate:ss,inflate:ha,inflateRaw:Cl,ungzip:wl}=yr;var z=hr,re=da,X=Zs,se=Xo,Me=ss,ze=ha,yt=Cl,Yt=wl,zt=Le,Mn={Deflate:hr,deflate:da,deflateRaw:Zs,gzip:Xo,Inflate:ss,inflate:ha,inflateRaw:Cl,ungzip:wl,constants:Le}},467:(Te,ne,g)=>{"use strict";function t(C,E,u,b,s,f,d){try{var l=C[f](d),c=l.value}catch(o){return void u(o)}l.done?E(c):Promise.resolve(c).then(b,s)}function _(C){return function(){var E=this,u=arguments;return new Promise(function(b,s){var f=C.apply(E,u);function d(c){t(f,b,s,d,l,"next",c)}function l(c){t(f,b,s,d,l,"throw",c)}d(void 0)})}}g.d(ne,{A:()=>_})},3380:Te=>{"use strict";Te.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",1e-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 6.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, and 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.00000000000001,[-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.00009999999999999999,[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.000016387064000000006,[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.0023597372160000006,[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.0037854117840000014,[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.15898729492800007,[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.0009463529460000004,[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.0004731764730000002,[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.00011829411825000005,[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.00002957352956250001,[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.0000036966911953125014,[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.161151992187503e-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.035239070166880014,[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.004404883770860002,[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.008809767541720004,[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.0011012209427150004,[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.0005506104713575002,[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.000014786764781250006,[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.000004928921593750002,[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.0002365882365000001,[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.019999999999999997,[-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.000019999999999999998,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 firewood","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",1.0000000000000001e-28,[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",98066500,[-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)","1/(12.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]","1/[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]","1/[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]","1/[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]","1/[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","1/(10*10)","",1e-10,[0,0,0,0,0,0,0],"/1010",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","1/(10*12)","",1e-12,[0,0,0,0,0,0,0],"/1012",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","1/(10*3)","",0.001,[0,0,0,0,0,0,0],"/103",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","1/(10*6)","",0.000001,[0,0,0,0,0,0,0],"/106",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","1/(10*9)","",1e-9,[0,0,0,0,0,0,0],"/109",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","1/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}","1/100","",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}","1/100","",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}","1/100","",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}","1/100","",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","1/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]","1/CM[H2O]","",0.000010197162129779282,[1,2,-1,0,0,0,0],"/cm\xa0HO2",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","1/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","1/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","1/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","1/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","1/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","1/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","1/M2","",1,[-2,0,0,0,0,0,0],"/m2",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","1/M3","",1,[-3,0,0,0,0,0,0],"/m3",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","1/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","1/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","1/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","1/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","1/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","1/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","1/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","1/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","1/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]/(2.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]/(24.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}","{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}","{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}","{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}","{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)/(24.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)","(10.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","(10.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)","((10.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","24.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],[false,"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],[false,"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],[false,"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],[false,"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.0000000000000002,[-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.000001,[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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"gram per 100 gram","g/(100.g)","G/(100.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],[false,"gram per 12 hour","g/(12.h)","G/(12.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],[false,"gram per 24 hour","g/(24.h)","G/(24.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],[false,"gram per 3 days","g/(3.d)","G/(3.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],[false,"gram per 4 hour","g/(4.h)","G/(4.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],[false,"gram per 48 hour","g/(48.h)","G/(48.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],[false,"gram per 5 hour","g/(5.h)","G/(5.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],[false,"gram per 6 hour","g/(6.h)","G/(6.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],[false,"gram per 72 hour","g/(72.h)","G/(72.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"gram per kilogram per 8 hour ","g/kg/(8.h)","(G/KG)/(8.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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/(24.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)/(24.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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/(24.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/(8.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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/(2.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/(24.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/(8.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],[false,"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],[false,"milligram per 10 hour","mg/(10.h)","MG/(10.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],[false,"milligram per 12 hour","mg/(12.h)","MG/(12.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],[false,"milligram per 2 hour","mg/(2.h)","MG/(2.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],[false,"milligram per 24 hour","mg/(24.h)","MG/(24.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],[false,"milligram per 6 hour","mg/(6.h)","MG/(6.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],[false,"milligram per 72 hour","mg/(72.h)","MG/(72.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],[false,"milligram per 8 hour","mg/(8.h)","MG/(8.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"milligram per kilogram per 8 hour","mg/kg/(8.h)","(MG/KG)/(8.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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/(10.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/(12.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/(2.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/(24.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/(4.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/(5.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/(6.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/(72.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/(8.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/(8.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)/(8.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],[false,"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],[false,"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],[false,"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],[false,"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/(12.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/(2.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/(24.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/(5.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/(6.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/(8.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)/(8.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],[false,"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],[false,"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],[false,"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],[false,"nanogram per 24 hour","ng/(24.h)","NG/(24.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],[false,"nanogram per 8 hour","ng/(8.h)","NG/(8.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"nanogram per kilogram per 8 hour","ng/kg/(8.h)","(NG/KG)/(8.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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/(24.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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/(24.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],[false,"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/(12.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/(2.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/(24.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/10","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],[false,"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],[false,"microgram per 100 gram","ug/(100.g)","UG/(100.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],[false,"microgram per 24 hour","ug/(24.h)","UG/(24.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],[false,"microgram per 8 hour","ug/(8.h)","UG/(8.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"microgram per kilogram per 8 hour","ug/kg/(8.h)","(UG/KG)/(8.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"microgram per liter per 24 hour","ug/L/(24.h)","(UG/L)/(24.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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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],[false,"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/(2.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],[false,"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],[false,"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/(2.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/(24.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/(8.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],[false,"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]]}}')},9852:Te=>{"use strict";Te.exports=JSON.parse('{"name":"fhirpath","version":"3.11.0","description":"A FHIRPath engine","main":"src/fhirpath.js","dependencies":{"@lhncbc/ucum-lhc":"^5.0.0","antlr4":"~4.9.3","commander":"^2.18.0","date-fns":"^1.30.1","js-yaml":"^3.13.1"},"devDependencies":{"@babel/core":"^7.21.4","@babel/eslint-parser":"^7.17.0","@babel/preset-env":"^7.16.11","babel-loader":"^8.2.3","benny":"^3.7.1","bestzip":"^2.2.0","copy-webpack-plugin":"^6.0.3","cypress":"^10.3.0","eslint":"^8.10.0","fhir":"^4.10.3","grunt":"^1.5.2","grunt-cli":"^1.4.3","grunt-text-replace":"^0.4.0","jasmine-spec-reporter":"^4.2.1","jest":"^27.3.1","jit-grunt":"^0.10.0","lodash":"^4.17.21","open":"^8.4.0","rimraf":"^3.0.0","tmp":"0.0.33","webpack":"^5.11.1","webpack-bundle-analyzer":"^4.4.2","webpack-cli":"^4.9.1","xml2js":"^0.5.0","yargs":"^15.1.0"},"engines":{"node":">=8.9.0"},"scripts":{"generateParser":"cd src/parser; rimraf ./generated/*; java -Xmx500M -cp \\"../../antlr-4.9.3-complete.jar:$CLASSPATH\\" org.antlr.v4.Tool -o generated -Dlanguage=JavaScript FHIRPath.g4; grunt updateParserRequirements","build":"cd browser-build && webpack && rimraf fhirpath.zip && bestzip fhirpath.zip LICENSE.md fhirpath.min.js fhirpath.r5.min.js fhirpath.r4.min.js fhirpath.stu3.min.js fhirpath.dstu2.min.js && rimraf LICENSE.md","test:unit":"node --use_strict node_modules/.bin/jest && TZ=America/New_York node --use_strict node_modules/.bin/jest && TZ=Europe/Paris node --use_strict node_modules/.bin/jest","test:unit:debug":"echo \'open chrome chrome://inspect/\' && node --inspect node_modules/.bin/jest --runInBand","build:demo":"npm run build && cd demo && npm run build","test:e2e":"npm run build:demo && cypress run","test":"npm run lint && npm run test:unit && npm run test:e2e && echo \\"For tests specific to IE 11, open browser-build/test/index.html in IE 11, and confirm that the tests on that page pass.\\"","lint":"eslint src/parser/index.js src/*.js converter/","compare-performance":"node ./test/benchmark.js"},"bin":{"fhirpath":"bin/fhirpath"},"repository":"github:HL7/fhirpath.js","license":"SEE LICENSE in LICENSE.md"}')},8330:Te=>{"use strict";Te.exports=JSON.parse('{"name":"matchbox","version":"3.8.2","license":"MIT","scripts":{"ng":"ng","start":"ng serve","build":"ng build --configuration production","build-matchbox":"ng build --configuration production --output-path ../matchbox-server/src/main/resources/static","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-devkit/build-angular":"^17.3.0","@angular/animations":"^17.3.0","@angular/cdk":"^17.3.0","@angular/common":"^17.3.0","@angular/core":"^17.3.0","@angular/forms":"^17.3.0","@angular/material":"^17.3.0","@angular/platform-browser":"^17.3.0","@angular/platform-browser-dynamic":"^17.3.0","@angular/router":"^17.3.0","@ngx-translate/core":"^15.0.0","@ngx-translate/http-loader":"^8.0.0","ace-builds":"^1.32.7","angular-oauth2-oidc":"^17.0.1","browserify-zlib":"^0.2.0","debug":"^4.3.1","fhir-kit-client":"1.9.2","fhirpath":"^3.10.4","highlightjs-line-numbers.js":"^2.8.0","js-untar":"^2.0.0","ngx-highlightjs":"^10.0.0","ngx-mat-select-search":"^7.0.5","pako":"^2.1.0","rxjs":"^7.8.1","tslib":"^2.6.1","zone.js":"^0.14.4"},"devDependencies":{"@angular-eslint/builder":"^17.3.0","@angular-eslint/eslint-plugin":"^17.3.0","@angular-eslint/eslint-plugin-template":"^17.3.0","@angular-eslint/schematics":"^17.3.0","@angular-eslint/template-parser":"^17.3.0","@angular/cli":"^17.3.0","@angular/compiler":"^17.3.0","@angular/compiler-cli":"^17.3.0","@angular/language-service":"^17.3.0","@types/debug":"^4.1.12","@types/jasmine":"^5.1.4","@types/node":"^20.11.30","@types/pako":"^2.0.3","@typescript-eslint/eslint-plugin":"^7.3.1","@typescript-eslint/parser":"^7.3.1","eslint":"^8.57.0","husky":"^9.0.11","jasmine":"^5.1.0","jasmine-core":"^5.1.2","jasmine-spec-reporter":"^7.0.0","json-patch":"^0.7.0","karma":"^6.4.3","karma-chrome-launcher":"^3.2.0","karma-cli":"~2.0.0","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"^5.1.0","karma-jasmine-html-reporter":"^2.1.0","prettier":"^3.2.5","pretty-quick":"^4.0.0","ts-node":"^10.9.2","tslint":"~6.1.0","typescript":"^5.4.2"},"browser":{"fs":false,"os":false,"path":false,"zlib":false},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}}}')}},Te=>{Te(Te.s=4429)}]); \ No newline at end of file