diff --git a/docs/changelog.md b/docs/changelog.md index 3695c6139c..4b5f6959f2 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,4 +1,4 @@ -Unreleased +2024/12/09 Release 3.9.9 - Upgrade org.hl7.fhir.core to 6.4.4 and hapi-fhir to 7.6.0 - Remove the `devMode` configuration parameter, it is now enabled when `httpReadOnly` is not [#315](https://github.com/ahdis/matchbox/issues/315) diff --git a/matchbox-engine/pom.xml b/matchbox-engine/pom.xml index 46b9279a98..6dfd9b272f 100644 --- a/matchbox-engine/pom.xml +++ b/matchbox-engine/pom.xml @@ -6,7 +6,7 @@ matchbox health.matchbox - 3.9.8 + 3.9.9 matchbox-engine diff --git a/matchbox-frontend/package-lock.json b/matchbox-frontend/package-lock.json index 985bc429a3..1e70f56161 100644 --- a/matchbox-frontend/package-lock.json +++ b/matchbox-frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "matchbox", - "version": "3.9.8", + "version": "3.9.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "matchbox", - "version": "3.9.8", + "version": "3.9.9", "license": "MIT", "dependencies": { "@ngx-translate/core": "^16.0.3", diff --git a/matchbox-frontend/package.json b/matchbox-frontend/package.json index c5db2636b1..5147e78b60 100644 --- a/matchbox-frontend/package.json +++ b/matchbox-frontend/package.json @@ -1,6 +1,6 @@ { "name": "matchbox", - "version": "3.9.8", + "version": "3.9.9", "license": "MIT", "scripts": { "ng": "ng", diff --git a/matchbox-server/pom.xml b/matchbox-server/pom.xml index 3e3e028d52..b8a1be7c3d 100644 --- a/matchbox-server/pom.xml +++ b/matchbox-server/pom.xml @@ -5,7 +5,7 @@ matchbox health.matchbox - 3.9.8 + 3.9.9 matchbox-server diff --git a/matchbox-server/src/main/resources/static/browser/index.html b/matchbox-server/src/main/resources/static/browser/index.html index ca80d9e0d2..4dd64f9617 100644 --- a/matchbox-server/src/main/resources/static/browser/index.html +++ b/matchbox-server/src/main/resources/static/browser/index.html @@ -15,5 +15,5 @@ - + diff --git a/matchbox-server/src/main/resources/static/browser/main-LNY5R4FB.js b/matchbox-server/src/main/resources/static/browser/main-ZMAS7DVF.js similarity index 94% rename from matchbox-server/src/main/resources/static/browser/main-LNY5R4FB.js rename to matchbox-server/src/main/resources/static/browser/main-ZMAS7DVF.js index 8ac19efa1e..3086924733 100644 --- a/matchbox-server/src/main/resources/static/browser/main-LNY5R4FB.js +++ b/matchbox-server/src/main/resources/static/browser/main-ZMAS7DVF.js @@ -1056,7 +1056,7 @@ note that N.m is the standard unit of measurement for torque (although dimension `+this.vcMsgStart_+i.csCode_+this.vcMsgEnd_,a=!1;for(let c=0;c"+C+"",csCode_:w+C,ciCode_:g+C,printSymbol_:v+""+C+""})}}else if(i=null,this.suggestions_){let h=this._getSuggestions(r)}else this.retMsg_.push(`${r} is not a valid UCUM code.`)}}}return[i,e]}_getUnitWithAnnotation(t,e){let i=null,r=this._getAnnoText(t,e),s=r[0],a=r[1],o=r[2];this.bracesMsg_&&this.retMsg_.indexOf(this.bracesMsg_)===-1&&this.retMsg_.push(this.bracesMsg_);let l=this.retMsg_.length;if(!a&&!o){let c="["+s.substring(1,s.length-1)+"]",u=this._makeUnit(c,e);u[0]?(i=t,this.retMsg_.push(`${s} is a valid unit expression, but did you mean ${c} (${u[0].name_})?`)):this.retMsg_.length>l&&this.retMsg_.pop(),i=new yl({csCode_:s,ciCode_:s,magnitude_:1,name_:s})}else if(a&&!o)if(zi.isIntegerUnit(a))i=a;else{let c=this._makeUnit(a,e);c[0]?(i=c[0],i.csCode_+=s,e=c[1]):this.retMsg_.push(`Unable to find a unit for ${a} that precedes the annotation ${s}.`)}else if(!a&&o)if(zi.isIntegerUnit(o))i=o+s,this.retMsg_.push(`The annotation ${s} before the ``${o} is invalid.\n`+this.vcMsgStart_+i+this.vcMsgEnd_);else{let c=this._makeUnit(o,e);c[0]?(i=c[0],i.csCode_+=s,e=i.csCode_,this.retMsg_.push(`The annotation ${s} before the unit code is invalid. `+this.vcMsgStart_+i.csCode_+this.vcMsgEnd_)):this.retMsg_.push(`Unable to find a unit for ${a} that follows the annotation ${s}.`)}else this.retMsg_.push(`Unable to find a unit for ${a}${s}${o}. We are not sure how to interpret text both before and after the annotation. Sorry`);return[i,e]}_performUnitArithmetic(t,e){let i=t[0].un;zi.isIntegerUnit(i)&&(i=new yl({csCode_:i,ciCode_:i,magnitude_:Number(i),name_:i}));let r=t.length,s=!1;for(let a=1;a{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.UcumLhcUtils=void 0;var hB=IE(),LE=mB(Mf());function OE(){if(typeof WeakMap!="function")return null;var n=new WeakMap;return OE=function(){return n},n}function mB(n){if(n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=OE();if(t&&t.has(n))return t.get(n);var e={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var s=i?Object.getOwnPropertyDescriptor(n,r):null;s&&(s.get||s.set)?Object.defineProperty(e,r,s):e[r]=n[r]}return e.default=n,t&&t.set(n,e),e}var fB=Zs().Ucum,Lf=Ka().UnitTables,pB=RE().UnitString,Au=class{constructor(){Lf.getInstance().unitsCount()===0&&hB.ucumJsonDefs.loadJsonDefs(),this.uStrParser_=pB.getInstance()}useHTMLInMessages(t){t===void 0&&(t=!0),this.uStrParser_.useHTMLInMessages(t)}useBraceMsgForEachString(t){t===void 0&&(t=!0),this.uStrParser_.useBraceMsgForEachString(t)}validateUnitString(t,e,i){e===void 0&&(e=!1),i===void 0&&(i="validate");let r=this.getSpecifiedUnit(t,i,e),s=r.unit,a=s?{ucumCode:r.origString,unit:{code:s.csCode_,name:s.name_,guidance:s.guidance_}}:{ucumCode:null};return a.status=r.status,r.suggestions&&(a.suggestions=r.suggestions),a.msg=r.retMsg,a}convertUnitTo(t,e,i,r,s){r===void 0&&(r=!1),s===void 0&&(s=null);let a={status:"failed",toVal:null,msg:[]};if(t&&(t=t.trim()),(!t||t=="")&&(a.status="error",a.msg.push('No "from" unit expression specified.')),this._checkFromVal(e,a),i&&(i=i.trim()),(!i||i=="")&&(a.status="error",a.msg.push('No "to" unit expression specified.')),a.status!=="error")try{let o=null,l=this.getSpecifiedUnit(t,"convert",r);o=l.unit,l.retMsg&&(a.msg=a.msg.concat(l.retMsg)),l.suggestions&&(a.suggestions={},a.suggestions.from=l.suggestions),o||a.msg.push(`Unable to find a unit for ${t}, so no conversion could be performed.`);let c=null;if(l=this.getSpecifiedUnit(i,"convert",r),c=l.unit,l.retMsg&&(a.msg=a.msg.concat(l.retMsg)),l.suggestions&&(a.suggestions||(a.suggestions={}),a.suggestions.to=l.suggestions),c||a.msg.push(`Unable to find a unit for ${i}, so no conversion could be performed.`),o&&c)try{if(!s)a.toVal=c.convertFrom(e,o);else{if(o.moleExp_!==0&&c.moleExp_!==0)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(o.moleExp_===0&&c.moleExp_===0)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(!o.isMoleMassCommensurable(c))throw new Error(`Sorry. ${t} cannot be converted to ${i}.`);o.moleExp_!==0?a.toVal=o.convertMolToMass(e,c,s):a.toVal=o.convertMassToMol(e,c,s)}a.status="succeeded",a.fromUnit=o,a.toUnit=c}catch(u){a.status="failed",a.msg.push(u.message)}}catch(o){o.message==fB.needMoleWeightMsg_?a.status="failed":a.status="error",a.msg.push(o.message)}return a}convertToBaseUnits(t,e){let i={};if(this._checkFromVal(e,i),!i.status){let r=this.getSpecifiedUnit(t,"validate");i={status:r.status=="valid"?"succeeded":r.status};let s=r.unit;if(i.msg=r.retMsg||[],!s)r.retMsg?.length==0&&i.msg.push("Could not find unit information for "+t);else if(s.isArbitrary_)i.msg.push("Arbitrary units cannot be converted to base units or other units."),i.status="failed";else if(i.status=="succeeded"){let a={},o=s.dim_?.dimVec_,l="1";if(o){let d=Lf.getInstance().dimVecIndexToBaseUnit_;for(let h=0,m=o.length;h0&&(e=r.retMsg),!s)e.push(`Could not find unit ${t}.`);else{let a=null,o=s.getProperty("dim_");if(!o)e.push("No commensurable units were found for "+t);else{try{a=o.getProperty("dimVec_")}catch(l){e.push(l.message),l.message==="Dimension does not have requested property(dimVec_)"&&(a=null)}a&&(i=Lf.getInstance().getUnitsByDimension(a))}}return[i,e]}};Of.UcumLhcUtils=Au;Au.getInstance=function(){return new Au}});var Nf=Z(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.UnitTables=Xs.UcumLhcUtils=Xs.Ucum=void 0;var gB=Zs().Ucum;Xs.Ucum=gB;var _B=NE().UcumLhcUtils;Xs.UcumLhcUtils=_B;var vB=Ka().UnitTables;Xs.UnitTables=vB});var Pf=Z((Nie,VE)=>{var Ff={};function FE(n){let t=""+ +n,e=/(\d+)(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/.exec(t);if(!e)return 0;let i=e[2],r=e[3];return Math.max(0,(i==="0"?0:(i||"").length)-(r||0))}function PE(n,t){let e=Math.pow(10,t);return Math.round(n*e)/e}var UE=1e-8,$E=Ff.roundToMaxPrecision=function(n){return Math.round(n/UE)*UE};Ff.isEquivalent=function(n,t){if(Number.isInteger(n)&&Number.isInteger(t))return n===t;let e=Math.min(FE(n),FE(t));return e===0?Math.round(n)===Math.round(t):PE(n,e)===PE(t,e)};Ff.isEqual=function(n,t){return $E(n)===$E(t)};VE.exports=Ff});var zE=Z((Fie,BE)=>{var bB=Tu();function yB(n){var t=bB(n),e=t.getFullYear(),i=t.getMonth(),r=new Date(0);return r.setFullYear(e,i+1,0),r.setHours(0,0,0,0),r.getDate()}BE.exports=yB});var qb=Z((Pie,HE)=>{var CB=Tu(),wB=zE();function xB(n,t){var e=CB(n),i=Number(t),r=e.getMonth()+i,s=new Date(0);s.setFullYear(e.getFullYear(),r,1),s.setHours(0,0,0,0);var a=wB(s);return e.setMonth(r,Math.min(a,e.getDate())),e}HE.exports=xB});var WE=Z((Uie,jE)=>{var SB=qb();function kB(n,t){var e=Number(t);return SB(n,e*12)}jE.exports=kB});var Gb=Z(($ie,qE)=>{var MB=Tu();function TB(n,t){var e=MB(n),i=Number(t);return e.setDate(e.getDate()+i),e}qE.exports=TB});var KE=Z((Vie,GE)=>{var EB=Gb();function IB(n,t){var e=Number(t),i=e*7;return EB(n,i)}GE.exports=IB});var QE=Z((Bie,YE)=>{var AB=Eu(),DB=36e5;function RB(n,t){var e=Number(t);return AB(n,e*DB)}YE.exports=RB});var XE=Z((zie,ZE)=>{var LB=Eu();function OB(n,t){var e=Number(t);return LB(n,e*1e3)}ZE.exports=OB});var Ar=Z((Hie,r2)=>{var NB=Lb(),cs=Nf().UcumLhcUtils.getInstance(),Du=Pf(),FB="http://unitsofmeasure.org",JE="[0-9][0-9](\\:[0-9][0-9](\\:[0-9][0-9](\\.[0-9]+)?)?)?(Z|(\\+|-)[0-9][0-9]\\:[0-9][0-9])?",e2=new RegExp("^T?"+JE+"$"),t2=new RegExp("^[0-9][0-9][0-9][0-9](-[0-9][0-9](-[0-9][0-9](T"+JE+")?)?)?Z?$"),PB=new RegExp("^[0-9][0-9][0-9][0-9](-[0-9][0-9](-[0-9][0-9])?)?$"),UB=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]))))$"),Lu=class{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}},yt=class n extends Lu{constructor(t,e){super(),this.asStr=t+" "+e,this.value=t,this.unit=e}equals(t){if(!(t instanceof this.constructor))return!1;let e=n._calendarDuration2Seconds[this.unit],i=n._calendarDuration2Seconds[t.unit];if(!e!=!i&&(e>1||i>1))return null;if(this.unit===t.unit)return Du.isEqual(this.value,t.value);let r=this._compareYearsAndMonths(t);if(r)return r.isEqual;let s=n.toUcumQuantity(this.value,this.unit),a=n.toUcumQuantity(t.value,t.unit),o=cs.convertUnitTo(a.unit,a.value,s.unit);return o.status!=="succeeded"?!1:Du.isEqual(s.value,o.toVal)}equivalentTo(t){if(!(t instanceof this.constructor))return!1;if(this.unit===t.unit)return Du.isEquivalent(this.value,t.value);let e=n.getEquivalentUcumUnitCode(this.unit),i=n.getEquivalentUcumUnitCode(t.unit),r=cs.convertUnitTo(i,t.value,e);return r.status!=="succeeded"?!1:Du.isEquivalent(this.value,r.toVal)}compare(t){if(this.unit===t.unit)return this.value-t.value;let e=n._calendarDuration2Seconds[this.unit],i=n._calendarDuration2Seconds[t.unit];if(!e!=!i&&(e>1||i>1))return null;let r=n.getEquivalentUcumUnitCode(this.unit),s=n.getEquivalentUcumUnitCode(t.unit),a=cs.convertUnitTo(s,t.value,r);return a.status!=="succeeded"?null:this.value-a.toVal}plus(t){let e=n._yearMonthConversionFactor[this.unit],i=n._yearMonthConversionFactor[t.unit];if(e&&i)return new n(this.value+t.value*i/e,this.unit);let r=n._calendarDuration2Seconds[this.unit],s=n._calendarDuration2Seconds[t.unit];if(!r!=!s&&(r>1||s>1))return null;let a=r?"s":this.unit.replace(Ru,""),o=(r||1)*this.value,l=s?"s":t.unit.replace(Ru,""),c=(s||1)*t.value,u=cs.convertUnitTo(l,c,a);return u.status!=="succeeded"||u.fromUnit.isSpecial_||u.toUnit.isSpecial_?null:new n(o+u.toVal,a)}mul(t){let e=n._calendarDuration2Seconds[this.unit],i=n._calendarDuration2Seconds[t.unit];if(e>1&&t.unit!=="'1'"||i>1&&this.unit!=="'1'")return null;let r=this.convToUcumUnits(this,e);if(!r)return null;let s=this.convToUcumUnits(t,i);return s?this.unit==="'1'"?new n(this.value*t.value,t.unit):t.unit==="'1'"?new n(this.value*t.value,this.unit):new n(r.value*s.value,`'(${r.unit}).(${s.unit})'`):null}div(t){if(t.value===0)return null;let e=n._calendarDuration2Seconds[this.unit],i=n._calendarDuration2Seconds[t.unit];if(e)if(i){let l=n._yearMonthConversionFactor[this.unit],c=n._yearMonthConversionFactor[t.unit];if(l&&c)return new n(this.value*l/(t.value*c),"'1'")}else{if(t.unit==="'1'")return new n(this.value/t.value,this.unit);if(e>1)return null}else if(i>1)return null;let r=this.convToUcumUnits(this,e);if(!r)return null;let s=this.convToUcumUnits(t,i);if(!s)return null;let a=s.unit==="1"?r.unit:`(${r.unit})/(${s.unit})`,o=cs.convertToBaseUnits(a,r.value/s.value);return o.status!=="succeeded"?null:new n(o.magnitude,`'${Object.keys(o.unitToExp).map(l=>l+o.unitToExp[l]).join(".")||"1"}'`)}convToUcumUnits(t,e){if(e)return{value:e*t.value,unit:"s"};{let i=t.unit.replace(Ru,""),r=cs.convertToBaseUnits(i,t.value);return r.status!=="succeeded"||r.fromUnitIsSpecial?null:{value:r.magnitude,unit:Object.keys(r.unitToExp).map(s=>s+r.unitToExp[s]).join(".")||"1"}}}_compareYearsAndMonths(t){let e=n._yearMonthConversionFactor[this.unit],i=n._yearMonthConversionFactor[t.unit];return e&&i?{isEqual:Du.isEqual(this.value*e,t.value*i)}:null}},Ru=/^'|'$/g;yt.getEquivalentUcumUnitCode=function(n){return yt.mapTimeUnitsToUCUMCode[n]||n.replace(Ru,"")};yt.toUcumQuantity=function(n,t){let e=yt._calendarDuration2Seconds[t];return e?{value:e*n,unit:"s"}:{value:n,unit:t.replace(Ru,"")}};yt.convUnitTo=function(n,t,e){let i=yt._yearMonthConversionFactor[n],r=yt._yearMonthConversionFactor[e];if(i&&r)return new yt(i*t/r,e);let s=yt._calendarDuration2Seconds[n],a=yt._calendarDuration2Seconds[e];if(a){if(s)return new yt(s*t/a,e);{let o=cs.convertUnitTo(n.replace(/^'|'$/g,""),t,"s");if(o.status==="succeeded")return new yt(o.toVal/a,e)}}else{let o=s?cs.convertUnitTo("s",s*t,e.replace(/^'|'$/g,"")):cs.convertUnitTo(n.replace(/^'|'$/g,""),t,e.replace(/^'|'$/g,""));if(o.status==="succeeded")return new yt(o.toVal,e)}return null};yt._calendarDuration2Seconds={years:365*24*60*60,months:30*24*60*60,weeks:7*24*60*60,days:24*60*60,hours:60*60,minutes:60,seconds:1,milliseconds:.001,year:365*24*60*60,month:30*24*60*60,week:7*24*60*60,day:24*60*60,hour:60*60,minute:60,second:1,millisecond:.001};yt._yearMonthConversionFactor={years:12,months:1,year:12,month:1};yt.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"};yt.mapUCUMCodeToTimeUnits={a:"year",mo:"month",wk:"week",d:"day",h:"hour",min:"minute",s:"second",ms:"millisecond"};yt.mapTimeUnitsToUCUMCode=Object.keys(yt.mapUCUMCodeToTimeUnits).reduce(function(n,t){return n[yt.mapUCUMCodeToTimeUnits[t]]=t,n[yt.mapUCUMCodeToTimeUnits[t]+"s"]=t,n},{});var ea=class n extends Lu{constructor(t){super(),this.asStr=t}plus(t){let e=t.unit,i=yt.dateTimeArithmeticDurationUnits[e];if(!i)throw new Error("For date/time arithmetic, the unit of the quantity must be one of the following time-based units: "+Object.keys(yt.dateTimeArithmeticDurationUnits));let r=this.constructor,s=r._timeUnitToDatePrecision[i];if(s===void 0)throw new Error("Unsupported unit for +. The unit should be one of "+Object.keys(r._timeUnitToDatePrecision).join(", ")+".");let a=t.value,o=r===Ou;if((o?s<2:s<5)&&(a=Math.trunc(a)),this._getPrecision()2?new Bn(a)._getTimeParts():this._getTimeParts(),c=r>2?new Bn(o)._getTimeParts():t._getTimeParts(),u=0;u<=s&&e!==!1;++u)e=l[u]==c[u];e&&(e=void 0)}}return e}equivalentTo(t){var e=t instanceof this.constructor;if(e){var i=this._getPrecision(),r=t._getPrecision();e=i==r,e&&(e=this._getDateObj().getTime()==t._getDateObj().getTime())}return e}compare(t){var e=this._getPrecision(),i=t._getPrecision(),r=e<=i?this._getDateObj().getTime():this._dateAtPrecision(i).getTime(),s=i<=e?t._getDateObj().getTime():t._dateAtPrecision(e).getTime();return e!==i&&r===s?null:r-s}_getPrecision(){return this.precision===void 0&&this._getMatchData(),this.precision}_getMatchData(t,e){if(this.timeMatchData===void 0&&(this.timeMatchData=this.asStr.match(t),this.timeMatchData))for(let i=e;i>=0&&this.precision===void 0;--i)this.timeMatchData[i]&&(this.precision=i);return this.timeMatchData}_getTimeParts(t){var e=[];e=[t[0]];var i=t[4];if(i){let o=e[0];e[0]=o.slice(0,o.length-i.length)}var r=t[1];if(r){let o=e[0];e[0]=o.slice(0,o.length-r.length),e[1]=r;var s=t[2];if(s){e[1]=r.slice(0,r.length-s.length),e[2]=s;var a=t[3];a&&(e[2]=s.slice(0,s.length-a.length),e[3]=a)}}return e}_getDateObj(){if(!this.dateObj){var t=this._getPrecision();this.dateObj=this._dateAtPrecision(t)}return this.dateObj}_createDate(t,e,i,r,s,a,o,l){var c=new Date(t,e,i,r,s,a,o);if(l){var u=c.getTimezoneOffset(),d=0;if(l!="Z"){var h=l.split(":"),m=parseInt(h[0]);d=parseInt(h[1]),m<0&&(d=-d),d+=60*m}c=NB(c,-u-d)}return c}};ea.timeUnitToAddFn={year:WE(),month:qb(),week:KE(),day:Gb(),hour:QE(),minute:Lb(),second:XE(),millisecond:Eu()};var Bn=(()=>{class n extends ea{constructor(e){super(e)}compare(e){if(!(e instanceof n))throw"Invalid comparison of a DateTime with something else";return super.compare(e)}_getMatchData(){return super._getMatchData(t2,5)}_getTimeParts(){if(!this.timeParts){let i=this._getMatchData(),r=i[0];this.timeParts=[r];var e=i[1];if(e){this.timeParts[0]=r.slice(0,r.length-e.length),this.timeParts[1]=e;let s=i[2];if(s){this.timeParts[1]=e.slice(0,e.length-s.length),this.timeParts[2]=s;let a=i[3];a&&(this.timeParts[2]=s.slice(0,s.length-a.length),a[0]==="T"&&(i[3]=a.slice(1)),this.timeParts=this.timeParts.concat(super._getTimeParts(i.slice(3))))}}}return this.timeParts}_dateAtPrecision(e){var i=this._getTimeParts(),r=this._getMatchData()[7],s=this._getPrecision(),a=parseInt(i[0]),o=s>0?parseInt(i[1].slice(1))-1:0,l=s>1?parseInt(i[2].slice(1)):1,c=s>2?parseInt(i[3]):0,u=s>3?parseInt(i[4].slice(1)):0,d=s>4?parseInt(i[5].slice(1)):0,h=i.length>6?parseInt(i[6].slice(1)):0,m=this._createDate(a,o,l,c,u,d,h,r);return e0?m.getMonth():0,l=e>1?m.getDate():1,c=e>2?m.getHours():0,u=e>3?m.getMinutes():0,m=new Date(a,o,l,c,u)),m}}return n.checkString=function(t){let e=new n(t);return e._getMatchData()||(e=null),e},n._timeUnitToDatePrecision={year:0,month:1,week:2,day:2,hour:3,minute:4,second:5,millisecond:6},n._datePrecisionToTimeUnit=["year","month","day","hour","minute","second","millisecond"],n})(),Ou=(()=>{class n extends ea{constructor(e){e[0]=="T"&&(e=e.slice(1)),super(e)}compare(e){if(!(e instanceof n))throw"Invalid comparison of a time with something else";return super.compare(e)}_dateAtPrecision(e){var i=this._getTimeParts(),r=this._getMatchData()[4],s=this._getPrecision(),a=2010,o=0,l=1,c=parseInt(i[0]),u=s>0?parseInt(i[1].slice(1)):0,d=s>1?parseInt(i[2].slice(1)):0,h=i.length>3?parseInt(i[3].slice(1)):0,m=this._createDate(a,o,l,c,u,d,h,r);return r&&(m.setYear(a),m.setMonth(o),m.setDate(l)),e0?m.getMinutes():0,m=new Date(a,o,l,c,u)),m}_getMatchData(){return super._getMatchData(e2,2)}_getTimeParts(){return this.timeParts||(this.timeParts=super._getTimeParts(this._getMatchData())),this.timeParts}}return n.checkString=function(t){let e=new n(t);return e._getMatchData()||(e=null),e},n._timeUnitToDatePrecision={hour:0,minute:1,second:2,millisecond:3},n._datePrecisionToTimeUnit=["hour","minute","second","millisecond"],n})();function Js(n,t){var e=n;return t===3&&n<100&&(e="0"+n),n<10&&(e="0"+e),e}Bn.isoDateTime=function(n,t){t===void 0&&(t=5);var e=""+n.getFullYear();if(t>0&&(e+="-"+Js(n.getMonth()+1),t>1&&(e+="-"+Js(n.getDate()),t>2&&(e+="T"+Bn.isoTime(n,t-3)))),t>2){var i=n.getTimezoneOffset(),r=i<0?"+":"-";i=Math.abs(i);var s=i%60,a=(i-s)/60;e+=r+Js(a)+":"+Js(s)}return e};Bn.isoTime=function(n,t){t===void 0&&(t=2);let e=""+Js(n.getHours());return t>0&&(e+=":"+Js(n.getMinutes()),t>1&&(e+=":"+Js(n.getSeconds()),n.getMilliseconds()&&(e+="."+Js(n.getMilliseconds(),3)))),e};var Kb=(()=>{class n extends Bn{constructor(e){super(e)}_getMatchData(){return ea.prototype._getMatchData.apply(this,[PB,2])}}return n.checkString=function(t){let e=new n(t);return e._getMatchData()||(e=null),e},n.isoDate=function(t,e){return(e===void 0||e>2)&&(e=2),Bn.isoDateTime(t,e)},n})(),i2=(()=>{class n extends Bn{constructor(e){super(e)}_getMatchData(){return ea.prototype._getMatchData.apply(this,[UB,5])}}return n.checkString=function(t){let e=new n(t);return e._getMatchData()||(e=null),e},n})(),n2=(()=>{class n{constructor(e,i,r,s,a){e?.resourceType&&(r=e.resourceType,a=e.resourceType),this.parentResNode=i||null,this.path=r||null,this.data=e,this._data=s||{},this.fhirNodeDataType=a||null}getTypeInfo(){if(!this.typeInfo){let e;Vn.model&&(/^System\.(.*)$/.test(this.fhirNodeDataType)?e=new Vn({namespace:Vn.System,name:RegExp.$1}):this.fhirNodeDataType&&(e=new Vn({namespace:Vn.FHIR,name:this.fhirNodeDataType}))),this.typeInfo=e||Vn.createByValueInSystemNamespace(this.data)}return this.typeInfo}toJSON(){return JSON.stringify(this.data)}convertData(){if(!this.convertedData){var e=this.data;let i=Vn.typeToClassWithCheckString[this.path];if(i)e=i.checkString(e)||e;else if(Vn.isType(this.path,"Quantity")&&e?.system===FB&&typeof e.value=="number"&&typeof e.code=="string"){if(e.comparator!==void 0)throw new Error("Cannot convert a FHIR.Quantity that has a comparator");e=new yt(e.value,yt.mapUCUMCodeToTimeUnits[e.code]||"'"+e.code+"'")}this.convertedData=e}return this.convertedData}}return n.makeResNode=function(t,e,i,r,s=null){return t instanceof n?t:new n(t,e,i,r,s)},n})(),Yb=new Set;["Boolean","String","Integer","Decimal","Date","DateTime","Time","Quantity"].forEach(n=>Yb.add(n));var Vn=(()=>{class n{constructor({name:e,namespace:i}){this.name=e,this.namespace=i}static model=null;is(e){return e instanceof n&&(!this.namespace||!e.namespace||this.namespace===e.namespace)?n.model&&(!this.namespace||this.namespace===n.FHIR)?n.isType(this.name,e.name):this.name===e.name:!1}toString(){return(this.namespace?this.namespace+".":"")+this.name}isValid(){let e=!1;return this.namespace==="System"?e=Yb.has(this.name):this.namespace==="FHIR"?e=n.model?.availableTypes.has(this.name):this.namespace||(e=Yb.has(this.name)||n.model?.availableTypes.has(this.name)),e}}return n.typeToClassWithCheckString={date:Kb,dateTime:Bn,instant:i2,time:Ou},n.isType=function(t,e){do if(t===e)return!0;while(t=n.model?.type2Parent[t]);return!1},n.System="System",n.FHIR="FHIR",n.createByValueInSystemNamespace=function(t){let e=typeof t;return Number.isInteger(t)?e="integer":e==="number"?e="decimal":t instanceof Kb?e="date":t instanceof Bn?e="dateTime":t instanceof Ou?e="time":t instanceof yt&&(e="Quantity"),e=e.replace(/^\w/,i=>i.toUpperCase()),new n({namespace:n.System,name:e})},n.fromValue=function(t){return t instanceof n2?t.getTypeInfo():n.createByValueInSystemNamespace(t)},n})();function $B(n){return n.map(t=>Vn.fromValue(t))}function VB(n,t){if(n.length===0)return[];if(n.length>1)throw new Error("Expected singleton on left side of 'is', got "+JSON.stringify(n));return Vn.fromValue(n[0]).is(t)}function BB(n,t){if(n.length===0)return[];if(n.length>1)throw new Error("Expected singleton on left side of 'as', got "+JSON.stringify(n));return Vn.fromValue(n[0]).is(t)?n:[]}r2.exports={FP_Type:Lu,FP_TimeBase:ea,FP_Date:Kb,FP_DateTime:Bn,FP_Instant:i2,FP_Time:Ou,FP_Quantity:yt,timeRE:e2,dateTimeRE:t2,ResourceNode:n2,TypeInfo:Vn,typeFn:$B,isFn:VB,asFn:BB}});var vn=Z((jie,a2)=>{var Ft={},zB=Ar(),{ResourceNode:Cl}=zB;Ft.raiseError=function(n,t){throw t=t?t+": ":"",t+n};Ft.assertOnlyOne=function(n,t){n.length!==1&&Ft.raiseError("Was expecting only one element but got "+JSON.stringify(n),t)};Ft.assertType=function(n,t,e){let i=this.valData(n);if(t.indexOf(typeof i)<0){let r=t.length>1?"one of "+t.join(", "):t[0];Ft.raiseError("Found type '"+typeof n+"' but was expecting "+r,e)}return i};Ft.isEmpty=function(n){return Array.isArray(n)&&n.length===0};Ft.isSome=function(n){return n!=null&&!Ft.isEmpty(n)};Ft.isTrue=function(n){return n!=null&&(n===!0||n.length===1&&Ft.valData(n[0])===!0)};Ft.isCapitalized=function(n){return n&&n[0]===n[0].toUpperCase()};Ft.flatten=function(n){return n.some(t=>t instanceof Promise)?Promise.all(n).then(t=>s2(t)):s2(n)};function s2(n){return[].concat(...n)}Ft.arraify=function(n){return Array.isArray(n)?n:Ft.isSome(n)?[n]:[]};Ft.resolveAndArraify=function(n){return n instanceof Promise?n.then(t=>Ft.arraify(t)):Ft.arraify(n)};Ft.valData=function(n){return n instanceof Cl?n.data:n};Ft.valDataConverted=function(n){return n instanceof Cl&&(n=n.convertData()),n};Ft.escapeStringForRegExp=function(n){return n.replace(/[-[\]{}()*+?.,\\/^$|#\s]/g,"\\$&")};Ft.pushFn=Function.prototype.apply.bind(Array.prototype.push);Ft.makeChildResNodes=function(n,t,e){let i=n.path+"."+t;if(e){let c=e.pathsDefinedElsewhere[i];c&&(i=c)}let r,s,a=e&&e.choiceTypePaths[i];if(a)for(let c of a){let u=t+c;if(r=n.data?.[u],s=n.data?.["_"+u],r!==void 0||s!==void 0){i+=c;break}}else r=n.data?.[t],s=n.data?.["_"+t],r===void 0&&s===void 0&&(r=n._data[t]),t==="extension"&&(i="Extension");let o=null;e&&(o=e.path2Type[i],i=e.path2TypeWithoutElements[i]||i);let l;if(Ft.isSome(r)||Ft.isSome(s))if(Array.isArray(r)){l=r.map((u,d)=>Cl.makeResNode(u,n,i,s&&s[d],o));let c=s?.length||0;for(let u=r.length;uCl.makeResNode(null,n,i,c,o)):l=[Cl.makeResNode(r,n,i,s,o)];else l=[];return l};a2.exports=Ft});var o2=Z(()=>{var HB=Function.prototype.call.bind(Array.prototype.slice);Number.isInteger=Number.isInteger||function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n};String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(n,t){return t=t||0,this.indexOf(n,t)===t}});String.prototype.endsWith||Object.defineProperty(String.prototype,"endsWith",{value:function(n,t){var e=this.toString();(t===void 0||t>e.length)&&(t=e.length),t-=n.length;var i=e.indexOf(n,t);return i!==-1&&i===t}});String.prototype.includes||Object.defineProperty(String.prototype,"includes",{value:function(){return this.indexOf.apply(this,arguments)!==-1}});Object.assign||Object.defineProperty(Object,"assign",{value:function(n){if(n==null)throw new TypeError("Cannot convert undefined or null to object");return HB(arguments,1).reduce(function(t,e){return Object.keys(Object(e)).forEach(function(i){t[i]=e[i]}),t},Object(n))}});typeof btoa>"u"&&(global.btoa=function(n){return new Buffer.from(n,"binary").toString("base64")});typeof atob>"u"&&(global.atob=function(n){return new Buffer.from(n,"base64").toString("binary")})});var Qb=Z((Gie,l2)=>{l2.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}});var Uf=Z((Kie,c2)=>{var jB=Nf().UcumLhcUtils.getInstance(),{roundToMaxPrecision:WB}=Pf(),{valDataConverted:qB}=vn(),{FP_Type:GB,FP_Quantity:Zb}=Ar();function KB(n){return JSON.stringify(Xb(n))}function Xb(n){if(n=qB(n),n===null)return null;if(typeof n=="number")return WB(n);if(n instanceof Date)return n.toISOString();if(n instanceof Zb){let t=Zb._yearMonthConversionFactor[n.unit];if(t)return"_!yearMonth!_:"+t*n.value;{let e=Zb.toUcumQuantity(n.value,n.unit),i=jB.getSpecifiedUnit(e.unit).unit;return"_!"+i.property_+"!_:"+i.magnitude_*e.value}}else{if(n instanceof GB)return n.toString();if(typeof n=="object")return Array.isArray(n)?n.map(Xb):Object.keys(n).sort().reduce((t,e)=>{let i=n[e];return t[e]=Xb(i),t},{})}return n}c2.exports=KB});var wl=Z((Yie,y2)=>{var{FP_Type:u2,FP_Quantity:d2}=Ar(),h2=vn(),m2=Pf(),f2=Array.prototype.slice,p2=Object.keys,$f=function(n){return Object.prototype.toString.call(n)=="[object Arguments]"};function g2(n){return typeof n=="string"||n instanceof String}function _2(n){return!isNaN(parseFloat(n))&&isFinite(n)}function v2(n){return n.toUpperCase().replace(/\s+/," ")}function Vf(n,t,e){if(n=h2.valDataConverted(n),t=h2.valDataConverted(t),e||(e={}),n===t)return!0;if(e.fuzzy){if(g2(n)&&g2(t))return v2(n)==v2(t);if(_2(n)&&_2(t))return m2.isEquivalent(n,t)}else if(typeof n=="number"&&typeof t=="number")return m2.isEqual(n,t);if(n instanceof Date&&t instanceof Date)return n.getTime()===t.getTime();if(!n||!t||typeof n!="object"&&typeof t!="object")return n===t;var i=n instanceof u2,r=t instanceof u2;if(i&&r)return e.fuzzy?n.equivalentTo(t):n.equals(t);if(i||r){let s=!1;return typeof n=="number"&&(n=new d2(n,"'1'"),s=!0),typeof t=="number"&&(t=new d2(t,"'1'"),s=!0),s?e.fuzzy?n.equivalentTo(t):n.equals(t):!1}return YB(n,t,e)}function b2(n){return n==null}function YB(n,t,e){var i,r;if(b2(n)||b2(t)||n.prototype!==t.prototype)return!1;if($f(n)||$f(t))return n=$f(n)?f2.call(n):n,t=$f(t)?f2.call(t):t,Vf(n,t,e);try{var s=p2(n),a=p2(t)}catch{return!1}if(s.length!=a.length)return!1;for(s.sort(),a.sort(),i=s.length-1;i>=0;i--)if(s[i]!=a[i])return!1;if(s.length===1)return r=s[0],Vf(n[r],t[r],e);for(i=s.length-1;i>=0;i--)if(r=s[i],!Vf(n[r],t[r],e))return!1;return typeof n==typeof t}y2.exports={deepEqual:Vf,maxCollSizeForDeepEqual:6}});var Bf=Z((Qie,x2)=>{var Jb=vn(),{TypeInfo:QB,ResourceNode:ZB}=Ar(),w2=Uf(),{deepEqual:XB,maxCollSizeForDeepEqual:JB}=wl(),Hi={};Hi.whereMacro=function(n,t){return n!==!1&&!n?[]:Jb.flatten(n.map((e,i)=>{this.$index=i;let r=t(e);return r instanceof Promise?r.then(s=>s[0]?e:[]):r[0]?e:[]}))};Hi.extension=function(n,t){return n!==!1&&!n||!t?[]:Jb.flatten(n.map((e,i)=>{this.$index=i;let r=e&&(e.data&&e.data.extension||e._data&&e._data.extension);return r?r.filter(s=>s.url===t).map(s=>ZB.makeResNode(s,e,"Extension",null,"Extension")):[]}))};Hi.selectMacro=function(n,t){return n!==!1&&!n?[]:Jb.flatten(n.map((e,i)=>(this.$index=i,t(e))))};Hi.repeatMacro=function(n,t,e=[],i={}){if(n!==!1&&!n)return[];let r=[].concat(...n.map(s=>t(s)));return r.some(s=>s instanceof Promise)?Promise.all(r).then(s=>(s=[].concat(...s),s.length?Hi.repeatMacro(C2(s,i,e),t,e,i):e)):r.length?Hi.repeatMacro(C2(r,i,e),t,e,i):e};function C2(n,t,e){let i=n.filter(r=>{let s=w2(r),a=!t[s];return a&&(t[s]=!0),a});return e.push.apply(e,i),i}Hi.singleFn=function(n){if(n.length===1)return n;if(n.length===0)return[];throw new Error("Expected single")};Hi.firstFn=function(n){return n[0]};Hi.lastFn=function(n){return n[n.length-1]};Hi.tailFn=function(n){return n.slice(1,n.length)};Hi.takeFn=function(n,t){return n.slice(0,t)};Hi.skipFn=function(n,t){return n.slice(t,n.length)};Hi.ofTypeFn=function(n,t){return n.filter(e=>QB.fromValue(e).is(t))};Hi.distinctFn=function(n){let t=[];if(n.length>0)if(n.length>JB){let e={};for(let i=0,r=n.length;i!XB(e,i))}while(n.length)}return t};x2.exports=Hi});var zf=Z((Zie,T2)=>{var ds=vn(),k2=Ar(),{FP_Quantity:us,TypeInfo:e5}=k2,rn={};rn.iifMacro=function(n,t,e,i){let r=t(n);return r instanceof Promise?r.then(s=>S2(n,s,e,i)):S2(n,r,e,i)};function S2(n,t,e,i){return ds.isTrue(t)?e(n):i?i(n):[]}rn.traceFn=function(n,t,e){let i=e?e(n):null;return i instanceof Promise?i.then(r=>rn.traceFn(n,t,r)):(this.customTraceFn?e?this.customTraceFn(e(n),t??""):this.customTraceFn(n,t??""):e?console.log("TRACE:["+(t||"")+"]",JSON.stringify(e(n),null," ")):console.log("TRACE:["+(t||"")+"]",JSON.stringify(n,null," ")),n)};rn.defineVariable=function(n,t,e){let i=n;if(e&&(i=e(n)),this.definedVars||(this.definedVars={}),t in this.vars||t in this.processedVars)throw new Error("Environment Variable %"+t+" already defined");if(Object.keys(this.definedVars).includes(t))throw new Error("Variable %"+t+" already defined");return this.definedVars[t]=i,n};var t5=/^[+-]?\d+$/;rn.toInteger=function(n){if(n.length!==1)return[];var t=ds.valData(n[0]);return t===!1?0:t===!0?1:typeof t=="number"?Number.isInteger(t)?t:[]:typeof t=="string"&&t5.test(t)?parseInt(t):[]};var i5=/^((\+|-)?\d+(\.\d+)?)\s*(('[^']+')|([a-zA-Z]+))?$/,ey={value:1,unit:5,time:6};rn.toQuantity=function(n,t){let e;if(n.length>1)throw new Error("Could not convert to quantity: input collection contains multiple items");if(n.length===1){if(t){let s=us._calendarDuration2Seconds[this.unit],a=us._calendarDuration2Seconds[t];if(!s!=!a&&(s>1||a>1))return null;us.mapTimeUnitsToUCUMCode[t]||(t=`'${t}'`)}var i=ds.valDataConverted(n[0]);let r;if(typeof i=="number")e=new us(i,"'1'");else if(i instanceof us)e=i;else if(typeof i=="boolean")e=new us(i?1:0,"'1'");else if(typeof i=="string"&&(r=i5.exec(i))){let s=r[ey.value],a=r[ey.unit],o=r[ey.time];(!o||us.mapTimeUnitsToUCUMCode[o])&&(e=new us(Number(s),a||o||"'1'"))}e&&t&&e.unit!==t&&(e=us.convUnitTo(e.unit,e.value,t))}return e||[]};var n5=/^[+-]?\d+(\.\d+)?$/;rn.toDecimal=function(n){if(n.length!==1)return[];var t=ds.valData(n[0]);return t===!1?0:t===!0?1:typeof t=="number"?t:typeof t=="string"&&n5.test(t)?parseFloat(t):[]};rn.toString=function(n){if(n.length!==1)return[];var t=ds.valDataConverted(n[0]);return t==null?[]:t.toString()};function ty(n){let t=n.slice(3);rn["to"+t]=function(e){var i=[];if(e.length>1)throw Error("to "+t+" called for a collection of length "+e.length);if(e.length===1){var r=ds.valData(e[0]);if(typeof r=="string"){var s=k2[n].checkString(r);s&&(i=s)}}return i}}ty("FP_Date");ty("FP_DateTime");ty("FP_Time");var r5=["true","t","yes","y","1","1.0"].reduce((n,t)=>(n[t]=!0,n),{}),s5=["false","f","no","n","0","0.0"].reduce((n,t)=>(n[t]=!0,n),{});rn.toBoolean=function(n){if(n.length!==1)return[];let t=ds.valData(n[0]);switch(typeof t){case"boolean":return t;case"number":if(t===1)return!0;if(t===0)return!1;break;case"string":let e=t.toLowerCase();if(r5[e])return!0;if(s5[e])return!1}return[]};rn.createConvertsToFn=function(n,t){return typeof t=="string"?function(e){return e.length!==1?[]:typeof n(e)===t}:function(e){return e.length!==1?[]:n(e)instanceof t}};var a5={Integer:function(n){if(Number.isInteger(n))return n},Boolean:function(n){return n===!0||n===!1?n:!0},Number:function(n){if(typeof n=="number")return n},String:function(n){if(typeof n=="string")return n},AnySingletonAtRoot:function(n){return n}};rn.singleton=function(n,t){if(n.length>1)throw new Error("Unexpected collection"+JSON.stringify(n)+"; expected singleton of type "+t);if(n.length===0)return[];let e=ds.valData(n[0]);if(e==null)return[];let i=a5[t];if(i){let r=i(e);if(r!==void 0)return r;throw new Error(`Expected ${t.toLowerCase()}, but got: ${JSON.stringify(n)}`)}throw new Error("Not supported type "+t)};var M2=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(n=>M2.add(n));rn.hasValueFn=function(n){return n.length===1&&ds.valData(n[0])!=null&&M2.has(e5.fromValue(n[0]).name)};T2.exports=rn});var D2=Z((Xie,A2)=>{var Dr=vn(),{whereMacro:o5,distinctFn:l5}=Bf(),c5=zf(),E2=Uf(),{deepEqual:u5,maxCollSizeForDeepEqual:d5}=wl(),sn={};sn.emptyFn=Dr.isEmpty;sn.notFn=function(n){let t=c5.singleton(n,"Boolean");return typeof t=="boolean"?!t:[]};sn.existsMacro=function(n,t){if(t){let e=o5.call(this,n,t);return e instanceof Promise?e.then(i=>sn.existsMacro(i)):sn.existsMacro(e)}return!Dr.isEmpty(n)};sn.allMacro=function(n,t){let e=[];for(let i=0,r=n.length;ii.some(r=>!Dr.isTrue(r))?[!1]:[!0]):[!0]};sn.allTrueFn=function(n){let t=!0;for(let e=0,i=n.length;ed5){let s=t.reduce((a,o)=>(a[E2(o)]=!0,a),{});r=!n.some(a=>!s[E2(a)])}else for(let s=0,a=n.length;su5(o,Dr.valData(l)))}return r}sn.subsetOfFn=function(n,t){return[I2(n,t)]};sn.supersetOfFn=function(n,t){return[I2(t,n)]};sn.isDistinctFn=function(n){return[n.length===l5(n).length]};A2.exports=sn});var iy=Z((Jie,L2)=>{var{FP_Quantity:ii,FP_Type:Nu}=Ar(),Rr=vn(),ui={};function hs(n,t){let e;if(R2(n))e=[];else{if(n.length!==1)throw new Error("Unexpected collection"+JSON.stringify(n)+"; expected singleton of type number");{let i=Rr.valData(n[0]);if(i==null)e=[];else if(typeof i=="number")e=t(i);else throw new Error("Expected number, but got "+JSON.stringify(i))}}return e}function R2(n){return typeof n=="number"?!1:n.length===0}ui.amp=function(n,t){return(n||"")+(t||"")};ui.plus=function(n,t){let e;if(n.length===1&&t.length===1){let i=Rr.valDataConverted(n[0]),r=Rr.valDataConverted(t[0]);i==null||r==null?e=[]:typeof i=="string"&&typeof r=="string"?e=i+r:typeof i=="number"?typeof r=="number"?e=i+r:r instanceof ii&&(e=new ii(i,"'1'").plus(r)):i instanceof Nu&&(r instanceof ii?e=i.plus(r):r instanceof Nu?e=r.plus(i):typeof r=="number"&&(e=i.plus(new ii(r,"'1'"))))}if(e===void 0)throw new Error("Cannot "+JSON.stringify(n)+" + "+JSON.stringify(t));return e};ui.minus=function(n,t){if(n.length===1&&t.length===1){let e=Rr.valDataConverted(n[0]),i=Rr.valDataConverted(t[0]);if(e==null||i==null)return[];if(typeof e=="number"){if(typeof i=="number")return e-i;if(i instanceof ii)return new ii(e,"'1'").plus(new ii(-i.value,i.unit))}if(e instanceof Nu){if(i instanceof ii)return e.plus(new ii(-i.value,i.unit));if(typeof i=="number")return e.plus(new ii(-i,"'1'"))}}throw new Error("Cannot "+JSON.stringify(n)+" - "+JSON.stringify(t))};ui.mul=function(n,t){if(n.length===1&&t.length===1){let e=Rr.valDataConverted(n[0]),i=Rr.valDataConverted(t[0]);if(e==null||i==null)return[];if(typeof e=="number"){if(typeof i=="number")return e*i;if(i instanceof ii)return new ii(e,"'1'").mul(i)}if(e instanceof Nu){if(i instanceof ii)return e.mul(i);if(typeof i=="number")return e.mul(new ii(i,"'1'"))}}throw new Error("Cannot "+JSON.stringify(n)+" * "+JSON.stringify(t))};ui.div=function(n,t){if(n.length===1&&t.length===1){let e=Rr.valDataConverted(n[0]),i=Rr.valDataConverted(t[0]);if(e==null||i==null)return[];if(typeof e=="number"){if(typeof i=="number")return i===0?[]:e/i;if(i instanceof ii)return new ii(e,"'1'").div(i)}if(e instanceof Nu){if(i instanceof ii)return e.div(i);if(typeof i=="number")return e.div(new ii(i,"'1'"))}}throw new Error("Cannot "+JSON.stringify(n)+" / "+JSON.stringify(t))};ui.intdiv=function(n,t){return t===0?[]:Math.floor(n/t)};ui.mod=function(n,t){return t===0?[]:n%t};ui.abs=function(n){let t;if(R2(n))t=[];else{if(n.length!==1)throw new Error("Unexpected collection"+JSON.stringify(n)+"; expected singleton of type number or Quantity");var e=Rr.valData(n[0]);if(e==null)t=[];else if(typeof e=="number")t=Math.abs(e);else if(e instanceof ii)t=new ii(Math.abs(e.value),e.unit);else throw new Error("Expected number or Quantity, but got "+JSON.stringify(e||n))}return t};ui.ceiling=function(n){return hs(n,Math.ceil)};ui.exp=function(n){return hs(n,Math.exp)};ui.floor=function(n){return hs(n,Math.floor)};ui.ln=function(n){return hs(n,Math.log)};ui.log=function(n,t){return hs(n,e=>Math.log(e)/Math.log(t))};ui.power=function(n,t){return hs(n,e=>{let i=Math.pow(e,t);return isNaN(i)?[]:i})};ui.round=function(n,t){return hs(n,e=>{if(t===void 0)return Math.round(e);{let i=Math.pow(10,t);return Math.round(e*i)/i}})};ui.sqrt=function(n){return hs(n,t=>t<0?[]:Math.sqrt(t))};ui.truncate=function(n){return hs(n,Math.trunc)};L2.exports=ui});var ny=Z((ene,U2)=>{var sr=vn(),{deepEqual:O2}=wl(),N2=Ar(),jf=N2.FP_Type,Hf=N2.FP_DateTime,ms={};function F2(n,t){return sr.isEmpty(n)||sr.isEmpty(t)?[]:O2(n,t)}function P2(n,t){return sr.isEmpty(n)&&sr.isEmpty(t)?[!0]:sr.isEmpty(n)||sr.isEmpty(t)?[]:O2(n,t,{fuzzy:!0})}ms.equal=function(n,t){return F2(n,t)};ms.unequal=function(n,t){var e=F2(n,t);return e===void 0?void 0:!e};ms.equival=function(n,t){return P2(n,t)};ms.unequival=function(n,t){return!P2(n,t)};function Wf(n,t){if(sr.assertOnlyOne(n,"Singleton was expected"),sr.assertOnlyOne(t,"Singleton was expected"),n=sr.valDataConverted(n[0]),t=sr.valDataConverted(t[0]),n!=null&&t!=null){let e=n instanceof Hf?Hf:n.constructor,i=t instanceof Hf?Hf:t.constructor;e!==i&&sr.raiseError('Type of "'+n+'" ('+e.name+') did not match type of "'+t+'" ('+i.name+")","InequalityExpression")}return[n,t]}ms.lt=function(n,t){let[e,i]=Wf(n,t);if(e==null||i==null)return[];if(e instanceof jf){let r=e.compare(i);return r===null?[]:r<0}return e0}return e>i};ms.lte=function(n,t){let[e,i]=Wf(n,t);if(e==null||i==null)return[];if(e instanceof jf){let r=e.compare(i);return r===null?[]:r<=0}return e<=i};ms.gte=function(n,t){let[e,i]=Wf(n,t);if(e==null||i==null)return[];if(e instanceof jf){let r=e.compare(i);return r===null?[]:r>=0}return e>=i};U2.exports=ms});var H2=Z((tne,z2)=>{var Lr={},$2=iy(),V2=ny(),fs=vn();Lr.aggregateMacro=function(n,t,e){return n.reduce((i,r,s)=>i instanceof Promise?i.then(a=>(this.$index=s,this.$total=a,this.$total=t(r))):(this.$index=s,this.$total=t(r)),this.$total=e)};Lr.countFn=function(n){return n&&n.length?n.length:0};Lr.sumFn=function(n){return Lr.aggregateMacro.apply(this,[n.slice(1),t=>{let e=fs.arraify(t).filter(r=>fs.valData(r)!=null),i=fs.arraify(this.$total).filter(r=>fs.valData(r)!=null);return e.length===0||i.length===0?[]:$2.plus(e,i)},n[0]])};function B2(n,t){let e;if(n.length===0||fs.valData(n[0])==null)e=[];else{e=[n[0]];for(let i=1;i{var j2={};j2.weight=function(n){if(n!==!1&&!n)return[];let t=this.vars.scoreExt||this.processedVars.scoreExt,e=t?s=>s.url===t:s=>this.defaultScoreExts.includes(s.url),i=[],r=this.vars.questionnaire||this.processedVars.questionnaire?.data;return n.forEach(s=>{if(s?.data){let a=s.data.valueCoding,o=a;if(!o){let c=Object.keys(s.data).find(u=>u.length>5&&u.startsWith("value"));o=c?s.data[c]:s._data?.extension?s._data:s.data}let l=o?.extension?.find(e)?.valueDecimal;if(l!==void 0)i.push(l);else if(a){let c=h5(s.parentResNode);if(c.length)if(r){let d=m5(r,c)?.answerOption?.find(h=>h.valueCoding.code===a.code&&h.valueCoding.system===a.system);if(d){let h=d.extension?.find(e)?.valueDecimal;h!==void 0&&i.push(h)}else throw new Error("Questionnaire answerOption with this linkId was not found: "+s.parentResNode.data.linkId+".")}else throw new Error("%questionnaire is needed but not specified.")}}}),i};function h5(n){let t=[];for(;n.data?.linkId;)t.push(n.data.linkId),n=n.parentResNode;return t}function m5(n,t){let e=n;for(let i=t.length-1;i>=0;--i)if(e=e.item?.find(r=>r.linkId===t[i]),!e)return null;return e}W2.exports=j2});var Z2=Z((nne,Q2)=>{var Fu={},{distinctFn:G2}=Bf(),qf=Uf(),{deepEqual:K2,maxCollSizeForDeepEqual:Y2}=wl();Fu.union=function(n,t){return G2(n.concat(t))};Fu.combineFn=function(n,t){return n.concat(t)};Fu.intersect=function(n,t){let e=[],i=n.length,r=t.length;if(i&&r)if(i+r>Y2){let s={};t.forEach(a=>{let o=qf(a);s[o]?r--:s[o]=!0});for(let a=0;a0;++a){let o=n[a],l=qf(o);s[l]&&(e.push(o),s[l]=!1,r--)}}else e=G2(n).filter(s=>t.some(a=>K2(s,a)));return e};Fu.exclude=function(n,t){let e=[],i=n.length,r=t.length;if(!r)return n;if(i)if(i+r>Y2){let s={};t.forEach(a=>{let o=qf(a);s[o]=!0}),e=n.filter(a=>!s[qf(a)])}else e=n.filter(s=>!t.some(a=>K2(s,a)));return e};Q2.exports=Fu});var eI=Z((rne,J2)=>{var{deepEqual:f5}=wl(),ry={};function X2(n,t){for(var e=0;e1)throw new Error("Expected singleton on right side of contains, got "+JSON.stringify(t));return X2(n,t)};ry.in=function(n,t){if(n.length==0)return[];if(t.length==0)return!1;if(n.length>1)throw new Error("Expected singleton on right side of in, got "+JSON.stringify(t));return X2(t,n)};J2.exports=ry});var iI=Z((sne,tI)=>{var gt=vn(),Ci=zf(),si={},sy={};function p5(n){return sy[n]||(sy[n]=n.replace(/\./g,(t,e,i)=>{let s=i.substr(0,e).replace(/\\\\/g,"").replace(/\\[\][]/g,""),a=s[s.length-1]==="\\",o=s.lastIndexOf("["),l=s.lastIndexOf("]");return a||o>l?".":"[^]"})),sy[n]}si.indexOf=function(n,t){let e=Ci.singleton(n,"String");return gt.isEmpty(t)||gt.isEmpty(e)?[]:e.indexOf(t)};si.substring=function(n,t,e){let i=Ci.singleton(n,"String");return gt.isEmpty(i)||gt.isEmpty(t)||t<0||t>=i.length?[]:e===void 0||gt.isEmpty(e)?i.substring(t):i.substring(t,t+e)};si.startsWith=function(n,t){let e=Ci.singleton(n,"String");return gt.isEmpty(t)||gt.isEmpty(e)?[]:e.startsWith(t)};si.endsWith=function(n,t){let e=Ci.singleton(n,"String");return gt.isEmpty(t)||gt.isEmpty(e)?[]:e.endsWith(t)};si.containsFn=function(n,t){let e=Ci.singleton(n,"String");return gt.isEmpty(t)||gt.isEmpty(e)?[]:e.includes(t)};si.upper=function(n){let t=Ci.singleton(n,"String");return gt.isEmpty(t)?[]:t.toUpperCase()};si.lower=function(n){let t=Ci.singleton(n,"String");return gt.isEmpty(t)?[]:t.toLowerCase()};si.joinFn=function(n,t){let e=[];return n.forEach(i=>{let r=gt.valData(i);if(typeof r=="string")e.push(r);else if(r!=null)throw new Error("Join requires a collection of strings.")}),gt.isEmpty(e)?[]:(t===void 0&&(t=""),e.join(t))};si.splitFn=function(n,t){let e=Ci.singleton(n,"String");return gt.isEmpty(e)?[]:e.split(t)};si.trimFn=function(n){let t=Ci.singleton(n,"String");return gt.isEmpty(t)?[]:t.trim()};si.encodeFn=function(n,t){let e=Ci.singleton(n,"String");return gt.isEmpty(e)?[]:t==="urlbase64"||t==="base64url"?btoa(e).replace(/\+/g,"-").replace(/\//g,"_"):t==="base64"?btoa(e):t==="hex"?Array.from(e).map(i=>i.charCodeAt(0)<128?i.charCodeAt(0).toString(16):encodeURIComponent(i).replace(/%/g,"")).join(""):[]};si.decodeFn=function(n,t){let e=Ci.singleton(n,"String");if(gt.isEmpty(e))return[];if(t==="urlbase64"||t==="base64url")return atob(e.replace(/-/g,"+").replace(/_/g,"/"));if(t==="base64")return atob(e);if(t==="hex"){if(e.length%2!==0)throw new Error("Decode 'hex' requires an even number of characters.");return decodeURIComponent("%"+e.match(/.{2}/g).join("%"))}return[]};var g5=new RegExp("").dotAll===!1;g5?si.matches=function(n,t){let e=Ci.singleton(n,"String");return gt.isEmpty(t)||gt.isEmpty(e)?[]:new RegExp(t,"su").test(e)}:si.matches=function(n,t){let e=Ci.singleton(n,"String");return gt.isEmpty(t)||gt.isEmpty(e)?[]:new RegExp(p5(t),"u").test(e)};si.replace=function(n,t,e){let i=Ci.singleton(n,"String");if(gt.isEmpty(t)||gt.isEmpty(e)||gt.isEmpty(i))return[];let r=new RegExp(gt.escapeStringForRegExp(t),"g");return i.replace(r,e)};si.replaceMatches=function(n,t,e){let i=Ci.singleton(n,"String");if(gt.isEmpty(t)||gt.isEmpty(e)||gt.isEmpty(i))return[];let r=new RegExp(t,"gu");return i.replace(r,e)};si.length=function(n){let t=Ci.singleton(n,"String");return gt.isEmpty(t)?[]:t.length};si.toChars=function(n){let t=Ci.singleton(n,"String");return gt.isEmpty(t)?[]:t.split("")};tI.exports=si});var rI=Z((ane,nI)=>{var Gf=vn(),Pu={};Pu.children=function(n){let t=this.model;return n.reduce(function(e,i){let r=Gf.valData(i);if(r==null)return e;if(typeof r=="object"){for(var s of Object.keys(r))Gf.pushFn(e,Gf.makeChildResNodes(i,s,t));return e}else return e},[])};Pu.descendants=function(n){for(var t=Pu.children.call(this,n),e=[];t.length>0;)Gf.pushFn(e,t),t=Pu.children.call(this,t);return e};nI.exports=Pu});var oI=Z((one,aI)=>{var Kf={},oy=Ar(),zn=Qb(),sI=oy.FP_Date,ay=oy.FP_DateTime,_5=oy.FP_Time;Kf.now=function(){if(!zn.now){var n=zn.nowDate,t=ay.isoDateTime(n);zn.now=new ay(t)}return zn.now};Kf.today=function(){if(!zn.today){var n=zn.nowDate,t=sI.isoDate(n);zn.today=new sI(t)}return zn.today};Kf.timeOfDay=function(){if(!zn.timeOfDay){let n=zn.nowDate,t=ay.isoTime(n);zn.timeOfDay=new _5(t)}return zn.timeOfDay};aI.exports=Kf});var cy=Z((lne,cI)=>{var ly=class n{constructor(t){this.terminologyUrl=t,this.invocationTable=n.invocationTable}static invocationTable={validateVS:{fn:n.validateVS,arity:{2:["String","AnySingletonAtRoot"],3:["String","AnySingletonAtRoot","String"]}}};static validateVS(t,e,i,r=""){b5(r);let s={Accept:"application/fhir+json; charset=utf-8"},a={Accept:"application/fhir+json; charset=utf-8","Content-Type":"application/fhir+json; charset=utf-8"},o=new Headers(s),l=`${t[0].terminologyUrl}/ValueSet/$validate-code`,c;if(i.coding){let u={resourceType:"Parameters",parameter:[{name:"url",valueUri:e},{name:"codeableConcept",valueCodeableConcept:i}]};o=new Headers(a),c=fetch(l+(r?"?"+r:""),{method:"POST",headers:o,body:JSON.stringify(u)})}else if(typeof i=="string"){let u=new URLSearchParams({url:e});c=fetch(`${t[0].terminologyUrl}/ValueSet?${u.toString()+(r?"&"+r:"")}`,{headers:o}).then(d=>d.json()).then(d=>{let h=d?.entry?.length===1&&(lI(d.entry[0].resource.expansion?.contains)||lI(d.entry[0].resource.compose?.include));if(h){let m=new URLSearchParams({url:e,code:i,system:h});return fetch(`${l}?${m.toString()+(r?"&"+r:"")}`,{headers:o})}else throw new Error("The valueset does not have a single code system.")})}else if(i.code){let u=new URLSearchParams({url:e??"",system:i.system??"",code:i.code});c=fetch(`${l}?${u.toString()+(r?"&"+r:"")}`,{headers:o})}return Promise.resolve(c).then(u=>u.json()).then(u=>{if(u?.parameter)return u;throw new Error(u)}).catch(()=>{let u=v5(i,e);throw new Error("Failed to check membership: "+u)})}};function v5(n,t){if(typeof n=="string")return n+" - "+t;if(n.code)return n.system+"|"+n.code+" - "+t;if(n.coding)return n.coding.map(e=>e.system+"|"+e.code).join(",")+" - "+t}function b5(n){if(n?.split("&").find(t=>{let e=t.split("=");return e.length<=2&&e.find(i=>encodeURIComponent(decodeURIComponent(i))!==i)}))throw new Error(`"${n}" should be a valid URL-encoded string`)}function lI(n,t=void 0){if(n){for(let e=0;e{var y5=vn(),C5=cy(),uI={};uI.memberOf=function(n,t){if(!this.async)throw new Error('The asynchronous function "memberOf" is not allowed. To enable asynchronous functions, use the async=true or async="always" option.');if(n.length!==1||n[0]==null)return[];if(typeof t=="string"&&/^https?:\/\/.*/.test(t)){let e=this.processedVars.terminologies;if(!e)throw new Error('Option "terminologyUrl" is not specified.');return C5.validateVS([e],t,y5.valData(n[0]),"").then(i=>i.parameter.find(r=>r.name==="result").valueBoolean,()=>[])}return[]};dI.exports=uI});var fI=Z((une,mI)=>{var Uu={};Uu.orOp=function(n,t){if(Array.isArray(t)){if(n===!0)return!0;if(n===!1)return[];if(Array.isArray(n))return[]}return Array.isArray(n)?t===!0?!0:[]:n||t};Uu.andOp=function(n,t){if(Array.isArray(t)){if(n===!0)return[];if(n===!1)return!1;if(Array.isArray(n))return[]}return Array.isArray(n)?t===!0?[]:!1:n&&t};Uu.xorOp=function(n,t){return Array.isArray(n)||Array.isArray(t)?[]:n&&!t||!n&&t};Uu.impliesOp=function(n,t){if(Array.isArray(t)){if(n===!0)return[];if(n===!1)return!0;if(Array.isArray(n))return[]}return Array.isArray(n)?t===!0?!0:[]:n===!1?!0:n&&t};mI.exports=Uu});var MI=Z((dne,kI)=>{var{version:w5}=sM(),x5=oE(),di=vn();o2();var S5=Qb(),me={},ar=D2(),Hn=Bf(),xl=H2(),pI=q2(),$u=Z2(),Mt=zf(),ta=ny(),gI=eI(),wi=iy(),xi=iI(),_I=rI(),uy=oI(),k5=hI(),Yf=fI(),Sl=Ar(),{FP_Date:M5,FP_DateTime:bI,FP_Time:yI,FP_Quantity:Qf,FP_Type:CI,ResourceNode:fy,TypeInfo:Zf}=Sl,ia=fy.makeResNode,T5=cy();me.invocationTable={memberOf:{fn:k5.memberOf,arity:{1:["String"]}},empty:{fn:ar.emptyFn},not:{fn:ar.notFn},exists:{fn:ar.existsMacro,arity:{0:[],1:["Expr"]}},all:{fn:ar.allMacro,arity:{1:["Expr"]}},allTrue:{fn:ar.allTrueFn},anyTrue:{fn:ar.anyTrueFn},allFalse:{fn:ar.allFalseFn},anyFalse:{fn:ar.anyFalseFn},subsetOf:{fn:ar.subsetOfFn,arity:{1:["AnyAtRoot"]}},supersetOf:{fn:ar.supersetOfFn,arity:{1:["AnyAtRoot"]}},isDistinct:{fn:ar.isDistinctFn},distinct:{fn:Hn.distinctFn},count:{fn:xl.countFn},where:{fn:Hn.whereMacro,arity:{1:["Expr"]}},extension:{fn:Hn.extension,arity:{1:["String"]}},select:{fn:Hn.selectMacro,arity:{1:["Expr"]}},aggregate:{fn:xl.aggregateMacro,arity:{1:["Expr"],2:["Expr","AnyAtRoot"]}},sum:{fn:xl.sumFn},min:{fn:xl.minFn},max:{fn:xl.maxFn},avg:{fn:xl.avgFn},weight:{fn:pI.weight},ordinal:{fn:pI.weight},single:{fn:Hn.singleFn},first:{fn:Hn.firstFn},last:{fn:Hn.lastFn},type:{fn:Sl.typeFn,arity:{0:[]}},ofType:{fn:Hn.ofTypeFn,arity:{1:["TypeSpecifier"]}},is:{fn:Sl.isFn,arity:{1:["TypeSpecifier"]}},as:{fn:Sl.asFn,arity:{1:["TypeSpecifier"]}},tail:{fn:Hn.tailFn},take:{fn:Hn.takeFn,arity:{1:["Integer"]}},skip:{fn:Hn.skipFn,arity:{1:["Integer"]}},combine:{fn:$u.combineFn,arity:{1:["AnyAtRoot"]}},union:{fn:$u.union,arity:{1:["AnyAtRoot"]}},intersect:{fn:$u.intersect,arity:{1:["AnyAtRoot"]}},exclude:{fn:$u.exclude,arity:{1:["AnyAtRoot"]}},iif:{fn:Mt.iifMacro,arity:{2:["Expr","Expr"],3:["Expr","Expr","Expr"]}},trace:{fn:Mt.traceFn,arity:{1:["String"],2:["String","Expr"]}},defineVariable:{fn:Mt.defineVariable,arity:{1:["String"],2:["String","Expr"]}},toInteger:{fn:Mt.toInteger},toDecimal:{fn:Mt.toDecimal},toString:{fn:Mt.toString},toDate:{fn:Mt.toDate},toDateTime:{fn:Mt.toDateTime},toTime:{fn:Mt.toTime},toBoolean:{fn:Mt.toBoolean},toQuantity:{fn:Mt.toQuantity,arity:{0:[],1:["String"]}},hasValue:{fn:Mt.hasValueFn},convertsToBoolean:{fn:Mt.createConvertsToFn(Mt.toBoolean,"boolean")},convertsToInteger:{fn:Mt.createConvertsToFn(Mt.toInteger,"number")},convertsToDecimal:{fn:Mt.createConvertsToFn(Mt.toDecimal,"number")},convertsToString:{fn:Mt.createConvertsToFn(Mt.toString,"string")},convertsToDate:{fn:Mt.createConvertsToFn(Mt.toDate,M5)},convertsToDateTime:{fn:Mt.createConvertsToFn(Mt.toDateTime,bI)},convertsToTime:{fn:Mt.createConvertsToFn(Mt.toTime,yI)},convertsToQuantity:{fn:Mt.createConvertsToFn(Mt.toQuantity,Qf)},indexOf:{fn:xi.indexOf,arity:{1:["String"]}},substring:{fn:xi.substring,arity:{1:["Integer"],2:["Integer","Integer"]}},startsWith:{fn:xi.startsWith,arity:{1:["String"]}},endsWith:{fn:xi.endsWith,arity:{1:["String"]}},contains:{fn:xi.containsFn,arity:{1:["String"]}},upper:{fn:xi.upper},lower:{fn:xi.lower},replace:{fn:xi.replace,arity:{2:["String","String"]}},matches:{fn:xi.matches,arity:{1:["String"]}},replaceMatches:{fn:xi.replaceMatches,arity:{2:["String","String"]}},length:{fn:xi.length},toChars:{fn:xi.toChars},join:{fn:xi.joinFn,arity:{0:[],1:["String"]}},split:{fn:xi.splitFn,arity:{1:["String"]}},trim:{fn:xi.trimFn},encode:{fn:xi.encodeFn,arity:{1:["String"]}},decode:{fn:xi.decodeFn,arity:{1:["String"]}},abs:{fn:wi.abs},ceiling:{fn:wi.ceiling},exp:{fn:wi.exp},floor:{fn:wi.floor},ln:{fn:wi.ln},log:{fn:wi.log,arity:{1:["Number"]},nullable:!0},power:{fn:wi.power,arity:{1:["Number"]},nullable:!0},round:{fn:wi.round,arity:{0:[],1:["Number"]}},sqrt:{fn:wi.sqrt},truncate:{fn:wi.truncate},now:{fn:uy.now},today:{fn:uy.today},timeOfDay:{fn:uy.timeOfDay},repeat:{fn:Hn.repeatMacro,arity:{1:["Expr"]}},children:{fn:_I.children},descendants:{fn:_I.descendants},"|":{fn:$u.union,arity:{2:["Any","Any"]}},"=":{fn:ta.equal,arity:{2:["Any","Any"]},nullable:!0},"!=":{fn:ta.unequal,arity:{2:["Any","Any"]},nullable:!0},"~":{fn:ta.equival,arity:{2:["Any","Any"]}},"!~":{fn:ta.unequival,arity:{2:["Any","Any"]}},"<":{fn:ta.lt,arity:{2:["Any","Any"]},nullable:!0},">":{fn:ta.gt,arity:{2:["Any","Any"]},nullable:!0},"<=":{fn:ta.lte,arity:{2:["Any","Any"]},nullable:!0},">=":{fn:ta.gte,arity:{2:["Any","Any"]},nullable:!0},containsOp:{fn:gI.contains,arity:{2:["Any","Any"]}},inOp:{fn:gI.in,arity:{2:["Any","Any"]}},isOp:{fn:Sl.isFn,arity:{2:["Any","TypeSpecifier"]}},asOp:{fn:Sl.asFn,arity:{2:["Any","TypeSpecifier"]}},"&":{fn:wi.amp,arity:{2:["String","String"]}},"+":{fn:wi.plus,arity:{2:["Any","Any"]},nullable:!0},"-":{fn:wi.minus,arity:{2:["Any","Any"]},nullable:!0},"*":{fn:wi.mul,arity:{2:["Any","Any"]},nullable:!0},"/":{fn:wi.div,arity:{2:["Any","Any"]},nullable:!0},mod:{fn:wi.mod,arity:{2:["Number","Number"]},nullable:!0},div:{fn:wi.intdiv,arity:{2:["Number","Number"]},nullable:!0},or:{fn:Yf.orOp,arity:{2:[["Boolean"],["Boolean"]]}},and:{fn:Yf.andOp,arity:{2:[["Boolean"],["Boolean"]]}},xor:{fn:Yf.xorOp,arity:{2:[["Boolean"],["Boolean"]]}},implies:{fn:Yf.impliesOp,arity:{2:[["Boolean"],["Boolean"]]}}};me.InvocationExpression=function(n,t,e){return e.children.reduce(function(i,r){return me.doEval(n,i,r)},t)};me.TermExpression=function(n,t,e){return t&&(t=t.map(i=>i instanceof Object&&i.resourceType?ia(i,null,i.resourceType,null,i.resourceType):i)),me.doEval(n,t,e.children[0])};me.PolarityExpression=function(n,t,e){var i=e.terminalNodeText[0],r=me.doEval(n,t,e.children[0]);if(r.length!==1)throw new Error("Unary "+i+" can only be applied to an individual number or Quantity.");if(r[0]instanceof Qf)i==="-"&&(r[0]=new Qf(-r[0].value,r[0].unit));else if(typeof r[0]=="number"&&!isNaN(r[0]))i==="-"&&(r[0]=-r[0]);else throw new Error("Unary "+i+" can only be applied to a number or Quantity.");return r};me.TypeSpecifier=function(n,t,e){let i,r,s=e.text.split(".").map(o=>o.replace(/(^`|`$)/g,""));switch(s.length){case 2:[i,r]=s;break;case 1:[r]=s;break;default:throw new Error("Expected TypeSpecifier node, got "+JSON.stringify(e))}let a=new Zf({namespace:i,name:r});if(!a.isValid())throw new Error('"'+a+'" cannot be resolved to a valid type identifier');return a};me.ExternalConstantTerm=function(n,t,e){var i=e.children[0],r=i.children[0],s=me.Identifier(n,t,r)[0],a;if(s in n.vars)a=n.vars[s],Array.isArray(a)?a=a.map(o=>o?.__path__?ia(o,o.__path__.parentResNode,o.__path__.path,null,o.__path__.fhirNodeDataType):o?.resourceType?ia(o,null,null,null):o):a=a?.__path__?ia(a,a.__path__.parentResNode,a.__path__.path,null,a.__path__.fhirNodeDataType):a?.resourceType?ia(a,null,null,null):a,n.processedVars[s]=a,delete n.vars[s];else if(s in n.processedVars)a=n.processedVars[s];else if(n.definedVars&&s in n.definedVars)a=n.definedVars[s];else throw new Error("Attempting to access an undefined environment variable: "+s);return a==null?[]:a instanceof Array?a:[a]};me.LiteralTerm=function(n,t,e){var i=e.children[0];return i?me.doEval(n,t,i):[e.text]};me.StringLiteral=function(n,t,e){var i=e.text.replace(/(^'|'$)/g,"");return i=i.replace(/\\(u\d{4}|.)/g,function(r,s){switch(r){case"\\r":return"\r";case"\\n":return` -`;case"\\t":return" ";case"\\f":return"\f";default:return s.length>1?String.fromCharCode("0x"+s.slice(1)):s}}),[i]};me.BooleanLiteral=function(n,t,e){return e.text==="true"?[!0]:[!1]};me.QuantityLiteral=function(n,t,e){var i=e.children[0],r=Number(i.terminalNodeText[0]),s=i.children[0],a=s.terminalNodeText[0];return!a&&s.children&&(a=s.children[0].terminalNodeText[0]),[new Qf(r,a)]};me.DateTimeLiteral=function(n,t,e){var i=e.text.slice(1);return[new bI(i)]};me.TimeLiteral=function(n,t,e){var i=e.text.slice(1);return[new yI(i)]};me.NumberLiteral=function(n,t,e){return[Number(e.text)]};me.Identifier=function(n,t,e){return[e.text.replace(/(^`|`$)/g,"")]};me.InvocationTerm=function(n,t,e){return me.doEval(n,t,e.children[0])};me.MemberInvocation=function(n,t,e){let i=me.doEval(n,t,e.children[0])[0],r=n.model;return t?t.reduce(function(s,a){return a=ia(a,null,a.__path__?.path,null,a.__path__?.fhirNodeDataType),a.data?.resourceType===i?s.push(a):di.pushFn(s,di.makeChildResNodes(a,i,r)),s},[]):[]};me.IndexerExpression=function(n,t,e){let i=e.children[0],r=e.children[1];var s=me.doEval(n,t,i),a=me.doEval(n,t,r);if(di.isEmpty(a))return[];var o=parseInt(a[0]);return s&&di.isSome(o)&&s.length>o&&o>=0?[s[o]]:[]};me.Functn=function(n,t,e){return e.children.map(function(i){return me.doEval(n,t,i)})};me.realizeParams=function(n,t,e){return e&&e[0]&&e[0].children?e[0].children.map(function(i){return me.doEval(n,t,i)}):[]};function wI(n,t,e,i){if(e==="Expr")return function(s){let a=di.arraify(s),o=je(G({},n),{$this:a});return n.definedVars&&(o.definedVars=G({},n.definedVars)),me.doEval(o,a,i)};if(e==="AnyAtRoot"){let s=n.$this||n.dataRoot,a=je(G({},n),{$this:s});return n.definedVars&&(a.definedVars=G({},n.definedVars)),me.doEval(a,s,i)}if(e==="Identifier"){if(i.type==="TermExpression")return i.text;throw new Error("Expected identifier node, got "+JSON.stringify(i))}if(e==="TypeSpecifier")return me.TypeSpecifier(n,t,i);let r;if(e==="AnySingletonAtRoot"){let s=n.$this||n.dataRoot,a=je(G({},n),{$this:s});n.definedVars&&(a.definedVars=G({},n.definedVars)),r=me.doEval(a,s,i)}else{let s=G({},n);if(n.definedVars&&(s.definedVars=G({},n.definedVars)),r=me.doEval(s,t,i),e==="Any")return r;if(Array.isArray(e)){if(r.length===0)return[];e=e[0]}}return Mt.singleton(r,e)}function E5(n,t,e,i){var r=n.userInvocationTable?.[t]||me.invocationTable[t]||e.length===1&&e[0]?.invocationTable[t],s;if(r)if(r.arity){var a=i?i.length:0,o=r.arity[a];if(o){for(var l=[],c=0;ch instanceof Promise)?Promise.all(l).then(h=>(s=r.fn.apply(n,h),di.resolveAndArraify(s))):(s=r.fn.apply(n,l),di.resolveAndArraify(s))}else return console.log(t+" wrong arity: got "+a),[]}else{if(i)throw new Error(t+" expects no params");return s=r.fn.call(n,e),di.resolveAndArraify(s)}else throw new Error("Not implemented: "+t)}function xI(n){return n==null||di.isEmpty(n)}function py(n,t,e,i){var r=me.invocationTable[t];if(r&&r.fn){var s=i?i.length:0;if(s!==2)throw new Error("Infix invoke should have arity 2");var a=r.arity[s];if(a){for(var o=[],l=0;lh instanceof Promise))return Promise.all(o).then(h=>{var m=r.fn.apply(n,h);return di.arraify(m)});var d=r.fn.apply(n,o);return di.arraify(d)}else return console.log(t+" wrong arity: got "+s),[]}else throw new Error("Not impl "+t)}me.FunctionInvocation=function(n,t,e){var i=me.doEval(n,t,e.children[0]);let r=i[0];i.shift();var s=i&&i[0]&&i[0].children;return E5(n,r,t,s)};me.ParamList=function(n,t,e){return e};me.UnionExpression=function(n,t,e){return py(n,"|",t,e.children)};me.ThisInvocation=function(n){return n.$this};me.TotalInvocation=function(n){return di.arraify(n.$total)};me.IndexInvocation=function(n){return di.arraify(n.$index)};me.OpExpression=function(n,t,e){var i=e.terminalNodeText[0];return py(n,i,t,e.children)};me.AliasOpExpression=function(n){return function(t,e,i){var r=i.terminalNodeText[0],s=n[r];if(!s)throw new Error("Do not know how to alias "+r+" by "+JSON.stringify(n));return py(t,s,e,i.children)}};me.NullLiteral=function(){return[]};me.ParenthesizedTerm=function(n,t,e){return me.doEval(n,t,e.children[0])};me.evalTable={BooleanLiteral:me.BooleanLiteral,EqualityExpression:me.OpExpression,FunctionInvocation:me.FunctionInvocation,Functn:me.Functn,Identifier:me.Identifier,IndexerExpression:me.IndexerExpression,InequalityExpression:me.OpExpression,InvocationExpression:me.InvocationExpression,AdditiveExpression:me.OpExpression,MultiplicativeExpression:me.OpExpression,TypeExpression:me.AliasOpExpression({is:"isOp",as:"asOp"}),MembershipExpression:me.AliasOpExpression({contains:"containsOp",in:"inOp"}),NullLiteral:me.NullLiteral,EntireExpression:me.InvocationTerm,InvocationTerm:me.InvocationTerm,LiteralTerm:me.LiteralTerm,MemberInvocation:me.MemberInvocation,NumberLiteral:me.NumberLiteral,ParamList:me.ParamList,ParenthesizedTerm:me.ParenthesizedTerm,StringLiteral:me.StringLiteral,TermExpression:me.TermExpression,ThisInvocation:me.ThisInvocation,TotalInvocation:me.TotalInvocation,IndexInvocation:me.IndexInvocation,UnionExpression:me.UnionExpression,OrExpression:me.OpExpression,ImpliesExpression:me.OpExpression,AndExpression:me.OpExpression,XorExpression:me.OpExpression};me.doEval=function(n,t,e){return t instanceof Promise?t.then(i=>me.doEvalSync(n,i,e)):me.doEvalSync(n,t,e)};me.doEvalSync=function(n,t,e){let i=me.evalTable[e.type]||me[e.type];if(i)return i.call(me,n,t,e);throw new Error("No "+e.type+" evaluator ")};function hy(n){return x5.parse(n)}function vI(n,t,e,i,r){S5.reset();let s=di.arraify(n).map(l=>l?.__path__?ia(l,l.__path__.parentResNode,l.__path__.path,null,l.__path__.fhirNodeDataType):l),a={dataRoot:s,processedVars:{ucum:"http://unitsofmeasure.org"},vars:G({context:s},e),model:i};r.traceFn&&(a.customTraceFn=r.traceFn),r.userInvocationTable&&(a.userInvocationTable=r.userInvocationTable),a.defaultScoreExts=["http://hl7.org/fhir/StructureDefinition/ordinalValue","http://hl7.org/fhir/StructureDefinition/itemWeight","http://hl7.org/fhir/StructureDefinition/questionnaire-ordinalValue"],r.async&&(a.async=r.async),r.terminologyUrl&&(a.processedVars.terminologies=new T5(r.terminologyUrl));let o=me.doEval(a,s,t.children[0]);return o instanceof Promise?o.then(l=>dy(l,r)):r.async==="always"?Promise.resolve(dy(o,r)):dy(o,r)}function dy(n,t){return n.reduce((e,i)=>{let r,s,a;return i instanceof fy&&(r=i.path,s=i.fhirNodeDataType,a=i.parentResNode),i=di.valData(i),i instanceof CI&&t.resolveInternalTypes&&(i=i.toString()),i!=null&&(r&&typeof i=="object"&&!i.__path__&&Object.defineProperty(i,"__path__",{value:{path:r,fhirNodeDataType:s,parentResNode:a}}),e.push(i)),e},[])}function my(n){if(Array.isArray(n))for(let t=0,e=n.length;t(i[s].internalStructures?r[s]=i[s]:r[s]=je(G({},i[s]),{fn:(...a)=>i[s].fn.apply(this,a.map(o=>Array.isArray(o)?o.map(l=>di.valData(l)):o))}),r),{})),typeof n=="object"){let r=hy(n.expression);return function(s,a){if(n.base){let o=t.pathsDefinedElsewhere[n.base]||n.base,l=t&&t.path2Type[o];o=l==="BackboneElement"||l==="Element"?o:l||o,s=ia(s,null,o,null,l)}return Zf.model=t,vI(s,r,a,t,e)}}else{let r=hy(n);return function(s,a){return Zf.model=t,vI(s,r,a,t,e)}}}function A5(n){return di.arraify(n).map(t=>{let e=Zf.fromValue(t?.__path__?new fy(t,t.__path__?.parentResNode,t.__path__?.path,null,t.__path__?.fhirNodeDataType):t);return`${e.namespace}.${e.name}`})}kI.exports={version:w5,parse:hy,compile:SI,evaluate:I5,resolveInternalTypes:my,types:A5,ucumUtils:Nf().UcumLhcUtils.getInstance(),util:di}});var tD=Z((qy,eD)=>{(function(n,t){typeof define=="function"&&define.amd?define([],t):typeof qy=="object"?eD.exports=t():n.untar=t()})(qy,function(){"use strict";function n(o){function l(m){for(var f=0,g=c.length;f127){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}};'])),t})});var tt="primary",rc=Symbol("RouteTitle"),r0=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function To(n){return new r0(n)}function KD(n,t,e){let i=e.path.split("/");if(i.length>n.length||e.pathMatch==="full"&&(t.hasChildren()||i.lengthi[s]===r)}else return n===t}function $C(n){return n.length>0?n[n.length-1]:null}function Ls(n){return ur(n)?n:_d(n)?pi(Promise.resolve(n)):ye(n)}var QD={exact:BC,subset:zC},VC={exact:ZD,subset:XD,ignored:()=>!0};function TC(n,t,e){return QD[e.paths](n.root,t.root,e.matrixParams)&&VC[e.queryParams](n.queryParams,t.queryParams)&&!(e.fragment==="exact"&&n.fragment!==t.fragment)}function ZD(n,t){return _r(n,t)}function BC(n,t,e){if(!_a(n.segments,t.segments)||!Ed(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(let i in t.children)if(!n.children[i]||!BC(n.children[i],t.children[i],e))return!1;return!0}function XD(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>UC(n[e],t[e]))}function zC(n,t,e){return HC(n,t,t.segments,e)}function HC(n,t,e,i){if(n.segments.length>e.length){let r=n.segments.slice(0,e.length);return!(!_a(r,e)||t.hasChildren()||!Ed(r,e,i))}else if(n.segments.length===e.length){if(!_a(n.segments,e)||!Ed(n.segments,e,i))return!1;for(let r in t.children)if(!n.children[r]||!zC(n.children[r],t.children[r],i))return!1;return!0}else{let r=e.slice(0,n.segments.length),s=e.slice(n.segments.length);return!_a(n.segments,r)||!Ed(n.segments,r,i)||!n.children[tt]?!1:HC(n.children[tt],t,s,i)}}function Ed(n,t,e){return t.every((i,r)=>VC[e](n[r].parameters,i.parameters))}var Hr=class{root;queryParams;fragment;_queryParamMap;constructor(t=new bt([],{}),e={},i=null){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=To(this.queryParams),this._queryParamMap}toString(){return tR.serialize(this)}},bt=class{segments;children;parent=null;constructor(t,e){this.segments=t,this.children=e,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Id(this)}},ga=class{path;parameters;_parameterMap;constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap??=To(this.parameters),this._parameterMap}toString(){return WC(this)}};function JD(n,t){return _a(n,t)&&n.every((e,i)=>_r(e.parameters,t[i].parameters))}function _a(n,t){return n.length!==t.length?!1:n.every((e,i)=>e.path===t[i].path)}function eR(n,t){let e=[];return Object.entries(n.children).forEach(([i,r])=>{i===tt&&(e=e.concat(t(r,i)))}),Object.entries(n.children).forEach(([i,r])=>{i!==tt&&(e=e.concat(t(r,i)))}),e}var sc=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:()=>new Eo,providedIn:"root"})}return n})(),Eo=class{parse(t){let e=new o0(t);return new Hr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){let e=`/${Wl(t.root,!0)}`,i=rR(t.queryParams),r=typeof t.fragment=="string"?`#${iR(t.fragment)}`:"";return`${e}${i}${r}`}},tR=new Eo;function Id(n){return n.segments.map(t=>WC(t)).join("/")}function Wl(n,t){if(!n.hasChildren())return Id(n);if(t){let e=n.children[tt]?Wl(n.children[tt],!1):"",i=[];return Object.entries(n.children).forEach(([r,s])=>{r!==tt&&i.push(`${r}:${Wl(s,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=eR(n,(i,r)=>r===tt?[Wl(n.children[tt],!1)]:[`${r}:${Wl(i,!1)}`]);return Object.keys(n.children).length===1&&n.children[tt]!=null?`${Id(n)}/${e[0]}`:`${Id(n)}/(${e.join("//")})`}}function jC(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Md(n){return jC(n).replace(/%3B/gi,";")}function iR(n){return encodeURI(n)}function a0(n){return jC(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ad(n){return decodeURIComponent(n)}function EC(n){return Ad(n.replace(/\+/g,"%20"))}function WC(n){return`${a0(n.path)}${nR(n.parameters)}`}function nR(n){return Object.entries(n).map(([t,e])=>`;${a0(t)}=${a0(e)}`).join("")}function rR(n){let t=Object.entries(n).map(([e,i])=>Array.isArray(i)?i.map(r=>`${Md(e)}=${Md(r)}`).join("&"):`${Md(e)}=${Md(i)}`).filter(e=>e);return t.length?`?${t.join("&")}`:""}var sR=/^[^\/()?;#]+/;function e0(n){let t=n.match(sR);return t?t[0]:""}var aR=/^[^\/()?;=#]+/;function oR(n){let t=n.match(aR);return t?t[0]:""}var lR=/^[^=?&#]+/;function cR(n){let t=n.match(lR);return t?t[0]:""}var uR=/^[^&#]+/;function dR(n){let t=n.match(uR);return t?t[0]:""}var o0=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new bt([],{}):new bt([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[tt]=new bt(t,e)),i}parseSegment(){let t=e0(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new ze(4009,!1);return this.capture(t),new ga(Ad(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let e=oR(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=e0(this.remaining);r&&(i=r,this.capture(i))}t[Ad(e)]=Ad(i)}parseQueryParam(t){let e=cR(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let a=dR(this.remaining);a&&(i=a,this.capture(i))}let r=EC(e),s=EC(i);if(t.hasOwnProperty(r)){let a=t[r];Array.isArray(a)||(a=[a],t[r]=a),a.push(s)}else t[r]=s}parseParens(t){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=e0(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new ze(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=tt);let a=this.parseChildren();e[s]=Object.keys(a).length===1?a[tt]:new bt([],a),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new ze(4011,!1)}};function qC(n){return n.segments.length>0?new bt([],{[tt]:n}):n}function GC(n){let t={};for(let[i,r]of Object.entries(n.children)){let s=GC(r);if(i===tt&&s.segments.length===0&&s.hasChildren())for(let[a,o]of Object.entries(s.children))t[a]=o;else(s.segments.length>0||s.hasChildren())&&(t[i]=s)}let e=new bt(n.segments,t);return hR(e)}function hR(n){if(n.numberOfChildren===1&&n.children[tt]){let t=n.children[tt];return new bt(n.segments.concat(t.segments),t.children)}return n}function va(n){return n instanceof Hr}function mR(n,t,e=null,i=null){let r=KC(n);return YC(r,t,e,i)}function KC(n){let t;function e(s){let a={};for(let l of s.children){let c=e(l);a[l.outlet]=c}let o=new bt(s.url,a);return s===n&&(t=o),o}let i=e(n.root),r=qC(i);return t??r}function YC(n,t,e,i){let r=n;for(;r.parent;)r=r.parent;if(t.length===0)return t0(r,r,r,e,i);let s=fR(t);if(s.toRoot())return t0(r,r,new bt([],{}),e,i);let a=pR(s,r,n),o=a.processChildren?Kl(a.segmentGroup,a.index,s.commands):ZC(a.segmentGroup,a.index,s.commands);return t0(r,a.segmentGroup,o,e,i)}function Dd(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function Zl(n){return typeof n=="object"&&n!=null&&n.outlets}function t0(n,t,e,i,r){let s={};i&&Object.entries(i).forEach(([l,c])=>{s[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`});let a;n===t?a=e:a=QC(n,t,e);let o=qC(GC(a));return new Hr(o,s,r)}function QC(n,t,e){let i={};return Object.entries(n.children).forEach(([r,s])=>{s===t?i[r]=e:i[r]=QC(s,t,e)}),new bt(n.segments,i)}var Rd=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Dd(i[0]))throw new ze(4003,!1);let r=i.find(Zl);if(r&&r!==$C(i))throw new ze(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function fR(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new Rd(!0,0,n);let t=0,e=!1,i=n.reduce((r,s,a)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let o={};return Object.entries(s.outlets).forEach(([l,c])=>{o[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:o}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:a===0?(s.split("/").forEach((o,l)=>{l==0&&o==="."||(l==0&&o===""?e=!0:o===".."?t++:o!=""&&r.push(o))}),r):[...r,s]},[]);return new Rd(e,t,i)}var So=class{segmentGroup;processChildren;index;constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}};function pR(n,t,e){if(n.isAbsolute)return new So(t,!0,0);if(!e)return new So(t,!1,NaN);if(e.parent===null)return new So(e,!0,0);let i=Dd(n.commands[0])?0:1,r=e.segments.length-1+i;return gR(e,r,n.numberOfDoubleDots)}function gR(n,t,e){let i=n,r=t,s=e;for(;s>r;){if(s-=r,i=i.parent,!i)throw new ze(4005,!1);r=i.segments.length}return new So(i,!1,r-s)}function _R(n){return Zl(n[0])?n[0].outlets:{[tt]:n}}function ZC(n,t,e){if(n??=new bt([],{}),n.segments.length===0&&n.hasChildren())return Kl(n,t,e);let i=vR(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndexs!==tt)&&n.children[tt]&&n.numberOfChildren===1&&n.children[tt].segments.length===0){let s=Kl(n.children[tt],t,e);return new bt(n.segments,s.children)}return Object.entries(i).forEach(([s,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[s]=ZC(n.children[s],t,a))}),Object.entries(n.children).forEach(([s,a])=>{i[s]===void 0&&(r[s]=a)}),new bt(n.segments,r)}}function vR(n,t,e){let i=0,r=t,s={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return s;let a=n.segments[r],o=e[i];if(Zl(o))break;let l=`${o}`,c=i0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!AC(l,c,a))return s;i+=2}else{if(!AC(l,{},a))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function l0(n,t,e){let i=n.segments.slice(0,t),r=0;for(;r{typeof i=="string"&&(i=[i]),i!==null&&(t[e]=l0(new bt([],{}),0,i))}),t}function IC(n){let t={};return Object.entries(n).forEach(([e,i])=>t[e]=`${i}`),t}function AC(n,t,e){return n==e.path&&_r(t,e.parameters)}var Yl="imperative",oi=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(oi||{}),In=class{id;url;constructor(t,e){this.id=t,this.url=e}},Io=class extends In{type=oi.NavigationStart;navigationTrigger;restoredState;constructor(t,e,i="imperative",r=null){super(t,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},vr=class extends In{urlAfterRedirects;type=oi.NavigationEnd;constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},cn=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(cn||{}),Ld=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(Ld||{}),zr=class extends In{reason;code;type=oi.NavigationCancel;constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Ds=class extends In{reason;code;type=oi.NavigationSkipped;constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r}},Xl=class extends In{error;target;type=oi.NavigationError;constructor(t,e,i,r){super(t,e),this.error=i,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Od=class extends In{urlAfterRedirects;state;type=oi.RoutesRecognized;constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},c0=class extends In{urlAfterRedirects;state;type=oi.GuardsCheckStart;constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},u0=class extends In{urlAfterRedirects;state;shouldActivate;type=oi.GuardsCheckEnd;constructor(t,e,i,r,s){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},d0=class extends In{urlAfterRedirects;state;type=oi.ResolveStart;constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},h0=class extends In{urlAfterRedirects;state;type=oi.ResolveEnd;constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},m0=class{route;type=oi.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},f0=class{route;type=oi.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},p0=class{snapshot;type=oi.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},g0=class{snapshot;type=oi.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_0=class{snapshot;type=oi.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},v0=class{snapshot;type=oi.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Nd=class{routerEvent;position;anchor;type=oi.Scroll;constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},Jl=class{},Ao=class{url;navigationBehaviorOptions;constructor(t,e){this.url=t,this.navigationBehaviorOptions=e}};function yR(n,t){return n.providers&&!n._injector&&(n._injector=Qp(n.providers,t,`Route: ${n.path}`)),n._injector??t}function Zn(n){return n.outlet||tt}function CR(n,t){let e=n.filter(i=>Zn(i)===t);return e.push(...n.filter(i=>Zn(i)!==t)),e}function ac(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){let e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var b0=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return ac(this.route?.snapshot)??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new oc(this.rootInjector)}},oc=(()=>{class n{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new b0(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(i){return new(i||n)(He($r))};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Fd=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){let e=y0(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){let e=y0(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){let e=C0(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return C0(t,this._root).map(e=>e.value)}};function y0(n,t){if(n===t.value)return t;for(let e of t.children){let i=y0(n,e);if(i)return i}return null}function C0(n,t){if(n===t.value)return[t];for(let e of t.children){let i=C0(n,e);if(i.length)return i.unshift(t),i}return[]}var ln=class{value;children;constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}};function xo(n){let t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}var Pd=class extends Fd{snapshot;constructor(t,e){super(t),this.snapshot=e,A0(this,t)}toString(){return this.snapshot.toString()}};function XC(n){let t=wR(n),e=new fi([new ga("",{})]),i=new fi({}),r=new fi({}),s=new fi({}),a=new fi(""),o=new ba(e,i,s,a,r,tt,n,t.root);return o.snapshot=t.root,new Pd(new ln(o,[]),t)}function wR(n){let t={},e={},i={},r="",s=new ko([],t,i,r,e,tt,n,null,{});return new $d("",new ln(s,[]))}var ba=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,e,i,r,s,a,o,l){this.urlSubject=t,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=s,this.outlet=a,this.component=o,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Oe(c=>c[rc]))??ye(void 0),this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s}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(Oe(t=>To(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Oe(t=>To(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ud(n,t,e="emptyOnly"){let i,{routeConfig:r}=n;return t!==null&&(e==="always"||r?.path===""||!t.component&&!t.routeConfig?.loadComponent)?i={params:G(G({},t.params),n.params),data:G(G({},t.data),n.data),resolve:G(G(G(G({},n.data),t.data),r?.data),n._resolvedData)}:i={params:G({},n.params),data:G({},n.data),resolve:G(G({},n.data),n._resolvedData??{})},r&&ew(r)&&(i.resolve[rc]=r.title),i}var ko=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[rc]}constructor(t,e,i,r,s,a,o,l,c){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=a,this.component=o,this.routeConfig=l,this._resolve=c}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??=To(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=To(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${e}')`}},$d=class extends Fd{url;constructor(t,e){super(e),this.url=t,A0(this,e)}toString(){return JC(this._root)}};function A0(n,t){t.value._routerState=n,t.children.forEach(e=>A0(n,e))}function JC(n){let t=n.children.length>0?` { ${n.children.map(JC).join(", ")} } `:"";return`${n.value}${t}`}function i0(n){if(n.snapshot){let t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,_r(t.queryParams,e.queryParams)||n.queryParamsSubject.next(e.queryParams),t.fragment!==e.fragment&&n.fragmentSubject.next(e.fragment),_r(t.params,e.params)||n.paramsSubject.next(e.params),YD(t.url,e.url)||n.urlSubject.next(e.url),_r(t.data,e.data)||n.dataSubject.next(e.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function w0(n,t){let e=_r(n.params,t.params)&&JD(n.url,t.url),i=!n.parent!=!t.parent;return e&&!i&&(!n.parent||w0(n.parent,t.parent))}function ew(n){return typeof n.title=="string"||n.title===null}var xR=new se(""),D0=(()=>{class n{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=tt;activateEvents=new le;deactivateEvents=new le;attachEvents=new le;detachEvents=new le;routerOutletData=W1(void 0);parentContexts=L(oc);location=L(Fi);changeDetector=L(Ze);inputBinder=L(Wd,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ze(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ze(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ze(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new ze(4013,!1);this._activatedRoute=e;let r=this.location,a=e.snapshot.component,o=this.parentContexts.getOrCreateContext(this.name).children,l=new x0(e,o,r.injector,this.routerOutletData);this.activated=r.createComponent(a,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[St]})}return n})(),x0=class n{route;childContexts;parent;outletData;__ngOutletInjector(t){return new n(this.route,this.childContexts,t,this.outletData)}constructor(t,e,i,r){this.route=t,this.childContexts=e,this.parent=i,this.outletData=r}get(t,e){return t===ba?this.route:t===oc?this.childContexts:t===xR?this.outletData:this.parent.get(t,e)}},Wd=new se(""),DC=(()=>{class n{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:i}=e,r=dr([i.queryParams,i.params,i.data]).pipe(Ot(([s,a,o],l)=>(o=G(G(G({},s),a),o),l===0?ye(o):Promise.resolve(o)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let a=lC(i.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:o}of a.inputs)e.activatedComponentRef.setInput(o,s[o])});this.outletDataSubscriptions.set(e,r)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac})}return n})();function SR(n,t,e){let i=ec(n,t._root,e?e._root:void 0);return new Pd(i,t)}function ec(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=t.value;let r=kR(n,t,e);return new ln(i,r)}else{if(n.shouldAttach(t.value)){let s=n.retrieve(t.value);if(s!==null){let a=s.route;return a.value._futureSnapshot=t.value,a.children=t.children.map(o=>ec(n,o)),a}}let i=MR(t.value),r=t.children.map(s=>ec(n,s));return new ln(i,r)}}function kR(n,t,e){return t.children.map(i=>{for(let r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return ec(n,i,r);return ec(n,i)})}function MR(n){return new ba(new fi(n.url),new fi(n.params),new fi(n.queryParams),new fi(n.fragment),new fi(n.data),n.outlet,n.component,n)}var tc=class{redirectTo;navigationBehaviorOptions;constructor(t,e){this.redirectTo=t,this.navigationBehaviorOptions=e}},tw="ngNavigationCancelingError";function Vd(n,t){let{redirectTo:e,navigationBehaviorOptions:i}=va(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=iw(!1,cn.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function iw(n,t){let e=new Error(`NavigationCancelingError: ${n||""}`);return e[tw]=!0,e.cancellationCode=t,e}function TR(n){return nw(n)&&va(n.url)}function nw(n){return!!n&&n[tw]}var ER=(n,t,e,i)=>Oe(r=>(new S0(t,r.targetRouterState,r.currentRouterState,e,i).activate(n),r)),S0=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,e,i,r,s){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=s}activate(t){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),i0(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){let r=xo(e);t.children.forEach(s=>{let a=s.value.outlet;this.deactivateRoutes(s,r[a],i),delete r[a]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,i)})}deactivateRoutes(t,e,i){let r=t.value,s=e?e.value:null;if(r===s)if(r.component){let a=i.getContext(r.outlet);a&&this.deactivateChildRoutes(t,e,a.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){let i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,s=xo(t);for(let a of Object.values(s))this.deactivateRouteAndItsChildren(a,r);if(i&&i.outlet){let a=i.outlet.detach(),o=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:a,route:t,contexts:o})}}deactivateRouteAndOutlet(t,e){let i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,s=xo(t);for(let a of Object.values(s))this.deactivateRouteAndItsChildren(a,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(t,e,i){let r=xo(e);t.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],i),this.forwardEvent(new v0(s.value.snapshot))}),t.children.length&&this.forwardEvent(new g0(t.value.snapshot))}activateRoutes(t,e,i){let r=t.value,s=e?e.value:null;if(i0(r),r===s)if(r.component){let a=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,a.children)}else this.activateChildRoutes(t,e,i);else if(r.component){let a=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(o.contexts),a.attachRef=o.componentRef,a.route=o.route.value,a.outlet&&a.outlet.attach(o.componentRef,o.route.value),i0(o.route.value),this.activateChildRoutes(t,null,a.children)}else a.attachRef=null,a.route=r,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(t,null,a.children)}else this.activateChildRoutes(t,null,i)}},Bd=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Mo=class{component;route;constructor(t,e){this.component=t,this.route=e}};function IR(n,t,e){let i=n._root,r=t?t._root:null;return ql(i,r,e,[i.value])}function AR(n){let t=n.routeConfig?n.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:n,guards:t}}function Ro(n,t){let e=Symbol(),i=t.get(n,e);return i===e?typeof n=="function"&&!z1(n)?n:t.get(n):i}function ql(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=xo(t);return n.children.forEach(a=>{DR(a,s[a.value.outlet],e,i.concat([a.value]),r),delete s[a.value.outlet]}),Object.entries(s).forEach(([a,o])=>Ql(o,e.getContext(a),r)),r}function DR(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=n.value,a=t?t.value:null,o=e?e.getContext(n.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){let l=RR(a,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Bd(i)):(s.data=a.data,s._resolvedData=a._resolvedData),s.component?ql(n,t,o?o.children:null,i,r):ql(n,t,e,i,r),l&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new Mo(o.outlet.component,a))}else a&&Ql(t,o,r),r.canActivateChecks.push(new Bd(i)),s.component?ql(n,null,o?o.children:null,i,r):ql(n,null,e,i,r);return r}function RR(n,t,e){if(typeof e=="function")return e(n,t);switch(e){case"pathParamsChange":return!_a(n.url,t.url);case"pathParamsOrQueryParamsChange":return!_a(n.url,t.url)||!_r(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!w0(n,t)||!_r(n.queryParams,t.queryParams);case"paramsChange":default:return!w0(n,t)}}function Ql(n,t,e){let i=xo(n),r=n.value;Object.entries(i).forEach(([s,a])=>{r.component?t?Ql(a,t.children.getContext(s),e):Ql(a,null,e):Ql(a,t,e)}),r.component?t&&t.outlet&&t.outlet.isActivated?e.canDeactivateChecks.push(new Mo(t.outlet.component,r)):e.canDeactivateChecks.push(new Mo(null,r)):e.canDeactivateChecks.push(new Mo(null,r))}function lc(n){return typeof n=="function"}function LR(n){return typeof n=="boolean"}function OR(n){return n&&lc(n.canLoad)}function NR(n){return n&&lc(n.canActivate)}function FR(n){return n&&lc(n.canActivateChild)}function PR(n){return n&&lc(n.canDeactivate)}function UR(n){return n&&lc(n.canMatch)}function rw(n){return n instanceof L1||n?.name==="EmptyError"}var Td=Symbol("INITIAL_VALUE");function Do(){return Ot(n=>dr(n.map(t=>t.pipe(Bt(1),Xt(Td)))).pipe(Oe(t=>{for(let e of t)if(e!==!0){if(e===Td)return Td;if(e===!1||$R(e))return e}return!0}),st(t=>t!==Td),Bt(1)))}function $R(n){return va(n)||n instanceof tc}function VR(n,t){return Li(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:a}}=e;return a.length===0&&s.length===0?ye(je(G({},e),{guardsResult:!0})):BR(a,i,r,n).pipe(Li(o=>o&&LR(o)?zR(i,s,n,t):ye(o)),Oe(o=>je(G({},e),{guardsResult:o})))})}function BR(n,t,e,i){return pi(n).pipe(Li(r=>GR(r.component,r.route,e,t,i)),kn(r=>r!==!0,!0))}function zR(n,t,e,i){return pi(t).pipe(ws(r=>ca(jR(r.route.parent,i),HR(r.route,i),qR(n,r.path,e),WR(n,r.route,e))),kn(r=>r!==!0,!0))}function HR(n,t){return n!==null&&t&&t(new _0(n)),ye(!0)}function jR(n,t){return n!==null&&t&&t(new p0(n)),ye(!0)}function WR(n,t,e){let i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||i.length===0)return ye(!0);let r=i.map(s=>ys(()=>{let a=ac(t)??e,o=Ro(s,a),l=NR(o)?o.canActivate(t,n):mr(a,()=>o(t,n));return Ls(l).pipe(kn())}));return ye(r).pipe(Do())}function qR(n,t,e){let i=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(a=>AR(a)).filter(a=>a!==null).map(a=>ys(()=>{let o=a.guards.map(l=>{let c=ac(a.node)??e,u=Ro(l,c),d=FR(u)?u.canActivateChild(i,n):mr(c,()=>u(i,n));return Ls(d).pipe(kn())});return ye(o).pipe(Do())}));return ye(s).pipe(Do())}function GR(n,t,e,i,r){let s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!s||s.length===0)return ye(!0);let a=s.map(o=>{let l=ac(t)??r,c=Ro(o,l),u=PR(c)?c.canDeactivate(n,t,e,i):mr(l,()=>c(n,t,e,i));return Ls(u).pipe(kn())});return ye(a).pipe(Do())}function KR(n,t,e,i){let r=t.canLoad;if(r===void 0||r.length===0)return ye(!0);let s=r.map(a=>{let o=Ro(a,n),l=OR(o)?o.canLoad(t,e):mr(n,()=>o(t,e));return Ls(l)});return ye(s).pipe(Do(),sw(i))}function sw(n){return R1(Tt(t=>{if(typeof t!="boolean")throw Vd(n,t)}),Oe(t=>t===!0))}function YR(n,t,e,i){let r=t.canMatch;if(!r||r.length===0)return ye(!0);let s=r.map(a=>{let o=Ro(a,n),l=UR(o)?o.canMatch(t,e):mr(n,()=>o(t,e));return Ls(l)});return ye(s).pipe(Do(),sw(i))}var ic=class{segmentGroup;constructor(t){this.segmentGroup=t||null}},nc=class extends Error{urlTree;constructor(t){super(),this.urlTree=t}};function wo(n){return Kn(new ic(n))}function QR(n){return Kn(new ze(4e3,!1))}function ZR(n){return Kn(iw(!1,cn.GuardRejected))}var k0=class{urlSerializer;urlTree;constructor(t,e){this.urlSerializer=t,this.urlTree=e}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return ye(i);if(r.numberOfChildren>1||!r.children[tt])return QR(`${t.redirectTo}`);r=r.children[tt]}}applyRedirectCommands(t,e,i,r,s){if(typeof e!="string"){let o=e,{queryParams:l,fragment:c,routeConfig:u,url:d,outlet:h,params:m,data:f,title:g}=r,v=mr(s,()=>o({params:m,data:f,queryParams:l,fragment:c,routeConfig:u,url:d,outlet:h,title:g}));if(v instanceof Hr)throw new nc(v);e=v}let a=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i);if(e[0]==="/")throw new nc(a);return a}applyRedirectCreateUrlTree(t,e,i,r){let s=this.createSegmentGroup(t,e.root,i,r);return new Hr(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){let i={};return Object.entries(t).forEach(([r,s])=>{if(typeof s=="string"&&s[0]===":"){let o=s.substring(1);i[r]=e[o]}else i[r]=s}),i}createSegmentGroup(t,e,i,r){let s=this.createSegments(t,e.segments,i,r),a={};return Object.entries(e.children).forEach(([o,l])=>{a[o]=this.createSegmentGroup(t,l,i,r)}),new bt(s,a)}createSegments(t,e,i,r){return e.map(s=>s.path[0]===":"?this.findPosParam(t,s,r):this.findOrReturn(s,i))}findPosParam(t,e,i){let r=i[e.path.substring(1)];if(!r)throw new ze(4001,!1);return r}findOrReturn(t,e){let i=0;for(let r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}},M0={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function XR(n,t,e,i,r){let s=aw(n,t,e);return s.matched?(i=yR(t,i),YR(i,t,e,r).pipe(Oe(a=>a===!0?s:G({},M0)))):ye(s)}function aw(n,t,e){if(t.path==="**")return JR(e);if(t.path==="")return t.pathMatch==="full"&&(n.hasChildren()||e.length>0)?G({},M0):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(t.matcher||KD)(e,n,t);if(!r)return G({},M0);let s={};Object.entries(r.posParams??{}).forEach(([o,l])=>{s[o]=l.path});let a=r.consumed.length>0?G(G({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function JR(n){return{matched:!0,parameters:n.length>0?$C(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function RC(n,t,e,i){return e.length>0&&iL(n,e,i)?{segmentGroup:new bt(t,tL(i,new bt(e,n.children))),slicedSegments:[]}:e.length===0&&nL(n,e,i)?{segmentGroup:new bt(n.segments,eL(n,e,i,n.children)),slicedSegments:e}:{segmentGroup:new bt(n.segments,n.children),slicedSegments:e}}function eL(n,t,e,i){let r={};for(let s of e)if(qd(n,t,s)&&!i[Zn(s)]){let a=new bt([],{});r[Zn(s)]=a}return G(G({},i),r)}function tL(n,t){let e={};e[tt]=t;for(let i of n)if(i.path===""&&Zn(i)!==tt){let r=new bt([],{});e[Zn(i)]=r}return e}function iL(n,t,e){return e.some(i=>qd(n,t,i)&&Zn(i)!==tt)}function nL(n,t,e){return e.some(i=>qd(n,t,i))}function qd(n,t,e){return(n.hasChildren()||t.length>0)&&e.pathMatch==="full"?!1:e.path===""}function rL(n,t,e){return t.length===0&&!n.children[e]}var T0=class{};function sL(n,t,e,i,r,s,a="emptyOnly"){return new E0(n,t,e,i,r,a,s).recognize()}var aL=31,E0=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,e,i,r,s,a,o){this.injector=t,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=a,this.urlSerializer=o,this.applyRedirects=new k0(this.urlSerializer,this.urlTree)}noMatchError(t){return new ze(4002,`'${t.segmentGroup}'`)}recognize(){let t=RC(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(Oe(({children:e,rootSnapshot:i})=>{let r=new ln(i,e),s=new $d("",r),a=mR(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(a),{state:s,tree:a}}))}match(t){let e=new ko([],Object.freeze({}),Object.freeze(G({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),tt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,tt,e).pipe(Oe(i=>({children:i,rootSnapshot:e})),Gi(i=>{if(i instanceof nc)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof ic?this.noMatchError(i):i}))}processSegmentGroup(t,e,i,r,s){return i.segments.length===0&&i.hasChildren()?this.processChildren(t,e,i,s):this.processSegment(t,e,i,i.segments,r,!0,s).pipe(Oe(a=>a instanceof ln?[a]:[]))}processChildren(t,e,i,r){let s=[];for(let a of Object.keys(i.children))a==="primary"?s.unshift(a):s.push(a);return pi(s).pipe(ws(a=>{let o=i.children[a],l=CR(e,a);return this.processSegmentGroup(t,l,o,a,r)}),$1((a,o)=>(a.push(...o),a)),jp(null),U1(),Li(a=>{if(a===null)return wo(i);let o=ow(a);return oL(o),ye(o)}))}processSegment(t,e,i,r,s,a,o){return pi(e).pipe(ws(l=>this.processSegmentAgainstRoute(l._injector??t,e,l,i,r,s,a,o).pipe(Gi(c=>{if(c instanceof ic)return ye(null);throw c}))),kn(l=>!!l),Gi(l=>{if(rw(l))return rL(i,r,s)?ye(new T0):wo(i);throw l}))}processSegmentAgainstRoute(t,e,i,r,s,a,o,l){return Zn(i)!==a&&(a===tt||!qd(r,s,i))?wo(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(t,r,i,s,a,l):this.allowRedirects&&o?this.expandSegmentAgainstRouteUsingRedirect(t,r,e,i,s,a,l):wo(r)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,s,a,o){let{matched:l,parameters:c,consumedSegments:u,positionalParamSegments:d,remainingSegments:h}=aw(e,r,s);if(!l)return wo(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>aL&&(this.allowRedirects=!1));let m=new ko(s,c,Object.freeze(G({},this.urlTree.queryParams)),this.urlTree.fragment,LC(r),Zn(r),r.component??r._loadedComponent??null,r,OC(r)),f=Ud(m,o,this.paramsInheritanceStrategy);m.params=Object.freeze(f.params),m.data=Object.freeze(f.data);let g=this.applyRedirects.applyRedirectCommands(u,r.redirectTo,d,m,t);return this.applyRedirects.lineralizeSegments(r,g).pipe(Li(v=>this.processSegment(t,i,e,v.concat(h),a,!1,o)))}matchSegmentAgainstRoute(t,e,i,r,s,a){let o=XR(e,i,r,t,this.urlSerializer);return i.path==="**"&&(e.children={}),o.pipe(Ot(l=>l.matched?(t=i._injector??t,this.getChildConfig(t,i,r).pipe(Ot(({routes:c})=>{let u=i._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:m}=l,f=new ko(h,d,Object.freeze(G({},this.urlTree.queryParams)),this.urlTree.fragment,LC(i),Zn(i),i.component??i._loadedComponent??null,i,OC(i)),g=Ud(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(g.params),f.data=Object.freeze(g.data);let{segmentGroup:v,slicedSegments:w}=RC(e,h,m,c);if(w.length===0&&v.hasChildren())return this.processChildren(u,c,v,f).pipe(Oe(k=>new ln(f,k)));if(c.length===0&&w.length===0)return ye(new ln(f,[]));let C=Zn(i)===s;return this.processSegment(u,c,v,w,C?tt:s,!0,f).pipe(Oe(k=>new ln(f,k instanceof ln?[k]:[])))}))):wo(e)))}getChildConfig(t,e,i){return e.children?ye({routes:e.children,injector:t}):e.loadChildren?e._loadedRoutes!==void 0?ye({routes:e._loadedRoutes,injector:e._loadedInjector}):KR(t,e,i,this.urlSerializer).pipe(Li(r=>r?this.configLoader.loadChildren(t,e).pipe(Tt(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):ZR(e))):ye({routes:[],injector:t})}};function oL(n){n.sort((t,e)=>t.value.outlet===tt?-1:e.value.outlet===tt?1:t.value.outlet.localeCompare(e.value.outlet))}function lL(n){let t=n.value.routeConfig;return t&&t.path===""}function ow(n){let t=[],e=new Set;for(let i of n){if(!lL(i)){t.push(i);continue}let r=t.find(s=>i.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):t.push(i)}for(let i of e){let r=ow(i.children);t.push(new ln(i.value,r))}return t.filter(i=>!e.has(i))}function LC(n){return n.data||{}}function OC(n){return n.resolve||{}}function cL(n,t,e,i,r,s){return Li(a=>sL(n,t,e,i,a.extractedUrl,r,s).pipe(Oe(({state:o,tree:l})=>je(G({},a),{targetSnapshot:o,urlAfterRedirects:l}))))}function uL(n,t){return Li(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return ye(e);let s=new Set(r.map(l=>l.route)),a=new Set;for(let l of s)if(!a.has(l))for(let c of lw(l))a.add(c);let o=0;return pi(a).pipe(ws(l=>s.has(l)?dL(l,i,n,t):(l.data=Ud(l,l.parent,n).resolve,ye(void 0))),Tt(()=>o++),Wp(1),Li(l=>o===a.size?ye(e):Sn))})}function lw(n){let t=n.children.map(e=>lw(e)).flat();return[n,...t]}function dL(n,t,e,i){let r=n.routeConfig,s=n._resolve;return r?.title!==void 0&&!ew(r)&&(s[rc]=r.title),hL(s,n,t,i).pipe(Oe(a=>(n._resolvedData=a,n.data=Ud(n,n.parent,e).resolve,null)))}function hL(n,t,e,i){let r=s0(n);if(r.length===0)return ye({});let s={};return pi(r).pipe(Li(a=>mL(n[a],t,e,i).pipe(kn(),Tt(o=>{if(o instanceof tc)throw Vd(new Eo,o);s[a]=o}))),Wp(1),P1(s),Gi(a=>rw(a)?Sn:Kn(a)))}function mL(n,t,e,i){let r=ac(t)??i,s=Ro(n,r),a=s.resolve?s.resolve(t,e):mr(r,()=>s(t,e));return Ls(a)}function n0(n){return Ot(t=>{let e=n(t);return e?pi(e).pipe(Oe(()=>t)):ye(t)})}var cw=(()=>{class n{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(s=>s.outlet===tt);return i}getResolvedTitleForRoute(e){return e.data[rc]}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:()=>L(fL),providedIn:"root"})}return n})(),fL=(()=>{class n extends cw{title;constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||n)(He(wC))};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),cc=new se("",{providedIn:"root",factory:()=>({})}),pL=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(i,r){i&1&&te(0,"router-outlet")},dependencies:[D0],encapsulation:2})}return n})();function R0(n){let t=n.children&&n.children.map(R0),e=t?je(G({},n),{children:t}):G({},n);return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==tt&&(e.component=pL),e}var zd=new se(""),L0=(()=>{class n{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=L(Cd);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ye(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=Ls(e.loadComponent()).pipe(Oe(uw),Tt(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),mo(()=>{this.componentLoaders.delete(e)})),r=new hd(i,()=>new ge).pipe(Bp());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return ye({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=gL(i,this.compiler,e,this.onLoadEndListener).pipe(mo(()=>{this.childrenLoaders.delete(i)})),a=new hd(s,()=>new ge).pipe(Bp());return this.childrenLoaders.set(i,a),a}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function gL(n,t,e,i){return Ls(n.loadChildren()).pipe(Oe(uw),Li(r=>r instanceof Z1||Array.isArray(r)?ye(r):pi(t.compileModuleAsync(r))),Oe(r=>{i&&i(n);let s,a,o=!1;return Array.isArray(r)?(a=r,o=!0):(s=r.create(e).injector,a=s.get(zd,[],{optional:!0,self:!0}).flat()),{routes:a.map(R0),injector:s}}))}function _L(n){return n&&typeof n=="object"&&"default"in n}function uw(n){return _L(n)?n.default:n}var O0=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:()=>L(vL),providedIn:"root"})}return n})(),vL=(()=>{class n{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),dw=new se(""),hw=new se("");function bL(n,t,e){let i=n.get(hw),r=n.get(rt);return n.get(Fe).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let s,a=new Promise(c=>{s=c}),o=r.startViewTransition(()=>(s(),yL(n))),{onViewTransitionCreated:l}=i;return l&&mr(n,()=>l({transition:o,from:t,to:e})),a})}function yL(n){return new Promise(t=>{gi({read:()=>setTimeout(t)},{injector:n})})}var mw=new se(""),N0=(()=>{class n{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new ge;transitionAbortSubject=new ge;configLoader=L(L0);environmentInjector=L($r);urlSerializer=L(sc);rootContexts=L(oc);location=L(fa);inputBindingEnabled=L(Wd,{optional:!0})!==null;titleStrategy=L(cw);options=L(cc,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=L(O0);createViewTransition=L(dw,{optional:!0});navigationErrorHandler=L(mw,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>ye(void 0);rootComponentType=null;constructor(){let e=r=>this.events.next(new m0(r)),i=r=>this.events.next(new f0(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(je(G(G({},this.transitions.value),e),{id:i}))}setupNavigations(e,i,r){return this.transitions=new fi({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Yl,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(st(s=>s.id!==0),Oe(s=>je(G({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Ot(s=>{let a=!1,o=!1;return ye(s).pipe(Ot(l=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",cn.SupersededByNewNavigation),Sn;this.currentTransition=s,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?je(G({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=l.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&u!=="reload"){let d="";return this.events.next(new Ds(l.id,this.urlSerializer.serialize(l.rawUrl),d,Ld.IgnoredSameUrlNavigation)),l.resolve(!1),Sn}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return ye(l).pipe(Ot(d=>{let h=this.transitions?.getValue();return this.events.next(new Io(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?Sn:Promise.resolve(d)}),cL(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Tt(d=>{s.targetSnapshot=d.targetSnapshot,s.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=je(G({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new Od(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:d,extractedUrl:h,source:m,restoredState:f,extras:g}=l,v=new Io(d,this.urlSerializer.serialize(h),m,f);this.events.next(v);let w=XC(this.rootComponentType).snapshot;return this.currentTransition=s=je(G({},l),{targetSnapshot:w,urlAfterRedirects:h,extras:je(G({},g),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,ye(s)}else{let d="";return this.events.next(new Ds(l.id,this.urlSerializer.serialize(l.extractedUrl),d,Ld.IgnoredByUrlHandlingStrategy)),l.resolve(!1),Sn}}),Tt(l=>{let c=new c0(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),Oe(l=>(this.currentTransition=s=je(G({},l),{guards:IR(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),s)),VR(this.environmentInjector,l=>this.events.next(l)),Tt(l=>{if(s.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw Vd(this.urlSerializer,l.guardsResult);let c=new u0(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),st(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",cn.GuardRejected),!1)),n0(l=>{if(l.guards.canActivateChecks.length)return ye(l).pipe(Tt(c=>{let u=new d0(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),Ot(c=>{let u=!1;return ye(c).pipe(uL(this.paramsInheritanceStrategy,this.environmentInjector),Tt({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",cn.NoDataFromResolver)}}))}),Tt(c=>{let u=new h0(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),n0(l=>{let c=u=>{let d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(Tt(h=>{u.component=h}),Oe(()=>{})));for(let h of u.children)d.push(...c(h));return d};return dr(c(l.targetSnapshot.root)).pipe(jp(null),Bt(1))}),n0(()=>this.afterPreactivation()),Ot(()=>{let{currentSnapshot:l,targetSnapshot:c}=s,u=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return u?pi(u).pipe(Oe(()=>s)):ye(s)}),Oe(l=>{let c=SR(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s=je(G({},l),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,s}),Tt(()=>{this.events.next(new Jl)}),ER(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Bt(1),Tt({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new vr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),Ge(this.transitionAbortSubject.pipe(Tt(l=>{throw l}))),mo(()=>{!a&&!o&&this.cancelNavigationTransition(s,"",cn.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),Gi(l=>{if(o=!0,nw(l))this.events.next(new zr(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),TR(l)?this.events.next(new Ao(l.url,l.navigationBehaviorOptions)):s.resolve(!1);else{let c=new Xl(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0);try{let u=mr(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof tc){let{message:d,cancellationCode:h}=Vd(this.urlSerializer,u);this.events.next(new zr(s.id,this.urlSerializer.serialize(s.extractedUrl),d,h)),this.events.next(new Ao(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),l}catch(u){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(u)}}return Sn}))}))}cancelNavigationTransition(e,i,r){let s=new zr(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(s),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function CL(n){return n!==Yl}var wL=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:()=>L(xL),providedIn:"root"})}return n})(),I0=class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}},xL=(()=>{class n extends I0{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Nt(n)))(r||n)}})();static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),fw=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:()=>L(SL),providedIn:"root"})}return n})(),SL=(()=>{class n extends fw{location=L(fa);urlSerializer=L(sc);options=L(cc,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=L(O0);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Hr;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=XC(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof Io)this.stateMemento=this.createStateMemento();else if(e instanceof Ds)this.rawUrlTree=i.initialUrl;else if(e instanceof Od){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??r,i)}}else e instanceof Jl?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):e instanceof zr&&(e.code===cn.GuardRejected||e.code===cn.NoDataFromResolver)?this.restoreHistory(i):e instanceof Xl?this.restoreHistory(i,!0):e instanceof vr&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let r=e instanceof Hr?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){let s=this.browserPageId,a=G(G({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(r,"",a)}else{let s=G(G({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(r,"",s)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,s=this.currentPageId-r;s!==0?this.location.historyGo(s):this.currentUrlTree===e.finalUrl&&s===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Nt(n)))(r||n)}})();static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Gl=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(Gl||{});function pw(n,t){n.events.pipe(st(e=>e instanceof vr||e instanceof zr||e instanceof Xl||e instanceof Ds),Oe(e=>e instanceof vr||e instanceof Ds?Gl.COMPLETE:(e instanceof zr?e.code===cn.Redirect||e.code===cn.SupersededByNewNavigation:!1)?Gl.REDIRECTING:Gl.FAILED),st(e=>e!==Gl.REDIRECTING),Bt(1)).subscribe(()=>{t()})}var kL={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ML={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Rs=(()=>{class n{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=L(J1);stateManager=L(fw);options=L(cc,{optional:!0})||{};pendingTasks=L(j1);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=L(N0);urlSerializer=L(sc);location=L(fa);urlHandlingStrategy=L(O0);_events=new ge;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=L(wL);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=L(zd,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!L(Wd,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new xt;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(r!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof zr&&i.code!==cn.Redirect&&i.code!==cn.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof vr)this.navigated=!0;else if(i instanceof Ao){let a=i.navigationBehaviorOptions,o=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=G({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||CL(r.source)},a);this.scheduleNavigation(o,Yl,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}EL(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Yl,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){let s={replaceUrl:!0},a=r?.navigationId?r:null;if(r){let l=G({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(s.state=l)}let o=this.parseUrl(e);this.scheduleNavigation(o,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(R0),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(e,i={}){let{relativeTo:r,queryParams:s,fragment:a,queryParamsHandling:o,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a,u=null;switch(o??this.options.defaultQueryParamsHandling){case"merge":u=G(G({},this.currentUrlTree.queryParams),s);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}u!==null&&(u=this.removeEmptyProps(u));let d;try{let h=r?r.snapshot:this.routerState.snapshot.root;d=KC(h)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),d=this.currentUrlTree.root}return YC(d,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=va(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(s,Yl,null,i)}navigate(e,i={skipLocationChange:!1}){return TL(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=G({},kL):i===!1?r=G({},ML):r=i,va(e))return TC(this.currentUrlTree,e,r);let s=this.parseUrl(e);return TC(this.currentUrlTree,s,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,s])=>(s!=null&&(i[r]=s),i),{})}scheduleNavigation(e,i,r,s,a){if(this.disposed)return Promise.resolve(!1);let o,l,c;a?(o=a.resolve,l=a.reject,c=a.promise):c=new Promise((d,h)=>{o=d,l=h});let u=this.pendingTasks.add();return pw(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:s,resolve:o,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function TL(n){for(let t=0;t{class n{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new ge;constructor(e,i,r,s,a,o){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=s,this.el=a,this.locationStrategy=o;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof vr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(va(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,s,a){let o=this.urlTree;if(o===null||this.isAnchorElement&&(e!==0||i||r||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(o,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let i=this.href===null?null:Y1(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){let r=this.renderer,s=this.el.nativeElement;i!==null?r.setAttribute(s,e,i):r.removeAttribute(s,e)}get urlTree(){return this.routerLinkInput===null?null:va(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(i){return new(i||n)(Ie(Rs),Ie(ba),H1("tabindex"),Ie(Bl),Ie(Ae),Ie(Hl))};static \u0275dir=xe({type:n,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){i&1&&J("click",function(a){return r.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&Se("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ce],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ce],replaceUrl:[2,"replaceUrl","replaceUrl",Ce],routerLink:"routerLink"},features:[Ye,St]})}return n})();var Hd=class{};var IL=(()=>{class n{router;injector;preloadingStrategy;loader;subscription;constructor(e,i,r,s,a){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(st(e=>e instanceof vr),ws(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let s of i){s.providers&&!s._injector&&(s._injector=Qp(s.providers,e,`Route: ${s.path}`));let a=s._injector??e,o=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&r.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&r.push(this.processRoutes(o,s.children??s._loadedRoutes))}return pi(r).pipe(zp())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=ye(null);let s=r.pipe(Li(a=>a===null?ye(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return pi([s,a]).pipe(zp())}else return s})}static \u0275fac=function(i){return new(i||n)(He(Rs),He(Cd),He($r),He(Hd),He(L0))};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),gw=new se(""),AL=(()=>{class n{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,i,r,s,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=s,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Io?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof vr?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Ds&&e.code===Ld.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Nd&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Nd(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){gd()};static \u0275prov=ae({token:n,factory:n.\u0275fac})}return n})();function DL(n){return n.routerState.root}function uc(n,t){return{\u0275kind:n,\u0275providers:t}}function RL(){let n=L(pt);return t=>{let e=n.get(Yn);if(t!==e.components[0])return;let i=n.get(Rs),r=n.get(_w);n.get(F0)===1&&i.initialNavigation(),n.get(vw,null,Gp.Optional)?.setUpPreloading(),n.get(gw,null,Gp.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var _w=new se("",{factory:()=>new ge}),F0=new se("",{providedIn:"root",factory:()=>1});function LL(){return uc(2,[{provide:F0,useValue:0},{provide:Zp,multi:!0,deps:[pt],useFactory:t=>{let e=t.get(cC,Promise.resolve());return()=>e.then(()=>new Promise(i=>{let r=t.get(Rs),s=t.get(_w);pw(r,()=>{i(!0)}),t.get(N0).afterPreactivation=()=>(i(!0),s.closed?ye(void 0):s),r.initialNavigation()}))}}])}function OL(){return uc(3,[{provide:Zp,multi:!0,useFactory:()=>{let t=L(Rs);return()=>{t.setUpLocationChangeListener()}}},{provide:F0,useValue:2}])}var vw=new se("");function NL(n){return uc(0,[{provide:vw,useExisting:IL},{provide:Hd,useExisting:n}])}function FL(){return uc(8,[DC,{provide:Wd,useExisting:DC}])}function PL(n){let t=[{provide:dw,useValue:bL},{provide:hw,useValue:G({skipNextTransition:!!n?.skipInitialTransition},n)}];return uc(9,t)}var NC=new se("ROUTER_FORROOT_GUARD"),UL=[fa,{provide:sc,useClass:Eo},Rs,oc,{provide:ba,useFactory:DL,deps:[Rs]},L0,[]],bw=(()=>{class n{constructor(e){}static forRoot(e,i){return{ngModule:n,providers:[UL,[],{provide:zd,multi:!0,useValue:e},{provide:NC,useFactory:zL,deps:[[Rs,new xs,new ua]]},i?.errorHandler?{provide:mw,useValue:i.errorHandler}:[],{provide:cc,useValue:i||{}},i?.useHash?VL():BL(),$L(),i?.preloadingStrategy?NL(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?HL(i):[],i?.bindToComponentInputs?FL().\u0275providers:[],i?.enableViewTransitions?PL().\u0275providers:[],jL()]}}static forChild(e){return{ngModule:n,providers:[{provide:zd,multi:!0,useValue:e}]}}static \u0275fac=function(i){return new(i||n)(He(NC,8))};static \u0275mod=pe({type:n});static \u0275inj=fe({})}return n})();function $L(){return{provide:gw,useFactory:()=>{let n=L(gC),t=L(Fe),e=L(cc),i=L(N0),r=L(sc);return e.scrollOffset&&n.setOffset(e.scrollOffset),new AL(r,i,n,t,e)}}}function VL(){return{provide:Hl,useClass:hC}}function BL(){return{provide:Hl,useClass:dC}}function zL(n){return"guarded"}function HL(n){return[n.initialNavigation==="disabled"?OL().\u0275providers:[],n.initialNavigation==="enabledBlocking"?LL().\u0275providers:[]]}var FC=new se("");function jL(){return[{provide:FC,useFactory:RL},{provide:eC,multi:!0,useExisting:FC}]}var jr=class{},P0=(()=>{class n extends jr{getTranslation(e){return ye({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Nt(n)))(r||n)}})();static \u0275prov=ae({token:n,factory:n.\u0275fac})}return n})(),Lo=class{},U0=(()=>{class n{handle(e){return e.key}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac})}return n})();function Ca(n){return typeof n<"u"&&n!==null}function Jd(n){return Kd(n)&&!H0(n)}function Kd(n){return typeof n=="object"}function H0(n){return Array.isArray(n)}function Cw(n){return typeof n=="string"}function WL(n){return typeof n=="function"}function $0(n,t){let e=Object.assign({},n);return Kd(n)?(Kd(n)&&Kd(t)&&Object.keys(t).forEach(i=>{Jd(t[i])?i in n?e[i]=$0(n[i],t[i]):Object.assign(e,{[i]:t[i]}):Object.assign(e,{[i]:t[i]})}),e):$0({},t)}function V0(n,t){let e=t.split(".");t="";do t+=e.shift(),Ca(n)&&Ca(n[t])&&(Jd(n[t])||H0(n[t])||!e.length)?(n=n[t],t=""):e.length?t+=".":n=void 0;while(e.length);return n}function qL(n,t,e){let i=t.split("."),r=n;for(let s=0;s{class n extends wa{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,i){if(Cw(e))return this.interpolateString(e,i);if(WL(e))return this.interpolateFunction(e,i)}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,s)=>{let a=V0(i,s);return Ca(a)?a:r}):e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Nt(n)))(r||n)}})();static \u0275prov=ae({token:n,factory:n.\u0275fac})}return n})(),xa=class{},z0=(()=>{class n extends xa{compile(e,i){return e}compileTranslations(e,i){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Nt(n)))(r||n)}})();static \u0275prov=ae({token:n,factory:n.\u0275fac})}return n})(),hc=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new le;onLangChange=new le;onDefaultLangChange=new le},Yd=new se("ISOALTE_TRANSLATE_SERVICE"),Qd=new se("USE_DEFAULT_LANG"),Zd=new se("DEFAULT_LANGUAGE"),Xd=new se("USE_EXTEND"),dc=n=>ur(n)?n:ye(n),mc=(()=>{class n{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new le;_onLangChange=new le;_onDefaultLangChange=new le;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};lastUseLanguage=null;get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}constructor(e,i,r,s,a,o=!0,l=!1,c=!1,u){this.store=e,this.currentLoader=i,this.compiler=r,this.parser=s,this.missingTranslationHandler=a,this.useDefaultLang=o,this.isolate=l,this.extend=c,u&&this.setDefaultLang(u)}setDefaultLang(e){if(e===this.defaultLang)return;let i=this.retrieveTranslations(e);typeof i<"u"?(this.defaultLang==null&&(this.defaultLang=e),i.pipe(Bt(1)).subscribe(()=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(this.lastUseLanguage=e,e===this.currentLang)return ye(this.translations[e]);this.currentLang||(this.currentLang=e);let i=this.retrieveTranslations(e);return ur(i)?(i.pipe(Bt(1)).subscribe(()=>{this.changeLang(e)}),i):(this.changeLang(e),ye(this.translations[e]))}changeLang(e){e===this.lastUseLanguage&&(this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang==null&&this.changeDefaultLang(e))}retrieveTranslations(e){if(typeof this.translations[e]>"u"||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}getTranslation(e){return this.loadAndCompileTranslations(e)}loadAndCompileTranslations(e){this.pending=!0;let i=this.currentLoader.getTranslation(e).pipe(fo(1),Bt(1));return this.loadingTranslations=i.pipe(Oe(r=>this.compiler.compileTranslations(r,e)),fo(1),Bt(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?G(G({},r),this.translations[e]):r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){let s=this.compiler.compileTranslations(i,e);(r||this.extend)&&this.translations[e]?this.translations[e]=$0(this.translations[e],s):this.translations[e]=s,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(i=>{this.langs.indexOf(i)===-1&&this.langs.push(i)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResultForKey(e,i,r){let s;if(e&&(s=this.runInterpolation(V0(e,i),r)),s===void 0&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(s=this.runInterpolation(V0(this.translations[this.defaultLang],i),r)),s===void 0){let a={key:i,translateService:this};typeof r<"u"&&(a.interpolateParams=r),s=this.missingTranslationHandler.handle(a)}return s!==void 0?s:i}runInterpolation(e,i){if(H0(e))return e.map(r=>this.runInterpolation(r,i));if(Jd(e)){let r={};for(let s in e)r[s]=this.runInterpolation(e[s],i);return r}else return this.parser.interpolate(e,i)}getParsedResult(e,i,r){if(i instanceof Array){let s={},a=!1;for(let l of i)s[l]=this.getParsedResultForKey(e,l,r),a=a||ur(s[l]);if(!a)return s;let o=i.map(l=>dc(s[l]));return uo(o).pipe(Oe(l=>{let c={};return l.forEach((u,d)=>{c[i[d]]=u}),c}))}return this.getParsedResultForKey(e,i,r)}get(e,i){if(!Ca(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(ws(r=>dc(this.getParsedResult(r,e,i)))):dc(this.getParsedResult(this.translations[this.currentLang],e,i))}getStreamOnTranslationChange(e,i){if(!Ca(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return ca(ys(()=>this.get(e,i)),this.onTranslationChange.pipe(Ot(r=>{let s=this.getParsedResult(r.translations,e,i);return dc(s)})))}stream(e,i){if(!Ca(e)||!e.length)throw new Error('Parameter "key" required');return ca(ys(()=>this.get(e,i)),this.onLangChange.pipe(Ot(r=>{let s=this.getParsedResult(r.translations,e,i);return dc(s)})))}instant(e,i){if(!Ca(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(this.translations[this.currentLang],e,i);return ur(r)?Array.isArray(e)?e.reduce((s,a)=>(s[a]=a,s),{}):e:r}set(e,i,r=this.currentLang){qL(this.translations[r],e,Cw(i)?this.compiler.compile(i,r):this.compiler.compileTranslations(i,r)),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],delete this.translations[e]}getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}static \u0275fac=function(i){return new(i||n)(He(hc),He(jr),He(xa),He(wa),He(Lo),He(Qd),He(Yd),He(Xd),He(Zd))};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var ww=(n={})=>da([n.loader||{provide:jr,useClass:P0},n.compiler||{provide:xa,useClass:z0},n.parser||{provide:wa,useClass:B0},n.missingTranslationHandler||{provide:Lo,useClass:U0},hc,{provide:Yd,useValue:n.isolate},{provide:Qd,useValue:n.useDefaultLang},{provide:Xd,useValue:n.extend},{provide:Zd,useValue:n.defaultLanguage},mc]),j0=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:jr,useClass:P0},e.compiler||{provide:xa,useClass:z0},e.parser||{provide:wa,useClass:B0},e.missingTranslationHandler||{provide:Lo,useClass:U0},hc,{provide:Yd,useValue:e.isolate},{provide:Qd,useValue:e.useDefaultLang},{provide:Xd,useValue:e.extend},{provide:Zd,useValue:e.defaultLanguage},mc]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:jr,useClass:P0},e.compiler||{provide:xa,useClass:z0},e.parser||{provide:wa,useClass:B0},e.missingTranslationHandler||{provide:Lo,useClass:U0},{provide:Yd,useValue:e.isolate},{provide:Qd,useValue:e.useDefaultLang},{provide:Xd,useValue:e.extend},{provide:Zd,useValue:e.defaultLanguage},mc]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({})}return n})();var eh=class{http;prefix;suffix;constructor(t,e="/assets/i18n/",i=".json"){this.http=t,this.prefix=e,this.suffix=i}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}};var Ex=bs(rg());var An=(()=>{class n{constructor(){}changeFhirMicroService(e){localStorage.setItem("fhirMicroServer",e)}getFhirMicroService(){return localStorage.getItem("fhirMicroServer")}getFhirClient(){return new Ex.default({baseUrl:this.getFhirMicroService()})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var $o={name:"matchbox",version:"3.9.8",license:"MIT",scripts:{ng:"ng",start:"ng serve",build:"ng build --configuration production","build-matchbox":"ng build --configuration production --verbose --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:!0,dependencies:{"@ngx-translate/core":"^16.0.3","@ngx-translate/http-loader":"^16.0.0","ace-builds":"^1.36.5","angular-oauth2-oidc":"^17.0.1","browserify-zlib":"^0.2.0",debug:"^4.3.7","fhir-kit-client":"1.9.2",fhirpath:"^3.15.2","js-untar":"^2.0.0","ngx-highlightjs":"^12.0.0","ngx-mat-select-search":"^7.0.8","ngx-toastr":"^19.0.0",pako:"^2.1.0",rxjs:"^7.8.1",tslib:"^2.8.1","zone.js":"~0.15.0"},devDependencies:{"@angular-devkit/build-angular":"^19.0.1","@angular-eslint/builder":"^18.4.1","@angular-eslint/eslint-plugin":"^18.4.1","@angular-eslint/eslint-plugin-template":"^18.4.1","@angular-eslint/schematics":"^18.4.1","@angular-eslint/template-parser":"^18.4.1","@angular/animations":"^19.0.0","@angular/cdk":"^19.0.0","@angular/cli":"^19.0.1","@angular/common":"^19.0.0","@angular/compiler":"^19.0.0","@angular/compiler-cli":"^19.0.0","@angular/core":"^19.0.0","@angular/forms":"^19.0.0","@angular/language-service":"^19.0.0","@angular/material":"^19.0.0","@angular/platform-browser":"^19.0.0","@angular/platform-browser-dynamic":"^19.0.0","@angular/router":"^19.0.0","@types/ace":"^0.0.52","@types/debug":"^4.1.12","@types/jasmine":"^5.1.4","@types/node":"^22.9.1","@types/pako":"^2.0.3","@typescript-eslint/eslint-plugin":"^8.15.0","@typescript-eslint/parser":"^8.15.0",eslint:"^9.15.0",jasmine:"^5.4.0","jasmine-core":"^5.4.0","jasmine-spec-reporter":"^7.0.0","json-patch":"^0.7.0",karma:"^6.4.4","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.3.3","pretty-quick":"^4.0.0","ts-node":"^10.9.2",typescript:"^5.6.3"},browser:{fs:!1,os:!1,path:!1,zlib:!1},husky:{hooks:{"pre-commit":"pretty-quick --staged"}}};var oh=(()=>{class n{redirectHashUrl(){let e=window.location.href;window.location.replace(e.replace("#/",""))}isHashUrl(){return window.location.href.indexOf("#/")>-1}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var mg;try{mg=typeof Intl<"u"&&Intl.v8BreakIterator}catch{mg=!1}var dt=(()=>{class n{_platformId=L(q1);isBrowser=this._platformId?pC(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||mg)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Vo,Ix=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function fg(){if(Vo)return Vo;if(typeof document!="object"||!document)return Vo=new Set(Ix),Vo;let n=document.createElement("input");return Vo=new Set(Ix.filter(t=>(n.setAttribute("type",t),n.type===t))),Vo}var pc;function qO(){if(pc==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>pc=!0}))}finally{pc=pc||!1}return pc}function Mi(n){return qO()?n:!!n.capture}var Xn=function(n){return n[n.NORMAL=0]="NORMAL",n[n.NEGATED=1]="NEGATED",n[n.INVERTED=2]="INVERTED",n}(Xn||{}),lh,ka;function ch(){if(ka==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return ka=!1,ka;if("scrollBehavior"in document.documentElement.style)ka=!0;else{let n=Element.prototype.scrollTo;n?ka=!/\{\s*\[native code\]\s*\}/.test(n.toString()):ka=!1}}return ka}function Bo(){if(typeof document!="object"||!document)return Xn.NORMAL;if(lh==null){let n=document.createElement("div"),t=n.style;n.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";let e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",n.appendChild(e),document.body.appendChild(n),lh=Xn.NORMAL,n.scrollLeft===0&&(n.scrollLeft=1,lh=n.scrollLeft===0?Xn.NEGATED:Xn.INVERTED),n.remove()}return lh}var hg;function GO(){if(hg==null){let n=typeof document<"u"?document.head:null;hg=!!(n&&(n.createShadowRoot||n.attachShadow))}return hg}function Ax(n){if(GO()){let t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function pg(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){let t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function dn(n){return n.composedPath?n.composedPath()[0]:n.target}function gg(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var uh=new WeakMap,kt=(()=>{class n{_appRef;_injector=L(pt);_environmentInjector=L($r);load(e){let i=this._appRef=this._appRef||this._injector.get(Yn),r=uh.get(i);r||(r={loaders:new Set,refs:[]},uh.set(i,r),i.onDestroy(()=>{uh.get(i)?.refs.forEach(s=>s.destroy()),uh.delete(i)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(xd(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Gr=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(i,r){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}"],encapsulation:2,changeDetection:0})}return n})();function Pi(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function Dn(n){return n!=null&&`${n}`!="false"}function Ma(n,t=0){return KO(n)?Number(n):arguments.length===2?t:0}function KO(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function zo(n){return Array.isArray(n)?n:[n]}function Qt(n){return n==null?"":typeof n=="string"?n:`${n}px`}function Ji(n){return n instanceof Ae?n.nativeElement:n}function YO(n){if(n.type==="characterData"&&n.target instanceof Comment)return!0;if(n.type==="childList"){for(let t=0;t{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Rx=(()=>{class n{_mutationObserverFactory=L(Dx);_observedElements=new Map;_ngZone=L(Fe);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){let i=Ji(e);return new Gn(r=>{let a=this._observeElement(i).pipe(Oe(o=>o.filter(l=>!YO(l))),st(o=>!!o.length)).subscribe(o=>{this._ngZone.run(()=>{r.next(o)})});return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let i=new ge,r=this._mutationObserverFactory.create(s=>i.next(s));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Lx=(()=>{class n{_contentObserver=L(Rx);_elementRef=L(Ae);event=new le;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=Ma(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(Oi(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",Ce],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],features:[Ye]})}return n})(),dh=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({providers:[Dx]})}return n})();var Ox=new Set,Ta,QO=(()=>{class n{_platform=L(dt);_nonce=L(G1,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):XO}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&ZO(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function ZO(n,t){if(!Ox.has(n))try{Ta||(Ta=document.createElement("style"),t&&Ta.setAttribute("nonce",t),Ta.setAttribute("type","text/css"),document.head.appendChild(Ta)),Ta.sheet&&(Ta.sheet.insertRule(`@media ${n} {body{ }}`,0),Ox.add(n))}catch(e){console.error(e)}}function XO(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var Fx=(()=>{class n{_mediaMatcher=L(QO);_zone=L(Fe);_queries=new Map;_destroySubject=new ge;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Nx(zo(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=Nx(zo(e)).map(a=>this._registerQuery(a).observable),s=dr(r);return s=ca(s.pipe(Bt(1)),s.pipe(po(1),Oi(0))),s.pipe(Oe(a=>{let o={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{o.matches=o.matches||l,o.breakpoints[c]=l}),o}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),s={observable:new Gn(a=>{let o=l=>this._zone.run(()=>a.next(l));return i.addListener(o),()=>{i.removeListener(o)}}).pipe(Xt(i),Oe(({matches:a})=>({query:e,matches:a})),Ge(this._destroySubject)),mql:i};return this._queries.set(e,s),s}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Nx(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}var Bx=" ";function Sg(n,t,e){let i=ph(n,t);e=e.trim(),!i.some(r=>r.trim()===e)&&(i.push(e),n.setAttribute(t,i.join(Bx)))}function vh(n,t,e){let i=ph(n,t);e=e.trim();let r=i.filter(s=>s!==e);r.length?n.setAttribute(t,r.join(Bx)):n.removeAttribute(t)}function ph(n,t){return n.getAttribute(t)?.match(/\S+/g)??[]}var zx="cdk-describedby-message",hh="cdk-describedby-host",yg=0,Hx=(()=>{class n{_platform=L(dt);_document=L(rt);_messageRegistry=new Map;_messagesContainer=null;_id=`${yg++}`;constructor(){L(kt).load(Gr),this._id=L(Kp)+"-"+yg++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;let s=_g(i,r);typeof i!="string"?(Px(i,this._id),this._messageRegistry.set(s,{messageElement:i,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,s)||this._addMessageReference(e,s)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;let s=_g(i,r);if(this._isElementDescribedByMessage(e,s)&&this._removeMessageReference(e,s),typeof i=="string"){let a=this._messageRegistry.get(s);a&&a.referenceCount===0&&this._deleteMessageElement(s)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${hh}="${this._id}"]`);for(let i=0;ir.indexOf(zx)!=0);e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){let r=this._messageRegistry.get(i);Sg(e,"aria-describedby",r.messageElement.id),e.setAttribute(hh,this._id),r.referenceCount++}_removeMessageReference(e,i){let r=this._messageRegistry.get(i);r.referenceCount--,vh(e,"aria-describedby",r.messageElement.id),e.removeAttribute(hh)}_isElementDescribedByMessage(e,i){let r=ph(e,"aria-describedby"),s=this._messageRegistry.get(i),a=s&&s.messageElement.id;return!!a&&r.indexOf(a)!=-1}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&typeof i=="object")return!0;let r=i==null?"":`${i}`.trim(),s=e.getAttribute("aria-label");return r?!s||s.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function _g(n,t){return typeof n=="string"?`${t||""}/${n}`:n}function Px(n,t){n.id||(n.id=`${zx}-${t}-${yg++}`)}var lN=200,Cg=class{_letterKeyStream=new ge;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new ge;selectedItem=this._selectedItem;constructor(t,e){let i=typeof e?.debounceInterval=="number"?e.debounceInterval:lN;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(t),this._setupKeyHandler(i)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(t){this._selectedItemIndex=t}setItems(t){this._items=t}handleKey(t){let e=t.keyCode;t.key&&t.key.length===1?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(t){this._letterKeyStream.pipe(Tt(e=>this._pressedLetters.push(e)),Oi(t),st(()=>this._pressedLetters.length>0),Oe(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;it.disabled;constructor(t,e){this._items=t,t instanceof go?this._itemChangesSubscription=t.changes.subscribe(i=>this._itemsChanged(i.toArray())):ha(t)&&(this._effectRef=wd(()=>this._itemsChanged(t()),{injector:e}))}tabOut=new ge;change=new ge;skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new Cg(e,{debounceInterval:typeof t=="number"?t:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}withPageUpDown(t=!0,e=10){return this._pageUpAndDown={enabled:t,delta:e},this}setActiveItem(t){let e=this._activeItem();this.updateActiveItem(t),this._activeItem()!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){let e=t.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(s=>!t[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let s=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(s>0?s:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let s=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(s-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i))}}},_h=class extends gh{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}},gc=class extends gh{_origin="program";setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}};var cN=(()=>{class n{_platform=L(dt);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return dN(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=uN(bN(e));if(i&&(Ux(i)===-1||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),s=Ux(e);return e.hasAttribute("contenteditable")?s!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!_N(e)?!1:r==="audio"?e.hasAttribute("controls")?s!==-1:!1:r==="video"?s===-1?!1:s!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return vN(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function uN(n){try{return n.frameElement}catch{return null}}function dN(n){return!!(n.offsetWidth||n.offsetHeight||typeof n.getClientRects=="function"&&n.getClientRects().length)}function hN(n){let t=n.nodeName.toLowerCase();return t==="input"||t==="select"||t==="button"||t==="textarea"}function mN(n){return pN(n)&&n.type=="hidden"}function fN(n){return gN(n)&&n.hasAttribute("href")}function pN(n){return n.nodeName.toLowerCase()=="input"}function gN(n){return n.nodeName.toLowerCase()=="a"}function jx(n){if(!n.hasAttribute("tabindex")||n.tabIndex===void 0)return!1;let t=n.getAttribute("tabindex");return!!(t&&!isNaN(parseInt(t,10)))}function Ux(n){if(!jx(n))return null;let t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}function _N(n){let t=n.nodeName.toLowerCase(),e=t==="input"&&n.type;return e==="text"||e==="password"||t==="select"||t==="textarea"}function vN(n){return mN(n)?!1:hN(n)||fN(n)||n.hasAttribute("contenteditable")||jx(n)}function bN(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}var wg=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_enabled=!0;constructor(t,e,i,r,s=!1,a){this._element=t,this._checker=e,this._ngZone=i,this._document=r,this._injector=a,s||this.attachAnchors()}destroy(){let t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return t=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let i=this._getFirstTabbableElement(e);return i?.focus(t),!!i}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){let e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){let e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children;for(let i=0;i=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){let t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._injector?gi(t,{injector:this._injector}):setTimeout(t)}},yN=(()=>{class n{_checker=L(cN);_ngZone=L(Fe);_document=L(rt);_injector=L(pt);constructor(){L(kt).load(Gr)}create(e,i=!1){return new wg(e,this._checker,this._ngZone,this._document,i,this._injector)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Wx=(()=>{class n{_elementRef=L(Ae);_focusTrapFactory=L(yN);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){L(dt).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(e){let i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=pg(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",Ce],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",Ce]},exportAs:["cdkTrapFocus"],features:[Ye,St]})}return n})();function bh(n){return n.buttons===0||n.detail===0}function yh(n){let t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}var CN=new se("cdk-input-modality-detector-options"),wN={ignoreKeys:[18,17,224,91,16]},qx=650,Ho=Mi({passive:!0,capture:!0}),xN=(()=>{class n{_platform=L(dt);modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new fi(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(i=>i===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=dn(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(yh(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=dn(e)};constructor(){let e=L(Fe),i=L(rt),r=L(CN,{optional:!0});this._options=G(G({},wN),r),this.modalityDetected=this._modality.pipe(po(1)),this.modalityChanged=this.modalityDetected.pipe(hr()),this._platform.isBrowser&&e.runOutsideAngular(()=>{i.addEventListener("keydown",this._onKeydown,Ho),i.addEventListener("mousedown",this._onMousedown,Ho),i.addEventListener("touchstart",this._onTouchstart,Ho)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ho),document.removeEventListener("mousedown",this._onMousedown,Ho),document.removeEventListener("touchstart",this._onTouchstart,Ho))}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),SN=new se("liveAnnouncerElement",{providedIn:"root",factory:kN});function kN(){return null}var MN=new se("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),TN=0,Gx=(()=>{class n{_ngZone=L(Fe);_defaultOptions=L(MN,{optional:!0});_liveElement;_document=L(rt);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=L(SN,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...i){let r=this._defaultOptions,s,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[s,a]=i,this.clear(),clearTimeout(this._previousTimeout),s||(s=r&&r.politeness?r.politeness:"polite"),a==null&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",s),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(o=>this._currentResolve=o)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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(){let e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let s=0;s .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class n{_ngZone=L(Fe);_platform=L(dt);_inputModalityDetector=L(xN);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)};_document=L(rt,{optional:!0});_stopInputModalityDetector=new ge;constructor(){let e=L(EN,{optional:!0});this._detectionMode=e?.detectionMode||fh.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let i=dn(e);for(let r=i;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r)};monitor(e,i=!1){let r=Ji(e);if(!this._platform.isBrowser||r.nodeType!==1)return ye();let s=Ax(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;let o={checkChildren:i,subject:new ge,rootNode:s};return this._elementInfo.set(r,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(e){let i=Ji(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let s=Ji(e),a=this._getDocument().activeElement;s===a?this._getClosestElementsInfo(s).forEach(([o,l])=>this._originChanged(o,i,l)):(this._setOrigin(i),typeof s.focus=="function"&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===fh.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===fh.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?qx:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),s=dn(e);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,mh),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,mh)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ge(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,mh),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,mh),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,s)=>{(s===e||r.checkChildren&&s.contains(e))&&i.push([s,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let s=e.labels;if(s){for(let a=0;a{class n{_elementRef=L(Ae);_focusMonitor=L(Rn);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new le;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return n})(),Ea=function(n){return n[n.NONE=0]="NONE",n[n.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",n[n.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",n}(Ea||{}),$x="cdk-high-contrast-black-on-white",Vx="cdk-high-contrast-white-on-black",vg="cdk-high-contrast-active",kg=(()=>{class n{_platform=L(dt);_hasCheckedHighContrastMode;_document=L(rt);_breakpointSubscription;constructor(){this._breakpointSubscription=L(Fx).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Ea.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Ea.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Ea.BLACK_ON_WHITE}return Ea.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(vg,$x,Vx),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===Ea.BLACK_ON_WHITE?e.add(vg,$x):i===Ea.WHITE_ON_BLACK&&e.add(vg,Vx)}}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),wh=(()=>{class n{constructor(){L(kg)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({imports:[dh]})}return n})(),bg={},Lt=(()=>{class n{_appId=L(Kp);getId(e){return this._appId!=="ng"&&(e+=this._appId),bg.hasOwnProperty(e)||(bg[e]=0),`${e}${bg[e]++}`}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var IN=new se("cdk-dir-doc",{providedIn:"root",factory:AN});function AN(){return L(rt)}var DN=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function RN(n){let t=n?.toLowerCase()||"";return t==="auto"&&typeof navigator<"u"&&navigator?.language?DN.test(navigator.language)?"rtl":"ltr":t==="rtl"?"rtl":"ltr"}var li=(()=>{class n{value="ltr";change=new le;constructor(){let e=L(IN,{optional:!0});if(e){let i=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.value=RN(i||r||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Fs=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({})}return n})();var LN=["text"],ON=[[["mat-icon"]],"*"],NN=["mat-icon","*"];function FN(n,t){if(n&1&&te(0,"mat-pseudo-checkbox",1),n&2){let e=X();H("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function PN(n,t){if(n&1&&te(0,"mat-pseudo-checkbox",3),n&2){let e=X();H("disabled",e.disabled)}}function UN(n,t){if(n&1&&(N(0,"span",4),B(1),P()),n&2){let e=X();$(),Ke("(",e.group.label,")")}}var $N=["mat-internal-form-field",""],VN=["*"];var Le=(()=>{class n{constructor(){L(kg)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({imports:[Fs,Fs]})}return n})(),Da=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(t,e,i,r,s){this._defaultMatcher=t,this.ngControl=e,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=s}updateErrorState(){let t=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,s=i?.isErrorState(r,e)??!1;s!==t&&(this.errorState=s,this._stateChanges.next())}},Kx=new se("MAT_DATE_LOCALE",{providedIn:"root",factory:BN});function BN(){return L(oC)}var jo="Method not implemented",en=class{locale;_localeChanges=new ge;localeChanges=this._localeChanges;setTime(t,e,i,r){throw new Error(jo)}getHours(t){throw new Error(jo)}getMinutes(t){throw new Error(jo)}getSeconds(t){throw new Error(jo)}parseTime(t,e){throw new Error(jo)}addSeconds(t,e){throw new Error(jo)}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return t==null||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}compareTime(t,e){return this.getHours(t)-this.getHours(e)||this.getMinutes(t)-this.getMinutes(e)||this.getSeconds(t)-this.getSeconds(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),r=this.isValid(e);return i&&r?!this.compareDate(t,e):i==r}return t==e}sameTime(t,e){if(t&&e){let i=this.isValid(t),r=this.isValid(e);return i&&r?!this.compareTime(t,e):i==r}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}},Wo=new se("mat-date-formats"),zN=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,HN=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function Mg(n,t){let e=Array(n);for(let i=0;i{class n extends en{useUtcForDisplay=!1;_matDateLocale=L(Kx,{optional:!0});constructor(){super();let e=L(Kx,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Mg(12,r=>this._format(i,new Date(2017,r,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Mg(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){let i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Mg(7,r=>this._format(i,new Date(2017,0,r+1)))}getYearName(e){let i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),i=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return i===7?0:i}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,r){let s=this._createDateWithOverflow(e,i,r);return s.getMonth()!=i,s}today(){return new Date}parse(e,i){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let r=new Intl.DateTimeFormat(this.locale,je(G({},i),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,i*12)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(zN.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,i,r,s){let a=this.clone(e);return a.setHours(i,r,s,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,i){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let r=e.trim();if(r.length===0)return null;let s=this._parseTimeString(r);if(s===null){let a=r.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(s=this._parseTimeString(a))}return s||this.invalid()}addSeconds(e,i){return new Date(e.getTime()+i*1e3)}_createDateWithOverflow(e,i,r){let s=new Date;return s.setFullYear(e,i,r),s.setHours(0,0,0,0),s}_2digit(e){return("00"+e).slice(-2)}_format(e,i){let r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}_parseTimeString(e){let i=e.toUpperCase().match(HN);if(i){let r=parseInt(i[1]),s=parseInt(i[2]),a=i[3]==null?void 0:parseInt(i[3]),o=i[4];if(r===12?r=o==="AM"?0:r:o==="PM"&&(r+=12),Tg(r,0,23)&&Tg(s,0,59)&&(a==null||Tg(a,0,59)))return this.setTime(this.today(),r,s,a||0)}return null}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac})}return n})();function Tg(n,t,e){return!isNaN(n)&&n>=t&&n<=e}var WN={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var Rg=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({providers:[qN()]})}return n})();function qN(n=WN){return[{provide:en,useClass:jN},{provide:Wo,useValue:n}]}var Cc=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Ti=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["structural-styles"]],decls:0,vars:0,template:function(i,r){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}'],encapsulation:2,changeDetection:0})}return n})();var hn=function(n){return n[n.FADING_IN=0]="FADING_IN",n[n.VISIBLE=1]="VISIBLE",n[n.FADING_OUT=2]="FADING_OUT",n[n.HIDDEN=3]="HIDDEN",n}(hn||{}),Ag=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=hn.HIDDEN;constructor(t,e,i,r=!1){this._renderer=t,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r}fadeOut(){this._renderer.fadeOutRipple(this)}},Yx=Mi({passive:!0,capture:!0}),Dg=class{_events=new Map;addHandler(t,e,i,r){let s=this._events.get(e);if(s){let a=s.get(i);a?a.add(r):s.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),t.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,Yx)})}removeHandler(t,e,i){let r=this._events.get(t);if(!r)return;let s=r.get(e);s&&(s.delete(i),s.size===0&&r.delete(e),r.size===0&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,Yx)))}_delegateEventHandler=t=>{let e=dn(t);e&&this._events.get(t.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(s=>s.handleEvent(t))})}},Sh={enterDuration:225,exitDuration:150},GN=800,Qx=Mi({passive:!0,capture:!0}),Zx=["mousedown","touchstart"],Xx=["mouseup","mouseleave","touchend","touchcancel"],KN=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"],encapsulation:2,changeDetection:0})}return n})(),kh=class n{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new Dg;constructor(t,e,i,r,s){this._target=t,this._ngZone=e,this._platform=r,r.isBrowser&&(this._containerElement=Ji(i)),s&&s.get(kt).load(KN)}fadeInRipple(t,e,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=G(G({},Sh),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);let a=i.radius||YN(t,e,r),o=t-r.left,l=e-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=`${o-a}px`,u.style.top=`${l-a}px`,u.style.height=`${a*2}px`,u.style.width=`${a*2}px`,i.color!=null&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);let d=window.getComputedStyle(u),h=d.transitionProperty,m=d.transitionDuration,f=h==="none"||m==="0s"||m==="0s, 0s"||r.width===0&&r.height===0,g=new Ag(this,u,i,f);u.style.transform="scale3d(1, 1, 1)",g.state=hn.FADING_IN,i.persistent||(this._mostRecentTransientRipple=g);let v=null;return!f&&(c||s.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let w=()=>{v&&(v.fallbackTimer=null),clearTimeout(k),this._finishRippleTransition(g)},C=()=>this._destroyRipple(g),k=setTimeout(C,c+100);u.addEventListener("transitionend",w),u.addEventListener("transitioncancel",C),v={onTransitionEnd:w,onTransitionCancel:C,fallbackTimer:k}}),this._activeRipples.set(g,v),(f||!c)&&this._finishRippleTransition(g),g}fadeOutRipple(t){if(t.state===hn.FADING_OUT||t.state===hn.HIDDEN)return;let e=t.element,i=G(G({},Sh),t.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",t.state=hn.FADING_OUT,(t._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){let e=Ji(t);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,Zx.forEach(i=>{n._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(t){t.type==="mousedown"?this._onMousedown(t):t.type==="touchstart"?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Xx.forEach(e=>{this._triggerElement.addEventListener(e,this,Qx)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){t.state===hn.FADING_IN?this._startFadeOutTransition(t):t.state===hn.FADING_OUT&&this._destroyRipple(t)}_startFadeOutTransition(t){let e=t===this._mostRecentTransientRipple,{persistent:i}=t.config;t.state=hn.VISIBLE,!i&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){let e=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=hn.HIDDEN,e!==null&&(t.element.removeEventListener("transitionend",e.onTransitionEnd),t.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),t.element.remove()}_onMousedown(t){let e=bh(t),i=this._lastTouchStartEvent&&Date.now(){let e=t.state===hn.VISIBLE||t.config.terminateOnPointerUp&&t.state===hn.FADING_IN;!t.config.persistent&&e&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let t=this._triggerElement;t&&(Zx.forEach(e=>n._eventManager.removeHandler(e,t,this)),this._pointerUpEventsRegistered&&(Xx.forEach(e=>t.removeEventListener(e,this,Qx)),this._pointerUpEventsRegistered=!1))}};function YN(n,t,e){let i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}var Th=new se("mat-ripple-global-options"),pn=(()=>{class n{_elementRef=L(Ae);_animationMode=L(Dt,{optional:!0});color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=L(Fe),i=L(dt),r=L(Th,{optional:!0}),s=L(pt);this._globalOptions=r||{},this._rippleRenderer=new kh(this,e,this._elementRef,i,s)}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:G(G(G({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{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(e,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,G(G({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,G(G({},this.rippleConfig),e))}static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&Ee("mat-ripple-unbounded",r.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return n})(),Kr=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({imports:[Le,Le]})}return n})(),QN=(()=>{class n{_animationMode=L(Dt,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,r){i&2&&Ee("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(i,r){},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, var(--mat-sys-primary))}.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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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, var(--mat-sys-primary));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, var(--mat-sys-on-primary))}.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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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, var(--mat-sys-surface))}.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 n})(),ZN=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({imports:[Le]})}return n})(),Eh=new se("MAT_OPTION_PARENT_COMPONENT"),Ih=new se("MatOptgroup");var Mh=class{source;isUserInput;constructor(t,e=!1){this.source=t,this.isUserInput=e}},Jn=(()=>{class n{_element=L(Ae);_changeDetectorRef=L(Ze);_parent=L(Eh,{optional:!0});group=L(Ih,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=L(Lt).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new le;_text;_stateChanges=new ge;constructor(){L(kt).load(Ti),L(kt).load(Gr),this._signalDisableRipple=!!this._parent&&ha(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,i){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!Pi(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Mh(this,e))}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["mat-option"]],viewQuery:function(i,r){if(i&1&&$e(LN,7),i&2){let s;ke(s=Me())&&(r._text=s.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,r){i&1&&J("click",function(){return r._selectViaInteraction()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(Tn("id",r.id),Se("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),Ee("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",Ce]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],features:[Ye],ngContentSelectors:NN,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-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,r){i&1&&(nt(ON),oe(0,FN,1,2,"mat-pseudo-checkbox",1),Pe(1),N(2,"span",2,0),Pe(4,1),P(),oe(5,PN,1,1,"mat-pseudo-checkbox",3)(6,UN,2,1,"span",4),te(7,"div",5)),i&2&&(et(r.multiple?0:-1),$(5),et(!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),$(),et(r.group&&r.group._inert?6:-1),$(),H("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[QN,pn],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.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, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.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, var(--mat-sys-on-secondary-container))}.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, var(--mat-sys-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.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}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::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-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return n})();function Lg(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),s=0;for(let a=0;ae+i?Math.max(0,n-i+t):e}var qo=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({imports:[Kr,Le,ZN]})}return n})(),Jx={capture:!0},eS=["focus","mousedown","mouseenter","touchstart"],Eg="mat-ripple-loader-uninitialized",Ig="mat-ripple-loader-class-name",tS="mat-ripple-loader-centered",xh="mat-ripple-loader-disabled",iS=(()=>{class n{_document=L(rt,{optional:!0});_animationMode=L(Dt,{optional:!0});_globalRippleOptions=L(Th,{optional:!0});_platform=L(dt);_ngZone=L(Fe);_injector=L(pt);_hosts=new Map;constructor(){this._ngZone.runOutsideAngular(()=>{for(let e of eS)this._document?.addEventListener(e,this._onInteraction,Jx)})}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);for(let i of eS)this._document?.removeEventListener(i,this._onInteraction,Jx)}configureRipple(e,i){e.setAttribute(Eg,this._globalRippleOptions?.namespace??""),(i.className||!e.hasAttribute(Ig))&&e.setAttribute(Ig,i.className||""),i.centered&&e.setAttribute(tS,""),i.disabled&&e.setAttribute(xh,"")}setDisabled(e,i){let r=this._hosts.get(e);r?(r.target.rippleDisabled=i,!i&&!r.hasSetUpEvents&&(r.hasSetUpEvents=!0,r.renderer.setupTriggerEvents(e))):i?e.setAttribute(xh,""):e.removeAttribute(xh)}_onInteraction=e=>{let i=dn(e);if(i instanceof HTMLElement){let r=i.closest(`[${Eg}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let i=this._document.createElement("span");i.classList.add("mat-ripple",e.getAttribute(Ig)),e.append(i);let r=this._animationMode==="NoopAnimations",s=this._globalRippleOptions,a=r?0:s?.animation?.enterDuration??Sh.enterDuration,o=r?0:s?.animation?.exitDuration??Sh.exitDuration,l={rippleDisabled:r||s?.disabled||e.hasAttribute(xh),rippleConfig:{centered:e.hasAttribute(tS),terminateOnPointerUp:s?.terminateOnPointerUp,animation:{enterDuration:a,exitDuration:o}}},c=new kh(l,this._ngZone,i,this._platform,this._injector),u=!l.rippleDisabled;u&&c.setupTriggerEvents(e),this._hosts.set(e,{target:l,renderer:c,hasSetUpEvents:u}),e.removeAttribute(Eg)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Go=(()=>{class n{labelPosition;static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,r){i&2&&Ee("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:$N,ngContentSelectors:VN,decls:1,vars:0,template:function(i,r){i&1&&(nt(),Pe(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.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 .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0})}return n})();var JN=["*"],Ah;function eF(){if(Ah===void 0&&(Ah=null,typeof window<"u")){let n=window;n.trustedTypes!==void 0&&(Ah=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Ah}function wc(n){return eF()?.createHTML(n)||n}function nS(n){return Error(`Unable to find icon with the name "${n}"`)}function tF(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function rS(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function sS(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}var Yr=class{url;svgText;options;svgElement;constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}},iF=(()=>{class n{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,i,r,s){this._httpClient=e,this._sanitizer=i,this._errorHandler=s,this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,s){return this._addSvgIconConfig(e,i,new Yr(r,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,s){let a=this._sanitizer.sanitize(Ss.HTML,r);if(!a)throw sS(r);let o=wc(a);return this._addSvgIconConfig(e,i,new Yr("",o,s))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new Yr(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let s=this._sanitizer.sanitize(Ss.HTML,i);if(!s)throw sS(i);let a=wc(s);return this._addSvgIconSetConfig(e,new Yr("",a,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(Ss.RESOURCE_URL,e);if(!i)throw rS(e);let r=this._cachedIconsByUrl.get(i);return r?ye(Dh(r)):this._loadSvgIconFromConfig(new Yr(e,null)).pipe(Tt(s=>this._cachedIconsByUrl.set(i,s)),Oe(s=>Dh(s)))}getNamedSvgIcon(e,i=""){let r=aS(i,e),s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,e),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);let a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):Kn(nS(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?ye(Dh(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Oe(i=>Dh(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return ye(r);let s=i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Gi(o=>{let c=`Loading icon set URL: ${this._sanitizer.sanitize(Ss.RESOURCE_URL,a.url)} failed: ${o.message}`;return this._errorHandler.handleError(new Error(c)),ye(null)})));return uo(s).pipe(Oe(()=>{let a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw nS(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let s=i[r];if(s.svgText&&s.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(s),o=this._extractSvgIconFromSet(a,e,s.options);if(o)return o}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Tt(i=>e.svgText=i),Oe(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?ye(null):this._fetchIcon(e).pipe(Tt(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let s=e.querySelector(`[id="${i}"]`);if(!s)return null;let a=s.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,r);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),r);let o=this._svgElementFromString(wc(""));return o.appendChild(a),this._setSvgAttributes(o,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(wc("")),r=e.attributes;for(let s=0;swc(c)),mo(()=>this._inProgressUrlFetches.delete(a)),V1());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(aS(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}var oS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],oF=oS.map(n=>`[${n}]`).join(", "),lF=/^url\(['"]?#(.*?)['"]?\)$/,Ln=(()=>{class n{_elementRef=L(Ae);_iconRegistry=L(iF);_location=L(sF);_errorHandler=L(fd);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=xt.EMPTY;constructor(){let e=L(new Ni("aria-hidden"),{optional:!0}),i=L(rF,{optional:!0});i&&(i.color&&(this.color=this._defaultColor=i.color),i.fontSet&&(this.fontSet=i.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(a=>{s.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(oF),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{let o=i[s],l=o.getAttribute(a),c=l?l.match(lF):null;if(c){let u=r.get(o);u||(u=[],r.set(o,u)),u.push({name:a,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Bt(1)).subscribe(s=>this._setSvgElement(s),s=>{let a=`Error retrieving icon ${i}:${r}! ${s.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(Se("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),_t(r.color?"mat-"+r.color:""),Ee("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",Ce],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Ye],ngContentSelectors:JN,decls:1,vars:0,template:function(i,r){i&1&&(nt(),Pe(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.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 n})(),xc=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({imports:[Le,Le]})}return n})();var lS=(()=>{class n{constructor(e,i,r){if(this.translateService=e,this.fhirConfigService=i,this.hashUrlRedirectionService=r,this.version=$o.version,r.isHashUrl()&&r.redirectHashUrl(),e.setDefaultLang("de"),e.use(e.getBrowserLang()),location.origin==="http://localhost:4200")console.log("note: using local dev mag system for "+location.origin),i.changeFhirMicroService("http://localhost:4200/proxy/localhost/matchboxv3/fhir");else{let a=window.MATCHBOX_BASE_PATH+"/fhir";i.changeFhirMicroService(a),console.log("fhir endpoint "+a)}}static{this.\u0275fac=function(i){return new(i||n)(Ie(mc),Ie(An),Ie(oh))}}static{this.\u0275cmp=he({type:n,selectors:[["app-root"]],standalone:!1,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(i,r){i&1&&(N(0,"header")(1,"div",0),te(2,"img",1),N(3,"span",2),B(4),P()(),N(5,"nav")(6,"div",3)(7,"mat-icon"),B(8,"home"),P(),N(9,"span"),B(10,"Home"),P()(),N(11,"div",4)(12,"mat-icon"),B(13,"info"),P(),N(14,"span"),B(15,"CapabilityStatement"),P()(),N(16,"div",5)(17,"mat-icon"),B(18,"info"),P(),N(19,"span"),B(20,"IGs"),P()(),N(21,"div",6)(22,"mat-icon"),B(23,"search"),P(),N(24,"span"),B(25,"FHIR Mapping"),P()(),N(26,"div",7)(27,"mat-icon"),B(28,"transform"),P(),N(29,"span"),B(30,"Transform"),P()(),N(31,"div",8)(32,"mat-icon"),B(33,"rule"),P(),N(34,"span"),B(35,"Validate"),P()(),N(36,"div",9)(37,"mat-icon"),B(38,"settings"),P(),N(39,"span"),B(40,"Settings"),P()()()(),N(41,"main",10),te(42,"router-outlet"),P()),i&2&&($(4),Ke("v",r.version,""))},dependencies:[Ln,D0,Gd],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 n})();var _S=bs(Fg()),PG=bs(dS()),UG=bs(mS());var jt=class n{constructor(t,e){this.operationOutcome=e,this.issues=t??[]}static fromOperationOutcome(t){let e=t.issue?.map(i=>Nh.fromOoIssue(i));return new n(e,t)}static fromMatchboxError(t){let e=new n;return e.issues.push(new Nh("fatal","matchbox",t,void 0,void 0,void 0,void 0)),e}},Nh=class n{constructor(t,e,i,r,s,a,o){this.sliceInfo=[],this.severity=t,this.code=e,this.text=i,this.expression=r,this.line=s,this.col=a,this.sliceInfo=o??[]}static fromOoIssue(t){let e;t.expression&&t.expression.length?e=t.expression[0]:t.location&&t.location.length&&(e=t.location[0]);let i=t.diagnostics?.indexOf("Slice info: 1.)"),r,s=null;return i>=0?(r=t.diagnostics.substring(0,i).trimEnd(),s=t.diagnostics.substring(i+15).trimStart().split(/\d+[.][)]/)):r=t.diagnostics,new n(t.severity,t.code,r,e,n.getLineNo(t),n.getColNo(t),s)}static getLineNo(t){let e=n.getExtensionIntValue(t,"http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-line");return e&&e>0?e:void 0}static getColNo(t){let e=n.getExtensionIntValue(t,"http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-col");return e&&e>0?e:void 0}static getExtensionIntValue(t,e){if(t.extension){for(let i of t.extension)if(i.url===e)return i.valueInteger}}};var cF=["determinateSpinner"];function uF(n,t){if(n&1&&(Gt(),N(0,"svg",11),te(1,"circle",12),P()),n&2){let e=X();Se("viewBox",e._viewBox()),$(),ni("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),Se("r",e._circleRadius())}}var dF=new se("mat-progress-spinner-default-options",{providedIn:"root",factory:hF});function hF(){return{diameter:fS}}var fS=100,mF=10,Ps=(()=>{class n{_elementRef=L(Ae);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=L(Dt,{optional:!0}),i=L(dF);this._noopAnimations=e==="NoopAnimations"&&!!i&&!i._forceAnimations,this.mode=this._elementRef.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",i&&(i.color&&(this.color=this._defaultColor=i.color),i.diameter&&(this.diameter=i.diameter),i.strokeWidth&&(this.strokeWidth=i.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=fS;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-mF)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,r){if(i&1&&$e(cF,5),i&2){let s;ke(s=Me())&&(r._determinateCircle=s.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(i,r){i&2&&(Se("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),_t("mat-"+r.color),ni("width",r.diameter,"px")("height",r.diameter,"px")("--mdc-circular-progress-size",r.diameter+"px")("--mdc-circular-progress-active-indicator-width",r.diameter+"px"),Ee("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",$t],diameter:[2,"diameter","diameter",$t],strokeWidth:[2,"strokeWidth","strokeWidth",$t]},exportAs:["matProgressSpinner"],features:[Ye],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(i,r){if(i&1&&(oe(0,uF,2,8,"ng-template",null,0,ma),N(2,"div",2,1),Gt(),N(4,"svg",3),te(5,"circle",4),P()(),Vr(),N(6,"div",5)(7,"div",6)(8,"div",7),_o(9,8),P(),N(10,"div",9),_o(11,8),P(),N(12,"div",10),_o(13,8),P()()()),i&2){let s=Kt(1);$(4),Se("viewBox",r._viewBox()),$(),ni("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),Se("r",r._circleRadius()),$(4),H("ngTemplateOutlet",s),$(2),H("ngTemplateOutlet",s),$(2),H("ngTemplateOutlet",s)}},dependencies:[Sd],styles:[".mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.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 !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.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 .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,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, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 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 .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__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__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.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}@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-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)}}"],encapsulation:2,changeDetection:0})}return n})();var Sc=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({imports:[Le]})}return n})();var fF=n=>({clickable:n});function pF(n,t){if(n&1&&(N(0,"li",8),B(1),P()),n&2){let e=t.$implicit;$(),Ke(" ",e," ")}}function gF(n,t){if(n&1&&(N(0,"ol"),oe(1,pF,2,1,"li",7),P()),n&2){let e=X().$implicit;$(),H("ngForOf",e.sliceInfo)}}function _F(n,t){if(n&1){let e=We();N(0,"li",3),J("click",function(){let r=ie(e).$implicit,s=X(2);return ne(s.select.emit(r))}),N(1,"span",4),B(2),P(),te(3,"span",5)(4,"br"),N(5,"p"),B(6),P(),oe(7,gF,2,1,"ol",6),P()}if(n&2){let e=t.$implicit,i=X(2);vd("issue ",e.severity,""),$(2),Xe(e.severity),$(),H("innerHtml",i.getTemplateHeaderLine(e),Vl),$(3),Xe(e.text),$(),H("ngIf",e.sliceInfo.length)}}function vF(n,t){if(n&1&&(N(0,"ul",1),oe(1,_F,8,7,"li",2),P()),n&2){let e=X();H("ngClass",Es(2,fF,e.reactsToClick)),$(),H("ngForOf",e.result.issues)}}var pS=["fatal","error","warning","information"],Yo=(()=>{class n{set operationResult(e){this.result=e,this.result&&this.result.issues.length&&this.result.issues.sort(n.sortIssues)}constructor(e){this.sanitized=e,this.select=new le,this.reactsToClick=!1}ngOnInit(){this.reactsToClick=this.select.observed}static sortIssues(e,i){let r=pS.indexOf(e.severity)-pS.indexOf(i.severity);return r!==0?r:(e.line??0)-(i.line??0)}getTemplateHeaderLine(e){let i="";e.code&&(i+=` [${e.code}]`),i+=": ";let r=[];return e.line&&r.push(`line ${e.line}`),e.col&&r.push(`column ${e.col}`),e.expression&&r.push(`in ${e.expression}`),r.length&&(i+=r.join(", ")+":"),this.sanitized.bypassSecurityTrustHtml(i)}static{this.\u0275fac=function(i){return new(i||n)(Ie(Co))}}static{this.\u0275cmp=he({type:n,selectors:[["app-operation-result"]],inputs:{operationResult:"operationResult"},outputs:{select:"select"},standalone:!1,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(i,r){i&1&&oe(0,vF,2,4,"ul",0),i&2&&H("ngIf",r.result)},dependencies:[En,gr,_i],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 n})();function bF(n,t){n&1&&te(0,"mat-spinner")}function yF(n,t){if(n&1&&te(0,"app-operation-result",4),n&2){let e=X();H("operationResult",e.operationResult)}}var gS=4,vS=(()=>{class n{constructor(e){this.data=e,this.capabilityStatement=null,this.operationResult=null,this.loading=!0,this.client=e.getFhirClient()}ngAfterViewInit(){this.client.capabilityStatement().then(e=>{this.loading=!1,this.operationResult=null,this.editor=_S.default.edit("code"),this.editor.setReadOnly(!0),this.editor.setValue(JSON.stringify(e,null,gS),-1),this.editor.getSession().setMode("ace/mode/json"),this.editor.setTheme("ace/theme/textmate"),this.editor.commands.removeCommand("find"),this.editor.setOptions({maxLines:1e4,tabSize:gS,wrap:!0,useWorker:!1}),this.editor.resize(!0)}).catch(e=>{console.error(e),this.loading=!1,this.capabilityStatement=null,this.editor&&(this.editor.destroy(),this.editor.container.remove()),this.editor=null,e.response?.data?this.operationResult=jt.fromOperationOutcome(e.response.data):this.operationResult=jt.fromMatchboxError(e.message)})}static{this.\u0275fac=function(i){return new(i||n)(Ie(An))}}static{this.\u0275cmp=he({type:n,selectors:[["app-capability-statement"]],standalone:!1,decls:10,vars:3,consts:[["id","capability-statement",1,"white-block"],[4,"ngIf"],["id","code"],[3,"operationResult",4,"ngIf"],[3,"operationResult"]],template:function(i,r){i&1&&(N(0,"div",0)(1,"h2"),B(2,"CapabilityStatement"),P(),N(3,"p"),B(4," CapabilityStatement of the server: "),N(5,"code"),B(6),P()(),oe(7,bF,1,0,"mat-spinner",1),te(8,"div",2),oe(9,yF,1,1,"app-operation-result",3),P()),i&2&&($(6),Xe(r.client.baseUrl),$(),H("ngIf",r.loading),$(2),H("ngIf",r.operationResult))},dependencies:[_i,Ps,Yo],encapsulation:2})}}return n})();var CF=["*"];var wF=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],xF=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, +`;case"\\t":return" ";case"\\f":return"\f";default:return s.length>1?String.fromCharCode("0x"+s.slice(1)):s}}),[i]};me.BooleanLiteral=function(n,t,e){return e.text==="true"?[!0]:[!1]};me.QuantityLiteral=function(n,t,e){var i=e.children[0],r=Number(i.terminalNodeText[0]),s=i.children[0],a=s.terminalNodeText[0];return!a&&s.children&&(a=s.children[0].terminalNodeText[0]),[new Qf(r,a)]};me.DateTimeLiteral=function(n,t,e){var i=e.text.slice(1);return[new bI(i)]};me.TimeLiteral=function(n,t,e){var i=e.text.slice(1);return[new yI(i)]};me.NumberLiteral=function(n,t,e){return[Number(e.text)]};me.Identifier=function(n,t,e){return[e.text.replace(/(^`|`$)/g,"")]};me.InvocationTerm=function(n,t,e){return me.doEval(n,t,e.children[0])};me.MemberInvocation=function(n,t,e){let i=me.doEval(n,t,e.children[0])[0],r=n.model;return t?t.reduce(function(s,a){return a=ia(a,null,a.__path__?.path,null,a.__path__?.fhirNodeDataType),a.data?.resourceType===i?s.push(a):di.pushFn(s,di.makeChildResNodes(a,i,r)),s},[]):[]};me.IndexerExpression=function(n,t,e){let i=e.children[0],r=e.children[1];var s=me.doEval(n,t,i),a=me.doEval(n,t,r);if(di.isEmpty(a))return[];var o=parseInt(a[0]);return s&&di.isSome(o)&&s.length>o&&o>=0?[s[o]]:[]};me.Functn=function(n,t,e){return e.children.map(function(i){return me.doEval(n,t,i)})};me.realizeParams=function(n,t,e){return e&&e[0]&&e[0].children?e[0].children.map(function(i){return me.doEval(n,t,i)}):[]};function wI(n,t,e,i){if(e==="Expr")return function(s){let a=di.arraify(s),o=je(G({},n),{$this:a});return n.definedVars&&(o.definedVars=G({},n.definedVars)),me.doEval(o,a,i)};if(e==="AnyAtRoot"){let s=n.$this||n.dataRoot,a=je(G({},n),{$this:s});return n.definedVars&&(a.definedVars=G({},n.definedVars)),me.doEval(a,s,i)}if(e==="Identifier"){if(i.type==="TermExpression")return i.text;throw new Error("Expected identifier node, got "+JSON.stringify(i))}if(e==="TypeSpecifier")return me.TypeSpecifier(n,t,i);let r;if(e==="AnySingletonAtRoot"){let s=n.$this||n.dataRoot,a=je(G({},n),{$this:s});n.definedVars&&(a.definedVars=G({},n.definedVars)),r=me.doEval(a,s,i)}else{let s=G({},n);if(n.definedVars&&(s.definedVars=G({},n.definedVars)),r=me.doEval(s,t,i),e==="Any")return r;if(Array.isArray(e)){if(r.length===0)return[];e=e[0]}}return Mt.singleton(r,e)}function E5(n,t,e,i){var r=n.userInvocationTable?.[t]||me.invocationTable[t]||e.length===1&&e[0]?.invocationTable[t],s;if(r)if(r.arity){var a=i?i.length:0,o=r.arity[a];if(o){for(var l=[],c=0;ch instanceof Promise)?Promise.all(l).then(h=>(s=r.fn.apply(n,h),di.resolveAndArraify(s))):(s=r.fn.apply(n,l),di.resolveAndArraify(s))}else return console.log(t+" wrong arity: got "+a),[]}else{if(i)throw new Error(t+" expects no params");return s=r.fn.call(n,e),di.resolveAndArraify(s)}else throw new Error("Not implemented: "+t)}function xI(n){return n==null||di.isEmpty(n)}function py(n,t,e,i){var r=me.invocationTable[t];if(r&&r.fn){var s=i?i.length:0;if(s!==2)throw new Error("Infix invoke should have arity 2");var a=r.arity[s];if(a){for(var o=[],l=0;lh instanceof Promise))return Promise.all(o).then(h=>{var m=r.fn.apply(n,h);return di.arraify(m)});var d=r.fn.apply(n,o);return di.arraify(d)}else return console.log(t+" wrong arity: got "+s),[]}else throw new Error("Not impl "+t)}me.FunctionInvocation=function(n,t,e){var i=me.doEval(n,t,e.children[0]);let r=i[0];i.shift();var s=i&&i[0]&&i[0].children;return E5(n,r,t,s)};me.ParamList=function(n,t,e){return e};me.UnionExpression=function(n,t,e){return py(n,"|",t,e.children)};me.ThisInvocation=function(n){return n.$this};me.TotalInvocation=function(n){return di.arraify(n.$total)};me.IndexInvocation=function(n){return di.arraify(n.$index)};me.OpExpression=function(n,t,e){var i=e.terminalNodeText[0];return py(n,i,t,e.children)};me.AliasOpExpression=function(n){return function(t,e,i){var r=i.terminalNodeText[0],s=n[r];if(!s)throw new Error("Do not know how to alias "+r+" by "+JSON.stringify(n));return py(t,s,e,i.children)}};me.NullLiteral=function(){return[]};me.ParenthesizedTerm=function(n,t,e){return me.doEval(n,t,e.children[0])};me.evalTable={BooleanLiteral:me.BooleanLiteral,EqualityExpression:me.OpExpression,FunctionInvocation:me.FunctionInvocation,Functn:me.Functn,Identifier:me.Identifier,IndexerExpression:me.IndexerExpression,InequalityExpression:me.OpExpression,InvocationExpression:me.InvocationExpression,AdditiveExpression:me.OpExpression,MultiplicativeExpression:me.OpExpression,TypeExpression:me.AliasOpExpression({is:"isOp",as:"asOp"}),MembershipExpression:me.AliasOpExpression({contains:"containsOp",in:"inOp"}),NullLiteral:me.NullLiteral,EntireExpression:me.InvocationTerm,InvocationTerm:me.InvocationTerm,LiteralTerm:me.LiteralTerm,MemberInvocation:me.MemberInvocation,NumberLiteral:me.NumberLiteral,ParamList:me.ParamList,ParenthesizedTerm:me.ParenthesizedTerm,StringLiteral:me.StringLiteral,TermExpression:me.TermExpression,ThisInvocation:me.ThisInvocation,TotalInvocation:me.TotalInvocation,IndexInvocation:me.IndexInvocation,UnionExpression:me.UnionExpression,OrExpression:me.OpExpression,ImpliesExpression:me.OpExpression,AndExpression:me.OpExpression,XorExpression:me.OpExpression};me.doEval=function(n,t,e){return t instanceof Promise?t.then(i=>me.doEvalSync(n,i,e)):me.doEvalSync(n,t,e)};me.doEvalSync=function(n,t,e){let i=me.evalTable[e.type]||me[e.type];if(i)return i.call(me,n,t,e);throw new Error("No "+e.type+" evaluator ")};function hy(n){return x5.parse(n)}function vI(n,t,e,i,r){S5.reset();let s=di.arraify(n).map(l=>l?.__path__?ia(l,l.__path__.parentResNode,l.__path__.path,null,l.__path__.fhirNodeDataType):l),a={dataRoot:s,processedVars:{ucum:"http://unitsofmeasure.org"},vars:G({context:s},e),model:i};r.traceFn&&(a.customTraceFn=r.traceFn),r.userInvocationTable&&(a.userInvocationTable=r.userInvocationTable),a.defaultScoreExts=["http://hl7.org/fhir/StructureDefinition/ordinalValue","http://hl7.org/fhir/StructureDefinition/itemWeight","http://hl7.org/fhir/StructureDefinition/questionnaire-ordinalValue"],r.async&&(a.async=r.async),r.terminologyUrl&&(a.processedVars.terminologies=new T5(r.terminologyUrl));let o=me.doEval(a,s,t.children[0]);return o instanceof Promise?o.then(l=>dy(l,r)):r.async==="always"?Promise.resolve(dy(o,r)):dy(o,r)}function dy(n,t){return n.reduce((e,i)=>{let r,s,a;return i instanceof fy&&(r=i.path,s=i.fhirNodeDataType,a=i.parentResNode),i=di.valData(i),i instanceof CI&&t.resolveInternalTypes&&(i=i.toString()),i!=null&&(r&&typeof i=="object"&&!i.__path__&&Object.defineProperty(i,"__path__",{value:{path:r,fhirNodeDataType:s,parentResNode:a}}),e.push(i)),e},[])}function my(n){if(Array.isArray(n))for(let t=0,e=n.length;t(i[s].internalStructures?r[s]=i[s]:r[s]=je(G({},i[s]),{fn:(...a)=>i[s].fn.apply(this,a.map(o=>Array.isArray(o)?o.map(l=>di.valData(l)):o))}),r),{})),typeof n=="object"){let r=hy(n.expression);return function(s,a){if(n.base){let o=t.pathsDefinedElsewhere[n.base]||n.base,l=t&&t.path2Type[o];o=l==="BackboneElement"||l==="Element"?o:l||o,s=ia(s,null,o,null,l)}return Zf.model=t,vI(s,r,a,t,e)}}else{let r=hy(n);return function(s,a){return Zf.model=t,vI(s,r,a,t,e)}}}function A5(n){return di.arraify(n).map(t=>{let e=Zf.fromValue(t?.__path__?new fy(t,t.__path__?.parentResNode,t.__path__?.path,null,t.__path__?.fhirNodeDataType):t);return`${e.namespace}.${e.name}`})}kI.exports={version:w5,parse:hy,compile:SI,evaluate:I5,resolveInternalTypes:my,types:A5,ucumUtils:Nf().UcumLhcUtils.getInstance(),util:di}});var tD=Z((qy,eD)=>{(function(n,t){typeof define=="function"&&define.amd?define([],t):typeof qy=="object"?eD.exports=t():n.untar=t()})(qy,function(){"use strict";function n(o){function l(m){for(var f=0,g=c.length;f127){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}};'])),t})});var tt="primary",rc=Symbol("RouteTitle"),r0=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function To(n){return new r0(n)}function KD(n,t,e){let i=e.path.split("/");if(i.length>n.length||e.pathMatch==="full"&&(t.hasChildren()||i.lengthi[s]===r)}else return n===t}function $C(n){return n.length>0?n[n.length-1]:null}function Ls(n){return ur(n)?n:_d(n)?pi(Promise.resolve(n)):ye(n)}var QD={exact:BC,subset:zC},VC={exact:ZD,subset:XD,ignored:()=>!0};function TC(n,t,e){return QD[e.paths](n.root,t.root,e.matrixParams)&&VC[e.queryParams](n.queryParams,t.queryParams)&&!(e.fragment==="exact"&&n.fragment!==t.fragment)}function ZD(n,t){return _r(n,t)}function BC(n,t,e){if(!_a(n.segments,t.segments)||!Ed(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(let i in t.children)if(!n.children[i]||!BC(n.children[i],t.children[i],e))return!1;return!0}function XD(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>UC(n[e],t[e]))}function zC(n,t,e){return HC(n,t,t.segments,e)}function HC(n,t,e,i){if(n.segments.length>e.length){let r=n.segments.slice(0,e.length);return!(!_a(r,e)||t.hasChildren()||!Ed(r,e,i))}else if(n.segments.length===e.length){if(!_a(n.segments,e)||!Ed(n.segments,e,i))return!1;for(let r in t.children)if(!n.children[r]||!zC(n.children[r],t.children[r],i))return!1;return!0}else{let r=e.slice(0,n.segments.length),s=e.slice(n.segments.length);return!_a(n.segments,r)||!Ed(n.segments,r,i)||!n.children[tt]?!1:HC(n.children[tt],t,s,i)}}function Ed(n,t,e){return t.every((i,r)=>VC[e](n[r].parameters,i.parameters))}var Hr=class{root;queryParams;fragment;_queryParamMap;constructor(t=new bt([],{}),e={},i=null){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=To(this.queryParams),this._queryParamMap}toString(){return tR.serialize(this)}},bt=class{segments;children;parent=null;constructor(t,e){this.segments=t,this.children=e,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Id(this)}},ga=class{path;parameters;_parameterMap;constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap??=To(this.parameters),this._parameterMap}toString(){return WC(this)}};function JD(n,t){return _a(n,t)&&n.every((e,i)=>_r(e.parameters,t[i].parameters))}function _a(n,t){return n.length!==t.length?!1:n.every((e,i)=>e.path===t[i].path)}function eR(n,t){let e=[];return Object.entries(n.children).forEach(([i,r])=>{i===tt&&(e=e.concat(t(r,i)))}),Object.entries(n.children).forEach(([i,r])=>{i!==tt&&(e=e.concat(t(r,i)))}),e}var sc=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:()=>new Eo,providedIn:"root"})}return n})(),Eo=class{parse(t){let e=new o0(t);return new Hr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){let e=`/${Wl(t.root,!0)}`,i=rR(t.queryParams),r=typeof t.fragment=="string"?`#${iR(t.fragment)}`:"";return`${e}${i}${r}`}},tR=new Eo;function Id(n){return n.segments.map(t=>WC(t)).join("/")}function Wl(n,t){if(!n.hasChildren())return Id(n);if(t){let e=n.children[tt]?Wl(n.children[tt],!1):"",i=[];return Object.entries(n.children).forEach(([r,s])=>{r!==tt&&i.push(`${r}:${Wl(s,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=eR(n,(i,r)=>r===tt?[Wl(n.children[tt],!1)]:[`${r}:${Wl(i,!1)}`]);return Object.keys(n.children).length===1&&n.children[tt]!=null?`${Id(n)}/${e[0]}`:`${Id(n)}/(${e.join("//")})`}}function jC(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Md(n){return jC(n).replace(/%3B/gi,";")}function iR(n){return encodeURI(n)}function a0(n){return jC(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ad(n){return decodeURIComponent(n)}function EC(n){return Ad(n.replace(/\+/g,"%20"))}function WC(n){return`${a0(n.path)}${nR(n.parameters)}`}function nR(n){return Object.entries(n).map(([t,e])=>`;${a0(t)}=${a0(e)}`).join("")}function rR(n){let t=Object.entries(n).map(([e,i])=>Array.isArray(i)?i.map(r=>`${Md(e)}=${Md(r)}`).join("&"):`${Md(e)}=${Md(i)}`).filter(e=>e);return t.length?`?${t.join("&")}`:""}var sR=/^[^\/()?;#]+/;function e0(n){let t=n.match(sR);return t?t[0]:""}var aR=/^[^\/()?;=#]+/;function oR(n){let t=n.match(aR);return t?t[0]:""}var lR=/^[^=?&#]+/;function cR(n){let t=n.match(lR);return t?t[0]:""}var uR=/^[^&#]+/;function dR(n){let t=n.match(uR);return t?t[0]:""}var o0=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new bt([],{}):new bt([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[tt]=new bt(t,e)),i}parseSegment(){let t=e0(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new ze(4009,!1);return this.capture(t),new ga(Ad(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let e=oR(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=e0(this.remaining);r&&(i=r,this.capture(i))}t[Ad(e)]=Ad(i)}parseQueryParam(t){let e=cR(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let a=dR(this.remaining);a&&(i=a,this.capture(i))}let r=EC(e),s=EC(i);if(t.hasOwnProperty(r)){let a=t[r];Array.isArray(a)||(a=[a],t[r]=a),a.push(s)}else t[r]=s}parseParens(t){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=e0(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new ze(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=tt);let a=this.parseChildren();e[s]=Object.keys(a).length===1?a[tt]:new bt([],a),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new ze(4011,!1)}};function qC(n){return n.segments.length>0?new bt([],{[tt]:n}):n}function GC(n){let t={};for(let[i,r]of Object.entries(n.children)){let s=GC(r);if(i===tt&&s.segments.length===0&&s.hasChildren())for(let[a,o]of Object.entries(s.children))t[a]=o;else(s.segments.length>0||s.hasChildren())&&(t[i]=s)}let e=new bt(n.segments,t);return hR(e)}function hR(n){if(n.numberOfChildren===1&&n.children[tt]){let t=n.children[tt];return new bt(n.segments.concat(t.segments),t.children)}return n}function va(n){return n instanceof Hr}function mR(n,t,e=null,i=null){let r=KC(n);return YC(r,t,e,i)}function KC(n){let t;function e(s){let a={};for(let l of s.children){let c=e(l);a[l.outlet]=c}let o=new bt(s.url,a);return s===n&&(t=o),o}let i=e(n.root),r=qC(i);return t??r}function YC(n,t,e,i){let r=n;for(;r.parent;)r=r.parent;if(t.length===0)return t0(r,r,r,e,i);let s=fR(t);if(s.toRoot())return t0(r,r,new bt([],{}),e,i);let a=pR(s,r,n),o=a.processChildren?Kl(a.segmentGroup,a.index,s.commands):ZC(a.segmentGroup,a.index,s.commands);return t0(r,a.segmentGroup,o,e,i)}function Dd(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function Zl(n){return typeof n=="object"&&n!=null&&n.outlets}function t0(n,t,e,i,r){let s={};i&&Object.entries(i).forEach(([l,c])=>{s[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`});let a;n===t?a=e:a=QC(n,t,e);let o=qC(GC(a));return new Hr(o,s,r)}function QC(n,t,e){let i={};return Object.entries(n.children).forEach(([r,s])=>{s===t?i[r]=e:i[r]=QC(s,t,e)}),new bt(n.segments,i)}var Rd=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Dd(i[0]))throw new ze(4003,!1);let r=i.find(Zl);if(r&&r!==$C(i))throw new ze(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function fR(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new Rd(!0,0,n);let t=0,e=!1,i=n.reduce((r,s,a)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let o={};return Object.entries(s.outlets).forEach(([l,c])=>{o[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:o}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:a===0?(s.split("/").forEach((o,l)=>{l==0&&o==="."||(l==0&&o===""?e=!0:o===".."?t++:o!=""&&r.push(o))}),r):[...r,s]},[]);return new Rd(e,t,i)}var So=class{segmentGroup;processChildren;index;constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}};function pR(n,t,e){if(n.isAbsolute)return new So(t,!0,0);if(!e)return new So(t,!1,NaN);if(e.parent===null)return new So(e,!0,0);let i=Dd(n.commands[0])?0:1,r=e.segments.length-1+i;return gR(e,r,n.numberOfDoubleDots)}function gR(n,t,e){let i=n,r=t,s=e;for(;s>r;){if(s-=r,i=i.parent,!i)throw new ze(4005,!1);r=i.segments.length}return new So(i,!1,r-s)}function _R(n){return Zl(n[0])?n[0].outlets:{[tt]:n}}function ZC(n,t,e){if(n??=new bt([],{}),n.segments.length===0&&n.hasChildren())return Kl(n,t,e);let i=vR(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndexs!==tt)&&n.children[tt]&&n.numberOfChildren===1&&n.children[tt].segments.length===0){let s=Kl(n.children[tt],t,e);return new bt(n.segments,s.children)}return Object.entries(i).forEach(([s,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[s]=ZC(n.children[s],t,a))}),Object.entries(n.children).forEach(([s,a])=>{i[s]===void 0&&(r[s]=a)}),new bt(n.segments,r)}}function vR(n,t,e){let i=0,r=t,s={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return s;let a=n.segments[r],o=e[i];if(Zl(o))break;let l=`${o}`,c=i0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!AC(l,c,a))return s;i+=2}else{if(!AC(l,{},a))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function l0(n,t,e){let i=n.segments.slice(0,t),r=0;for(;r{typeof i=="string"&&(i=[i]),i!==null&&(t[e]=l0(new bt([],{}),0,i))}),t}function IC(n){let t={};return Object.entries(n).forEach(([e,i])=>t[e]=`${i}`),t}function AC(n,t,e){return n==e.path&&_r(t,e.parameters)}var Yl="imperative",oi=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(oi||{}),In=class{id;url;constructor(t,e){this.id=t,this.url=e}},Io=class extends In{type=oi.NavigationStart;navigationTrigger;restoredState;constructor(t,e,i="imperative",r=null){super(t,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},vr=class extends In{urlAfterRedirects;type=oi.NavigationEnd;constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},cn=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(cn||{}),Ld=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(Ld||{}),zr=class extends In{reason;code;type=oi.NavigationCancel;constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Ds=class extends In{reason;code;type=oi.NavigationSkipped;constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r}},Xl=class extends In{error;target;type=oi.NavigationError;constructor(t,e,i,r){super(t,e),this.error=i,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Od=class extends In{urlAfterRedirects;state;type=oi.RoutesRecognized;constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},c0=class extends In{urlAfterRedirects;state;type=oi.GuardsCheckStart;constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},u0=class extends In{urlAfterRedirects;state;shouldActivate;type=oi.GuardsCheckEnd;constructor(t,e,i,r,s){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},d0=class extends In{urlAfterRedirects;state;type=oi.ResolveStart;constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},h0=class extends In{urlAfterRedirects;state;type=oi.ResolveEnd;constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},m0=class{route;type=oi.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},f0=class{route;type=oi.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},p0=class{snapshot;type=oi.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},g0=class{snapshot;type=oi.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_0=class{snapshot;type=oi.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},v0=class{snapshot;type=oi.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Nd=class{routerEvent;position;anchor;type=oi.Scroll;constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},Jl=class{},Ao=class{url;navigationBehaviorOptions;constructor(t,e){this.url=t,this.navigationBehaviorOptions=e}};function yR(n,t){return n.providers&&!n._injector&&(n._injector=Qp(n.providers,t,`Route: ${n.path}`)),n._injector??t}function Zn(n){return n.outlet||tt}function CR(n,t){let e=n.filter(i=>Zn(i)===t);return e.push(...n.filter(i=>Zn(i)!==t)),e}function ac(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){let e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var b0=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return ac(this.route?.snapshot)??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new oc(this.rootInjector)}},oc=(()=>{class n{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new b0(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(i){return new(i||n)(He($r))};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Fd=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){let e=y0(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){let e=y0(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){let e=C0(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return C0(t,this._root).map(e=>e.value)}};function y0(n,t){if(n===t.value)return t;for(let e of t.children){let i=y0(n,e);if(i)return i}return null}function C0(n,t){if(n===t.value)return[t];for(let e of t.children){let i=C0(n,e);if(i.length)return i.unshift(t),i}return[]}var ln=class{value;children;constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}};function xo(n){let t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}var Pd=class extends Fd{snapshot;constructor(t,e){super(t),this.snapshot=e,A0(this,t)}toString(){return this.snapshot.toString()}};function XC(n){let t=wR(n),e=new fi([new ga("",{})]),i=new fi({}),r=new fi({}),s=new fi({}),a=new fi(""),o=new ba(e,i,s,a,r,tt,n,t.root);return o.snapshot=t.root,new Pd(new ln(o,[]),t)}function wR(n){let t={},e={},i={},r="",s=new ko([],t,i,r,e,tt,n,null,{});return new $d("",new ln(s,[]))}var ba=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,e,i,r,s,a,o,l){this.urlSubject=t,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=s,this.outlet=a,this.component=o,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Oe(c=>c[rc]))??ye(void 0),this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s}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(Oe(t=>To(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Oe(t=>To(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ud(n,t,e="emptyOnly"){let i,{routeConfig:r}=n;return t!==null&&(e==="always"||r?.path===""||!t.component&&!t.routeConfig?.loadComponent)?i={params:G(G({},t.params),n.params),data:G(G({},t.data),n.data),resolve:G(G(G(G({},n.data),t.data),r?.data),n._resolvedData)}:i={params:G({},n.params),data:G({},n.data),resolve:G(G({},n.data),n._resolvedData??{})},r&&ew(r)&&(i.resolve[rc]=r.title),i}var ko=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[rc]}constructor(t,e,i,r,s,a,o,l,c){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=a,this.component=o,this.routeConfig=l,this._resolve=c}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??=To(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=To(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${e}')`}},$d=class extends Fd{url;constructor(t,e){super(e),this.url=t,A0(this,e)}toString(){return JC(this._root)}};function A0(n,t){t.value._routerState=n,t.children.forEach(e=>A0(n,e))}function JC(n){let t=n.children.length>0?` { ${n.children.map(JC).join(", ")} } `:"";return`${n.value}${t}`}function i0(n){if(n.snapshot){let t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,_r(t.queryParams,e.queryParams)||n.queryParamsSubject.next(e.queryParams),t.fragment!==e.fragment&&n.fragmentSubject.next(e.fragment),_r(t.params,e.params)||n.paramsSubject.next(e.params),YD(t.url,e.url)||n.urlSubject.next(e.url),_r(t.data,e.data)||n.dataSubject.next(e.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function w0(n,t){let e=_r(n.params,t.params)&&JD(n.url,t.url),i=!n.parent!=!t.parent;return e&&!i&&(!n.parent||w0(n.parent,t.parent))}function ew(n){return typeof n.title=="string"||n.title===null}var xR=new se(""),D0=(()=>{class n{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=tt;activateEvents=new le;deactivateEvents=new le;attachEvents=new le;detachEvents=new le;routerOutletData=W1(void 0);parentContexts=L(oc);location=L(Fi);changeDetector=L(Ze);inputBinder=L(Wd,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ze(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ze(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ze(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new ze(4013,!1);this._activatedRoute=e;let r=this.location,a=e.snapshot.component,o=this.parentContexts.getOrCreateContext(this.name).children,l=new x0(e,o,r.injector,this.routerOutletData);this.activated=r.createComponent(a,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[St]})}return n})(),x0=class n{route;childContexts;parent;outletData;__ngOutletInjector(t){return new n(this.route,this.childContexts,t,this.outletData)}constructor(t,e,i,r){this.route=t,this.childContexts=e,this.parent=i,this.outletData=r}get(t,e){return t===ba?this.route:t===oc?this.childContexts:t===xR?this.outletData:this.parent.get(t,e)}},Wd=new se(""),DC=(()=>{class n{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:i}=e,r=dr([i.queryParams,i.params,i.data]).pipe(Ot(([s,a,o],l)=>(o=G(G(G({},s),a),o),l===0?ye(o):Promise.resolve(o)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let a=lC(i.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:o}of a.inputs)e.activatedComponentRef.setInput(o,s[o])});this.outletDataSubscriptions.set(e,r)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac})}return n})();function SR(n,t,e){let i=ec(n,t._root,e?e._root:void 0);return new Pd(i,t)}function ec(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=t.value;let r=kR(n,t,e);return new ln(i,r)}else{if(n.shouldAttach(t.value)){let s=n.retrieve(t.value);if(s!==null){let a=s.route;return a.value._futureSnapshot=t.value,a.children=t.children.map(o=>ec(n,o)),a}}let i=MR(t.value),r=t.children.map(s=>ec(n,s));return new ln(i,r)}}function kR(n,t,e){return t.children.map(i=>{for(let r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return ec(n,i,r);return ec(n,i)})}function MR(n){return new ba(new fi(n.url),new fi(n.params),new fi(n.queryParams),new fi(n.fragment),new fi(n.data),n.outlet,n.component,n)}var tc=class{redirectTo;navigationBehaviorOptions;constructor(t,e){this.redirectTo=t,this.navigationBehaviorOptions=e}},tw="ngNavigationCancelingError";function Vd(n,t){let{redirectTo:e,navigationBehaviorOptions:i}=va(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=iw(!1,cn.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function iw(n,t){let e=new Error(`NavigationCancelingError: ${n||""}`);return e[tw]=!0,e.cancellationCode=t,e}function TR(n){return nw(n)&&va(n.url)}function nw(n){return!!n&&n[tw]}var ER=(n,t,e,i)=>Oe(r=>(new S0(t,r.targetRouterState,r.currentRouterState,e,i).activate(n),r)),S0=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,e,i,r,s){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=s}activate(t){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),i0(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){let r=xo(e);t.children.forEach(s=>{let a=s.value.outlet;this.deactivateRoutes(s,r[a],i),delete r[a]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,i)})}deactivateRoutes(t,e,i){let r=t.value,s=e?e.value:null;if(r===s)if(r.component){let a=i.getContext(r.outlet);a&&this.deactivateChildRoutes(t,e,a.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){let i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,s=xo(t);for(let a of Object.values(s))this.deactivateRouteAndItsChildren(a,r);if(i&&i.outlet){let a=i.outlet.detach(),o=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:a,route:t,contexts:o})}}deactivateRouteAndOutlet(t,e){let i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,s=xo(t);for(let a of Object.values(s))this.deactivateRouteAndItsChildren(a,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(t,e,i){let r=xo(e);t.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],i),this.forwardEvent(new v0(s.value.snapshot))}),t.children.length&&this.forwardEvent(new g0(t.value.snapshot))}activateRoutes(t,e,i){let r=t.value,s=e?e.value:null;if(i0(r),r===s)if(r.component){let a=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,a.children)}else this.activateChildRoutes(t,e,i);else if(r.component){let a=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(o.contexts),a.attachRef=o.componentRef,a.route=o.route.value,a.outlet&&a.outlet.attach(o.componentRef,o.route.value),i0(o.route.value),this.activateChildRoutes(t,null,a.children)}else a.attachRef=null,a.route=r,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(t,null,a.children)}else this.activateChildRoutes(t,null,i)}},Bd=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Mo=class{component;route;constructor(t,e){this.component=t,this.route=e}};function IR(n,t,e){let i=n._root,r=t?t._root:null;return ql(i,r,e,[i.value])}function AR(n){let t=n.routeConfig?n.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:n,guards:t}}function Ro(n,t){let e=Symbol(),i=t.get(n,e);return i===e?typeof n=="function"&&!z1(n)?n:t.get(n):i}function ql(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=xo(t);return n.children.forEach(a=>{DR(a,s[a.value.outlet],e,i.concat([a.value]),r),delete s[a.value.outlet]}),Object.entries(s).forEach(([a,o])=>Ql(o,e.getContext(a),r)),r}function DR(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=n.value,a=t?t.value:null,o=e?e.getContext(n.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){let l=RR(a,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Bd(i)):(s.data=a.data,s._resolvedData=a._resolvedData),s.component?ql(n,t,o?o.children:null,i,r):ql(n,t,e,i,r),l&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new Mo(o.outlet.component,a))}else a&&Ql(t,o,r),r.canActivateChecks.push(new Bd(i)),s.component?ql(n,null,o?o.children:null,i,r):ql(n,null,e,i,r);return r}function RR(n,t,e){if(typeof e=="function")return e(n,t);switch(e){case"pathParamsChange":return!_a(n.url,t.url);case"pathParamsOrQueryParamsChange":return!_a(n.url,t.url)||!_r(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!w0(n,t)||!_r(n.queryParams,t.queryParams);case"paramsChange":default:return!w0(n,t)}}function Ql(n,t,e){let i=xo(n),r=n.value;Object.entries(i).forEach(([s,a])=>{r.component?t?Ql(a,t.children.getContext(s),e):Ql(a,null,e):Ql(a,t,e)}),r.component?t&&t.outlet&&t.outlet.isActivated?e.canDeactivateChecks.push(new Mo(t.outlet.component,r)):e.canDeactivateChecks.push(new Mo(null,r)):e.canDeactivateChecks.push(new Mo(null,r))}function lc(n){return typeof n=="function"}function LR(n){return typeof n=="boolean"}function OR(n){return n&&lc(n.canLoad)}function NR(n){return n&&lc(n.canActivate)}function FR(n){return n&&lc(n.canActivateChild)}function PR(n){return n&&lc(n.canDeactivate)}function UR(n){return n&&lc(n.canMatch)}function rw(n){return n instanceof L1||n?.name==="EmptyError"}var Td=Symbol("INITIAL_VALUE");function Do(){return Ot(n=>dr(n.map(t=>t.pipe(Bt(1),Xt(Td)))).pipe(Oe(t=>{for(let e of t)if(e!==!0){if(e===Td)return Td;if(e===!1||$R(e))return e}return!0}),st(t=>t!==Td),Bt(1)))}function $R(n){return va(n)||n instanceof tc}function VR(n,t){return Li(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:a}}=e;return a.length===0&&s.length===0?ye(je(G({},e),{guardsResult:!0})):BR(a,i,r,n).pipe(Li(o=>o&&LR(o)?zR(i,s,n,t):ye(o)),Oe(o=>je(G({},e),{guardsResult:o})))})}function BR(n,t,e,i){return pi(n).pipe(Li(r=>GR(r.component,r.route,e,t,i)),kn(r=>r!==!0,!0))}function zR(n,t,e,i){return pi(t).pipe(ws(r=>ca(jR(r.route.parent,i),HR(r.route,i),qR(n,r.path,e),WR(n,r.route,e))),kn(r=>r!==!0,!0))}function HR(n,t){return n!==null&&t&&t(new _0(n)),ye(!0)}function jR(n,t){return n!==null&&t&&t(new p0(n)),ye(!0)}function WR(n,t,e){let i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||i.length===0)return ye(!0);let r=i.map(s=>ys(()=>{let a=ac(t)??e,o=Ro(s,a),l=NR(o)?o.canActivate(t,n):mr(a,()=>o(t,n));return Ls(l).pipe(kn())}));return ye(r).pipe(Do())}function qR(n,t,e){let i=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(a=>AR(a)).filter(a=>a!==null).map(a=>ys(()=>{let o=a.guards.map(l=>{let c=ac(a.node)??e,u=Ro(l,c),d=FR(u)?u.canActivateChild(i,n):mr(c,()=>u(i,n));return Ls(d).pipe(kn())});return ye(o).pipe(Do())}));return ye(s).pipe(Do())}function GR(n,t,e,i,r){let s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!s||s.length===0)return ye(!0);let a=s.map(o=>{let l=ac(t)??r,c=Ro(o,l),u=PR(c)?c.canDeactivate(n,t,e,i):mr(l,()=>c(n,t,e,i));return Ls(u).pipe(kn())});return ye(a).pipe(Do())}function KR(n,t,e,i){let r=t.canLoad;if(r===void 0||r.length===0)return ye(!0);let s=r.map(a=>{let o=Ro(a,n),l=OR(o)?o.canLoad(t,e):mr(n,()=>o(t,e));return Ls(l)});return ye(s).pipe(Do(),sw(i))}function sw(n){return R1(Tt(t=>{if(typeof t!="boolean")throw Vd(n,t)}),Oe(t=>t===!0))}function YR(n,t,e,i){let r=t.canMatch;if(!r||r.length===0)return ye(!0);let s=r.map(a=>{let o=Ro(a,n),l=UR(o)?o.canMatch(t,e):mr(n,()=>o(t,e));return Ls(l)});return ye(s).pipe(Do(),sw(i))}var ic=class{segmentGroup;constructor(t){this.segmentGroup=t||null}},nc=class extends Error{urlTree;constructor(t){super(),this.urlTree=t}};function wo(n){return Kn(new ic(n))}function QR(n){return Kn(new ze(4e3,!1))}function ZR(n){return Kn(iw(!1,cn.GuardRejected))}var k0=class{urlSerializer;urlTree;constructor(t,e){this.urlSerializer=t,this.urlTree=e}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return ye(i);if(r.numberOfChildren>1||!r.children[tt])return QR(`${t.redirectTo}`);r=r.children[tt]}}applyRedirectCommands(t,e,i,r,s){if(typeof e!="string"){let o=e,{queryParams:l,fragment:c,routeConfig:u,url:d,outlet:h,params:m,data:f,title:g}=r,v=mr(s,()=>o({params:m,data:f,queryParams:l,fragment:c,routeConfig:u,url:d,outlet:h,title:g}));if(v instanceof Hr)throw new nc(v);e=v}let a=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i);if(e[0]==="/")throw new nc(a);return a}applyRedirectCreateUrlTree(t,e,i,r){let s=this.createSegmentGroup(t,e.root,i,r);return new Hr(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){let i={};return Object.entries(t).forEach(([r,s])=>{if(typeof s=="string"&&s[0]===":"){let o=s.substring(1);i[r]=e[o]}else i[r]=s}),i}createSegmentGroup(t,e,i,r){let s=this.createSegments(t,e.segments,i,r),a={};return Object.entries(e.children).forEach(([o,l])=>{a[o]=this.createSegmentGroup(t,l,i,r)}),new bt(s,a)}createSegments(t,e,i,r){return e.map(s=>s.path[0]===":"?this.findPosParam(t,s,r):this.findOrReturn(s,i))}findPosParam(t,e,i){let r=i[e.path.substring(1)];if(!r)throw new ze(4001,!1);return r}findOrReturn(t,e){let i=0;for(let r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}},M0={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function XR(n,t,e,i,r){let s=aw(n,t,e);return s.matched?(i=yR(t,i),YR(i,t,e,r).pipe(Oe(a=>a===!0?s:G({},M0)))):ye(s)}function aw(n,t,e){if(t.path==="**")return JR(e);if(t.path==="")return t.pathMatch==="full"&&(n.hasChildren()||e.length>0)?G({},M0):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(t.matcher||KD)(e,n,t);if(!r)return G({},M0);let s={};Object.entries(r.posParams??{}).forEach(([o,l])=>{s[o]=l.path});let a=r.consumed.length>0?G(G({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function JR(n){return{matched:!0,parameters:n.length>0?$C(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function RC(n,t,e,i){return e.length>0&&iL(n,e,i)?{segmentGroup:new bt(t,tL(i,new bt(e,n.children))),slicedSegments:[]}:e.length===0&&nL(n,e,i)?{segmentGroup:new bt(n.segments,eL(n,e,i,n.children)),slicedSegments:e}:{segmentGroup:new bt(n.segments,n.children),slicedSegments:e}}function eL(n,t,e,i){let r={};for(let s of e)if(qd(n,t,s)&&!i[Zn(s)]){let a=new bt([],{});r[Zn(s)]=a}return G(G({},i),r)}function tL(n,t){let e={};e[tt]=t;for(let i of n)if(i.path===""&&Zn(i)!==tt){let r=new bt([],{});e[Zn(i)]=r}return e}function iL(n,t,e){return e.some(i=>qd(n,t,i)&&Zn(i)!==tt)}function nL(n,t,e){return e.some(i=>qd(n,t,i))}function qd(n,t,e){return(n.hasChildren()||t.length>0)&&e.pathMatch==="full"?!1:e.path===""}function rL(n,t,e){return t.length===0&&!n.children[e]}var T0=class{};function sL(n,t,e,i,r,s,a="emptyOnly"){return new E0(n,t,e,i,r,a,s).recognize()}var aL=31,E0=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,e,i,r,s,a,o){this.injector=t,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=a,this.urlSerializer=o,this.applyRedirects=new k0(this.urlSerializer,this.urlTree)}noMatchError(t){return new ze(4002,`'${t.segmentGroup}'`)}recognize(){let t=RC(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(Oe(({children:e,rootSnapshot:i})=>{let r=new ln(i,e),s=new $d("",r),a=mR(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(a),{state:s,tree:a}}))}match(t){let e=new ko([],Object.freeze({}),Object.freeze(G({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),tt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,tt,e).pipe(Oe(i=>({children:i,rootSnapshot:e})),Gi(i=>{if(i instanceof nc)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof ic?this.noMatchError(i):i}))}processSegmentGroup(t,e,i,r,s){return i.segments.length===0&&i.hasChildren()?this.processChildren(t,e,i,s):this.processSegment(t,e,i,i.segments,r,!0,s).pipe(Oe(a=>a instanceof ln?[a]:[]))}processChildren(t,e,i,r){let s=[];for(let a of Object.keys(i.children))a==="primary"?s.unshift(a):s.push(a);return pi(s).pipe(ws(a=>{let o=i.children[a],l=CR(e,a);return this.processSegmentGroup(t,l,o,a,r)}),$1((a,o)=>(a.push(...o),a)),jp(null),U1(),Li(a=>{if(a===null)return wo(i);let o=ow(a);return oL(o),ye(o)}))}processSegment(t,e,i,r,s,a,o){return pi(e).pipe(ws(l=>this.processSegmentAgainstRoute(l._injector??t,e,l,i,r,s,a,o).pipe(Gi(c=>{if(c instanceof ic)return ye(null);throw c}))),kn(l=>!!l),Gi(l=>{if(rw(l))return rL(i,r,s)?ye(new T0):wo(i);throw l}))}processSegmentAgainstRoute(t,e,i,r,s,a,o,l){return Zn(i)!==a&&(a===tt||!qd(r,s,i))?wo(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(t,r,i,s,a,l):this.allowRedirects&&o?this.expandSegmentAgainstRouteUsingRedirect(t,r,e,i,s,a,l):wo(r)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,s,a,o){let{matched:l,parameters:c,consumedSegments:u,positionalParamSegments:d,remainingSegments:h}=aw(e,r,s);if(!l)return wo(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>aL&&(this.allowRedirects=!1));let m=new ko(s,c,Object.freeze(G({},this.urlTree.queryParams)),this.urlTree.fragment,LC(r),Zn(r),r.component??r._loadedComponent??null,r,OC(r)),f=Ud(m,o,this.paramsInheritanceStrategy);m.params=Object.freeze(f.params),m.data=Object.freeze(f.data);let g=this.applyRedirects.applyRedirectCommands(u,r.redirectTo,d,m,t);return this.applyRedirects.lineralizeSegments(r,g).pipe(Li(v=>this.processSegment(t,i,e,v.concat(h),a,!1,o)))}matchSegmentAgainstRoute(t,e,i,r,s,a){let o=XR(e,i,r,t,this.urlSerializer);return i.path==="**"&&(e.children={}),o.pipe(Ot(l=>l.matched?(t=i._injector??t,this.getChildConfig(t,i,r).pipe(Ot(({routes:c})=>{let u=i._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:m}=l,f=new ko(h,d,Object.freeze(G({},this.urlTree.queryParams)),this.urlTree.fragment,LC(i),Zn(i),i.component??i._loadedComponent??null,i,OC(i)),g=Ud(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(g.params),f.data=Object.freeze(g.data);let{segmentGroup:v,slicedSegments:w}=RC(e,h,m,c);if(w.length===0&&v.hasChildren())return this.processChildren(u,c,v,f).pipe(Oe(k=>new ln(f,k)));if(c.length===0&&w.length===0)return ye(new ln(f,[]));let C=Zn(i)===s;return this.processSegment(u,c,v,w,C?tt:s,!0,f).pipe(Oe(k=>new ln(f,k instanceof ln?[k]:[])))}))):wo(e)))}getChildConfig(t,e,i){return e.children?ye({routes:e.children,injector:t}):e.loadChildren?e._loadedRoutes!==void 0?ye({routes:e._loadedRoutes,injector:e._loadedInjector}):KR(t,e,i,this.urlSerializer).pipe(Li(r=>r?this.configLoader.loadChildren(t,e).pipe(Tt(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):ZR(e))):ye({routes:[],injector:t})}};function oL(n){n.sort((t,e)=>t.value.outlet===tt?-1:e.value.outlet===tt?1:t.value.outlet.localeCompare(e.value.outlet))}function lL(n){let t=n.value.routeConfig;return t&&t.path===""}function ow(n){let t=[],e=new Set;for(let i of n){if(!lL(i)){t.push(i);continue}let r=t.find(s=>i.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):t.push(i)}for(let i of e){let r=ow(i.children);t.push(new ln(i.value,r))}return t.filter(i=>!e.has(i))}function LC(n){return n.data||{}}function OC(n){return n.resolve||{}}function cL(n,t,e,i,r,s){return Li(a=>sL(n,t,e,i,a.extractedUrl,r,s).pipe(Oe(({state:o,tree:l})=>je(G({},a),{targetSnapshot:o,urlAfterRedirects:l}))))}function uL(n,t){return Li(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return ye(e);let s=new Set(r.map(l=>l.route)),a=new Set;for(let l of s)if(!a.has(l))for(let c of lw(l))a.add(c);let o=0;return pi(a).pipe(ws(l=>s.has(l)?dL(l,i,n,t):(l.data=Ud(l,l.parent,n).resolve,ye(void 0))),Tt(()=>o++),Wp(1),Li(l=>o===a.size?ye(e):Sn))})}function lw(n){let t=n.children.map(e=>lw(e)).flat();return[n,...t]}function dL(n,t,e,i){let r=n.routeConfig,s=n._resolve;return r?.title!==void 0&&!ew(r)&&(s[rc]=r.title),hL(s,n,t,i).pipe(Oe(a=>(n._resolvedData=a,n.data=Ud(n,n.parent,e).resolve,null)))}function hL(n,t,e,i){let r=s0(n);if(r.length===0)return ye({});let s={};return pi(r).pipe(Li(a=>mL(n[a],t,e,i).pipe(kn(),Tt(o=>{if(o instanceof tc)throw Vd(new Eo,o);s[a]=o}))),Wp(1),P1(s),Gi(a=>rw(a)?Sn:Kn(a)))}function mL(n,t,e,i){let r=ac(t)??i,s=Ro(n,r),a=s.resolve?s.resolve(t,e):mr(r,()=>s(t,e));return Ls(a)}function n0(n){return Ot(t=>{let e=n(t);return e?pi(e).pipe(Oe(()=>t)):ye(t)})}var cw=(()=>{class n{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(s=>s.outlet===tt);return i}getResolvedTitleForRoute(e){return e.data[rc]}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:()=>L(fL),providedIn:"root"})}return n})(),fL=(()=>{class n extends cw{title;constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||n)(He(wC))};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),cc=new se("",{providedIn:"root",factory:()=>({})}),pL=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(i,r){i&1&&te(0,"router-outlet")},dependencies:[D0],encapsulation:2})}return n})();function R0(n){let t=n.children&&n.children.map(R0),e=t?je(G({},n),{children:t}):G({},n);return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==tt&&(e.component=pL),e}var zd=new se(""),L0=(()=>{class n{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=L(Cd);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ye(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=Ls(e.loadComponent()).pipe(Oe(uw),Tt(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),mo(()=>{this.componentLoaders.delete(e)})),r=new hd(i,()=>new ge).pipe(Bp());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return ye({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=gL(i,this.compiler,e,this.onLoadEndListener).pipe(mo(()=>{this.childrenLoaders.delete(i)})),a=new hd(s,()=>new ge).pipe(Bp());return this.childrenLoaders.set(i,a),a}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function gL(n,t,e,i){return Ls(n.loadChildren()).pipe(Oe(uw),Li(r=>r instanceof Z1||Array.isArray(r)?ye(r):pi(t.compileModuleAsync(r))),Oe(r=>{i&&i(n);let s,a,o=!1;return Array.isArray(r)?(a=r,o=!0):(s=r.create(e).injector,a=s.get(zd,[],{optional:!0,self:!0}).flat()),{routes:a.map(R0),injector:s}}))}function _L(n){return n&&typeof n=="object"&&"default"in n}function uw(n){return _L(n)?n.default:n}var O0=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:()=>L(vL),providedIn:"root"})}return n})(),vL=(()=>{class n{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),dw=new se(""),hw=new se("");function bL(n,t,e){let i=n.get(hw),r=n.get(rt);return n.get(Fe).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let s,a=new Promise(c=>{s=c}),o=r.startViewTransition(()=>(s(),yL(n))),{onViewTransitionCreated:l}=i;return l&&mr(n,()=>l({transition:o,from:t,to:e})),a})}function yL(n){return new Promise(t=>{gi({read:()=>setTimeout(t)},{injector:n})})}var mw=new se(""),N0=(()=>{class n{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new ge;transitionAbortSubject=new ge;configLoader=L(L0);environmentInjector=L($r);urlSerializer=L(sc);rootContexts=L(oc);location=L(fa);inputBindingEnabled=L(Wd,{optional:!0})!==null;titleStrategy=L(cw);options=L(cc,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=L(O0);createViewTransition=L(dw,{optional:!0});navigationErrorHandler=L(mw,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>ye(void 0);rootComponentType=null;constructor(){let e=r=>this.events.next(new m0(r)),i=r=>this.events.next(new f0(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(je(G(G({},this.transitions.value),e),{id:i}))}setupNavigations(e,i,r){return this.transitions=new fi({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Yl,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(st(s=>s.id!==0),Oe(s=>je(G({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Ot(s=>{let a=!1,o=!1;return ye(s).pipe(Ot(l=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",cn.SupersededByNewNavigation),Sn;this.currentTransition=s,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?je(G({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=l.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&u!=="reload"){let d="";return this.events.next(new Ds(l.id,this.urlSerializer.serialize(l.rawUrl),d,Ld.IgnoredSameUrlNavigation)),l.resolve(!1),Sn}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return ye(l).pipe(Ot(d=>{let h=this.transitions?.getValue();return this.events.next(new Io(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?Sn:Promise.resolve(d)}),cL(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Tt(d=>{s.targetSnapshot=d.targetSnapshot,s.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=je(G({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new Od(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:d,extractedUrl:h,source:m,restoredState:f,extras:g}=l,v=new Io(d,this.urlSerializer.serialize(h),m,f);this.events.next(v);let w=XC(this.rootComponentType).snapshot;return this.currentTransition=s=je(G({},l),{targetSnapshot:w,urlAfterRedirects:h,extras:je(G({},g),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,ye(s)}else{let d="";return this.events.next(new Ds(l.id,this.urlSerializer.serialize(l.extractedUrl),d,Ld.IgnoredByUrlHandlingStrategy)),l.resolve(!1),Sn}}),Tt(l=>{let c=new c0(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),Oe(l=>(this.currentTransition=s=je(G({},l),{guards:IR(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),s)),VR(this.environmentInjector,l=>this.events.next(l)),Tt(l=>{if(s.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw Vd(this.urlSerializer,l.guardsResult);let c=new u0(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),st(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",cn.GuardRejected),!1)),n0(l=>{if(l.guards.canActivateChecks.length)return ye(l).pipe(Tt(c=>{let u=new d0(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),Ot(c=>{let u=!1;return ye(c).pipe(uL(this.paramsInheritanceStrategy,this.environmentInjector),Tt({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",cn.NoDataFromResolver)}}))}),Tt(c=>{let u=new h0(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),n0(l=>{let c=u=>{let d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(Tt(h=>{u.component=h}),Oe(()=>{})));for(let h of u.children)d.push(...c(h));return d};return dr(c(l.targetSnapshot.root)).pipe(jp(null),Bt(1))}),n0(()=>this.afterPreactivation()),Ot(()=>{let{currentSnapshot:l,targetSnapshot:c}=s,u=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return u?pi(u).pipe(Oe(()=>s)):ye(s)}),Oe(l=>{let c=SR(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s=je(G({},l),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,s}),Tt(()=>{this.events.next(new Jl)}),ER(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Bt(1),Tt({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new vr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),Ge(this.transitionAbortSubject.pipe(Tt(l=>{throw l}))),mo(()=>{!a&&!o&&this.cancelNavigationTransition(s,"",cn.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),Gi(l=>{if(o=!0,nw(l))this.events.next(new zr(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),TR(l)?this.events.next(new Ao(l.url,l.navigationBehaviorOptions)):s.resolve(!1);else{let c=new Xl(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0);try{let u=mr(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof tc){let{message:d,cancellationCode:h}=Vd(this.urlSerializer,u);this.events.next(new zr(s.id,this.urlSerializer.serialize(s.extractedUrl),d,h)),this.events.next(new Ao(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),l}catch(u){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(u)}}return Sn}))}))}cancelNavigationTransition(e,i,r){let s=new zr(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(s),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function CL(n){return n!==Yl}var wL=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:()=>L(xL),providedIn:"root"})}return n})(),I0=class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}},xL=(()=>{class n extends I0{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Nt(n)))(r||n)}})();static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),fw=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:()=>L(SL),providedIn:"root"})}return n})(),SL=(()=>{class n extends fw{location=L(fa);urlSerializer=L(sc);options=L(cc,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=L(O0);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Hr;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=XC(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof Io)this.stateMemento=this.createStateMemento();else if(e instanceof Ds)this.rawUrlTree=i.initialUrl;else if(e instanceof Od){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??r,i)}}else e instanceof Jl?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):e instanceof zr&&(e.code===cn.GuardRejected||e.code===cn.NoDataFromResolver)?this.restoreHistory(i):e instanceof Xl?this.restoreHistory(i,!0):e instanceof vr&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let r=e instanceof Hr?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){let s=this.browserPageId,a=G(G({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(r,"",a)}else{let s=G(G({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(r,"",s)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,s=this.currentPageId-r;s!==0?this.location.historyGo(s):this.currentUrlTree===e.finalUrl&&s===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Nt(n)))(r||n)}})();static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Gl=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(Gl||{});function pw(n,t){n.events.pipe(st(e=>e instanceof vr||e instanceof zr||e instanceof Xl||e instanceof Ds),Oe(e=>e instanceof vr||e instanceof Ds?Gl.COMPLETE:(e instanceof zr?e.code===cn.Redirect||e.code===cn.SupersededByNewNavigation:!1)?Gl.REDIRECTING:Gl.FAILED),st(e=>e!==Gl.REDIRECTING),Bt(1)).subscribe(()=>{t()})}var kL={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ML={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Rs=(()=>{class n{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=L(J1);stateManager=L(fw);options=L(cc,{optional:!0})||{};pendingTasks=L(j1);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=L(N0);urlSerializer=L(sc);location=L(fa);urlHandlingStrategy=L(O0);_events=new ge;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=L(wL);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=L(zd,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!L(Wd,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new xt;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(r!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof zr&&i.code!==cn.Redirect&&i.code!==cn.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof vr)this.navigated=!0;else if(i instanceof Ao){let a=i.navigationBehaviorOptions,o=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=G({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||CL(r.source)},a);this.scheduleNavigation(o,Yl,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}EL(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Yl,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){let s={replaceUrl:!0},a=r?.navigationId?r:null;if(r){let l=G({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(s.state=l)}let o=this.parseUrl(e);this.scheduleNavigation(o,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(R0),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(e,i={}){let{relativeTo:r,queryParams:s,fragment:a,queryParamsHandling:o,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a,u=null;switch(o??this.options.defaultQueryParamsHandling){case"merge":u=G(G({},this.currentUrlTree.queryParams),s);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}u!==null&&(u=this.removeEmptyProps(u));let d;try{let h=r?r.snapshot:this.routerState.snapshot.root;d=KC(h)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),d=this.currentUrlTree.root}return YC(d,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=va(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(s,Yl,null,i)}navigate(e,i={skipLocationChange:!1}){return TL(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=G({},kL):i===!1?r=G({},ML):r=i,va(e))return TC(this.currentUrlTree,e,r);let s=this.parseUrl(e);return TC(this.currentUrlTree,s,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,s])=>(s!=null&&(i[r]=s),i),{})}scheduleNavigation(e,i,r,s,a){if(this.disposed)return Promise.resolve(!1);let o,l,c;a?(o=a.resolve,l=a.reject,c=a.promise):c=new Promise((d,h)=>{o=d,l=h});let u=this.pendingTasks.add();return pw(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:s,resolve:o,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function TL(n){for(let t=0;t{class n{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new ge;constructor(e,i,r,s,a,o){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=s,this.el=a,this.locationStrategy=o;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof vr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(va(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,s,a){let o=this.urlTree;if(o===null||this.isAnchorElement&&(e!==0||i||r||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(o,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let i=this.href===null?null:Y1(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){let r=this.renderer,s=this.el.nativeElement;i!==null?r.setAttribute(s,e,i):r.removeAttribute(s,e)}get urlTree(){return this.routerLinkInput===null?null:va(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(i){return new(i||n)(Ie(Rs),Ie(ba),H1("tabindex"),Ie(Bl),Ie(Ae),Ie(Hl))};static \u0275dir=xe({type:n,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){i&1&&J("click",function(a){return r.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&Se("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ce],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ce],replaceUrl:[2,"replaceUrl","replaceUrl",Ce],routerLink:"routerLink"},features:[Ye,St]})}return n})();var Hd=class{};var IL=(()=>{class n{router;injector;preloadingStrategy;loader;subscription;constructor(e,i,r,s,a){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(st(e=>e instanceof vr),ws(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let s of i){s.providers&&!s._injector&&(s._injector=Qp(s.providers,e,`Route: ${s.path}`));let a=s._injector??e,o=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&r.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&r.push(this.processRoutes(o,s.children??s._loadedRoutes))}return pi(r).pipe(zp())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=ye(null);let s=r.pipe(Li(a=>a===null?ye(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return pi([s,a]).pipe(zp())}else return s})}static \u0275fac=function(i){return new(i||n)(He(Rs),He(Cd),He($r),He(Hd),He(L0))};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),gw=new se(""),AL=(()=>{class n{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,i,r,s,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=s,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Io?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof vr?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Ds&&e.code===Ld.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Nd&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Nd(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){gd()};static \u0275prov=ae({token:n,factory:n.\u0275fac})}return n})();function DL(n){return n.routerState.root}function uc(n,t){return{\u0275kind:n,\u0275providers:t}}function RL(){let n=L(pt);return t=>{let e=n.get(Yn);if(t!==e.components[0])return;let i=n.get(Rs),r=n.get(_w);n.get(F0)===1&&i.initialNavigation(),n.get(vw,null,Gp.Optional)?.setUpPreloading(),n.get(gw,null,Gp.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var _w=new se("",{factory:()=>new ge}),F0=new se("",{providedIn:"root",factory:()=>1});function LL(){return uc(2,[{provide:F0,useValue:0},{provide:Zp,multi:!0,deps:[pt],useFactory:t=>{let e=t.get(cC,Promise.resolve());return()=>e.then(()=>new Promise(i=>{let r=t.get(Rs),s=t.get(_w);pw(r,()=>{i(!0)}),t.get(N0).afterPreactivation=()=>(i(!0),s.closed?ye(void 0):s),r.initialNavigation()}))}}])}function OL(){return uc(3,[{provide:Zp,multi:!0,useFactory:()=>{let t=L(Rs);return()=>{t.setUpLocationChangeListener()}}},{provide:F0,useValue:2}])}var vw=new se("");function NL(n){return uc(0,[{provide:vw,useExisting:IL},{provide:Hd,useExisting:n}])}function FL(){return uc(8,[DC,{provide:Wd,useExisting:DC}])}function PL(n){let t=[{provide:dw,useValue:bL},{provide:hw,useValue:G({skipNextTransition:!!n?.skipInitialTransition},n)}];return uc(9,t)}var NC=new se("ROUTER_FORROOT_GUARD"),UL=[fa,{provide:sc,useClass:Eo},Rs,oc,{provide:ba,useFactory:DL,deps:[Rs]},L0,[]],bw=(()=>{class n{constructor(e){}static forRoot(e,i){return{ngModule:n,providers:[UL,[],{provide:zd,multi:!0,useValue:e},{provide:NC,useFactory:zL,deps:[[Rs,new xs,new ua]]},i?.errorHandler?{provide:mw,useValue:i.errorHandler}:[],{provide:cc,useValue:i||{}},i?.useHash?VL():BL(),$L(),i?.preloadingStrategy?NL(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?HL(i):[],i?.bindToComponentInputs?FL().\u0275providers:[],i?.enableViewTransitions?PL().\u0275providers:[],jL()]}}static forChild(e){return{ngModule:n,providers:[{provide:zd,multi:!0,useValue:e}]}}static \u0275fac=function(i){return new(i||n)(He(NC,8))};static \u0275mod=pe({type:n});static \u0275inj=fe({})}return n})();function $L(){return{provide:gw,useFactory:()=>{let n=L(gC),t=L(Fe),e=L(cc),i=L(N0),r=L(sc);return e.scrollOffset&&n.setOffset(e.scrollOffset),new AL(r,i,n,t,e)}}}function VL(){return{provide:Hl,useClass:hC}}function BL(){return{provide:Hl,useClass:dC}}function zL(n){return"guarded"}function HL(n){return[n.initialNavigation==="disabled"?OL().\u0275providers:[],n.initialNavigation==="enabledBlocking"?LL().\u0275providers:[]]}var FC=new se("");function jL(){return[{provide:FC,useFactory:RL},{provide:eC,multi:!0,useExisting:FC}]}var jr=class{},P0=(()=>{class n extends jr{getTranslation(e){return ye({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Nt(n)))(r||n)}})();static \u0275prov=ae({token:n,factory:n.\u0275fac})}return n})(),Lo=class{},U0=(()=>{class n{handle(e){return e.key}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac})}return n})();function Ca(n){return typeof n<"u"&&n!==null}function Jd(n){return Kd(n)&&!H0(n)}function Kd(n){return typeof n=="object"}function H0(n){return Array.isArray(n)}function Cw(n){return typeof n=="string"}function WL(n){return typeof n=="function"}function $0(n,t){let e=Object.assign({},n);return Kd(n)?(Kd(n)&&Kd(t)&&Object.keys(t).forEach(i=>{Jd(t[i])?i in n?e[i]=$0(n[i],t[i]):Object.assign(e,{[i]:t[i]}):Object.assign(e,{[i]:t[i]})}),e):$0({},t)}function V0(n,t){let e=t.split(".");t="";do t+=e.shift(),Ca(n)&&Ca(n[t])&&(Jd(n[t])||H0(n[t])||!e.length)?(n=n[t],t=""):e.length?t+=".":n=void 0;while(e.length);return n}function qL(n,t,e){let i=t.split("."),r=n;for(let s=0;s{class n extends wa{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,i){if(Cw(e))return this.interpolateString(e,i);if(WL(e))return this.interpolateFunction(e,i)}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,s)=>{let a=V0(i,s);return Ca(a)?a:r}):e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Nt(n)))(r||n)}})();static \u0275prov=ae({token:n,factory:n.\u0275fac})}return n})(),xa=class{},z0=(()=>{class n extends xa{compile(e,i){return e}compileTranslations(e,i){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Nt(n)))(r||n)}})();static \u0275prov=ae({token:n,factory:n.\u0275fac})}return n})(),hc=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new le;onLangChange=new le;onDefaultLangChange=new le},Yd=new se("ISOALTE_TRANSLATE_SERVICE"),Qd=new se("USE_DEFAULT_LANG"),Zd=new se("DEFAULT_LANGUAGE"),Xd=new se("USE_EXTEND"),dc=n=>ur(n)?n:ye(n),mc=(()=>{class n{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new le;_onLangChange=new le;_onDefaultLangChange=new le;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};lastUseLanguage=null;get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}constructor(e,i,r,s,a,o=!0,l=!1,c=!1,u){this.store=e,this.currentLoader=i,this.compiler=r,this.parser=s,this.missingTranslationHandler=a,this.useDefaultLang=o,this.isolate=l,this.extend=c,u&&this.setDefaultLang(u)}setDefaultLang(e){if(e===this.defaultLang)return;let i=this.retrieveTranslations(e);typeof i<"u"?(this.defaultLang==null&&(this.defaultLang=e),i.pipe(Bt(1)).subscribe(()=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(this.lastUseLanguage=e,e===this.currentLang)return ye(this.translations[e]);this.currentLang||(this.currentLang=e);let i=this.retrieveTranslations(e);return ur(i)?(i.pipe(Bt(1)).subscribe(()=>{this.changeLang(e)}),i):(this.changeLang(e),ye(this.translations[e]))}changeLang(e){e===this.lastUseLanguage&&(this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang==null&&this.changeDefaultLang(e))}retrieveTranslations(e){if(typeof this.translations[e]>"u"||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}getTranslation(e){return this.loadAndCompileTranslations(e)}loadAndCompileTranslations(e){this.pending=!0;let i=this.currentLoader.getTranslation(e).pipe(fo(1),Bt(1));return this.loadingTranslations=i.pipe(Oe(r=>this.compiler.compileTranslations(r,e)),fo(1),Bt(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?G(G({},r),this.translations[e]):r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){let s=this.compiler.compileTranslations(i,e);(r||this.extend)&&this.translations[e]?this.translations[e]=$0(this.translations[e],s):this.translations[e]=s,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(i=>{this.langs.indexOf(i)===-1&&this.langs.push(i)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResultForKey(e,i,r){let s;if(e&&(s=this.runInterpolation(V0(e,i),r)),s===void 0&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(s=this.runInterpolation(V0(this.translations[this.defaultLang],i),r)),s===void 0){let a={key:i,translateService:this};typeof r<"u"&&(a.interpolateParams=r),s=this.missingTranslationHandler.handle(a)}return s!==void 0?s:i}runInterpolation(e,i){if(H0(e))return e.map(r=>this.runInterpolation(r,i));if(Jd(e)){let r={};for(let s in e)r[s]=this.runInterpolation(e[s],i);return r}else return this.parser.interpolate(e,i)}getParsedResult(e,i,r){if(i instanceof Array){let s={},a=!1;for(let l of i)s[l]=this.getParsedResultForKey(e,l,r),a=a||ur(s[l]);if(!a)return s;let o=i.map(l=>dc(s[l]));return uo(o).pipe(Oe(l=>{let c={};return l.forEach((u,d)=>{c[i[d]]=u}),c}))}return this.getParsedResultForKey(e,i,r)}get(e,i){if(!Ca(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(ws(r=>dc(this.getParsedResult(r,e,i)))):dc(this.getParsedResult(this.translations[this.currentLang],e,i))}getStreamOnTranslationChange(e,i){if(!Ca(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return ca(ys(()=>this.get(e,i)),this.onTranslationChange.pipe(Ot(r=>{let s=this.getParsedResult(r.translations,e,i);return dc(s)})))}stream(e,i){if(!Ca(e)||!e.length)throw new Error('Parameter "key" required');return ca(ys(()=>this.get(e,i)),this.onLangChange.pipe(Ot(r=>{let s=this.getParsedResult(r.translations,e,i);return dc(s)})))}instant(e,i){if(!Ca(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(this.translations[this.currentLang],e,i);return ur(r)?Array.isArray(e)?e.reduce((s,a)=>(s[a]=a,s),{}):e:r}set(e,i,r=this.currentLang){qL(this.translations[r],e,Cw(i)?this.compiler.compile(i,r):this.compiler.compileTranslations(i,r)),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],delete this.translations[e]}getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}static \u0275fac=function(i){return new(i||n)(He(hc),He(jr),He(xa),He(wa),He(Lo),He(Qd),He(Yd),He(Xd),He(Zd))};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var ww=(n={})=>da([n.loader||{provide:jr,useClass:P0},n.compiler||{provide:xa,useClass:z0},n.parser||{provide:wa,useClass:B0},n.missingTranslationHandler||{provide:Lo,useClass:U0},hc,{provide:Yd,useValue:n.isolate},{provide:Qd,useValue:n.useDefaultLang},{provide:Xd,useValue:n.extend},{provide:Zd,useValue:n.defaultLanguage},mc]),j0=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:jr,useClass:P0},e.compiler||{provide:xa,useClass:z0},e.parser||{provide:wa,useClass:B0},e.missingTranslationHandler||{provide:Lo,useClass:U0},hc,{provide:Yd,useValue:e.isolate},{provide:Qd,useValue:e.useDefaultLang},{provide:Xd,useValue:e.extend},{provide:Zd,useValue:e.defaultLanguage},mc]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:jr,useClass:P0},e.compiler||{provide:xa,useClass:z0},e.parser||{provide:wa,useClass:B0},e.missingTranslationHandler||{provide:Lo,useClass:U0},{provide:Yd,useValue:e.isolate},{provide:Qd,useValue:e.useDefaultLang},{provide:Xd,useValue:e.extend},{provide:Zd,useValue:e.defaultLanguage},mc]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({})}return n})();var eh=class{http;prefix;suffix;constructor(t,e="/assets/i18n/",i=".json"){this.http=t,this.prefix=e,this.suffix=i}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}};var Ex=bs(rg());var An=(()=>{class n{constructor(){}changeFhirMicroService(e){localStorage.setItem("fhirMicroServer",e)}getFhirMicroService(){return localStorage.getItem("fhirMicroServer")}getFhirClient(){return new Ex.default({baseUrl:this.getFhirMicroService()})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var $o={name:"matchbox",version:"3.9.9",license:"MIT",scripts:{ng:"ng",start:"ng serve --configuration development",build:"ng build --configuration production","build-matchbox":"ng build --configuration production --verbose --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:!0,dependencies:{"@ngx-translate/core":"^16.0.3","@ngx-translate/http-loader":"^16.0.0","ace-builds":"^1.36.5","angular-oauth2-oidc":"^17.0.1","browserify-zlib":"^0.2.0",debug:"^4.3.7","fhir-kit-client":"1.9.2",fhirpath:"^3.15.2","js-untar":"^2.0.0","ngx-highlightjs":"^12.0.0","ngx-mat-select-search":"^7.0.8","ngx-toastr":"^19.0.0",pako:"^2.1.0",rxjs:"^7.8.1",tslib:"^2.8.1","zone.js":"~0.15.0"},devDependencies:{"@angular-devkit/build-angular":"^19.0.1","@angular-eslint/builder":"^18.4.1","@angular-eslint/eslint-plugin":"^18.4.1","@angular-eslint/eslint-plugin-template":"^18.4.1","@angular-eslint/schematics":"^18.4.1","@angular-eslint/template-parser":"^18.4.1","@angular/animations":"^19.0.0","@angular/cdk":"^19.0.0","@angular/cli":"^19.0.1","@angular/common":"^19.0.0","@angular/compiler":"^19.0.0","@angular/compiler-cli":"^19.0.0","@angular/core":"^19.0.0","@angular/forms":"^19.0.0","@angular/language-service":"^19.0.0","@angular/material":"^19.0.0","@angular/platform-browser":"^19.0.0","@angular/platform-browser-dynamic":"^19.0.0","@angular/router":"^19.0.0","@types/ace":"^0.0.52","@types/debug":"^4.1.12","@types/jasmine":"^5.1.4","@types/node":"^22.9.1","@types/pako":"^2.0.3","@typescript-eslint/eslint-plugin":"^8.15.0","@typescript-eslint/parser":"^8.15.0",eslint:"^9.15.0",jasmine:"^5.4.0","jasmine-core":"^5.4.0","jasmine-spec-reporter":"^7.0.0","json-patch":"^0.7.0",karma:"^6.4.4","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.3.3","pretty-quick":"^4.0.0","ts-node":"^10.9.2",typescript:"^5.6.3"},browser:{fs:!1,os:!1,path:!1,zlib:!1},husky:{hooks:{"pre-commit":"pretty-quick --staged"}}};var oh=(()=>{class n{redirectHashUrl(){let e=window.location.href;window.location.replace(e.replace("#/",""))}isHashUrl(){return window.location.href.indexOf("#/")>-1}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var mg;try{mg=typeof Intl<"u"&&Intl.v8BreakIterator}catch{mg=!1}var dt=(()=>{class n{_platformId=L(q1);isBrowser=this._platformId?pC(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||mg)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Vo,Ix=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function fg(){if(Vo)return Vo;if(typeof document!="object"||!document)return Vo=new Set(Ix),Vo;let n=document.createElement("input");return Vo=new Set(Ix.filter(t=>(n.setAttribute("type",t),n.type===t))),Vo}var pc;function qO(){if(pc==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>pc=!0}))}finally{pc=pc||!1}return pc}function Mi(n){return qO()?n:!!n.capture}var Xn=function(n){return n[n.NORMAL=0]="NORMAL",n[n.NEGATED=1]="NEGATED",n[n.INVERTED=2]="INVERTED",n}(Xn||{}),lh,ka;function ch(){if(ka==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return ka=!1,ka;if("scrollBehavior"in document.documentElement.style)ka=!0;else{let n=Element.prototype.scrollTo;n?ka=!/\{\s*\[native code\]\s*\}/.test(n.toString()):ka=!1}}return ka}function Bo(){if(typeof document!="object"||!document)return Xn.NORMAL;if(lh==null){let n=document.createElement("div"),t=n.style;n.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";let e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",n.appendChild(e),document.body.appendChild(n),lh=Xn.NORMAL,n.scrollLeft===0&&(n.scrollLeft=1,lh=n.scrollLeft===0?Xn.NEGATED:Xn.INVERTED),n.remove()}return lh}var hg;function GO(){if(hg==null){let n=typeof document<"u"?document.head:null;hg=!!(n&&(n.createShadowRoot||n.attachShadow))}return hg}function Ax(n){if(GO()){let t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function pg(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){let t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function dn(n){return n.composedPath?n.composedPath()[0]:n.target}function gg(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var uh=new WeakMap,kt=(()=>{class n{_appRef;_injector=L(pt);_environmentInjector=L($r);load(e){let i=this._appRef=this._appRef||this._injector.get(Yn),r=uh.get(i);r||(r={loaders:new Set,refs:[]},uh.set(i,r),i.onDestroy(()=>{uh.get(i)?.refs.forEach(s=>s.destroy()),uh.delete(i)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(xd(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Gr=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(i,r){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}"],encapsulation:2,changeDetection:0})}return n})();function Pi(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function Dn(n){return n!=null&&`${n}`!="false"}function Ma(n,t=0){return KO(n)?Number(n):arguments.length===2?t:0}function KO(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function zo(n){return Array.isArray(n)?n:[n]}function Qt(n){return n==null?"":typeof n=="string"?n:`${n}px`}function Ji(n){return n instanceof Ae?n.nativeElement:n}function YO(n){if(n.type==="characterData"&&n.target instanceof Comment)return!0;if(n.type==="childList"){for(let t=0;t{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Rx=(()=>{class n{_mutationObserverFactory=L(Dx);_observedElements=new Map;_ngZone=L(Fe);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){let i=Ji(e);return new Gn(r=>{let a=this._observeElement(i).pipe(Oe(o=>o.filter(l=>!YO(l))),st(o=>!!o.length)).subscribe(o=>{this._ngZone.run(()=>{r.next(o)})});return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let i=new ge,r=this._mutationObserverFactory.create(s=>i.next(s));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Lx=(()=>{class n{_contentObserver=L(Rx);_elementRef=L(Ae);event=new le;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=Ma(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(Oi(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",Ce],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],features:[Ye]})}return n})(),dh=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({providers:[Dx]})}return n})();var Ox=new Set,Ta,QO=(()=>{class n{_platform=L(dt);_nonce=L(G1,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):XO}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&ZO(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function ZO(n,t){if(!Ox.has(n))try{Ta||(Ta=document.createElement("style"),t&&Ta.setAttribute("nonce",t),Ta.setAttribute("type","text/css"),document.head.appendChild(Ta)),Ta.sheet&&(Ta.sheet.insertRule(`@media ${n} {body{ }}`,0),Ox.add(n))}catch(e){console.error(e)}}function XO(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var Fx=(()=>{class n{_mediaMatcher=L(QO);_zone=L(Fe);_queries=new Map;_destroySubject=new ge;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Nx(zo(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=Nx(zo(e)).map(a=>this._registerQuery(a).observable),s=dr(r);return s=ca(s.pipe(Bt(1)),s.pipe(po(1),Oi(0))),s.pipe(Oe(a=>{let o={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{o.matches=o.matches||l,o.breakpoints[c]=l}),o}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),s={observable:new Gn(a=>{let o=l=>this._zone.run(()=>a.next(l));return i.addListener(o),()=>{i.removeListener(o)}}).pipe(Xt(i),Oe(({matches:a})=>({query:e,matches:a})),Ge(this._destroySubject)),mql:i};return this._queries.set(e,s),s}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Nx(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}var Bx=" ";function Sg(n,t,e){let i=ph(n,t);e=e.trim(),!i.some(r=>r.trim()===e)&&(i.push(e),n.setAttribute(t,i.join(Bx)))}function vh(n,t,e){let i=ph(n,t);e=e.trim();let r=i.filter(s=>s!==e);r.length?n.setAttribute(t,r.join(Bx)):n.removeAttribute(t)}function ph(n,t){return n.getAttribute(t)?.match(/\S+/g)??[]}var zx="cdk-describedby-message",hh="cdk-describedby-host",yg=0,Hx=(()=>{class n{_platform=L(dt);_document=L(rt);_messageRegistry=new Map;_messagesContainer=null;_id=`${yg++}`;constructor(){L(kt).load(Gr),this._id=L(Kp)+"-"+yg++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;let s=_g(i,r);typeof i!="string"?(Px(i,this._id),this._messageRegistry.set(s,{messageElement:i,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,s)||this._addMessageReference(e,s)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;let s=_g(i,r);if(this._isElementDescribedByMessage(e,s)&&this._removeMessageReference(e,s),typeof i=="string"){let a=this._messageRegistry.get(s);a&&a.referenceCount===0&&this._deleteMessageElement(s)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${hh}="${this._id}"]`);for(let i=0;ir.indexOf(zx)!=0);e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){let r=this._messageRegistry.get(i);Sg(e,"aria-describedby",r.messageElement.id),e.setAttribute(hh,this._id),r.referenceCount++}_removeMessageReference(e,i){let r=this._messageRegistry.get(i);r.referenceCount--,vh(e,"aria-describedby",r.messageElement.id),e.removeAttribute(hh)}_isElementDescribedByMessage(e,i){let r=ph(e,"aria-describedby"),s=this._messageRegistry.get(i),a=s&&s.messageElement.id;return!!a&&r.indexOf(a)!=-1}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&typeof i=="object")return!0;let r=i==null?"":`${i}`.trim(),s=e.getAttribute("aria-label");return r?!s||s.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function _g(n,t){return typeof n=="string"?`${t||""}/${n}`:n}function Px(n,t){n.id||(n.id=`${zx}-${t}-${yg++}`)}var lN=200,Cg=class{_letterKeyStream=new ge;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new ge;selectedItem=this._selectedItem;constructor(t,e){let i=typeof e?.debounceInterval=="number"?e.debounceInterval:lN;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(t),this._setupKeyHandler(i)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(t){this._selectedItemIndex=t}setItems(t){this._items=t}handleKey(t){let e=t.keyCode;t.key&&t.key.length===1?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(t){this._letterKeyStream.pipe(Tt(e=>this._pressedLetters.push(e)),Oi(t),st(()=>this._pressedLetters.length>0),Oe(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;it.disabled;constructor(t,e){this._items=t,t instanceof go?this._itemChangesSubscription=t.changes.subscribe(i=>this._itemsChanged(i.toArray())):ha(t)&&(this._effectRef=wd(()=>this._itemsChanged(t()),{injector:e}))}tabOut=new ge;change=new ge;skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new Cg(e,{debounceInterval:typeof t=="number"?t:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}withPageUpDown(t=!0,e=10){return this._pageUpAndDown={enabled:t,delta:e},this}setActiveItem(t){let e=this._activeItem();this.updateActiveItem(t),this._activeItem()!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){let e=t.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(s=>!t[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let s=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(s>0?s:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let s=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(s-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i))}}},_h=class extends gh{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}},gc=class extends gh{_origin="program";setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}};var cN=(()=>{class n{_platform=L(dt);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return dN(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=uN(bN(e));if(i&&(Ux(i)===-1||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),s=Ux(e);return e.hasAttribute("contenteditable")?s!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!_N(e)?!1:r==="audio"?e.hasAttribute("controls")?s!==-1:!1:r==="video"?s===-1?!1:s!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return vN(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function uN(n){try{return n.frameElement}catch{return null}}function dN(n){return!!(n.offsetWidth||n.offsetHeight||typeof n.getClientRects=="function"&&n.getClientRects().length)}function hN(n){let t=n.nodeName.toLowerCase();return t==="input"||t==="select"||t==="button"||t==="textarea"}function mN(n){return pN(n)&&n.type=="hidden"}function fN(n){return gN(n)&&n.hasAttribute("href")}function pN(n){return n.nodeName.toLowerCase()=="input"}function gN(n){return n.nodeName.toLowerCase()=="a"}function jx(n){if(!n.hasAttribute("tabindex")||n.tabIndex===void 0)return!1;let t=n.getAttribute("tabindex");return!!(t&&!isNaN(parseInt(t,10)))}function Ux(n){if(!jx(n))return null;let t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}function _N(n){let t=n.nodeName.toLowerCase(),e=t==="input"&&n.type;return e==="text"||e==="password"||t==="select"||t==="textarea"}function vN(n){return mN(n)?!1:hN(n)||fN(n)||n.hasAttribute("contenteditable")||jx(n)}function bN(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}var wg=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_enabled=!0;constructor(t,e,i,r,s=!1,a){this._element=t,this._checker=e,this._ngZone=i,this._document=r,this._injector=a,s||this.attachAnchors()}destroy(){let t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return t=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let i=this._getFirstTabbableElement(e);return i?.focus(t),!!i}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){let e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){let e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children;for(let i=0;i=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){let t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._injector?gi(t,{injector:this._injector}):setTimeout(t)}},yN=(()=>{class n{_checker=L(cN);_ngZone=L(Fe);_document=L(rt);_injector=L(pt);constructor(){L(kt).load(Gr)}create(e,i=!1){return new wg(e,this._checker,this._ngZone,this._document,i,this._injector)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Wx=(()=>{class n{_elementRef=L(Ae);_focusTrapFactory=L(yN);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){L(dt).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(e){let i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=pg(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",Ce],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",Ce]},exportAs:["cdkTrapFocus"],features:[Ye,St]})}return n})();function bh(n){return n.buttons===0||n.detail===0}function yh(n){let t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}var CN=new se("cdk-input-modality-detector-options"),wN={ignoreKeys:[18,17,224,91,16]},qx=650,Ho=Mi({passive:!0,capture:!0}),xN=(()=>{class n{_platform=L(dt);modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new fi(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(i=>i===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=dn(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(yh(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=dn(e)};constructor(){let e=L(Fe),i=L(rt),r=L(CN,{optional:!0});this._options=G(G({},wN),r),this.modalityDetected=this._modality.pipe(po(1)),this.modalityChanged=this.modalityDetected.pipe(hr()),this._platform.isBrowser&&e.runOutsideAngular(()=>{i.addEventListener("keydown",this._onKeydown,Ho),i.addEventListener("mousedown",this._onMousedown,Ho),i.addEventListener("touchstart",this._onTouchstart,Ho)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ho),document.removeEventListener("mousedown",this._onMousedown,Ho),document.removeEventListener("touchstart",this._onTouchstart,Ho))}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),SN=new se("liveAnnouncerElement",{providedIn:"root",factory:kN});function kN(){return null}var MN=new se("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),TN=0,Gx=(()=>{class n{_ngZone=L(Fe);_defaultOptions=L(MN,{optional:!0});_liveElement;_document=L(rt);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=L(SN,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...i){let r=this._defaultOptions,s,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[s,a]=i,this.clear(),clearTimeout(this._previousTimeout),s||(s=r&&r.politeness?r.politeness:"polite"),a==null&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",s),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(o=>this._currentResolve=o)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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(){let e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let s=0;s .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class n{_ngZone=L(Fe);_platform=L(dt);_inputModalityDetector=L(xN);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)};_document=L(rt,{optional:!0});_stopInputModalityDetector=new ge;constructor(){let e=L(EN,{optional:!0});this._detectionMode=e?.detectionMode||fh.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let i=dn(e);for(let r=i;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r)};monitor(e,i=!1){let r=Ji(e);if(!this._platform.isBrowser||r.nodeType!==1)return ye();let s=Ax(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;let o={checkChildren:i,subject:new ge,rootNode:s};return this._elementInfo.set(r,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(e){let i=Ji(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let s=Ji(e),a=this._getDocument().activeElement;s===a?this._getClosestElementsInfo(s).forEach(([o,l])=>this._originChanged(o,i,l)):(this._setOrigin(i),typeof s.focus=="function"&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===fh.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===fh.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?qx:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),s=dn(e);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,mh),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,mh)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ge(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,mh),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,mh),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,s)=>{(s===e||r.checkChildren&&s.contains(e))&&i.push([s,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let s=e.labels;if(s){for(let a=0;a{class n{_elementRef=L(Ae);_focusMonitor=L(Rn);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new le;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return n})(),Ea=function(n){return n[n.NONE=0]="NONE",n[n.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",n[n.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",n}(Ea||{}),$x="cdk-high-contrast-black-on-white",Vx="cdk-high-contrast-white-on-black",vg="cdk-high-contrast-active",kg=(()=>{class n{_platform=L(dt);_hasCheckedHighContrastMode;_document=L(rt);_breakpointSubscription;constructor(){this._breakpointSubscription=L(Fx).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Ea.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Ea.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Ea.BLACK_ON_WHITE}return Ea.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(vg,$x,Vx),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===Ea.BLACK_ON_WHITE?e.add(vg,$x):i===Ea.WHITE_ON_BLACK&&e.add(vg,Vx)}}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),wh=(()=>{class n{constructor(){L(kg)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({imports:[dh]})}return n})(),bg={},Lt=(()=>{class n{_appId=L(Kp);getId(e){return this._appId!=="ng"&&(e+=this._appId),bg.hasOwnProperty(e)||(bg[e]=0),`${e}${bg[e]++}`}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var IN=new se("cdk-dir-doc",{providedIn:"root",factory:AN});function AN(){return L(rt)}var DN=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function RN(n){let t=n?.toLowerCase()||"";return t==="auto"&&typeof navigator<"u"&&navigator?.language?DN.test(navigator.language)?"rtl":"ltr":t==="rtl"?"rtl":"ltr"}var li=(()=>{class n{value="ltr";change=new le;constructor(){let e=L(IN,{optional:!0});if(e){let i=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.value=RN(i||r||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Fs=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({})}return n})();var LN=["text"],ON=[[["mat-icon"]],"*"],NN=["mat-icon","*"];function FN(n,t){if(n&1&&te(0,"mat-pseudo-checkbox",1),n&2){let e=X();H("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function PN(n,t){if(n&1&&te(0,"mat-pseudo-checkbox",3),n&2){let e=X();H("disabled",e.disabled)}}function UN(n,t){if(n&1&&(N(0,"span",4),B(1),P()),n&2){let e=X();$(),Ke("(",e.group.label,")")}}var $N=["mat-internal-form-field",""],VN=["*"];var Le=(()=>{class n{constructor(){L(kg)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({imports:[Fs,Fs]})}return n})(),Da=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(t,e,i,r,s){this._defaultMatcher=t,this.ngControl=e,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=s}updateErrorState(){let t=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,s=i?.isErrorState(r,e)??!1;s!==t&&(this.errorState=s,this._stateChanges.next())}},Kx=new se("MAT_DATE_LOCALE",{providedIn:"root",factory:BN});function BN(){return L(oC)}var jo="Method not implemented",en=class{locale;_localeChanges=new ge;localeChanges=this._localeChanges;setTime(t,e,i,r){throw new Error(jo)}getHours(t){throw new Error(jo)}getMinutes(t){throw new Error(jo)}getSeconds(t){throw new Error(jo)}parseTime(t,e){throw new Error(jo)}addSeconds(t,e){throw new Error(jo)}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return t==null||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}compareTime(t,e){return this.getHours(t)-this.getHours(e)||this.getMinutes(t)-this.getMinutes(e)||this.getSeconds(t)-this.getSeconds(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),r=this.isValid(e);return i&&r?!this.compareDate(t,e):i==r}return t==e}sameTime(t,e){if(t&&e){let i=this.isValid(t),r=this.isValid(e);return i&&r?!this.compareTime(t,e):i==r}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}},Wo=new se("mat-date-formats"),zN=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,HN=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function Mg(n,t){let e=Array(n);for(let i=0;i{class n extends en{useUtcForDisplay=!1;_matDateLocale=L(Kx,{optional:!0});constructor(){super();let e=L(Kx,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Mg(12,r=>this._format(i,new Date(2017,r,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Mg(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){let i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Mg(7,r=>this._format(i,new Date(2017,0,r+1)))}getYearName(e){let i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),i=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return i===7?0:i}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,r){let s=this._createDateWithOverflow(e,i,r);return s.getMonth()!=i,s}today(){return new Date}parse(e,i){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let r=new Intl.DateTimeFormat(this.locale,je(G({},i),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,i*12)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(zN.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,i,r,s){let a=this.clone(e);return a.setHours(i,r,s,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,i){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let r=e.trim();if(r.length===0)return null;let s=this._parseTimeString(r);if(s===null){let a=r.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(s=this._parseTimeString(a))}return s||this.invalid()}addSeconds(e,i){return new Date(e.getTime()+i*1e3)}_createDateWithOverflow(e,i,r){let s=new Date;return s.setFullYear(e,i,r),s.setHours(0,0,0,0),s}_2digit(e){return("00"+e).slice(-2)}_format(e,i){let r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}_parseTimeString(e){let i=e.toUpperCase().match(HN);if(i){let r=parseInt(i[1]),s=parseInt(i[2]),a=i[3]==null?void 0:parseInt(i[3]),o=i[4];if(r===12?r=o==="AM"?0:r:o==="PM"&&(r+=12),Tg(r,0,23)&&Tg(s,0,59)&&(a==null||Tg(a,0,59)))return this.setTime(this.today(),r,s,a||0)}return null}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac})}return n})();function Tg(n,t,e){return!isNaN(n)&&n>=t&&n<=e}var WN={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var Rg=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({providers:[qN()]})}return n})();function qN(n=WN){return[{provide:en,useClass:jN},{provide:Wo,useValue:n}]}var Cc=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Ti=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["structural-styles"]],decls:0,vars:0,template:function(i,r){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}'],encapsulation:2,changeDetection:0})}return n})();var hn=function(n){return n[n.FADING_IN=0]="FADING_IN",n[n.VISIBLE=1]="VISIBLE",n[n.FADING_OUT=2]="FADING_OUT",n[n.HIDDEN=3]="HIDDEN",n}(hn||{}),Ag=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=hn.HIDDEN;constructor(t,e,i,r=!1){this._renderer=t,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r}fadeOut(){this._renderer.fadeOutRipple(this)}},Yx=Mi({passive:!0,capture:!0}),Dg=class{_events=new Map;addHandler(t,e,i,r){let s=this._events.get(e);if(s){let a=s.get(i);a?a.add(r):s.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),t.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,Yx)})}removeHandler(t,e,i){let r=this._events.get(t);if(!r)return;let s=r.get(e);s&&(s.delete(i),s.size===0&&r.delete(e),r.size===0&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,Yx)))}_delegateEventHandler=t=>{let e=dn(t);e&&this._events.get(t.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(s=>s.handleEvent(t))})}},Sh={enterDuration:225,exitDuration:150},GN=800,Qx=Mi({passive:!0,capture:!0}),Zx=["mousedown","touchstart"],Xx=["mouseup","mouseleave","touchend","touchcancel"],KN=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"],encapsulation:2,changeDetection:0})}return n})(),kh=class n{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new Dg;constructor(t,e,i,r,s){this._target=t,this._ngZone=e,this._platform=r,r.isBrowser&&(this._containerElement=Ji(i)),s&&s.get(kt).load(KN)}fadeInRipple(t,e,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=G(G({},Sh),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);let a=i.radius||YN(t,e,r),o=t-r.left,l=e-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=`${o-a}px`,u.style.top=`${l-a}px`,u.style.height=`${a*2}px`,u.style.width=`${a*2}px`,i.color!=null&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);let d=window.getComputedStyle(u),h=d.transitionProperty,m=d.transitionDuration,f=h==="none"||m==="0s"||m==="0s, 0s"||r.width===0&&r.height===0,g=new Ag(this,u,i,f);u.style.transform="scale3d(1, 1, 1)",g.state=hn.FADING_IN,i.persistent||(this._mostRecentTransientRipple=g);let v=null;return!f&&(c||s.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let w=()=>{v&&(v.fallbackTimer=null),clearTimeout(k),this._finishRippleTransition(g)},C=()=>this._destroyRipple(g),k=setTimeout(C,c+100);u.addEventListener("transitionend",w),u.addEventListener("transitioncancel",C),v={onTransitionEnd:w,onTransitionCancel:C,fallbackTimer:k}}),this._activeRipples.set(g,v),(f||!c)&&this._finishRippleTransition(g),g}fadeOutRipple(t){if(t.state===hn.FADING_OUT||t.state===hn.HIDDEN)return;let e=t.element,i=G(G({},Sh),t.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",t.state=hn.FADING_OUT,(t._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){let e=Ji(t);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,Zx.forEach(i=>{n._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(t){t.type==="mousedown"?this._onMousedown(t):t.type==="touchstart"?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Xx.forEach(e=>{this._triggerElement.addEventListener(e,this,Qx)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){t.state===hn.FADING_IN?this._startFadeOutTransition(t):t.state===hn.FADING_OUT&&this._destroyRipple(t)}_startFadeOutTransition(t){let e=t===this._mostRecentTransientRipple,{persistent:i}=t.config;t.state=hn.VISIBLE,!i&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){let e=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=hn.HIDDEN,e!==null&&(t.element.removeEventListener("transitionend",e.onTransitionEnd),t.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),t.element.remove()}_onMousedown(t){let e=bh(t),i=this._lastTouchStartEvent&&Date.now(){let e=t.state===hn.VISIBLE||t.config.terminateOnPointerUp&&t.state===hn.FADING_IN;!t.config.persistent&&e&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let t=this._triggerElement;t&&(Zx.forEach(e=>n._eventManager.removeHandler(e,t,this)),this._pointerUpEventsRegistered&&(Xx.forEach(e=>t.removeEventListener(e,this,Qx)),this._pointerUpEventsRegistered=!1))}};function YN(n,t,e){let i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}var Th=new se("mat-ripple-global-options"),pn=(()=>{class n{_elementRef=L(Ae);_animationMode=L(Dt,{optional:!0});color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=L(Fe),i=L(dt),r=L(Th,{optional:!0}),s=L(pt);this._globalOptions=r||{},this._rippleRenderer=new kh(this,e,this._elementRef,i,s)}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:G(G(G({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{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(e,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,G(G({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,G(G({},this.rippleConfig),e))}static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&Ee("mat-ripple-unbounded",r.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return n})(),Kr=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({imports:[Le,Le]})}return n})(),QN=(()=>{class n{_animationMode=L(Dt,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,r){i&2&&Ee("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(i,r){},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, var(--mat-sys-primary))}.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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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, var(--mat-sys-primary));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, var(--mat-sys-on-primary))}.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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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, var(--mat-sys-surface))}.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 n})(),ZN=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({imports:[Le]})}return n})(),Eh=new se("MAT_OPTION_PARENT_COMPONENT"),Ih=new se("MatOptgroup");var Mh=class{source;isUserInput;constructor(t,e=!1){this.source=t,this.isUserInput=e}},Jn=(()=>{class n{_element=L(Ae);_changeDetectorRef=L(Ze);_parent=L(Eh,{optional:!0});group=L(Ih,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=L(Lt).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new le;_text;_stateChanges=new ge;constructor(){L(kt).load(Ti),L(kt).load(Gr),this._signalDisableRipple=!!this._parent&&ha(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,i){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!Pi(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Mh(this,e))}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["mat-option"]],viewQuery:function(i,r){if(i&1&&$e(LN,7),i&2){let s;ke(s=Me())&&(r._text=s.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,r){i&1&&J("click",function(){return r._selectViaInteraction()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(Tn("id",r.id),Se("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),Ee("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",Ce]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],features:[Ye],ngContentSelectors:NN,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-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,r){i&1&&(nt(ON),oe(0,FN,1,2,"mat-pseudo-checkbox",1),Pe(1),N(2,"span",2,0),Pe(4,1),P(),oe(5,PN,1,1,"mat-pseudo-checkbox",3)(6,UN,2,1,"span",4),te(7,"div",5)),i&2&&(et(r.multiple?0:-1),$(5),et(!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),$(),et(r.group&&r.group._inert?6:-1),$(),H("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[QN,pn],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.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, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.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, var(--mat-sys-on-secondary-container))}.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, var(--mat-sys-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.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}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::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-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return n})();function Lg(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),s=0;for(let a=0;ae+i?Math.max(0,n-i+t):e}var qo=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({imports:[Kr,Le,ZN]})}return n})(),Jx={capture:!0},eS=["focus","mousedown","mouseenter","touchstart"],Eg="mat-ripple-loader-uninitialized",Ig="mat-ripple-loader-class-name",tS="mat-ripple-loader-centered",xh="mat-ripple-loader-disabled",iS=(()=>{class n{_document=L(rt,{optional:!0});_animationMode=L(Dt,{optional:!0});_globalRippleOptions=L(Th,{optional:!0});_platform=L(dt);_ngZone=L(Fe);_injector=L(pt);_hosts=new Map;constructor(){this._ngZone.runOutsideAngular(()=>{for(let e of eS)this._document?.addEventListener(e,this._onInteraction,Jx)})}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);for(let i of eS)this._document?.removeEventListener(i,this._onInteraction,Jx)}configureRipple(e,i){e.setAttribute(Eg,this._globalRippleOptions?.namespace??""),(i.className||!e.hasAttribute(Ig))&&e.setAttribute(Ig,i.className||""),i.centered&&e.setAttribute(tS,""),i.disabled&&e.setAttribute(xh,"")}setDisabled(e,i){let r=this._hosts.get(e);r?(r.target.rippleDisabled=i,!i&&!r.hasSetUpEvents&&(r.hasSetUpEvents=!0,r.renderer.setupTriggerEvents(e))):i?e.setAttribute(xh,""):e.removeAttribute(xh)}_onInteraction=e=>{let i=dn(e);if(i instanceof HTMLElement){let r=i.closest(`[${Eg}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let i=this._document.createElement("span");i.classList.add("mat-ripple",e.getAttribute(Ig)),e.append(i);let r=this._animationMode==="NoopAnimations",s=this._globalRippleOptions,a=r?0:s?.animation?.enterDuration??Sh.enterDuration,o=r?0:s?.animation?.exitDuration??Sh.exitDuration,l={rippleDisabled:r||s?.disabled||e.hasAttribute(xh),rippleConfig:{centered:e.hasAttribute(tS),terminateOnPointerUp:s?.terminateOnPointerUp,animation:{enterDuration:a,exitDuration:o}}},c=new kh(l,this._ngZone,i,this._platform,this._injector),u=!l.rippleDisabled;u&&c.setupTriggerEvents(e),this._hosts.set(e,{target:l,renderer:c,hasSetUpEvents:u}),e.removeAttribute(Eg)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Go=(()=>{class n{labelPosition;static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,r){i&2&&Ee("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:$N,ngContentSelectors:VN,decls:1,vars:0,template:function(i,r){i&1&&(nt(),Pe(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.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 .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0})}return n})();var JN=["*"],Ah;function eF(){if(Ah===void 0&&(Ah=null,typeof window<"u")){let n=window;n.trustedTypes!==void 0&&(Ah=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Ah}function wc(n){return eF()?.createHTML(n)||n}function nS(n){return Error(`Unable to find icon with the name "${n}"`)}function tF(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function rS(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function sS(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}var Yr=class{url;svgText;options;svgElement;constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}},iF=(()=>{class n{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,i,r,s){this._httpClient=e,this._sanitizer=i,this._errorHandler=s,this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,s){return this._addSvgIconConfig(e,i,new Yr(r,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,s){let a=this._sanitizer.sanitize(Ss.HTML,r);if(!a)throw sS(r);let o=wc(a);return this._addSvgIconConfig(e,i,new Yr("",o,s))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new Yr(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let s=this._sanitizer.sanitize(Ss.HTML,i);if(!s)throw sS(i);let a=wc(s);return this._addSvgIconSetConfig(e,new Yr("",a,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(Ss.RESOURCE_URL,e);if(!i)throw rS(e);let r=this._cachedIconsByUrl.get(i);return r?ye(Dh(r)):this._loadSvgIconFromConfig(new Yr(e,null)).pipe(Tt(s=>this._cachedIconsByUrl.set(i,s)),Oe(s=>Dh(s)))}getNamedSvgIcon(e,i=""){let r=aS(i,e),s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,e),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);let a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):Kn(nS(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?ye(Dh(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Oe(i=>Dh(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return ye(r);let s=i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Gi(o=>{let c=`Loading icon set URL: ${this._sanitizer.sanitize(Ss.RESOURCE_URL,a.url)} failed: ${o.message}`;return this._errorHandler.handleError(new Error(c)),ye(null)})));return uo(s).pipe(Oe(()=>{let a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw nS(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let s=i[r];if(s.svgText&&s.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(s),o=this._extractSvgIconFromSet(a,e,s.options);if(o)return o}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Tt(i=>e.svgText=i),Oe(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?ye(null):this._fetchIcon(e).pipe(Tt(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let s=e.querySelector(`[id="${i}"]`);if(!s)return null;let a=s.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,r);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),r);let o=this._svgElementFromString(wc(""));return o.appendChild(a),this._setSvgAttributes(o,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(wc("")),r=e.attributes;for(let s=0;swc(c)),mo(()=>this._inProgressUrlFetches.delete(a)),V1());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(aS(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}var oS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],oF=oS.map(n=>`[${n}]`).join(", "),lF=/^url\(['"]?#(.*?)['"]?\)$/,Ln=(()=>{class n{_elementRef=L(Ae);_iconRegistry=L(iF);_location=L(sF);_errorHandler=L(fd);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=xt.EMPTY;constructor(){let e=L(new Ni("aria-hidden"),{optional:!0}),i=L(rF,{optional:!0});i&&(i.color&&(this.color=this._defaultColor=i.color),i.fontSet&&(this.fontSet=i.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(a=>{s.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(oF),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{let o=i[s],l=o.getAttribute(a),c=l?l.match(lF):null;if(c){let u=r.get(o);u||(u=[],r.set(o,u)),u.push({name:a,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Bt(1)).subscribe(s=>this._setSvgElement(s),s=>{let a=`Error retrieving icon ${i}:${r}! ${s.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(Se("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),_t(r.color?"mat-"+r.color:""),Ee("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",Ce],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Ye],ngContentSelectors:JN,decls:1,vars:0,template:function(i,r){i&1&&(nt(),Pe(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.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 n})(),xc=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({imports:[Le,Le]})}return n})();var lS=(()=>{class n{constructor(e,i,r){if(this.translateService=e,this.fhirConfigService=i,this.hashUrlRedirectionService=r,this.version=$o.version,r.isHashUrl()&&r.redirectHashUrl(),e.setDefaultLang("de"),e.use(e.getBrowserLang()),location.origin==="http://localhost:4200")console.log("note: using local dev mag system for "+location.origin),i.changeFhirMicroService("http://localhost:4200/proxy/localhost/matchboxv3/fhir");else{let a=window.MATCHBOX_BASE_PATH+"/fhir";i.changeFhirMicroService(a),console.log("fhir endpoint "+a)}}static{this.\u0275fac=function(i){return new(i||n)(Ie(mc),Ie(An),Ie(oh))}}static{this.\u0275cmp=he({type:n,selectors:[["app-root"]],standalone:!1,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(i,r){i&1&&(N(0,"header")(1,"div",0),te(2,"img",1),N(3,"span",2),B(4),P()(),N(5,"nav")(6,"div",3)(7,"mat-icon"),B(8,"home"),P(),N(9,"span"),B(10,"Home"),P()(),N(11,"div",4)(12,"mat-icon"),B(13,"info"),P(),N(14,"span"),B(15,"CapabilityStatement"),P()(),N(16,"div",5)(17,"mat-icon"),B(18,"info"),P(),N(19,"span"),B(20,"IGs"),P()(),N(21,"div",6)(22,"mat-icon"),B(23,"search"),P(),N(24,"span"),B(25,"FHIR Mapping"),P()(),N(26,"div",7)(27,"mat-icon"),B(28,"transform"),P(),N(29,"span"),B(30,"Transform"),P()(),N(31,"div",8)(32,"mat-icon"),B(33,"rule"),P(),N(34,"span"),B(35,"Validate"),P()(),N(36,"div",9)(37,"mat-icon"),B(38,"settings"),P(),N(39,"span"),B(40,"Settings"),P()()()(),N(41,"main",10),te(42,"router-outlet"),P()),i&2&&($(4),Ke("v",r.version,""))},dependencies:[Ln,D0,Gd],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 n})();var _S=bs(Fg()),PG=bs(dS()),UG=bs(mS());var jt=class n{constructor(t,e){this.operationOutcome=e,this.issues=t??[]}static fromOperationOutcome(t){let e=t.issue?.map(i=>Nh.fromOoIssue(i));return new n(e,t)}static fromMatchboxError(t){let e=new n;return e.issues.push(new Nh("fatal","matchbox",t,void 0,void 0,void 0,void 0)),e}},Nh=class n{constructor(t,e,i,r,s,a,o){this.sliceInfo=[],this.severity=t,this.code=e,this.text=i,this.expression=r,this.line=s,this.col=a,this.sliceInfo=o??[]}static fromOoIssue(t){let e;t.expression&&t.expression.length?e=t.expression[0]:t.location&&t.location.length&&(e=t.location[0]);let i=t.diagnostics?.indexOf("Slice info: 1.)"),r,s=null;return i>=0?(r=t.diagnostics.substring(0,i).trimEnd(),s=t.diagnostics.substring(i+15).trimStart().split(/\d+[.][)]/)):r=t.diagnostics,new n(t.severity,t.code,r,e,n.getLineNo(t),n.getColNo(t),s)}static getLineNo(t){let e=n.getExtensionIntValue(t,"http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-line");return e&&e>0?e:void 0}static getColNo(t){let e=n.getExtensionIntValue(t,"http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-col");return e&&e>0?e:void 0}static getExtensionIntValue(t,e){if(t.extension){for(let i of t.extension)if(i.url===e)return i.valueInteger}}};var cF=["determinateSpinner"];function uF(n,t){if(n&1&&(Gt(),N(0,"svg",11),te(1,"circle",12),P()),n&2){let e=X();Se("viewBox",e._viewBox()),$(),ni("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),Se("r",e._circleRadius())}}var dF=new se("mat-progress-spinner-default-options",{providedIn:"root",factory:hF});function hF(){return{diameter:fS}}var fS=100,mF=10,Ps=(()=>{class n{_elementRef=L(Ae);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=L(Dt,{optional:!0}),i=L(dF);this._noopAnimations=e==="NoopAnimations"&&!!i&&!i._forceAnimations,this.mode=this._elementRef.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",i&&(i.color&&(this.color=this._defaultColor=i.color),i.diameter&&(this.diameter=i.diameter),i.strokeWidth&&(this.strokeWidth=i.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=fS;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-mF)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,r){if(i&1&&$e(cF,5),i&2){let s;ke(s=Me())&&(r._determinateCircle=s.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(i,r){i&2&&(Se("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),_t("mat-"+r.color),ni("width",r.diameter,"px")("height",r.diameter,"px")("--mdc-circular-progress-size",r.diameter+"px")("--mdc-circular-progress-active-indicator-width",r.diameter+"px"),Ee("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",$t],diameter:[2,"diameter","diameter",$t],strokeWidth:[2,"strokeWidth","strokeWidth",$t]},exportAs:["matProgressSpinner"],features:[Ye],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(i,r){if(i&1&&(oe(0,uF,2,8,"ng-template",null,0,ma),N(2,"div",2,1),Gt(),N(4,"svg",3),te(5,"circle",4),P()(),Vr(),N(6,"div",5)(7,"div",6)(8,"div",7),_o(9,8),P(),N(10,"div",9),_o(11,8),P(),N(12,"div",10),_o(13,8),P()()()),i&2){let s=Kt(1);$(4),Se("viewBox",r._viewBox()),$(),ni("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),Se("r",r._circleRadius()),$(4),H("ngTemplateOutlet",s),$(2),H("ngTemplateOutlet",s),$(2),H("ngTemplateOutlet",s)}},dependencies:[Sd],styles:[".mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.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 !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.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 .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,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, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 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 .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__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__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.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}@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-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)}}"],encapsulation:2,changeDetection:0})}return n})();var Sc=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({imports:[Le]})}return n})();var fF=n=>({clickable:n});function pF(n,t){if(n&1&&(N(0,"li",8),B(1),P()),n&2){let e=t.$implicit;$(),Ke(" ",e," ")}}function gF(n,t){if(n&1&&(N(0,"ol"),oe(1,pF,2,1,"li",7),P()),n&2){let e=X().$implicit;$(),H("ngForOf",e.sliceInfo)}}function _F(n,t){if(n&1){let e=We();N(0,"li",3),J("click",function(){let r=ie(e).$implicit,s=X(2);return ne(s.select.emit(r))}),N(1,"span",4),B(2),P(),te(3,"span",5)(4,"br"),N(5,"p"),B(6),P(),oe(7,gF,2,1,"ol",6),P()}if(n&2){let e=t.$implicit,i=X(2);vd("issue ",e.severity,""),$(2),Xe(e.severity),$(),H("innerHtml",i.getTemplateHeaderLine(e),Vl),$(3),Xe(e.text),$(),H("ngIf",e.sliceInfo.length)}}function vF(n,t){if(n&1&&(N(0,"ul",1),oe(1,_F,8,7,"li",2),P()),n&2){let e=X();H("ngClass",Es(2,fF,e.reactsToClick)),$(),H("ngForOf",e.result.issues)}}var pS=["fatal","error","warning","information"],Yo=(()=>{class n{set operationResult(e){this.result=e,this.result&&this.result.issues.length&&this.result.issues.sort(n.sortIssues)}constructor(e){this.sanitized=e,this.select=new le,this.reactsToClick=!1}ngOnInit(){this.reactsToClick=this.select.observed}static sortIssues(e,i){let r=pS.indexOf(e.severity)-pS.indexOf(i.severity);return r!==0?r:(e.line??0)-(i.line??0)}getTemplateHeaderLine(e){let i="";e.code&&(i+=` [${e.code}]`),i+=": ";let r=[];return e.line&&r.push(`line ${e.line}`),e.col&&r.push(`column ${e.col}`),e.expression&&r.push(`in ${e.expression}`),r.length&&(i+=r.join(", ")+":"),this.sanitized.bypassSecurityTrustHtml(i)}static{this.\u0275fac=function(i){return new(i||n)(Ie(Co))}}static{this.\u0275cmp=he({type:n,selectors:[["app-operation-result"]],inputs:{operationResult:"operationResult"},outputs:{select:"select"},standalone:!1,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(i,r){i&1&&oe(0,vF,2,4,"ul",0),i&2&&H("ngIf",r.result)},dependencies:[En,gr,_i],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 n})();function bF(n,t){n&1&&te(0,"mat-spinner")}function yF(n,t){if(n&1&&te(0,"app-operation-result",4),n&2){let e=X();H("operationResult",e.operationResult)}}var gS=4,vS=(()=>{class n{constructor(e){this.data=e,this.capabilityStatement=null,this.operationResult=null,this.loading=!0,this.client=e.getFhirClient()}ngAfterViewInit(){this.client.capabilityStatement().then(e=>{this.loading=!1,this.operationResult=null,this.editor=_S.default.edit("code"),this.editor.setReadOnly(!0),this.editor.setValue(JSON.stringify(e,null,gS),-1),this.editor.getSession().setMode("ace/mode/json"),this.editor.setTheme("ace/theme/textmate"),this.editor.commands.removeCommand("find"),this.editor.setOptions({maxLines:1e4,tabSize:gS,wrap:!0,useWorker:!1}),this.editor.resize(!0)}).catch(e=>{console.error(e),this.loading=!1,this.capabilityStatement=null,this.editor&&(this.editor.destroy(),this.editor.container.remove()),this.editor=null,e.response?.data?this.operationResult=jt.fromOperationOutcome(e.response.data):this.operationResult=jt.fromMatchboxError(e.message)})}static{this.\u0275fac=function(i){return new(i||n)(Ie(An))}}static{this.\u0275cmp=he({type:n,selectors:[["app-capability-statement"]],standalone:!1,decls:10,vars:3,consts:[["id","capability-statement",1,"white-block"],[4,"ngIf"],["id","code"],[3,"operationResult",4,"ngIf"],[3,"operationResult"]],template:function(i,r){i&1&&(N(0,"div",0)(1,"h2"),B(2,"CapabilityStatement"),P(),N(3,"p"),B(4," CapabilityStatement of the server: "),N(5,"code"),B(6),P()(),oe(7,bF,1,0,"mat-spinner",1),te(8,"div",2),oe(9,yF,1,1,"app-operation-result",3),P()),i&2&&($(6),Xe(r.client.baseUrl),$(),H("ngIf",r.loading),$(2),H("ngIf",r.operationResult))},dependencies:[_i,Ps,Yo],encapsulation:2})}}return n})();var CF=["*"];var wF=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],xF=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, [mat-card-title], [mat-card-subtitle], [matCardTitle], [matCardSubtitle]`,"*"],SF=new se("MAT_CARD_CONFIG"),Qo=(()=>{class n{appearance;constructor(){let e=L(SF,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,r){i&2&&Ee("mat-mdc-card-outlined",r.appearance==="outlined")("mdc-card--outlined",r.appearance==="outlined")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:CF,decls:1,vars:0,template:function(i,r){i&1&&(nt(),Pe(0))},styles:['.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mdc-elevated-card-container-color, var(--mat-sys-surface-container-low));border-color:var(--mdc-elevated-card-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mdc-elevated-card-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mdc-elevated-card-container-elevation, var(--mat-sys-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mdc-elevated-card-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mdc-outlined-card-container-color, var(--mat-sys-surface));border-radius:var(--mdc-outlined-card-container-shape, var(--mat-sys-corner-medium));border-width:var(--mdc-outlined-card-outline-width, 1px);border-color:var(--mdc-outlined-card-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mdc-outlined-card-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.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}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-sys-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-sys-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight))}.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 n})(),Ph=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return n})();var Zo=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return n})(),bS=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return n})(),Uh=(()=>{class n{align="start";static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(i,r){i&2&&Ee("mat-mdc-card-actions-align-end",r.align==="end")},inputs:{align:"align"},exportAs:["matCardActions"]})}return n})(),$h=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:xF,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,r){i&1&&(nt(wF),Pe(0),N(1,"div",0),Pe(2,1),P(),Pe(3,2))},encapsulation:2,changeDetection:0})}return n})(),yS=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-mdc-card-footer"]})}return n})();var Ug=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({imports:[Le,Le]})}return n})();var kc=class{_attachedHost;attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;t!=null&&(this._attachedHost=null,t.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(t){this._attachedHost=t}},Ra=class extends kc{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(t,e,i,r,s){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.projectableNodes=s}},Qr=class extends kc{templateRef;viewContainerRef;context;injector;constructor(t,e,i,r){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}},$g=class extends kc{element;constructor(t){super(),this.element=t instanceof Ae?t.nativeElement:t}},Bh=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(t){if(t instanceof Ra)return this._attachedPortal=t,this.attachComponentPortal(t);if(t instanceof Qr)return this._attachedPortal=t,this.attachTemplatePortal(t);if(this.attachDomPortal&&t instanceof $g)return this._attachedPortal=t,this.attachDomPortal(t)}attachDomPortal=null;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)}};var zh=class extends Bh{outletElement;_appRef;_defaultInjector;_document;constructor(t,e,i,r,s){super(),this.outletElement=t,this._appRef=i,this._defaultInjector=r,this._document=s}attachComponentPortal(t){let e;if(t.viewContainerRef){let i=t.injector||t.viewContainerRef.injector,r=i.get(Yp,null,{optional:!0})||void 0;e=t.viewContainerRef.createComponent(t.component,{index:t.viewContainerRef.length,injector:i,ngModuleRef:r,projectableNodes:t.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else e=xd(t.component,{elementInjector:t.injector||this._defaultInjector||pt.NULL,environmentInjector:this._appRef.injector,projectableNodes:t.projectableNodes||void 0}),this._appRef.attachView(e.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(e.hostView),e.destroy()});return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=t,e}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);r!==-1&&e.remove(r)}),this._attachedPortal=t,i}attachDomPortal=t=>{let e=t.element;e.parentNode;let i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}};var CS=(()=>{class n extends Qr{constructor(){let e=L(Mn),i=L(Fi);super(e,i)}static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Rt]})}return n})();var La=(()=>{class n extends Bh{_moduleRef=L(Yp,{optional:!0});_document=L(rt);_viewContainerRef=L(Fi);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new le;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=i.createComponent(e.component,{index:i.length,injector:e.injector||i.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return i!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}attachDomPortal=e=>{let i=e.element;i.parentNode;let r=this._document.createComment("dom-portal");e.setAttachedHost(this),i.parentNode.insertBefore(r,i),this._getRootNode().appendChild(i),this._attachedPortal=e,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(i,r)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Rt]})}return n})();var Hh=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({})}return n})();var Qe=function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n}(Qe||{}),br="*";function Ui(n,t){return{type:Qe.Trigger,name:n,definitions:t,options:{}}}function Zt(n,t=null){return{type:Qe.Animate,styles:t,timings:n}}function wS(n,t=null){return{type:Qe.Sequence,steps:n,options:t}}function ht(n){return{type:Qe.Style,styles:n,offset:null}}function ci(n,t,e){return{type:Qe.State,name:n,styles:t,options:e}}function Vg(n){return{type:Qe.Keyframes,steps:n}}function Wt(n,t,e=null){return{type:Qe.Transition,expr:n,animation:t,options:e}}function xS(n=null){return{type:Qe.AnimateChild,options:n}}function SS(n,t,e=null){return{type:Qe.Query,selector:n,animation:t,options:e}}var Us=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(t=0,e=0){this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},Mc=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(t){this.players=t;let e=0,i=0,r=0,s=this.players.length;s==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==s&&this._onFinish()}),a.onDestroy(()=>{++i==s&&this._onDestroy()}),a.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((a,o)=>Math.max(a,o.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let e=t*this.totalTime;this.players.forEach(i=>{let r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){let t=this.players.reduce((e,i)=>e===null||i.totalTime>e.totalTime?i:e,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},jh="!";var Wh=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new ge;constructor(t=!1,e,i=!0,r){this._multiple=t,this._emitChanges=i,this.compareWith=r,e&&e.length&&(t?e.forEach(s=>this._markSelected(s)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(i=>this._markSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...t){this._verifyValueAssignment(t),t.forEach(i=>this._unmarkSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...t){this._verifyValueAssignment(t);let e=this.selected,i=new Set(t);t.forEach(s=>this._markSelected(s)),e.filter(s=>!i.has(this._getConcreteValue(s,i))).forEach(s=>this._unmarkSelected(s));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();let e=this._hasQueuedChanges();return t&&this._emitChangeEvent(),e}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){t.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(t,e){if(this.compareWith){e=e??this._selection;for(let i of e)if(this.compareWith(t,i))return i;return t}else return t}};var kS=(()=>{class n{_listeners=[];notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var MF=20,Xo=(()=>{class n{_ngZone=L(Fe);_platform=L(dt);_document=L(rt,{optional:!0});constructor(){}_scrolled=new ge;_globalSubscription=null;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=MF){return this._platform.isBrowser?new Gn(i=>{this._globalSubscription||this._addGlobalListener();let r=e>0?this._scrolled.pipe(Hp(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):ye()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(st(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,e)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Ji(i),s=e.getElementRef().nativeElement;do if(r==s)return!0;while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return Cs(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Bg=(()=>{class n{elementRef=L(Ae);scrollDispatcher=L(Xo);ngZone=L(Fe);dir=L(li,{optional:!0});_destroyed=new ge;_elementScrolled=new Gn(e=>this.ngZone.runOutsideAngular(()=>Cs(this.elementRef.nativeElement,"scroll").pipe(Ge(this._destroyed)).subscribe(e)));constructor(){}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let i=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&Bo()!=Xn.NORMAL?(e.left!=null&&(e.right=i.scrollWidth-i.clientWidth-e.left),Bo()==Xn.INVERTED?e.left=e.right:Bo()==Xn.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let i=this.elementRef.nativeElement;ch()?i.scrollTo(e):(e.top!=null&&(i.scrollTop=e.top),e.left!=null&&(i.scrollLeft=e.left))}measureScrollOffset(e){let i="left",r="right",s=this.elementRef.nativeElement;if(e=="top")return s.scrollTop;if(e=="bottom")return s.scrollHeight-s.clientHeight-s.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?r:i:e=="end"&&(e=a?i:r),a&&Bo()==Xn.INVERTED?e==i?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:a&&Bo()==Xn.NEGATED?e==i?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:e==i?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return n})(),TF=20,Nn=(()=>{class n{_platform=L(dt);_viewportSize;_change=new ge;_changeListener=e=>{this._change.next(e)};_document=L(rt,{optional:!0});constructor(){L(Fe).runOutsideAngular(()=>{if(this._platform.isBrowser){let i=this._getWindow();i.addEventListener("resize",this._changeListener),i.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),r=e.documentElement,s=r.getBoundingClientRect(),a=-s.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,o=-s.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0;return{top:a,left:o}}change(e=TF){return e>0?this._change.pipe(Hp(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var On=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({})}return n})(),Tc=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({imports:[Fs,On,Fs,On]})}return n})();var MS=ch(),zg=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(t,e){this._viewportRuler=t,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Qt(-this._previousScrollPosition.left),t.style.top=Qt(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let t=this._document.documentElement,e=this._document.body,i=t.style,r=e.style,s=i.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),MS&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),MS&&(i.scrollBehavior=s,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}};var Hg=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(this._scrollSubscription)return;let t=this._scrollDispatcher.scrolled(0).pipe(st(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}},qh=class{enable(){}disable(){}attach(){}};function jg(n,t){return t.some(e=>{let i=n.bottome.bottom,s=n.righte.right;return i||r||s||a})}function TS(n,t){return t.some(e=>{let i=n.tope.bottom,s=n.lefte.right;return i||r||s||a})}var Wg=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(!this._scrollSubscription){let t=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(t).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();jg(e,[{width:i,height:r,bottom:r,right:i,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}},IF=(()=>{class n{_scrollDispatcher=L(Xo);_viewportRuler=L(Nn);_ngZone=L(Fe);_document=L(rt);constructor(){}noop=()=>new qh;close=e=>new Hg(this._scrollDispatcher,this._ngZone,this._viewportRuler,e);block=()=>new zg(this._viewportRuler,this._document);reposition=e=>new Wg(this._scrollDispatcher,this._viewportRuler,this._ngZone,e);static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Na=class{positionStrategy;scrollStrategy=new qh;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(t){if(t){let e=Object.keys(t);for(let i of e)t[i]!==void 0&&(this[i]=t[i])}}};var qg=class{connectionPair;scrollableViewProperties;constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}};var LS=(()=>{class n{_attachedOverlays=[];_document=L(rt);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),AF=(()=>{class n extends LS{_ngZone=L(Fe,{optional:!0});add(e){super.add(e),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)}_keydownListener=e=>{let i=this._attachedOverlays;for(let r=i.length-1;r>-1;r--)if(i[r]._keydownEvents.observers.length>0){let s=i[r]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(e)):s.next(e);break}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=Nt(n)))(r||n)}})();static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),DF=(()=>{class n extends LS{_platform=L(dt);_ngZone=L(Fe,{optional:!0});_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;add(e){if(super.add(e),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}_pointerDownListener=e=>{this._pointerDownEventTarget=dn(e)};_clickListener=e=>{let i=dn(e),r=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let s=this._attachedOverlays.slice();for(let a=s.length-1;a>-1;a--){let o=s[a];if(o._outsidePointerEvents.observers.length<1||!o.hasAttached())continue;if(ES(o.overlayElement,i)||ES(o.overlayElement,r))break;let l=o._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=Nt(n)))(r||n)}})();static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function ES(n,t){let e=typeof ShadowRoot<"u"&&ShadowRoot,i=t;for(;i;){if(i===n)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var OS=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}"],encapsulation:2,changeDetection:0})}return n})(),NS=(()=>{class n{_platform=L(dt);_containerElement;_document=L(rt);_styleLoader=L(kt);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||gg()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;sthis._backdropClick.next(t);_backdropTransitionendHandler=t=>{this._disposeBackdrop(t.target)};_previousHostParent;_keydownEvents=new ge;_outsidePointerEvents=new ge;_renders=new ge;_afterRenderRef;_afterNextRenderRef;constructor(t,e,i,r,s,a,o,l,c,u=!1,d){this._portalOutlet=t,this._host=e,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=a,this._document=o,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=u,this._injector=d,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=Qn(()=>pd(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=gi(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),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),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){let t=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._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=G(G({},this._config),t),this._updateElementSize()}setDirection(t){this._config=je(G({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){let t=this._config.direction;return t?typeof t=="string"?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let t=this._pane.style;t.width=Qt(this._config.width),t.height=Qt(this._config.height),t.minWidth=Qt(this._config.minWidth),t.minHeight=Qt(this._config.minHeight),t.maxWidth=Qt(this._config.maxWidth),t.maxHeight=Qt(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){let t="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(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(t){if(this._animationsDisabled){this._disposeBackdrop(t);return}t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,i){let r=zo(e||[]).filter(s=>!!s);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let t=this._renders.pipe(Ge(ai(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(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()),t.unsubscribe())})})}_disposeScrollStrategy(){let t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},IS="cdk-overlay-connected-position-bounding-box",RF=/([A-Za-z%]+)$/,Gh=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new ge;_resizeSubscription=xt.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(t,e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s,this.setOrigin(t)}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add(IS),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}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();let t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[],a;for(let o of this._preferredPositions){let l=this._getOriginPoint(t,r,o),c=this._getOverlayPoint(l,e,o),u=this._getOverlayFit(c,e,i,o);if(u.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(o,l);return}if(this._canFitWithFlexibleDimensions(u,c,i)){s.push({position:o,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,o)});continue}(!a||a.overlayFit.visibleAreal&&(l=u,o=c)}this._isPushed=!1,this._applyPosition(o.position,o.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Oa(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(IS),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,t.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r;if(i.originX=="center")r=t.left+t.width/2;else{let a=this._isRtl()?t.right:t.left,o=this._isRtl()?t.left:t.right;r=i.originX=="start"?a:o}e.left<0&&(r-=e.left);let s;return i.originY=="center"?s=t.top+t.height/2:s=i.originY=="top"?t.top:t.bottom,e.top<0&&(s-=e.top),{x:r,y:s}}_getOverlayPoint(t,e,i){let r;i.overlayX=="center"?r=-e.width/2:i.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let s;return i.overlayY=="center"?s=-e.height/2:s=i.overlayY=="top"?0:-e.height,{x:t.x+r,y:t.y+s}}_getOverlayFit(t,e,i,r){let s=DS(e),{x:a,y:o}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(a+=l),c&&(o+=c);let u=0-a,d=a+s.width-i.width,h=0-o,m=o+s.height-i.height,f=this._subtractOverflows(s.width,u,d),g=this._subtractOverflows(s.height,h,m),v=f*g;return{visibleArea:v,isCompletelyWithinViewport:s.width*s.height===v,fitsInViewportVertically:g===s.height,fitsInViewportHorizontally:f==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){let r=i.bottom-e.y,s=i.right-e.x,a=AS(this._overlayRef.getConfig().minHeight),o=AS(this._overlayRef.getConfig().minWidth),l=t.fitsInViewportVertically||a!=null&&a<=r,c=t.fitsInViewportHorizontally||o!=null&&o<=s;return l&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let r=DS(e),s=this._viewportRect,a=Math.max(t.x+r.width-s.width,0),o=Math.max(t.y+r.height-s.height,0),l=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0),u=0,d=0;return r.width<=s.width?u=c||-a:u=t.xf&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.y-f/2)}let l=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,c=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,u,d,h;if(c)h=i.width-t.x+this._viewportMargin*2,u=t.x-this._viewportMargin;else if(l)d=t.x,u=i.right-t.x;else{let m=Math.min(i.right-t.x+i.left,t.x),f=this._lastBoundingBoxSize.width;u=m*2,d=t.x-m,u>f&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-f/2)}return{top:a,left:d,bottom:o,right:h,width:u,height:s}}_setBoundingBoxStyles(t,e){let i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let s=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=Qt(i.height),r.top=Qt(i.top),r.bottom=Qt(i.bottom),r.width=Qt(i.width),r.left=Qt(i.left),r.right=Qt(i.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",s&&(r.maxHeight=Qt(s)),a&&(r.maxWidth=Qt(a))}this._lastBoundingBoxSize=i,Oa(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Oa(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Oa(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){let i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){let u=this._viewportRuler.getViewportScrollPosition();Oa(i,this._getExactOverlayY(e,t,u)),Oa(i,this._getExactOverlayX(e,t,u))}else i.position="static";let o="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(o+=`translateX(${l}px) `),c&&(o+=`translateY(${c}px)`),i.transform=o.trim(),a.maxHeight&&(r?i.maxHeight=Qt(a.maxHeight):s&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=Qt(a.maxWidth):s&&(i.maxWidth="")),Oa(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);if(this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),t.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;r.bottom=`${a-(s.y+this._overlayRect.height)}px`}else r.top=Qt(s.y);return r}_getExactOverlayX(t,e,i){let r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let a;if(this._isRtl()?a=t.overlayX==="end"?"left":"right":a=t.overlayX==="end"?"right":"left",a==="right"){let o=this._document.documentElement.clientWidth;r.right=`${o-(s.x+this._overlayRect.width)}px`}else r.left=Qt(s.x);return r}_getScrollVisibility(){let t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:TS(t,i),isOriginOutsideView:jg(t,i),isOverlayClipped:TS(e,i),isOverlayOutsideView:jg(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return e==="x"?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&zo(t).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){let t=this._origin;if(t instanceof Ae)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}};function Oa(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function AS(n){if(typeof n!="number"&&n!=null){let[t,e]=n.split(RF);return!e||e==="px"?parseFloat(t):null}return n||null}function DS(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}function LF(n,t){return n===t?!0:n.isOriginClipped===t.isOriginClipped&&n.isOriginOutsideView===t.isOriginOutsideView&&n.isOverlayClipped===t.isOverlayClipped&&n.isOverlayOutsideView===t.isOverlayOutsideView}var RS="cdk-global-overlay-wrapper",Kg=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(t){let e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(RS),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:a,maxHeight:o}=i,l=(r==="100%"||r==="100vw")&&(!a||a==="100%"||a==="100vw"),c=(s==="100%"||s==="100vh")&&(!o||o==="100%"||o==="100vh"),u=this._xPosition,d=this._xOffset,h=this._overlayRef.getConfig().direction==="rtl",m="",f="",g="";l?g="flex-start":u==="center"?(g="center",h?f=d:m=d):h?u==="left"||u==="end"?(g="flex-end",m=d):(u==="right"||u==="start")&&(g="flex-start",f=d):u==="left"||u==="start"?(g="flex-start",m=d):(u==="right"||u==="end")&&(g="flex-end",f=d),t.position=this._cssPosition,t.marginLeft=l?"0":m,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=l?"0":f,e.justifyContent=g,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(RS),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},OF=(()=>{class n{_viewportRuler=L(Nn);_document=L(rt);_platform=L(dt);_overlayContainer=L(NS);constructor(){}global(){return new Kg}flexibleConnectedTo(e){return new Gh(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Jt=(()=>{class n{scrollStrategies=L(IF);_overlayContainer=L(NS);_positionBuilder=L(OF);_keyboardDispatcher=L(AF);_injector=L(pt);_ngZone=L(Fe);_document=L(rt);_directionality=L(li);_location=L(fa);_outsideClickDispatcher=L(DF);_animationsModuleType=L(Dt,{optional:!0});_idGenerator=L(Lt);_appRef;_styleLoader=L(kt);constructor(){}create(e){this._styleLoader.load(OS);let i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),a=new Na(e);return a.direction=a.direction||this._directionality.value,new Gg(s,i,r,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get($r))}position(){return this._positionBuilder}_createPaneElement(e){let i=this._document.createElement("div");return i.id=this._idGenerator.getId("cdk-overlay-"),i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Yn)),new zh(e,null,this._appRef,this._injector,this._document)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),NF=[{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"}],FS=new se("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let n=L(Jt);return()=>n.scrollStrategies.reposition()}}),Ec=(()=>{class n{elementRef=L(Ae);constructor(){}static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return n})(),Yg=(()=>{class n{_overlay=L(Jt);_dir=L(li,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=xt.EMPTY;_attachSubscription=xt.EMPTY;_detachSubscription=xt.EMPTY;_positionSubscription=xt.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=L(FS);_disposeOnNavigation=!1;_ngZone=L(Fe);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new le;positionChange=new le;attach=new le;detach=new le;overlayKeydown=new le;overlayOutsideClick=new le;constructor(){let e=L(Mn),i=L(Fi);this._templatePortal=new Qr(e,i),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(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=NF);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!Pi(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let r=this._getOriginElement(),s=dn(i);(!r||r!==s&&!r.contains(s))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Na({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Ec?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Ec?this.origin.elementRef.nativeElement:this.origin instanceof Ae?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(B1(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",Ce],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",Ce],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Ce],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Ce],push:[2,"cdkConnectedOverlayPush","push",Ce],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Ce]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ye,St]})}return n})();function FF(n){return()=>n.scrollStrategies.reposition()}var PF={provide:FS,deps:[Jt],useFactory:FF},yr=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({providers:[Jt,PF],imports:[Fs,Hh,Tc,Tc]})}return n})();var UF=["mat-menu-item",""],$F=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],VF=["mat-icon, [matMenuItemIcon]","*"];function BF(n,t){n&1&&(Gt(),N(0,"svg",2),te(1,"polygon",3),P())}var zF=new se("MAT_MENU_PANEL"),Kh=(()=>{class n{_elementRef=L(Ae);_document=L(rt);_focusMonitor=L(Rn);_parentMenu=L(zF,{optional:!0});_changeDetectorRef=L(Ze);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new ge;_focused=new ge;_highlighted=!1;_triggersSubmenu=!1;constructor(){L(kt).load(Ti),this._parentMenu?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r enter",Zt("120ms cubic-bezier(0, 0, 0.2, 1)",ht({opacity:1,transform:"scale(1)"}))),Wt("* => void",Zt("100ms 25ms linear",ht({opacity:0})))]),fadeInItems:Ui("fadeInItems",[ci("showing",ht({opacity:1})),Wt("void => *",[ht({opacity:0}),Zt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},hY=PS.fadeInItems,mY=PS.transformMenu;var HF=new se("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let n=L(Jt);return()=>n.scrollStrategies.reposition()}});function jF(n){return()=>n.scrollStrategies.reposition()}var WF={provide:HF,deps:[Jt],useFactory:jF};var Qg=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({providers:[WF],imports:[Kr,Le,yr,On,Le]})}return n})();var $S=(()=>{class n{constructor(){this.version=$o.version}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=he({type:n,selectors:[["app-home"]],standalone:!1,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(i,r){i&1&&(N(0,"mat-card",0)(1,"mat-card-content")(2,"button",1)(3,"mat-icon"),B(4,"rule"),P(),N(5,"span"),B(6,"Validate resource"),P()(),N(7,"button",2)(8,"mat-icon"),B(9,"info"),P(),N(10,"span"),B(11,"Installed IGs"),P()(),N(12,"button",3)(13,"mat-icon"),B(14,"settings"),P(),N(15,"span"),B(16,"Settings"),P()(),N(17,"p"),B(18,"Other tools:"),P(),N(19,"ul")(20,"li")(21,"a",4),B(22,"FHIRPath tester"),P()(),N(23,"li")(24,"a",5),B(25,"FHIR Mapper"),P()()()(),N(26,"mat-card-footer")(27,"p"),B(28),N(29,"a",6),B(30," contact"),P()()()()),i&2&&($(28),Ke(" matchbox version: ",r.version," | "))},dependencies:[Qo,Zo,yS,Ln,Kh,Gd],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 n})();var qS=(()=>{class n{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||n)(Ie(Bl),Ie(Ae))};static \u0275dir=xe({type:n})}return n})(),qF=(()=>{class n extends qS{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Nt(n)))(r||n)}})();static \u0275dir=xe({type:n,features:[Rt]})}return n})(),Zr=new se("");var GF={provide:Zr,useExisting:ki(()=>Cr),multi:!0};function KF(){let n=Jp()?Jp().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var YF=new se(""),Cr=(()=>{class n extends qS{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!KF())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||n)(Ie(Bl),Ie(Ae),Ie(YF,8))};static \u0275dir=xe({type:n,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(i,r){i&1&&J("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[at([GF]),Rt]})}return n})();function $s(n){return n==null||(typeof n=="string"||Array.isArray(n))&&n.length===0}function GS(n){return n!=null&&typeof n.length=="number"}var Bs=new se(""),rm=new se(""),QF=/^(?=.{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])?)*$/,gn=class{static min(t){return ZF(t)}static max(t){return XF(t)}static required(t){return JF(t)}static requiredTrue(t){return eP(t)}static email(t){return tP(t)}static minLength(t){return iP(t)}static maxLength(t){return nP(t)}static pattern(t){return rP(t)}static nullValidator(t){return KS(t)}static compose(t){return ek(t)}static composeAsync(t){return tk(t)}};function ZF(n){return t=>{if($s(t.value)||$s(n))return null;let e=parseFloat(t.value);return!isNaN(e)&&e{if($s(t.value)||$s(n))return null;let e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function JF(n){return $s(n.value)?{required:!0}:null}function eP(n){return n.value===!0?null:{required:!0}}function tP(n){return $s(n.value)||QF.test(n.value)?null:{email:!0}}function iP(n){return t=>$s(t.value)||!GS(t.value)?null:t.value.lengthGS(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}function rP(n){if(!n)return KS;let t,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if($s(i.value))return null;let r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function KS(n){return null}function YS(n){return n!=null}function QS(n){return _d(n)?pi(n):n}function ZS(n){let t={};return n.forEach(e=>{t=e!=null?G(G({},t),e):t}),Object.keys(t).length===0?null:t}function XS(n,t){return t.map(e=>e(n))}function sP(n){return!n.validate}function JS(n){return n.map(t=>sP(t)?t:e=>t.validate(e))}function ek(n){if(!n)return null;let t=n.filter(YS);return t.length==0?null:function(e){return ZS(XS(e,t))}}function t_(n){return n!=null?ek(JS(n)):null}function tk(n){if(!n)return null;let t=n.filter(YS);return t.length==0?null:function(e){let i=XS(e,t).map(QS);return uo(i).pipe(Oe(ZS))}}function i_(n){return n!=null?tk(JS(n)):null}function VS(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function ik(n){return n._rawValidators}function nk(n){return n._rawAsyncValidators}function Zg(n){return n?Array.isArray(n)?n:[n]:[]}function Qh(n,t){return Array.isArray(n)?n.includes(t):n===t}function BS(n,t){let e=Zg(t);return Zg(n).forEach(r=>{Qh(e,r)||e.push(r)}),e}function zS(n,t){return Zg(t).filter(e=>!Qh(n,e))}var Zh=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=t_(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=i_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return this.control?this.control.hasError(t,e):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},Fa=class extends Zh{name;get formDirective(){return null}get path(){return null}},er=class extends Zh{_parent=null;name=null;valueAccessor=null},Xg=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},aP={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},RY=je(G({},aP),{"[class.ng-submitted]":"isSubmitted"}),wr=(()=>{class n extends Xg{constructor(e){super(e)}static \u0275fac=function(i){return new(i||n)(Ie(er,2))};static \u0275dir=xe({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&Ee("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[Rt]})}return n})();var Ac="VALID",Yh="INVALID",Jo="PENDING",Dc="DISABLED",Vs=class{},Xh=class extends Vs{value;source;constructor(t,e){super(),this.value=t,this.source=e}},Lc=class extends Vs{pristine;source;constructor(t,e){super(),this.pristine=t,this.source=e}},Oc=class extends Vs{touched;source;constructor(t,e){super(),this.touched=t,this.source=e}},el=class extends Vs{status;source;constructor(t,e){super(),this.status=t,this.source=e}},Jg=class extends Vs{source;constructor(t){super(),this.source=t}},e_=class extends Vs{source;constructor(t){super(),this.source=t}};function rk(n){return(sm(n)?n.validators:n)||null}function oP(n){return Array.isArray(n)?t_(n):n||null}function sk(n,t){return(sm(t)?t.asyncValidators:n)||null}function lP(n){return Array.isArray(n)?i_(n):n||null}function sm(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function cP(n,t,e){let i=n.controls;if(!(t?Object.keys(i):i).length)throw new ze(1e3,"");if(!i[e])throw new ze(1001,"")}function uP(n,t,e){n._forEachChild((i,r)=>{if(e[r]===void 0)throw new ze(1002,"")})}var Jh=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,e){this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return Qn(this.statusReactive)}set status(t){Qn(()=>this.statusReactive.set(t))}_status=Br(()=>this.statusReactive());statusReactive=Ki(void 0);get valid(){return this.status===Ac}get invalid(){return this.status===Yh}get pending(){return this.status==Jo}get disabled(){return this.status===Dc}get enabled(){return this.status!==Dc}errors;get pristine(){return Qn(this.pristineReactive)}set pristine(t){Qn(()=>this.pristineReactive.set(t))}_pristine=Br(()=>this.pristineReactive());pristineReactive=Ki(!0);get dirty(){return!this.pristine}get touched(){return Qn(this.touchedReactive)}set touched(t){Qn(()=>this.touchedReactive.set(t))}_touched=Br(()=>this.touchedReactive());touchedReactive=Ki(!1);get untouched(){return!this.touched}_events=new ge;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(BS(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(BS(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(zS(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(zS(t,this._rawAsyncValidators))}hasValidator(t){return Qh(this._rawValidators,t)}hasAsyncValidator(t){return Qh(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let e=this.touched===!1;this.touched=!0;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(je(G({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new Oc(!0,i))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t))}markAsUntouched(t={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:i})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,i),e&&t.emitEvent!==!1&&this._events.next(new Oc(!1,i))}markAsDirty(t={}){let e=this.pristine===!0;this.pristine=!1;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(je(G({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new Lc(!1,i))}markAsPristine(t={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,i),e&&t.emitEvent!==!1&&this._events.next(new Lc(!0,i))}markAsPending(t={}){this.status=Jo;let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new el(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(je(G({},t),{sourceControl:e}))}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=Dc,this.errors=null,this._forEachChild(r=>{r.disable(je(G({},t),{onlySelf:!0}))}),this._updateValue();let i=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Xh(this.value,i)),this._events.next(new el(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(je(G({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=Ac,this._forEachChild(i=>{i.enable(je(G({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(je(G({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t,e){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ac||this.status===Jo)&&this._runAsyncValidator(i,t.emitEvent)}let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Xh(this.value,e)),this._events.next(new el(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(je(G({},t),{sourceControl:e}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Dc:Ac}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=Jo,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let i=QS(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,i){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||i)&&this._events.next(new el(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,i)}_initObservables(){this.valueChanges=new le,this.statusChanges=new le}_calculateStatus(){return this._allControlsDisabled()?Dc:this.errors?Yh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Jo)?Jo:this._anyControlsHaveStatus(Yh)?Yh:Ac}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,e),r&&this._events.next(new Lc(this.pristine,e))}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new Oc(this.touched,e)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,e)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){sm(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=oP(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=lP(this._rawAsyncValidators)}},em=class extends Jh{constructor(t,e,i){super(rk(e),sk(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){uP(this,!0,t),Object.keys(t).forEach(i=>{cP(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(i=>{let r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t?t[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s)}),i}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var tl=new se("CallSetDisabledState",{providedIn:"root",factory:()=>am}),am="always";function dP(n,t){return[...t.path,n]}function Nc(n,t,e=am){n_(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),mP(n,t),pP(n,t),fP(n,t),hP(n,t)}function tm(n,t,e=!0){let i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),nm(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function im(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function hP(n,t){if(t.valueAccessor.setDisabledState){let e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}function n_(n,t){let e=ik(n);t.validator!==null?n.setValidators(VS(e,t.validator)):typeof e=="function"&&n.setValidators([e]);let i=nk(n);t.asyncValidator!==null?n.setAsyncValidators(VS(i,t.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();im(t._rawValidators,r),im(t._rawAsyncValidators,r)}function nm(n,t){let e=!1;if(n!==null){if(t.validator!==null){let r=ik(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.validator);s.length!==r.length&&(e=!0,n.setValidators(s))}}if(t.asyncValidator!==null){let r=nk(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.asyncValidator);s.length!==r.length&&(e=!0,n.setAsyncValidators(s))}}}let i=()=>{};return im(t._rawValidators,i),im(t._rawAsyncValidators,i),e}function mP(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&ak(n,t)})}function fP(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&ak(n,t),n.updateOn!=="submit"&&n.markAsTouched()})}function ak(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function pP(n,t){let e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}function ok(n,t){n==null,n_(n,t)}function gP(n,t){return nm(n,t)}function lk(n,t){if(!n.hasOwnProperty("model"))return!1;let e=n.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function _P(n){return Object.getPrototypeOf(n.constructor)===qF}function ck(n,t){n._syncPendingControls(),t.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function uk(n,t){if(!t)return null;Array.isArray(t);let e,i,r;return t.forEach(s=>{s.constructor===Cr?e=s:_P(s)?i=s:r=s}),r||i||e||null}function vP(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}var bP={provide:Fa,useExisting:ki(()=>Fc)},Rc=Promise.resolve(),Fc=(()=>{class n extends Fa{callSetDisabledState;get submitted(){return Qn(this.submittedReactive)}_submitted=Br(()=>this.submittedReactive());submittedReactive=Ki(!1);_directives=new Set;form;ngSubmit=new le;options;constructor(e,i,r){super(),this.callSetDisabledState=r,this.form=new em({},t_(e),i_(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Rc.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Nc(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Rc.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Rc.then(()=>{let i=this._findContainer(e.path),r=new em({});ok(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Rc.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Rc.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),ck(this.form,this._directives),this.ngSubmit.emit(e),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(i){return new(i||n)(Ie(Bs,10),Ie(rm,10),Ie(tl,8))};static \u0275dir=xe({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&J("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[at([bP]),Rt]})}return n})();function HS(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function jS(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var xr=class extends Jh{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,e,i){super(rk(e),sk(i,e)),this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),sm(e)&&(e.nonNullable||e.initialValueIsDefault)&&(jS(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){HS(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){HS(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){jS(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},Xr=xr,yP=n=>n instanceof xr;var CP={provide:er,useExisting:ki(()=>r_)},WS=Promise.resolve(),r_=(()=>{class n extends er{_changeDetectorRef;callSetDisabledState;control=new xr;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new le;constructor(e,i,r,s,a,o){super(),this._changeDetectorRef=a,this.callSetDisabledState=o,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=uk(this,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),lk(e,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(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Nc(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()&&this.name}_updateValue(e){WS.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&Ce(i);WS.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?dP(e,this._parent):[e]}static \u0275fac=function(i){return new(i||n)(Ie(Fa,9),Ie(Bs,10),Ie(rm,10),Ie(Zr,10),Ie(Ze,8),Ie(tl,8))};static \u0275dir=xe({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[at([CP]),Rt,St]})}return n})();var dk=new se(""),wP={provide:er,useExisting:ki(()=>tr)},tr=(()=>{class n extends er{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new le;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=uk(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&tm(i,this,!1),Nc(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}lk(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&tm(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(i){return new(i||n)(Ie(Bs,10),Ie(rm,10),Ie(Zr,10),Ie(dk,8),Ie(tl,8))};static \u0275dir=xe({type:n,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[at([wP]),Rt,St]})}return n})(),xP={provide:Fa,useExisting:ki(()=>Pc)},Pc=(()=>{class n extends Fa{callSetDisabledState;get submitted(){return Qn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Br(()=>this._submittedReactive());_submittedReactive=Ki(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new le;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(nm(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return Nc(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){tm(e.control||null,e,!1),vP(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),ck(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Jg(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new e_(this.form))}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(tm(i||null,e),yP(r)&&(Nc(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);ok(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&gP(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){n_(this.form,this),this._oldForm&&nm(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(i){return new(i||n)(Ie(Bs,10),Ie(rm,10),Ie(tl,8))};static \u0275dir=xe({type:n,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&J("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[at([xP]),Rt,St]})}return n})();var hk=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({})}return n})();var s_=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:tl,useValue:e.callSetDisabledState??am}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({imports:[hk]})}return n})(),Uc=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:dk,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:tl,useValue:e.callSetDisabledState??am}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=fe({imports:[hk]})}return n})();var Sk=bs(nh());var a_=class{_box;_destroyed=new ge;_resizeSubject=new ge;_resizeObserver;_elementObservables=new Map;constructor(t){this._box=t,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(t){return this._elementObservables.has(t)||this._elementObservables.set(t,new Gn(e=>{let i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(t,{box:this._box}),()=>{this._resizeObserver?.unobserve(t),i.unsubscribe(),this._elementObservables.delete(t)}}).pipe(st(e=>e.some(i=>i.target===t)),fo({bufferSize:1,refCount:!0}),Ge(this._destroyed))),this._elementObservables.get(t)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},om=(()=>{class n{_observers=new Map;_ngZone=L(Fe);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(e,i){let r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new a_(r)),this._observers.get(r).observe(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var SP=["notch"],kP=["matFormFieldNotchedOutline",""],MP=["*"],TP=["textField"],EP=["iconPrefixContainer"],IP=["textPrefixContainer"],AP=["iconSuffixContainer"],DP=["textSuffixContainer"],RP=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],LP=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function OP(n,t){n&1&&te(0,"span",21)}function NP(n,t){if(n&1&&(N(0,"label",20),Pe(1,1),oe(2,OP,1,0,"span",21),P()),n&2){let e=X(2);H("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),Se("for",e._control.disableAutomaticLabeling?null:e._control.id),$(2),et(!e.hideRequiredMarker&&e._control.required?2:-1)}}function FP(n,t){if(n&1&&oe(0,NP,3,5,"label",20),n&2){let e=X();et(e._hasFloatingLabel()?0:-1)}}function PP(n,t){n&1&&te(0,"div",7)}function UP(n,t){}function $P(n,t){if(n&1&&oe(0,UP,0,0,"ng-template",13),n&2){X(2);let e=Kt(1);H("ngTemplateOutlet",e)}}function VP(n,t){if(n&1&&(N(0,"div",9),oe(1,$P,1,1,null,13),P()),n&2){let e=X();H("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),$(),et(e._forceDisplayInfixLabel()?-1:1)}}function BP(n,t){n&1&&(N(0,"div",10,2),Pe(2,2),P())}function zP(n,t){n&1&&(N(0,"div",11,3),Pe(2,3),P())}function HP(n,t){}function jP(n,t){if(n&1&&oe(0,HP,0,0,"ng-template",13),n&2){X();let e=Kt(1);H("ngTemplateOutlet",e)}}function WP(n,t){n&1&&(N(0,"div",14,4),Pe(2,4),P())}function qP(n,t){n&1&&(N(0,"div",15,5),Pe(2,5),P())}function GP(n,t){n&1&&te(0,"div",16)}function KP(n,t){if(n&1&&(N(0,"div",18),Pe(1,6),P()),n&2){let e=X();H("@transitionMessages",e._subscriptAnimationState)}}function YP(n,t){if(n&1&&(N(0,"mat-hint",22),B(1),P()),n&2){let e=X(2);H("id",e._hintLabelId),$(),Xe(e.hintLabel)}}function QP(n,t){if(n&1&&(N(0,"div",19),oe(1,YP,2,2,"mat-hint",22),Pe(2,7),te(3,"div",23),Pe(4,8),P()),n&2){let e=X();H("@transitionMessages",e._subscriptAnimationState),$(),et(e.hintLabel?1:-1)}}var zs=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["mat-label"]]})}return n})(),bk=new se("MatError"),nl=(()=>{class n{id=L(Lt).getId("mat-mdc-error-");constructor(){L(new Ni("aria-live"),{optional:!0})||L(Ae).nativeElement.setAttribute("aria-live","polite")}static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(i,r){i&2&&Tn("id",r.id)},inputs:{id:"id"},features:[at([{provide:bk,useExisting:n}])]})}return n})(),il=(()=>{class n{align="start";id=L(Lt).getId("mat-mdc-hint-");static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){i&2&&(Tn("id",r.id),Se("align",null),Ee("mat-mdc-form-field-hint-end",r.align==="end"))},inputs:{align:"align",id:"id"}})}return n})(),ZP=new se("MatPrefix");var XP=new se("MatSuffix");var yk=new se("FloatingLabelParent"),mk=(()=>{class n{_elementRef=L(Ae);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=L(om);_ngZone=L(Fe);_parent=L(yk);_resizeSubscription=new xt;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return JP(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 \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){i&2&&Ee("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return n})();function JP(n){let t=n;if(t.offsetParent!==null)return t.scrollWidth;let e=t.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let i=e.scrollWidth;return e.remove(),i}var fk="mdc-line-ripple--active",lm="mdc-line-ripple--deactivating",pk=(()=>{class n{_elementRef=L(Ae);constructor(){L(Fe).runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(lm),e.add(fk)}deactivate(){this._elementRef.nativeElement.classList.add(lm)}_handleTransitionEnd=e=>{let i=this._elementRef.nativeElement.classList,r=i.contains(lm);e.propertyName==="opacity"&&r&&i.remove(fk,lm)};ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return n})(),gk=(()=>{class n{_elementRef=L(Ae);_ngZone=L(Fe);open=!1;_notch;constructor(){}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=he({type:n,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(i&1&&$e(SP,5),i&2){let s;ke(s=Me())&&(r._notch=s.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){i&2&&Ee("mdc-notched-outline--notched",r.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:kP,ngContentSelectors:MP,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(i,r){i&1&&(nt(),te(0,"div",1),N(1,"div",2,0),Pe(3),P(),te(4,"div",3))},encapsulation:2,changeDetection:0})}return n})(),e3={transitionMessages:Ui("transitionMessages",[ci("enter",ht({opacity:1,transform:"translateY(0%)"})),Wt("void => enter",[ht({opacity:0,transform:"translateY(-5px)"}),Zt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Vc=(()=>{class n{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;static \u0275fac=function(i){return new(i||n)};static \u0275dir=xe({type:n})}return n})();var Bc=new se("MatFormField"),t3=new se("MAT_FORM_FIELD_DEFAULT_OPTIONS"),_k="fill",i3="auto",vk="fixed",n3="translateY(-50%)",Fn=(()=>{class n{_elementRef=L(Ae);_changeDetectorRef=L(Ze);_dir=L(li);_platform=L(dt);_idGenerator=L(Lt);_defaults=L(t3,{optional:!0});_animationMode=L(Dt,{optional:!0});_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=tC(zs);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Dn(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||i3}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearance}set appearance(e){let i=this._appearance,r=e||this._defaults?.appearance||_k;this._appearance=r,this._appearance==="outline"&&this._appearance!==i&&(this._needsOutlineLabelOffsetUpdate=!0)}_appearance=_k;get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||vk}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||vk}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_subscriptAnimationState="";get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new ge;_isFocused=null;_explicitFormFieldControl;_needsOutlineLabelOffsetUpdate=!1;_previousControl=null;_stateChanges;_valueChanges;_describedByChanges;_injector=L(pt);constructor(){let e=this._defaults;e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=Br(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let i=this._control,r="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(r+e.controlType),i.controlType&&this._elementRef.nativeElement.classList.add(r+i.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=i.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=i.stateChanges.pipe(Xt([void 0,void 0]),Oe(()=>[i.errorState,i.userAriaDescribedBy]),qp(),st(([[s,a],[o,l]])=>s!==o||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),i.ngControl&&i.ngControl.valueChanges&&(this._valueChanges=i.ngControl.valueChanges.pipe(Ge(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),ai(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(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),pd(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(Ge(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=Br(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let i=this._control?this._control.ngControl:null;return i&&i[e]}_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(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let i=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,r=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let i=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,s=this._iconSuffixContainer?.nativeElement,a=this._textSuffixContainer?.nativeElement,o=i?.getBoundingClientRect().width??0,l=r?.getBoundingClientRect().width??0,c=s?.getBoundingClientRect().width??0,u=a?.getBoundingClientRect().width??0,d=this._dir.value==="rtl"?"-1":"1",h=`${o+l}px`,f=`calc(${d} * (${h} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var( --mat-mdc-form-field-label-transform, diff --git a/pom.xml b/pom.xml index 0beeac1b6d..e20669af11 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ health.matchbox matchbox - 3.9.8 + 3.9.9 pom matchbox An open-source implementation to support testing and implementation of FHIR based solutions and map or