@cc-openmrs/cc-esm-active-prescriptions 1.0.52 → 1.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/353.js CHANGED
@@ -1 +1 @@
1
- (globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[353],{4353(t){t.exports=function(){"use strict";var t=6e4,e=36e5,r="millisecond",n="second",s="minute",i="hour",u="day",a="week",c="month",o="quarter",h="year",f="date",d="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},M=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},v={s:M,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),s=r%60;return(e<=0?"+":"-")+M(n,2,"0")+":"+M(s,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),s=e.clone().add(n,c),i=r-s<0,u=e.clone().add(n+(i?-1:1),c);return+(-(n+(r-s)/(i?s-u:u-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:a,d:u,D:f,h:i,m:s,s:n,ms:r,Q:o}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",g={};g[y]=m;var p="$isDayjsObject",D=function(t){return t instanceof b||!(!t||!t[p])},S=function t(e,r,n){var s;if(!e)return y;if("string"==typeof e){var i=e.toLowerCase();g[i]&&(s=i),r&&(g[i]=r,s=i);var u=e.split("-");if(!s&&u.length>1)return t(u[0])}else{var a=e.name;g[a]=e,s=a}return!n&&s&&(y=s),s||!n&&y},_=function(t,e){if(D(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new b(r)},w=v;w.l=S,w.i=D,w.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var b=function(){function m(t){this.$L=S(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var M=m.prototype;return M.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(w.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match($);if(n){var s=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)}(t),this.init()},M.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},M.$utils=function(){return w},M.isValid=function(){return!(this.$d.toString()===d)},M.isSame=function(t,e){var r=_(t);return this.startOf(e)<=r&&r<=this.endOf(e)},M.isAfter=function(t,e){return _(t)<this.startOf(e)},M.isBefore=function(t,e){return this.endOf(e)<_(t)},M.$g=function(t,e,r){return w.u(t)?this[e]:this.set(r,t)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(t,e){var r=this,o=!!w.u(e)||e,d=w.p(t),$=function(t,e){var n=w.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return o?n:n.endOf(u)},l=function(t,e){return w.w(r.toDate()[t].apply(r.toDate("s"),(o?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},m=this.$W,M=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case h:return o?$(1,0):$(31,11);case c:return o?$(1,M):$(0,M+1);case a:var g=this.$locale().weekStart||0,p=(m<g?m+7:m)-g;return $(o?v-p:v+(6-p),M);case u:case f:return l(y+"Hours",0);case i:return l(y+"Minutes",1);case s:return l(y+"Seconds",2);case n:return l(y+"Milliseconds",3);default:return this.clone()}},M.endOf=function(t){return this.startOf(t,!1)},M.$set=function(t,e){var a,o=w.p(t),d="set"+(this.$u?"UTC":""),$=(a={},a[u]=d+"Date",a[f]=d+"Date",a[c]=d+"Month",a[h]=d+"FullYear",a[i]=d+"Hours",a[s]=d+"Minutes",a[n]=d+"Seconds",a[r]=d+"Milliseconds",a)[o],l=o===u?this.$D+(e-this.$W):e;if(o===c||o===h){var m=this.clone().set(f,1);m.$d[$](l),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else $&&this.$d[$](l);return this.init(),this},M.set=function(t,e){return this.clone().$set(t,e)},M.get=function(t){return this[w.p(t)]()},M.add=function(r,o){var f,d=this;r=Number(r);var $=w.p(o),l=function(t){var e=_(d);return w.w(e.date(e.date()+Math.round(t*r)),d)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===u)return l(1);if($===a)return l(7);var m=(f={},f[s]=t,f[i]=e,f[n]=1e3,f)[$]||1,M=this.$d.getTime()+r*m;return w.w(M,this)},M.subtract=function(t,e){return this.add(-1*t,e)},M.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||d;var n=t||"YYYY-MM-DDTHH:mm:ssZ",s=w.z(this),i=this.$H,u=this.$m,a=this.$M,c=r.weekdays,o=r.months,h=r.meridiem,f=function(t,r,s,i){return t&&(t[r]||t(e,n))||s[r].slice(0,i)},$=function(t){return w.s(i%12||12,t,"0")},m=h||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(l,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return w.s(e.$y,4,"0");case"M":return a+1;case"MM":return w.s(a+1,2,"0");case"MMM":return f(r.monthsShort,a,o,3);case"MMMM":return f(o,a);case"D":return e.$D;case"DD":return w.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return f(r.weekdaysMin,e.$W,c,2);case"ddd":return f(r.weekdaysShort,e.$W,c,3);case"dddd":return c[e.$W];case"H":return String(i);case"HH":return w.s(i,2,"0");case"h":return $(1);case"hh":return $(2);case"a":return m(i,u,!0);case"A":return m(i,u,!1);case"m":return String(u);case"mm":return w.s(u,2,"0");case"s":return String(e.$s);case"ss":return w.s(e.$s,2,"0");case"SSS":return w.s(e.$ms,3,"0");case"Z":return s}return null}(t)||s.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(r,f,d){var $,l=this,m=w.p(f),M=_(r),v=(M.utcOffset()-this.utcOffset())*t,y=this-M,g=function(){return w.m(l,M)};switch(m){case h:$=g()/12;break;case c:$=g();break;case o:$=g()/3;break;case a:$=(y-v)/6048e5;break;case u:$=(y-v)/864e5;break;case i:$=y/e;break;case s:$=y/t;break;case n:$=y/1e3;break;default:$=y}return d?$:w.a($)},M.daysInMonth=function(){return this.endOf(c).$D},M.$locale=function(){return g[this.$L]},M.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=S(t,e,!0);return n&&(r.$L=n),r},M.clone=function(){return w.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},m}(),O=b.prototype;return _.prototype=O,[["$ms",r],["$s",n],["$m",s],["$H",i],["$W",u],["$M",c],["$y",h],["$D",f]].forEach(function(t){O[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),_.extend=function(t,e){return t.$i||(t(e,b,_),t.$i=!0),_},_.locale=S,_.isDayjs=D,_.unix=function(t){return _(1e3*t)},_.en=g[y],_.Ls=g,_.p={},_}()}}]);
1
+ (globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[353],{9115(t){t.exports=function(){"use strict";var t=6e4,e=36e5,r="millisecond",n="second",s="minute",i="hour",u="day",a="week",c="month",o="quarter",h="year",f="date",d="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},M=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},v={s:M,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),s=r%60;return(e<=0?"+":"-")+M(n,2,"0")+":"+M(s,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),s=e.clone().add(n,c),i=r-s<0,u=e.clone().add(n+(i?-1:1),c);return+(-(n+(r-s)/(i?s-u:u-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:a,d:u,D:f,h:i,m:s,s:n,ms:r,Q:o}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",g={};g[y]=m;var p="$isDayjsObject",D=function(t){return t instanceof b||!(!t||!t[p])},S=function t(e,r,n){var s;if(!e)return y;if("string"==typeof e){var i=e.toLowerCase();g[i]&&(s=i),r&&(g[i]=r,s=i);var u=e.split("-");if(!s&&u.length>1)return t(u[0])}else{var a=e.name;g[a]=e,s=a}return!n&&s&&(y=s),s||!n&&y},_=function(t,e){if(D(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new b(r)},w=v;w.l=S,w.i=D,w.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var b=function(){function m(t){this.$L=S(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var M=m.prototype;return M.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(w.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match($);if(n){var s=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)}(t),this.init()},M.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},M.$utils=function(){return w},M.isValid=function(){return!(this.$d.toString()===d)},M.isSame=function(t,e){var r=_(t);return this.startOf(e)<=r&&r<=this.endOf(e)},M.isAfter=function(t,e){return _(t)<this.startOf(e)},M.isBefore=function(t,e){return this.endOf(e)<_(t)},M.$g=function(t,e,r){return w.u(t)?this[e]:this.set(r,t)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(t,e){var r=this,o=!!w.u(e)||e,d=w.p(t),$=function(t,e){var n=w.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return o?n:n.endOf(u)},l=function(t,e){return w.w(r.toDate()[t].apply(r.toDate("s"),(o?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},m=this.$W,M=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case h:return o?$(1,0):$(31,11);case c:return o?$(1,M):$(0,M+1);case a:var g=this.$locale().weekStart||0,p=(m<g?m+7:m)-g;return $(o?v-p:v+(6-p),M);case u:case f:return l(y+"Hours",0);case i:return l(y+"Minutes",1);case s:return l(y+"Seconds",2);case n:return l(y+"Milliseconds",3);default:return this.clone()}},M.endOf=function(t){return this.startOf(t,!1)},M.$set=function(t,e){var a,o=w.p(t),d="set"+(this.$u?"UTC":""),$=(a={},a[u]=d+"Date",a[f]=d+"Date",a[c]=d+"Month",a[h]=d+"FullYear",a[i]=d+"Hours",a[s]=d+"Minutes",a[n]=d+"Seconds",a[r]=d+"Milliseconds",a)[o],l=o===u?this.$D+(e-this.$W):e;if(o===c||o===h){var m=this.clone().set(f,1);m.$d[$](l),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else $&&this.$d[$](l);return this.init(),this},M.set=function(t,e){return this.clone().$set(t,e)},M.get=function(t){return this[w.p(t)]()},M.add=function(r,o){var f,d=this;r=Number(r);var $=w.p(o),l=function(t){var e=_(d);return w.w(e.date(e.date()+Math.round(t*r)),d)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===u)return l(1);if($===a)return l(7);var m=(f={},f[s]=t,f[i]=e,f[n]=1e3,f)[$]||1,M=this.$d.getTime()+r*m;return w.w(M,this)},M.subtract=function(t,e){return this.add(-1*t,e)},M.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||d;var n=t||"YYYY-MM-DDTHH:mm:ssZ",s=w.z(this),i=this.$H,u=this.$m,a=this.$M,c=r.weekdays,o=r.months,h=r.meridiem,f=function(t,r,s,i){return t&&(t[r]||t(e,n))||s[r].slice(0,i)},$=function(t){return w.s(i%12||12,t,"0")},m=h||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(l,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return w.s(e.$y,4,"0");case"M":return a+1;case"MM":return w.s(a+1,2,"0");case"MMM":return f(r.monthsShort,a,o,3);case"MMMM":return f(o,a);case"D":return e.$D;case"DD":return w.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return f(r.weekdaysMin,e.$W,c,2);case"ddd":return f(r.weekdaysShort,e.$W,c,3);case"dddd":return c[e.$W];case"H":return String(i);case"HH":return w.s(i,2,"0");case"h":return $(1);case"hh":return $(2);case"a":return m(i,u,!0);case"A":return m(i,u,!1);case"m":return String(u);case"mm":return w.s(u,2,"0");case"s":return String(e.$s);case"ss":return w.s(e.$s,2,"0");case"SSS":return w.s(e.$ms,3,"0");case"Z":return s}return null}(t)||s.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(r,f,d){var $,l=this,m=w.p(f),M=_(r),v=(M.utcOffset()-this.utcOffset())*t,y=this-M,g=function(){return w.m(l,M)};switch(m){case h:$=g()/12;break;case c:$=g();break;case o:$=g()/3;break;case a:$=(y-v)/6048e5;break;case u:$=(y-v)/864e5;break;case i:$=y/e;break;case s:$=y/t;break;case n:$=y/1e3;break;default:$=y}return d?$:w.a($)},M.daysInMonth=function(){return this.endOf(c).$D},M.$locale=function(){return g[this.$L]},M.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=S(t,e,!0);return n&&(r.$L=n),r},M.clone=function(){return w.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},m}(),O=b.prototype;return _.prototype=O,[["$ms",r],["$s",n],["$m",s],["$H",i],["$W",u],["$M",c],["$y",h],["$D",f]].forEach(function(t){O[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),_.extend=function(t,e){return t.$i||(t(e,b,_),t.$i=!0),_},_.locale=S,_.isDayjs=D,_.unix=function(t){return _(1e3*t)},_.en=g[y],_.Ls=g,_.p={},_}()}}]);
package/dist/432.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[432],{6052(e,n,t){t.d(n,{A:()=>l});var a=t(2996),i=t.n(a),s=t(159),o=t.n(s)()(i());o.push([e.id,".-cc-esm-active-prescriptions__root__workspace___\\+xqk5{padding:2rem;display:flex;flex-direction:column;gap:1.5rem;background-color:var(--cds-layer, #ffffff);min-height:100%}.-cc-esm-active-prescriptions__root__header___G1X3T{display:flex;flex-direction:column;gap:.5rem}.-cc-esm-active-prescriptions__root__subtitle___kRieu{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px);color:var(--cds-text-secondary, #525252);margin:0;max-width:48rem}.-cc-esm-active-prescriptions__root__section___61mCr{background-color:var(--cds-layer-accent, #f4f4f4);padding:1rem;border-radius:.25rem;box-shadow:0 1px 2px rgba(0,0,0,.08)}.-cc-esm-active-prescriptions__root__fieldLabel___F2zAd{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);margin-bottom:.5rem}.-cc-esm-active-prescriptions__root__tabContent___DnbmQ{padding:1rem 0 0;display:flex;flex-direction:column;gap:1.5rem}.-cc-esm-active-prescriptions__root__fieldGroup___3aiba{display:flex;flex-direction:column;gap:.5rem}.-cc-esm-active-prescriptions__root__helperText___sr2T2{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);color:var(--cds-text-secondary, #525252);margin:0}.-cc-esm-active-prescriptions__root__ordersList___jcCvy{border:1px solid var(--cds-border-subtle, #e0e0e0);border-radius:.25rem;padding:.75rem;display:flex;flex-direction:column;gap:.5rem;background-color:var(--cds-layer, #ffffff)}.-cc-esm-active-prescriptions__root__orderLabel___3oBY3{display:flex;flex-direction:column;align-items:flex-start;gap:.125rem}.-cc-esm-active-prescriptions__root__orderName___QGKUy{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);font-weight:600}.-cc-esm-active-prescriptions__root__orderMeta___S7cGO{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);color:var(--cds-text-secondary, #525252)}.-cc-esm-active-prescriptions__root__selectionSummary___TD9ka{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);color:var(--cds-text-secondary, #525252);margin:.25rem 0 0}","",{version:3,sources:["webpack://./src/root.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAGA,wDACE,YCqCW,CDpCX,YAAA,CACA,qBAAA,CACA,UC6BW,CD5BX,0CAAA,CACA,eAAA,CAGF,oDACE,YAAA,CACA,qBAAA,CACA,SCMW,CDHb,sDEg1BI,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CF90BF,wCAAA,CACA,QAAA,CACA,eAAA,CAGF,qDACE,iDAAA,CACA,YCIW,CDHX,oBCZW,CDaX,oCAAA,CAGF,wDEk0BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CFh0BF,mBCbW,CDgBb,wDACE,gBAAA,CACA,YAAA,CACA,qBAAA,CACA,UCLW,CDQb,wDACE,YAAA,CACA,qBAAA,CACA,SC1BW,CD6Bb,wDEgzBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CF9yBF,wCAAA,CACA,QAAA,CAGF,wDACE,kDAAA,CACA,oBC1CW,CD2CX,cCjCW,CDkCX,YAAA,CACA,qBAAA,CACA,SCzCW,CD0CX,0CAAA,CAGF,wDACE,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,WC3DW,CD8Db,uDEyxBI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CFvxBF,eAAA,CAGF,uDEoxBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CFlxBF,wCAAA,CAGF,8DE+wBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CF7wBF,wCAAA,CACA,iBAAA",sourcesContent:["@use '@carbon/layout';\n@use '@carbon/type';\n\n.workspace {\n padding: layout.$spacing-07;\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-06;\n background-color: var(--cds-layer, #ffffff);\n min-height: 100%;\n}\n\n.header {\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-03;\n}\n\n.subtitle {\n @include type.type-style('body-01');\n color: var(--cds-text-secondary, #525252);\n margin: 0;\n max-width: 48rem;\n}\n\n.section {\n background-color: var(--cds-layer-accent, #f4f4f4);\n padding: layout.$spacing-05;\n border-radius: layout.$spacing-02;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);\n}\n\n.fieldLabel {\n @include type.type-style('heading-compact-01');\n margin-bottom: layout.$spacing-03;\n}\n\n.tabContent {\n padding: layout.$spacing-05 0 0;\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-06;\n}\n\n.fieldGroup {\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-03;\n}\n\n.helperText {\n @include type.type-style('label-01');\n color: var(--cds-text-secondary, #525252);\n margin: 0;\n}\n\n.ordersList {\n border: 1px solid var(--cds-border-subtle, #e0e0e0);\n border-radius: layout.$spacing-02;\n padding: layout.$spacing-04;\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-03;\n background-color: var(--cds-layer, #ffffff);\n}\n\n.orderLabel {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: layout.$spacing-01;\n}\n\n.orderName {\n @include type.type-style('body-compact-01');\n font-weight: 600;\n}\n\n.orderMeta {\n @include type.type-style('label-01');\n color: var(--cds-text-secondary, #525252);\n}\n\n.selectionSummary {\n @include type.type-style('label-01');\n color: var(--cds-text-secondary, #525252);\n margin: layout.$spacing-02 0 0;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO: move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),o.locals={workspace:"-cc-esm-active-prescriptions__root__workspace___+xqk5",header:"-cc-esm-active-prescriptions__root__header___G1X3T",subtitle:"-cc-esm-active-prescriptions__root__subtitle___kRieu",section:"-cc-esm-active-prescriptions__root__section___61mCr",fieldLabel:"-cc-esm-active-prescriptions__root__fieldLabel___F2zAd",tabContent:"-cc-esm-active-prescriptions__root__tabContent___DnbmQ",fieldGroup:"-cc-esm-active-prescriptions__root__fieldGroup___3aiba",helperText:"-cc-esm-active-prescriptions__root__helperText___sr2T2",ordersList:"-cc-esm-active-prescriptions__root__ordersList___jcCvy",orderLabel:"-cc-esm-active-prescriptions__root__orderLabel___3oBY3",orderName:"-cc-esm-active-prescriptions__root__orderName___QGKUy",orderMeta:"-cc-esm-active-prescriptions__root__orderMeta___S7cGO",selectionSummary:"-cc-esm-active-prescriptions__root__selectionSummary___TD9ka"};const l=o},7432(e,n,t){t.r(n),t.d(n,{default:()=>k});var a=t(6072),i=t(4520),s=t(2076),o=t(5987),l=t(9324),r=encodeURIComponent("custom:(uuid,display,orderNumber,concept:(uuid,display),careSetting:(uuid,display),dateActivated)"),c=t(5072),p=t.n(c),d=t(7825),u=t.n(d),g=t(7659),f=t.n(g),h=t(5056),y=t.n(h),b=t(540),m=t.n(b),$=t(1113),A=t.n($),v=t(6052),_={};_.styleTagTransform=A(),_.setAttributes=y(),_.insert=f().bind(null,"head"),_.domAPI=u(),_.insertStyleElement=m(),p()(v.A,_);const x=v.A&&v.A.locals?v.A.locals:void 0;function w(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function C(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,s=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(s.push(a.value),!n||s.length!==n);o=!0);}catch(e){l=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw i}}return s}}(e,n)||function(e,n){if(e){if("string"==typeof e)return w(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?w(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const k=function(e){var n=e.patientUuid,t=(0,s.useTranslation)().t,c=C((0,a.useState)("new"),2),p=c[0],d=c[1],u=C((0,a.useState)(null),2),g=u[0],f=u[1],h=C((0,a.useState)(""),2),y=h[0],b=h[1],m=C((0,a.useState)(new Set),2),$=m[0],A=m[1],v=(0,o.useLocations)(),_=function(e){var n,t,a,i=e?"".concat(o.restBaseUrl,"/order?patient=").concat(e,"&status=active&v=").concat(r):null,s=(0,l.Ay)(i,o.openmrsFetch),c=s.data,p=s.error,d=s.isLoading,u=s.mutate;return{orders:null!==(n=null==c||null===(a=c.data)||void 0===a||null===(t=a.results)||void 0===t?void 0:t.map(function(e){var n,t,a,i;return{uuid:e.uuid,conceptName:null!==(n=null!==(t=null!==(a=null===(i=e.concept)||void 0===i?void 0:i.display)&&void 0!==a?a:e.display)&&void 0!==t?t:e.orderNumber)&&void 0!==n?n:e.uuid,orderNumber:e.orderNumber,display:e.display}}))&&void 0!==n?n:[],isLoading:d,error:p,refresh:u}}(n),w=_.orders,k=_.isLoading,z=_.error,M=(0,a.useMemo)(function(){return null!=v?v:[]},[v]),E=$.size>0?t("selectedOrdersCount",{count:$.size}):null;return a.createElement("div",{className:x.workspace},a.createElement("div",{className:x.header},a.createElement("h2",null,t("activePrescriptionsWorkspaceTitle","Active prescriptions")),a.createElement("p",{className:x.subtitle},t("activePrescriptionsHelper","Review the patient context, choose the visit details, and add the matching orders to the prescription."))),a.createElement("section",{className:x.section},a.createElement("p",{className:x.fieldLabel},t("visitTimingLabel","The visit is")),a.createElement(i.tUM,{selectedIndex:"new"===p?0:1,onChange:function(e){var n=e.selectedIndex;return d(0===n?"new":"past")}},a.createElement(i.wbY,{"aria-label":t("visitTimingLabel","The visit is")},a.createElement(i.ozo,null,t("visitTimingNew","New")),a.createElement(i.ozo,null,t("visitTimingPast","In the past"))),a.createElement(i.T2N,null,a.createElement(i.KpK,{className:x.tabContent},a.createElement("div",{className:x.fieldGroup},a.createElement(i.a32,{id:"visit-location",items:M,itemToString:function(e){var n;return null!==(n=null==e?void 0:e.display)&&void 0!==n?n:""},selectedItem:g,onChange:function(e){var n=e.selectedItem;return f(null!=n?n:null)},placeholder:t("visitLocationPlaceholder","Select a location"),titleText:t("visitLocationHeading","Visit location"),helperText:t("visitLocationHelper","Select where the visit will take place.")})),a.createElement("div",{className:x.fieldGroup},a.createElement("p",{className:x.fieldLabel},t("visitTypeHeading","Visit type")),a.createElement("p",{className:x.helperText},t("visitTypeHelper","Select the orders that should be included in this prescription.")),n?z?a.createElement(i.jeF,{lowContrast:!0,kind:"error",title:t("ordersErrorTitle","Unable to load orders"),subtitle:t("ordersErrorSubtitle","Try again or refresh the patient chart.")}):k?a.createElement(i.OuH,{description:"".concat(t("loading","Loading"),"...")}):w.length?a.createElement(a.Fragment,null,a.createElement("div",{className:x.ordersList,role:"group","aria-label":t("visitTypeHeading","Visit type")},w.map(function(e){return a.createElement(i.Sc0,{key:e.uuid,id:"order-".concat(e.uuid),labelText:a.createElement("span",{className:x.orderLabel},a.createElement("span",{className:x.orderName},e.conceptName),e.display&&a.createElement("span",{className:x.orderMeta},e.display),!e.display&&e.orderNumber&&a.createElement("span",{className:x.orderMeta},e.orderNumber)),checked:$.has(e.uuid),onChange:function(){return n=e.uuid,void A(function(e){var t=new Set(e);return t.has(n)?t.delete(n):t.add(n),t});var n}})})),E?a.createElement("p",{className:x.selectionSummary},E):null):a.createElement(i.jeF,{lowContrast:!0,kind:"info",title:t("ordersEmptyState","There are no orders for this patient yet.")}):a.createElement(i.jeF,{lowContrast:!0,kind:"warning",title:t("ordersMissingPatientTitle","Select a patient to continue"),subtitle:t("ordersMissingPatientSubtitle","Launch this workspace from a patient chart to review their orders.")})),a.createElement("div",{className:x.fieldGroup},a.createElement(i.ksK,{id:"insurance-policy",labelText:t("insurancePolicyNumberLabel","Insurance Policy Number (optional)"),placeholder:t("insurancePolicyNumberPlaceholder","Enter the policy number"),value:y,onChange:function(e){return b(e.target.value)}}))),a.createElement(i.KpK,{className:x.tabContent},a.createElement(i.jeF,{lowContrast:!0,kind:"info",title:t("inPastTabPlaceholderTitle","Historic prescriptions will be available soon"),subtitle:t("inPastTabPlaceholderSubtitle","Switch back to the New tab to manage current orders.")}))))))}}}]);
package/dist/499.js CHANGED
@@ -1 +1 @@
1
- (globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[499],{2499(e,n,t){"use strict";t.r(n),t.d(n,{blueBox:()=>h,brandBox:()=>_,importTranslation:()=>d,prescriptionsActionButton:()=>y,redBox:()=>m,root:()=>v,startupApp:()=>f});var r=t(5987),c={casualGreeting:{_type:r.Type.Boolean,_default:!1,_description:"Whether to use a casual greeting (or a formal one)."},whoToGreet:{_type:r.Type.Array,_default:["World"],_description:"Who should be greeted. Names will be separated by a comma and space.",_elements:{_type:r.Type.String},_validators:[(0,r.validator)(function(e){return e.length>0},"At least one person must be greeted.")]}},o=t(6072),i=t(771),s=t(5934),a=t(2076),p=function(){return(0,r.launchWorkspace)("active-prescriptions")};var u="@cc-openmrs/cc-esm-active-prescriptions",l={featureName:"active-prescriptions",moduleName:u},d=t(4767);function f(){(0,r.defineConfigSchema)(u,c)}var m=(0,r.getAsyncLifecycle)(function(){return t.e(319).then(t.bind(t,4319))},l),h=(0,r.getAsyncLifecycle)(function(){return t.e(966).then(t.bind(t,966))},l),_=(0,r.getAsyncLifecycle)(function(){return t.e(537).then(t.bind(t,1537))},l),y=(0,r.getSyncLifecycle)(function(){var e=(0,(0,a.useTranslation)().t)("activePrescriptions","Active prescriptions");return o.createElement(s.ED,{getIcon:function(e){return o.createElement(i.sV,e)},label:e,iconDescription:e,handler:p,type:"active-prescriptions"})},l),v=(0,r.getAsyncLifecycle)(function(){return t.e(217).then(t.bind(t,7217))},l)},4767(e,n,t){var r={"./am.json":[1197,[197]],"./en.json":[4300,[300]],"./es.json":[3099,[99]],"./fr.json":[4055,[55]],"./he.json":[2271,[652]],"./km.json":[6716,[335]],"./pt.json":[6679,[679]]};function c(e){try{if(!t.o(r,e))return Promise.resolve().then(()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n})}catch(e){return Promise.reject(e)}var n=r[e],c=n[0];return t.e(n[1][0]).then(()=>t(c))}c.keys=()=>Object.keys(r),c.id=4767,e.exports=c}}]);
1
+ (globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[499],{2499(e,n,t){"use strict";t.r(n),t.d(n,{blueBox:()=>h,brandBox:()=>_,importTranslation:()=>d,prescriptionsActionButton:()=>y,redBox:()=>m,root:()=>v,startupApp:()=>f});var r=t(5987),c={casualGreeting:{_type:r.Type.Boolean,_default:!1,_description:"Whether to use a casual greeting (or a formal one)."},whoToGreet:{_type:r.Type.Array,_default:["World"],_description:"Who should be greeted. Names will be separated by a comma and space.",_elements:{_type:r.Type.String},_validators:[(0,r.validator)(function(e){return e.length>0},"At least one person must be greeted.")]}},o=t(6072),i=t(771),s=t(4968),a=t(2076),p=function(){return(0,r.launchWorkspace)("active-prescriptions")};var u="@cc-openmrs/cc-esm-active-prescriptions",l={featureName:"active-prescriptions",moduleName:u},d=t(4767);function f(){(0,r.defineConfigSchema)(u,c)}var m=(0,r.getAsyncLifecycle)(function(){return t.e(319).then(t.bind(t,4319))},l),h=(0,r.getAsyncLifecycle)(function(){return t.e(966).then(t.bind(t,966))},l),_=(0,r.getAsyncLifecycle)(function(){return t.e(537).then(t.bind(t,1537))},l),y=(0,r.getSyncLifecycle)(function(){var e=(0,(0,a.useTranslation)().t)("activePrescriptions","Active prescriptions");return o.createElement(s.ED,{getIcon:function(e){return o.createElement(i.sV,e)},label:e,iconDescription:e,handler:p,type:"active-prescriptions"})},l),v=(0,r.getAsyncLifecycle)(function(){return t.e(432).then(t.bind(t,7432))},l)},4767(e,n,t){var r={"./am.json":[1197,[197]],"./en.json":[4300,[300]],"./es.json":[3099,[99]],"./fr.json":[4055,[55]],"./he.json":[2271,[652]],"./km.json":[6716,[335]],"./pt.json":[6679,[679]]};function c(e){try{if(!t.o(r,e))return Promise.resolve().then(()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n})}catch(e){return Promise.reject(e)}var n=r[e],c=n[0];return t.e(n[1][0]).then(()=>t(c))}c.keys=()=>Object.keys(r),c.id=4767,e.exports=c}}]);
package/dist/840.js CHANGED
@@ -1 +1 @@
1
- (globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[840],{8944(e,t,r){const n=Symbol("SemVer ANY");class o{static get ANY(){return n}constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===!!t.loose)return e;e=e.value}c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?s[i.COMPARATORLOOSE]:s[i.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return a(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new p(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new p(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),s=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),c=a(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=a(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||s&&i||c||l}}e.exports=o;const{re:s,t:i}=r(3238),a=r(8943),c=r(1832),l=r(5476),p=r(6791)},6791(e,t,r){class n{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=this.options.loose;e=e.trim();const r=t?a[c.HYPHENRANGELOOSE]:a[c.HYPHENRANGE];e=e.replace(r,v(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(a[c.COMPARATORTRIM],l),s("comparator trim",e,a[c.COMPARATORTRIM]),e=(e=(e=e.replace(a[c.TILDETRIM],p)).replace(a[c.CARETTRIM],u)).split(/\s+/).join(" ");const n=t?a[c.COMPARATORLOOSE]:a[c.COMPARATOR];return e.split(" ").map(e=>h(e,this.options)).join(" ").split(/\s+/).map(e=>y(e,this.options)).filter(this.options.loose?e=>!!e.match(n):()=>!0).map(e=>new o(e,this.options))}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some(r=>f(r,t)&&e.set.some(e=>f(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(S(this.set[t],e,this.options))return!0;return!1}}e.exports=n;const o=r(8944),s=r(1832),i=r(5476),{re:a,t:c,comparatorTrimReplace:l,tildeTrimReplace:p,caretTrimReplace:u}=r(3238),f=(e,t)=>{let r=!0;const n=e.slice();let o=n.pop();for(;r&&n.length;)r=n.every(e=>o.intersects(e,t)),o=n.pop();return r},h=(e,t)=>(s("comp",e,t),e=g(e,t),s("caret",e),e=d(e,t),s("tildes",e),e=$(e,t),s("xrange",e),e=w(e,t),s("stars",e),e),m=e=>!e||"x"===e.toLowerCase()||"*"===e,d=(e,t)=>e.trim().split(/\s+/).map(e=>E(e,t)).join(" "),E=(e,t)=>{const r=t.loose?a[c.TILDELOOSE]:a[c.TILDE];return e.replace(r,(t,r,n,o,i)=>{let a;return s("tilde",e,t,r,n,o,i),m(r)?a="":m(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:m(o)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(s("replaceTilde pr",i),a=`>=${r}.${n}.${o}-${i} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,s("tilde return",a),a})},g=(e,t)=>e.trim().split(/\s+/).map(e=>I(e,t)).join(" "),I=(e,t)=>{s("caret",e,t);const r=t.loose?a[c.CARETLOOSE]:a[c.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,o,i,a)=>{let c;return s("caret",e,t,r,o,i,a),m(r)?c="":m(o)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:m(i)?c="0"===r?`>=${r}.${o}.0${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),c="0"===r?"0"===o?`>=${r}.${o}.${i}-${a} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}-${a} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i}-${a} <${+r+1}.0.0-0`):(s("no pr"),c="0"===r?"0"===o?`>=${r}.${o}.${i}${n} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i} <${+r+1}.0.0-0`),s("caret return",c),c})},$=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map(e=>O(e,t)).join(" ")),O=(e,t)=>{e=e.trim();const r=t.loose?a[c.XRANGELOOSE]:a[c.XRANGE];return e.replace(r,(r,n,o,i,a,c)=>{s("xRange",e,r,n,o,i,a,c);const l=m(o),p=l||m(i),u=p||m(a),f=u;return"="===n&&f&&(n=""),c=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&f?(p&&(i=0),a=0,">"===n?(n=">=",p?(o=+o+1,i=0,a=0):(i=+i+1,a=0)):"<="===n&&(n="<",p?o=+o+1:i=+i+1),"<"===n&&(c="-0"),r=`${n+o}.${i}.${a}${c}`):p?r=`>=${o}.0.0${c} <${+o+1}.0.0-0`:u&&(r=`>=${o}.${i}.0${c} <${o}.${+i+1}.0-0`),s("xRange return",r),r})},w=(e,t)=>(s("replaceStars",e,t),e.trim().replace(a[c.STAR],"")),y=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),v=e=>(t,r,n,o,s,i,a,c,l,p,u,f,h)=>`${r=m(n)?"":m(o)?`>=${n}.0.0${e?"-0":""}`:m(s)?`>=${n}.${o}.0${e?"-0":""}`:i?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=m(l)?"":m(p)?`<${+l+1}.0.0-0`:m(u)?`<${l}.${+p+1}.0-0`:f?`<=${l}.${p}.${u}-${f}`:e?`<${l}.${p}.${+u+1}-0`:`<=${c}`}`.trim(),S=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(s(e[r].semver),e[r].semver!==o.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},5476(e,t,r){const n=r(1832),{MAX_LENGTH:o,MAX_SAFE_INTEGER:s}=r(6516),{re:i,t:a}=r(3238),{compareIdentifiers:c}=r(803);class l{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?i[a.LOOSE]:i[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<s)return t}return e}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=l},5446(e,t,r){const n=r(848);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},8943(e,t,r){const n=r(5857),o=r(9983),s=r(1375),i=r(7785),a=r(6531),c=r(8576);e.exports=(e,t,r,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,l);case"!=":return o(e,r,l);case">":return s(e,r,l);case">=":return i(e,r,l);case"<":return a(e,r,l);case"<=":return c(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}}},7450(e,t,r){const n=r(5476),o=r(848),{re:s,t:i}=r(3238);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=s[i.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),s[i.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;s[i.COERCERTL].lastIndex=-1}else r=e.match(s[i.COERCE]);return null===r?null:o(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},5373(e,t,r){const n=r(5476);e.exports=(e,t,r)=>{const o=new n(e,r),s=new n(t,r);return o.compare(s)||o.compareBuild(s)}},3507(e,t,r){const n=r(3296);e.exports=(e,t)=>n(e,t,!0)},3296(e,t,r){const n=r(5476);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},5720(e,t,r){const n=r(848),o=r(5857);e.exports=(e,t)=>{if(o(e,t))return null;{const r=n(e),o=n(t),s=r.prerelease.length||o.prerelease.length,i=s?"pre":"",a=s?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==o[e])return i+e;return a}}},5857(e,t,r){const n=r(3296);e.exports=(e,t,r)=>0===n(e,t,r)},1375(e,t,r){const n=r(3296);e.exports=(e,t,r)=>n(e,t,r)>0},7785(e,t,r){const n=r(3296);e.exports=(e,t,r)=>n(e,t,r)>=0},6431(e,t,r){const n=r(5476);e.exports=(e,t,r,o)=>{"string"==typeof r&&(o=r,r=void 0);try{return new n(e,r).inc(t,o).version}catch(e){return null}}},6531(e,t,r){const n=r(3296);e.exports=(e,t,r)=>n(e,t,r)<0},8576(e,t,r){const n=r(3296);e.exports=(e,t,r)=>n(e,t,r)<=0},1274(e,t,r){const n=r(5476);e.exports=(e,t)=>new n(e,t).major},9646(e,t,r){const n=r(5476);e.exports=(e,t)=>new n(e,t).minor},9983(e,t,r){const n=r(3296);e.exports=(e,t,r)=>0!==n(e,t,r)},848(e,t,r){const{MAX_LENGTH:n}=r(6516),{re:o,t:s}=r(3238),i=r(5476);e.exports=(e,t)=>{if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>n)return null;if(!(t.loose?o[s.LOOSE]:o[s.FULL]).test(e))return null;try{return new i(e,t)}catch(e){return null}}},1821(e,t,r){const n=r(5476);e.exports=(e,t)=>new n(e,t).patch},5889(e,t,r){const n=r(848);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},7298(e,t,r){const n=r(3296);e.exports=(e,t,r)=>n(t,e,r)},1413(e,t,r){const n=r(5373);e.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))},198(e,t,r){const n=r(6791);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},679(e,t,r){const n=r(5373);e.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))},6473(e,t,r){const n=r(848);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},4469(e,t,r){const n=r(3238);e.exports={re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r(6516).SEMVER_SPEC_VERSION,SemVer:r(5476),compareIdentifiers:r(803).compareIdentifiers,rcompareIdentifiers:r(803).rcompareIdentifiers,parse:r(848),valid:r(6473),clean:r(5446),inc:r(6431),diff:r(5720),major:r(1274),minor:r(9646),patch:r(1821),prerelease:r(5889),compare:r(3296),rcompare:r(7298),compareLoose:r(3507),compareBuild:r(5373),sort:r(679),rsort:r(1413),gt:r(1375),lt:r(6531),eq:r(5857),neq:r(9983),gte:r(7785),lte:r(8576),cmp:r(8943),coerce:r(7450),Comparator:r(8944),Range:r(6791),satisfies:r(198),toComparators:r(2111),maxSatisfying:r(9420),minSatisfying:r(1150),minVersion:r(7133),validRange:r(4578),outside:r(4835),gtr:r(259),ltr:r(9342),intersects:r(3788),simplifyRange:r(4877),subset:r(5960)}},6516(e){const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},1832(e){const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},803(e){const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),o=t.test(r);return n&&o&&(e=+e,r=+r),e===r?0:n&&!o?-1:o&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},3238(e,t,r){const{MAX_SAFE_COMPONENT_LENGTH:n}=r(6516),o=r(1832),s=(t=e.exports={}).re=[],i=t.src=[],a=t.t={};let c=0;const l=(e,t,r)=>{const n=c++;o(n,t),a[e]=n,i[n]=t,s[n]=new RegExp(t,r?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${i[a.NUMERICIDENTIFIER]}|${i[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${i[a.NUMERICIDENTIFIERLOOSE]}|${i[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${i[a.PRERELEASEIDENTIFIER]}(?:\\.${i[a.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${i[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[a.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${i[a.BUILDIDENTIFIER]}(?:\\.${i[a.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${i[a.MAINVERSION]}${i[a.PRERELEASE]}?${i[a.BUILD]}?`),l("FULL",`^${i[a.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${i[a.MAINVERSIONLOOSE]}${i[a.PRERELEASELOOSE]}?${i[a.BUILD]}?`),l("LOOSE",`^${i[a.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",`${i[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),l("XRANGEIDENTIFIER",`${i[a.NUMERICIDENTIFIER]}|x|X|\\*`),l("XRANGEPLAIN",`[v=\\s]*(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:${i[a.PRERELEASE]})?${i[a.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:${i[a.PRERELEASELOOSE]})?${i[a.BUILD]}?)?)?`),l("XRANGE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),l("COERCERTL",i[a.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${i[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${i[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${i[a.LONECARET]}${i[a.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${i[a.LONECARET]}${i[a.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${i[a.GTLT]}\\s*(${i[a.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]}|${i[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${i[a.XRANGEPLAIN]})\\s+-\\s+(${i[a.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${i[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[a.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0.0.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},259(e,t,r){const n=r(4835);e.exports=(e,t,r)=>n(e,t,">",r)},3788(e,t,r){const n=r(6791);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t))},9342(e,t,r){const n=r(4835);e.exports=(e,t,r)=>n(e,t,"<",r)},9420(e,t,r){const n=r(5476),o=r(6791);e.exports=(e,t,r)=>{let s=null,i=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(s&&-1!==i.compare(e)||(s=e,i=new n(s,r)))}),s}},1150(e,t,r){const n=r(5476),o=r(6791);e.exports=(e,t,r)=>{let s=null,i=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(s&&1!==i.compare(e)||(s=e,i=new n(s,r)))}),s}},7133(e,t,r){const n=r(5476),o=r(6791),s=r(1375);e.exports=(e,t)=>{e=new o(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t)e.set[t].forEach(e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!s(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}});return r&&e.test(r)?r:null}},4835(e,t,r){const n=r(5476),o=r(8944),{ANY:s}=o,i=r(6791),a=r(198),c=r(1375),l=r(6531),p=r(8576),u=r(7785);e.exports=(e,t,r,f)=>{let h,m,d,E,g;switch(e=new n(e,f),t=new i(t,f),r){case">":h=c,m=p,d=l,E=">",g=">=";break;case"<":h=l,m=u,d=c,E="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,f))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let i=null,a=null;if(n.forEach(e=>{e.semver===s&&(e=new o(">=0.0.0")),i=i||e,a=a||e,h(e.semver,i.semver,f)?i=e:d(e.semver,a.semver,f)&&(a=e)}),i.operator===E||i.operator===g)return!1;if((!a.operator||a.operator===E)&&m(e,a.semver))return!1;if(a.operator===g&&d(e,a.semver))return!1}return!0}},4877(e,t,r){const n=r(198),o=r(3296);e.exports=(e,t,r)=>{const s=[];let i=null,a=null;const c=e.sort((e,t)=>o(e,t,r));for(const e of c)n(e,t,r)?(a=e,i||(i=e)):(a&&s.push([i,a]),a=null,i=null);i&&s.push([i,null]);const l=[];for(const[e,t]of s)e===t?l.push(e):t||e!==c[0]?t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`):l.push("*");const p=l.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return p.length<u.length?p:t}},5960(e,t,r){const n=r(6791),{ANY:o}=r(8944),s=r(198),i=r(3296),a=(e,t,r)=>{if(1===e.length&&e[0].semver===o)return 1===t.length&&t[0].semver===o;const n=new Set;let a,p,u,f,h,m,d;for(const t of e)">"===t.operator||">="===t.operator?a=c(a,t,r):"<"===t.operator||"<="===t.operator?p=l(p,t,r):n.add(t.semver);if(n.size>1)return null;if(a&&p){if(u=i(a.semver,p.semver,r),u>0)return null;if(0===u&&(">="!==a.operator||"<="!==p.operator))return null}for(const e of n){if(a&&!s(e,String(a),r))return null;if(p&&!s(e,String(p),r))return null;for(const n of t)if(!s(e,String(n),r))return!1;return!0}for(const e of t){if(d=d||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,a)if(">"===e.operator||">="===e.operator){if(f=c(a,e,r),f===e)return!1}else if(">="===a.operator&&!s(a.semver,String(e),r))return!1;if(p)if("<"===e.operator||"<="===e.operator){if(h=l(p,e,r),h===e)return!1}else if("<="===p.operator&&!s(p.semver,String(e),r))return!1;if(!e.operator&&(p||a)&&0!==u)return!1}return!(a&&m&&!p&&0!==u||p&&d&&!a&&0!==u)},c=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r)=>{e=new n(e,r),t=new n(t,r);let o=!1;e:for(const n of e.set){for(const e of t.set){const t=a(n,e,r);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}},2111(e,t,r){const n=r(6791);e.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},4578(e,t,r){const n=r(6791);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},6840(e,t,r){"use strict";r.r(t),r.d(t,{ActionMenu:()=>X.Wy,ActionMenuButton:()=>X.ED,ActionableNotificationComponent:()=>X.dr,ActivityIcon:()=>X.np,AddIcon:()=>X.RE,AllergiesIcon:()=>X.Ug,AppointmentsPictogram:()=>X.B1,ArrowDownIcon:()=>X.ZL,ArrowLeftIcon:()=>X.A6,ArrowRightIcon:()=>X.fl,ArrowUpIcon:()=>X.Kp,AttachmentIcon:()=>X.Pt,BabyIcon:()=>X.qY,Breakpoint:()=>X.EA,CalendarHeatMapIcon:()=>X.mm,CalendarIcon:()=>X.CT,CaretDownIcon:()=>X.bD,CaretLeftIcon:()=>X.eC,CaretRightIcon:()=>X.JJ,CaretUpIcon:()=>X.Sw,ChartAverageIcon:()=>X.ZH,CheckmarkFilledIcon:()=>X.Ft,CheckmarkOutlineIcon:()=>X.pm,ChemistryIcon:()=>X.W4,ChevronDownIcon:()=>X.D3,ChevronLeftIcon:()=>X.YJ,ChevronRightIcon:()=>X.vK,ChevronUpIcon:()=>X.Mt,CloseFilledIcon:()=>X.oC,CloseIcon:()=>X.US,CloseOutlineIcon:()=>X.Wd,ComponentContext:()=>S.zq,ConditionsIcon:()=>X.ci,ConfigurableLink:()=>S.i_,CustomOverflowMenu:()=>X.TQ,DashboardExtension:()=>X.cJ,DiagnosisTags:()=>X.Fz,DocumentAttachmentIcon:()=>X.Ce,DocumentIcon:()=>X.py,DownloadIcon:()=>X.s3,DrugOrderIcon:()=>X.uq,EditIcon:()=>X.qU,ErrorState:()=>X.W5,EventScheduleIcon:()=>X.X,EventsIcon:()=>X.Jc,Extension:()=>S.YY,ExtensionSlot:()=>S.W3,GenderFemaleIcon:()=>X.XB,GenderMaleIcon:()=>X.sz,GenderOtherIcon:()=>X.hX,GenderUnknownIcon:()=>X.x1,GenericOrderTypeIcon:()=>X.n,GroupAccessIcon:()=>X.Py,GroupIcon:()=>X.nF,HomePictogram:()=>X.KK,HospitalBedIcon:()=>X.jM,Icon:()=>X.In,ImageMedicalIcon:()=>X.Ix,InPatientPictogram:()=>X.th,InformationFilledIcon:()=>X._e,InformationIcon:()=>X.uQ,InformationSquareIcon:()=>X.Zr,InventoryManagementIcon:()=>X.vF,LabOrderIcon:()=>X.hi,LaboratoryPictogram:()=>X.eh,LeftNavMenu:()=>X.Oj,ListCheckedIcon:()=>X.Rt,LocationIcon:()=>X.BT,LocationPicker:()=>X.MT,MaterialOrderIcon:()=>X.zZ,MaximizeIcon:()=>X._X,MaybeIcon:()=>X.oy,MaybePictogram:()=>X.bm,MedicationIcon:()=>X.Fn,MessageQueueIcon:()=>X.uF,MicroscopeIcon:()=>X.u4,MoneyIcon:()=>X.yB,MotherIcon:()=>X.XE,MovementIcon:()=>X.ly,Notification:()=>X.Eg,OpenmrsAppContext:()=>S.p6,OpenmrsDatePicker:()=>X.rn,OpenmrsDateRangePicker:()=>X.Ye,OpenmrsFetchError:()=>n.$f,OverflowMenuHorizontalIcon:()=>X.rv,OverflowMenuVerticalIcon:()=>X.Rn,PageHeader:()=>X.zY,PageHeaderContent:()=>X.gp,PasswordIcon:()=>X.BG,PatientBannerActionsMenu:()=>X.k1,PatientBannerContactDetails:()=>X.m5,PatientBannerPatientIdentifiers:()=>X.XI,PatientBannerPatientInfo:()=>X.zv,PatientBannerToggleContactDetailsButton:()=>X.Qg,PatientListsPictogram:()=>X.$2,PatientPhoto:()=>X.yV,PedestrianFamilyIcon:()=>X.PP,PenIcon:()=>X.rZ,PharmacyPictogram:()=>X.w2,Pictogram:()=>X.bF,PrinterIcon:()=>X.ww,ProcedureOrderIcon:()=>X.H0,ProgramsIcon:()=>X.lq,RadiologyIcon:()=>X.SA,ReferralOrderIcon:()=>X.tC,RegistrationPictogram:()=>X.et,RenderIfValueIsTruthy:()=>S.fS,RenewIcon:()=>X.JT,ReportIcon:()=>X.cQ,ResetIcon:()=>X.NA,ResponsiveWrapper:()=>X.KF,SaveIcon:()=>X.LP,SearchIcon:()=>X.WI,ServiceQueuesPictogram:()=>X.Y2,ShoppingCartAddItemIcon:()=>X.Uv,ShoppingCartArrowDownIcon:()=>X.Lf,ShoppingCartIcon:()=>X.aJ,Snackbar:()=>X.qb,StickyNoteAddIcon:()=>X.OC,StockManagementPictogram:()=>X.q_,SwitcherIcon:()=>X.RF,SyringeIcon:()=>X.hZ,TableIcon:()=>X.Kb,TableOfContentsIcon:()=>X.pY,TimeIcon:()=>X.b1,Toast:()=>X.y8,ToolsIcon:()=>X.dw,TranslateIcon:()=>X.z$,TrashCanIcon:()=>X.EJ,TreeViewAltIcon:()=>X.MO,Type:()=>o.ZU,UserAvatarIcon:()=>X.yD,UserFollowIcon:()=>X.os,UserHasAccess:()=>S.qw,UserIcon:()=>X.ny,UserXrayIcon:()=>X.fe,ViewIcon:()=>X.MZ,ViewOffIcon:()=>X.Oi,VisitMode:()=>f.dx,VisitStatus:()=>f.Cj,WarningIcon:()=>X.id,WorkspaceContainer:()=>X.Xv,WorkspaceNotification:()=>X.tM,activateOfflineCapability:()=>v.nr,addRoutesOverride:()=>j,age:()=>H.K,attach:()=>O.K0,attachmentUrl:()=>f.Zu,backendDependencies:()=>n.QE,beginEditSynchronizationItem:()=>v.FO,canAccessStorage:()=>M,canBeginEditSynchronizationItemsOfType:()=>v.xN,canCloseWorkspaceWithoutPrompting:()=>X.Sv,cancelPrompt:()=>X.zl,changeWorkspaceContext:()=>X.JK,checkStatus:()=>O.dO,checkStatusFor:()=>O.Ef,cleanupObsoleteFeatureFlags:()=>w.D3,clearConfigErrors:()=>o.Nh,clearCurrentUser:()=>n.g$,clearHistory:()=>y.g4,closeAllWorkspaces:()=>X.G_,closeWorkspace:()=>X.MJ,compile:()=>m.wE,configExtensionStore:()=>o.hs,configInternalStore:()=>o.Rt,convertToLocaleCalendar:()=>z.d4,createAttachment:()=>f.cD,createErrorHandler:()=>h.J,createGlobalStore:()=>W.Zd,createUseStore:()=>S.rr,defaultVisitCustomRepresentation:()=>f.Rb,defineConfigSchema:()=>o.T0,defineExtensionConfigSchema:()=>o.ks,deleteAttachmentPermanently:()=>f.SY,deleteSynchronizationItem:()=>v.lY,detach:()=>O.Yo,detachAll:()=>O.No,dispatchActionableNotificationShown:()=>s.LQ,dispatchConnectivityChanged:()=>s.Yt,dispatchNotificationShown:()=>s.FI,dispatchPrecacheStaticDependencies:()=>s.pc,dispatchSnackbarShown:()=>s.$3,dispatchToastShown:()=>s.Vt,displayName:()=>Y.QC,esmStyleGuideSchema:()=>X.bt,evaluate:()=>m._3,evaluateAsBoolean:()=>m.eb,evaluateAsBooleanAsync:()=>m.Gz,evaluateAsNumber:()=>m.dX,evaluateAsNumberAsync:()=>m.$F,evaluateAsType:()=>m.Sj,evaluateAsTypeAsync:()=>m.uN,evaluateAsync:()=>m.mv,extractVariableNames:()=>g,featureFlagsStore:()=>w.jX,fetchCurrentPatient:()=>f.hG,fhirBaseUrl:()=>n.IU,filterBreadcrumbs:()=>y.D_,finishRegisteringAllApps:()=>D,formatDate:()=>z.Yq,formatDatetime:()=>z.Rt,formatDuration:()=>z.a3,formatPartialDate:()=>z.LW,formatPatientName:()=>Y.Qr,formatTime:()=>z.fU,formattedName:()=>Y.qK,generateOfflineUuid:()=>v.sA,getAssignedExtensions:()=>O.zx,getAsyncExtensionLifecycle:()=>S.sc,getAsyncLifecycle:()=>S.ns,getAttachmentByUuid:()=>f.KU,getAttachments:()=>f.Bv,getBreadcrumbs:()=>y.lz,getBreadcrumbsFor:()=>y.qh,getConfig:()=>o.zj,getConfigStore:()=>o.IS,getCoreTranslation:()=>i.V,getCurrentImportMap:()=>p,getCurrentOfflineMode:()=>v.wJ,getCurrentUser:()=>n.HW,getDefaultCalendar:()=>z.a7,getDefaultsFromConfigSchema:()=>Q,getDynamicOfflineDataEntries:()=>v.FE,getDynamicOfflineDataEntriesFor:()=>v.WA,getDynamicOfflineDataHandlers:()=>v.qb,getExtensionConfig:()=>o.UY,getExtensionConfigFromExtensionSlotStore:()=>o.g$,getExtensionConfigFromStore:()=>o.P0,getExtensionInternalStore:()=>O.a9,getExtensionNameFromId:()=>O.ES,getExtensionRegistration:()=>O.Tj,getExtensionRegistrationFrom:()=>O.xg,getExtensionSlotConfig:()=>o.G9,getExtensionSlotConfigFromStore:()=>o.vu,getExtensionSlotsConfigStore:()=>o.YP,getExtensionStore:()=>O.zF,getExtensionsConfigStore:()=>o.GI,getFeatureFlag:()=>w.jj,getFhirServerPaginationHandlers:()=>S.mw,getFullSynchronizationItems:()=>v.C$,getFullSynchronizationItemsFor:()=>v.xc,getGlobalStore:()=>W.jf,getHistory:()=>y.JK,getLifecycle:()=>S.JK,getLocale:()=>q.J,getLocations:()=>f.Vs,getLoggedInUser:()=>n.xC,getModalRegistration:()=>O.Fg,getOfflineDb:()=>v.e,getOfflinePatientDataStore:()=>v.WK,getOfflineSynchronizationStore:()=>v.LM,getOmrsServiceWorker:()=>v.Rs,getPatientName:()=>Y.Vp,getPromptBeforeClosingFcn:()=>X.Oe,getSessionLocation:()=>n.Kx,getSessionStore:()=>n.EW,getStartedVisit:()=>f.DK,getSyncLifecycle:()=>S.g9,getSynchronizationItem:()=>v.Gp,getSynchronizationItems:()=>v.pb,getSynchronizationItemsFor:()=>v.Io,getTranslationOverrides:()=>o.td,getVisitStore:()=>f.BX,getVisitTypes:()=>f.Pu,getVisitsForPatient:()=>f.BR,getWorkspaceGroupRegistration:()=>O.Q_,getWorkspaceGroupStore:()=>X.e_,getWorkspaceRegistration:()=>O.Xb,getWorkspaceStore:()=>X.Xz,goBackInHistory:()=>y.tA,implementerToolsConfigStore:()=>o.tN,importDynamic:()=>c,inRange:()=>o.r4,integrateBreakpoints:()=>X.WM,interpolateString:()=>y.zl,interpolateUrl:()=>y.JG,isDesktop:()=>S.xl,isDevEnabled:()=>n.L7,isOfflineUuid:()=>v.bO,isOmrsDateStrict:()=>z.hl,isOmrsDateToday:()=>z.vU,isOnline:()=>J.s,isOpenmrsAppRoutes:()=>V,isOpenmrsRoutes:()=>_,isUrl:()=>o.gU,isUrlWithTemplateParameters:()=>o.qG,isVersionSatisfied:()=>re,jsep:()=>m.PQ,launchWorkspace:()=>X.TC,launchWorkspaceGroup:()=>X.aN,leftNavStore:()=>O.Gp,loadLifeCycles:()=>b,localStorageRoutesPrefix:()=>R,makeUrl:()=>n.Gm,messageOmrsServiceWorker:()=>v.ms,navigate:()=>y.oo,navigateAndLaunchWorkspace:()=>X.Fm,offlineUuidPrefix:()=>v.jU,omrsOfflineCachingStrategyHttpHeaderName:()=>v.JC,omrsOfflineResponseBodyHttpHeaderName:()=>v.UH,omrsOfflineResponseStatusHttpHeaderName:()=>v.Gj,oneOf:()=>o.yL,openmrsComponentDecorator:()=>S.F7,openmrsFetch:()=>n.lo,openmrsObservableFetch:()=>n.ut,parseDate:()=>z._U,preloadImport:()=>l,processConfig:()=>o.mq,promptBeforeClosing:()=>X.F3,provide:()=>o.Gt,putDynamicOfflineData:()=>v.yD,putDynamicOfflineDataFor:()=>v.ff,queueSynchronizationItem:()=>v.Zr,queueSynchronizationItemFor:()=>v.Iq,refetchCurrentUser:()=>n.yH,registerApp:()=>P,registerBreadcrumb:()=>y.vf,registerBreadcrumbs:()=>y.MY,registerDefaultCalendar:()=>z.XE,registerExtension:()=>O.VK,registerExtensionSlot:()=>O.FY,registerFeatureFlag:()=>w.uA,registerGlobalStore:()=>W.CE,registerModal:()=>O.Ju,registerModuleLoad:()=>o.kl,registerModuleWithConfigSystem:()=>o.FL,registerOfflinePatientHandler:()=>v.KG,registerOmrsServiceWorker:()=>v.sZ,registerTranslationNamespace:()=>o.GV,registerWorkspace:()=>O.pm,registerWorkspaceGroup:()=>O.io,removeDynamicOfflineData:()=>v.NU,removeDynamicOfflineDataFor:()=>v.wn,removeRoutesOverride:()=>G,renderActionableNotifications:()=>X.zf,renderExtension:()=>O.wG,renderInlineNotifications:()=>X.CU,renderLoadingSpinner:()=>X.uW,renderSnackbars:()=>X.q9,renderToasts:()=>X.f1,reportError:()=>h.N,reset:()=>O.cL,resetAllRoutesOverrides:()=>U,resetWorkspaceStore:()=>X._1,restBaseUrl:()=>n.Jj,retry:()=>ne,runSynchronization:()=>v.AO,saveVisit:()=>f.Ds,selectPreferredName:()=>Y.VO,sessionEndpoint:()=>n.Ct,sessionStore:()=>n.eA,setCurrentOfflineMode:()=>v.Og,setCurrentVisit:()=>f.NH,setFeatureFlag:()=>w.B4,setLeftNav:()=>O.Vx,setSessionLocation:()=>n.Gp,setUserLanguage:()=>n.E4,setUserProperties:()=>n.Fi,setupApiModule:()=>n.Y0,setupDynamicOfflineDataHandler:()=>v.iD,setupHistory:()=>y.Wh,setupModals:()=>X.EP,setupOfflineSync:()=>v.cy,shallowEqual:()=>K.b,showActionableNotification:()=>X.Zy,showModal:()=>X.to,showNotification:()=>X.Ds,showSnackbar:()=>X.td,showToast:()=>X.P0,showWorkspacePrompts:()=>X.ct,slugify:()=>a,subscribeActionableNotificationShown:()=>s.bK,subscribeConnectivity:()=>s.sT,subscribeConnectivityChanged:()=>s.gj,subscribeNotificationShown:()=>s.bJ,subscribePrecacheStaticDependencies:()=>s.ff,subscribeSnackbarShown:()=>s.ls,subscribeTo:()=>W.i7,subscribeToFeatureFlag:()=>w.sM,subscribeToastShown:()=>s.dX,syncAllDynamicOfflineData:()=>v.Td,syncDynamicOfflineData:()=>v.u1,syncOfflinePatientData:()=>v.sK,temporaryConfigStore:()=>o.H,toDateObjectStrict:()=>z.kQ,toLocationObject:()=>f.E$,toOmrsIsoString:()=>z.l0,toVisitTypeObject:()=>f.Qx,translateFrom:()=>i.t,tryRegisterExtension:()=>T,unsetLeftNav:()=>O.sr,updateInternalExtensionStore:()=>O.DQ,updateVisit:()=>f.xL,updateWorkspaceWindowState:()=>X._R,useAbortController:()=>S.Ie,useAppContext:()=>S.Us,useAssignedExtensionIds:()=>S.Tt,useAssignedExtensions:()=>S.CX,useAttachments:()=>S._9,useBodyScrollLock:()=>S.yJ,useConfig:()=>S.UK,useConnectedExtensions:()=>S.zD,useConnectivity:()=>S.Fx,useDebounce:()=>S.d7,useDefineAppContext:()=>S.jn,useEmrConfiguration:()=>S.E4,useExtensionInternalStore:()=>S.$B,useExtensionSlot:()=>S.br,useExtensionSlotMeta:()=>S.Wq,useExtensionSlotStore:()=>S.uL,useExtensionStore:()=>S.Gz,useFeatureFlag:()=>S.u,useFhirFetchAll:()=>S.oq,useFhirInfinite:()=>S.vL,useFhirPagination:()=>S.to,useForceUpdate:()=>S.CH,useLayoutType:()=>S.qv,useLeftNav:()=>S.if,useLeftNavStore:()=>S.TA,useLocations:()=>S.kH,useOnClickOutside:()=>S.Wr,useOnVisible:()=>S.Jm,useOpenmrsFetchAll:()=>S.Bf,useOpenmrsInfinite:()=>S.iy,useOpenmrsPagination:()=>S.Ed,useOpenmrsSWR:()=>S.M3,usePagination:()=>S.WQ,usePatient:()=>S.tQ,usePatientPhoto:()=>X.R9,usePrimaryIdentifierCode:()=>S.wJ,useRenderableExtensions:()=>S.oU,useSession:()=>S.wV,useStore:()=>S.Pj,useStoreWithActions:()=>S.mQ,useVisit:()=>S.fq,useVisitContextStore:()=>S.xH,useVisitTypes:()=>S.wr,useWorkspaces:()=>X.CH,userHasAccess:()=>n.st,validator:()=>o.Nc,validators:()=>o.y$,workspaceStore:()=>X.x9});var n=r(967),o=r(6963),s=r(8581),i=r(4652);function a(e){return e.replace(/[\/\-@]/g,"_")}async function c(e,t="./start",n){const o=!n?.maxLoadingTime||n.maxLoadingTime<=0?6e5:n.maxLoadingTime;let s;await Promise.race([l(e,n?.importMap),new Promise((t,r)=>{s=setTimeout(()=>{var t;r(new Error(`Could not resolve requested script, ${e}, within ${t=o,t<1e3?`${t} milliseconds`:t<6e4?`${Math.floor(t/1e3)} seconds`:t<36e5?`${Math.floor(t/6e4)} minutes`:t<864e5?`${Math.floor(t/36e5)} hours`:`${Math.floor(t/864e5)} days`}.`))},o)})]),s&&clearTimeout(s);const i=a(e),c=window[i];if("object"!=typeof(p=c)||null===p||!("init"in p)||"function"!=typeof p.init||!("get"in p)||"function"!=typeof p.get){const e=`The global variable ${i} does not refer to a federated module`;throw console.error(e),new Error(e)}var p;c.init(r.S.default);const u=(await c.get(t))();if("object"!=typeof u||null===u){const t=`Container for ${e} did not return an ESM module as expected`;throw console.error(t),new Error(t)}return u}async function l(e,t){if("string"!=typeof e||0===e.trim().length){const e="Attempted to call importDynamic() without supplying a package to load";throw console.error(e),new Error(e)}const r=a(e);if(!window[r]){const r=t??await p();if(!r.imports.hasOwnProperty(e)){const t=`Could not find the package ${e} defined in the current importmap`;throw console.error(t),new Error(t)}let n=r.imports[e];n.startsWith("./")&&(n=window.spaBase+n.substring(1));const o=!!window.localStorage.getItem(`import-map-override:${e}`);try{return await new Promise((e,t)=>{!function(e,t,r){const n=document.head.querySelector(`script[src="${e}"]`);let o=window[u];if(o||(o=window[u]=new Set([])),n)if(o.has(e)){let e,o,s;s=()=>{e&&n.removeEventListener("load",e),o&&n.removeEventListener("error",o)},e=()=>{s(),t(null)},o=e=>{s(),r(e.message)},n.addEventListener("load",e),n.addEventListener("error",o)}else console.warn(`Script at ${e} already loaded. Not loading it again.`),t(null);else{o.add(e);const n=document.createElement("script");n.src=e,n.type="text/javascript",n.async=!0;const s=setTimeout(()=>{console.error(`The script at ${e} did not load within 5 seconds. This may indicate an issue with the imports in the script's entry-point file or with the script's bundler configuration.`)},5e3);let i,a,c;c=()=>{clearTimeout(s),o.delete(e),i&&n.removeEventListener("load",i),a&&n.removeEventListener("error",a)},i=()=>{c(),t(null)},a=t=>{c();const n=`Failed to load script from ${e}`;console.error(n,t),r(t.message??n)},n.addEventListener("load",i),n.addEventListener("error",a),document.head.appendChild(n)}}(n,e,t)})}catch(e){return o&&(0,s.Vt)({kind:"error",title:(0,i.V)("scriptLoadingFailed","Error: Script failed to load"),description:(0,i.V)("scriptLoadingError","Failed to load overridden script from {{- url}}. Please check that the bundled script is available at the expected URL. Click the button below to reset all import map overrides.",{url:n}),actionButtonLabel:(0,i.V)("resetOverrides","Reset overrides"),onActionButtonClick(){window.importMapOverrides.resetOverrides(),window.location.reload()}}),Promise.reject(e)}}return Promise.resolve()}async function p(){return window.importMapOverrides.getCurrentPageMap()}const u=Symbol("__openmrs_script_loading");var f=r(5070),h=r(44),m=r(4596),d=r(9493),E=r(2894);function g(e){if(!("string"==typeof e||"object"==typeof e&&e&&"type"in e))throw`Unknown expression type ${e}. Expressions must either be a string or pre-compiled string.`;const t=(r=E.f,{globals:{...r},isLocalExpression:!1,variables:new Set});var r;return I("string"==typeof e?(0,d.A)(e):e,t),[...t.variables]}function I(e,t){switch(e.type){case"UnaryExpression":return function(e,t){return I(e.argument,t)}(e,t);case"BinaryExpression":return function(e,t){return[I(e.left,t),I(e.right,t)].filter(Boolean)}(e,t);case"ConditionalExpression":return function(e,t){return[I(e.consequent,t),I(e.test,t),I(e.alternate,t)].filter(Boolean)}(e,t);case"CallExpression":return function(e,t){const r=I(e.callee,t);return e.arguments?.map($(t)),r}(e,t);case"ArrowFunctionExpression":return function(e,t){const r={...t};r.isLocalExpression=!0;const n=e.params?.map($(r))??[],o=I(e.body,r)??[];if(o&&Array.isArray(o))for(const e of o)n.includes(e)||t.variables.add(e)}(e,t);case"MemberExpression":return function(e,t){I(e.object,t);const r={...t};r.isLocalExpression=!0,I(e.property,r)}(e,t);case"ArrayExpression":return function(e,t){e.elements?.map($(t))}(e,t);case"SequenceExpression":return function(e,t){e.expressions?.map($(t))}(e,t);case"NewExpression":return function(e,t){e.arguments?.map($(t))}(e,t);case"Literal":case"TemplateElement":return;case"Identifier":return function(e,t){if(!(e.name in t.globals)){if(t.isLocalExpression)return e.name;t.variables.add(e.name)}}(e,t);case"TemplateLiteral":return function(e,t){e.expressions?.map($(t)),e.quasis?.map($(t))}(e,t);default:throw`Expression evaluator does not support expression of type '${e.type}'`}}function $(e){return function(t){return null===t?null:I(t,e)}}var O=r(3011),w=r(7513),y=r(5874),v=r(6484),S=r(316);const R="openmrs-routes:";var A=r(599);const N=new Map;async function b(e,t){const r=t.indexOf("#"),n=r>=0,s=n?t.substring(0,r):e,i=n?t.substring(r+1):t,a=await c(s);return a&&Object.hasOwn(a,i)&&"function"==typeof a[i]?async function(e,t){if(e in N)await N[e];else{let r=t??await c(e);await(N[e]=new Promise((t,n)=>{if(Object.hasOwn(r,"startupApp")){const s=r.startupApp;if("function"==typeof s)return Promise.resolve(s()).then(()=>{(0,o.kl)(e),t(null)}).catch(n)}(0,o.kl)(e),t(null)}))}}(s,a).then(()=>a[i]()):(a?a&&Object.hasOwn(a,i)?console.warn(`The export ${t}, defined in ${e}'s routes.json, is not a function`):console.warn(`${s} does not define a component called "${i}", referenced in ${e}'s routes.json. This cannot be loaded.`):console.warn(`Unknown app ${s} for ${t} defined in ${e}'s routes.json`),L)}const L={bootstrap:()=>Promise.resolve(),mount:()=>Promise.resolve(),unmount:()=>Promise.resolve()};function T(e,t){const r=t.name;if(!r)return void console.error(`An extension definition in ${e} is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nextension definition.`,t);t.slots&&t.slot&&console.warn(`The extension ${r} from ${e} declares both a 'slots' property and\na 'slot' property. Only the 'slots' property will be honored.`);const n=t.slots?t.slots:t.slot?[t.slot]:[];if(t.component){(0,O.VK)({name:r,load:()=>b(e,t.component),meta:t.meta||{},order:t.order,moduleName:e,privileges:t.privileges,online:t.online??!0,offline:t.offline??!1,featureFlag:t.featureFlag});for(const e of n)(0,O.K0)(e,r)}else console.error(`The extension ${r} from ${e} is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the extension definition.`,t)}const x=[];function C(e){if(Array.isArray(e)){const t=e.map(C);return e=>t.some(t=>t(e))}return"string"==typeof e?(0,A.fz)(window.getOpenmrsSpaBase()+e):e instanceof RegExp?t=>function(e,t){return e.test(t.pathname.replace(window.getOpenmrsSpaBase(),""))}(e,t):()=>e}function P(e,t){if(e&&t&&"object"==typeof t){(0,o.FL)(e);const r=t.extensions??[],n=t.modals??[],s=t.workspaces??[],i=t.workspaceGroups??[],a=t.featureFlags??[];t.pages?.forEach(t=>{t&&"object"==typeof t&&Object.hasOwn(t,"component")&&(Object.hasOwn(t,"route")||Object.hasOwn(t,"routeRegex")||Object.hasOwn(t,"routes"))?x.push({...t,appName:e}):console.warn(`A page for ${e} could not be registered as it does not appear to have the required properties`,t)}),r.forEach(t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?T(e,t):console.warn(`An extension for ${e} could not be registered as it does not appear to have the required properties`,t)}),n.forEach(t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){const r=t.name;r?t.component?(0,O.Ju)({name:r,moduleName:e,load:()=>b(e,t.component)}):console.error(`The modal ${r} from ${e} is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the modal definition.`,t):console.error(`A modal definition in ${e} is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nmodal definition.`,t)}(e,t):console.warn(`A modal for ${e} could not be registered as it does not appear to have the required properties`,t)}),s.forEach(t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){const r=t.name;if(!r)return void console.error(`A workspace definition in ${e} is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.`,t);const n=t.title;if(n)if(t.component){(0,O.pm)({name:r,title:n,component:t.component,moduleName:e,type:t.type,canHide:t.canHide,canMaximize:t.canMaximize,width:t.width,preferredWindowSize:t.preferredWindowSize,groups:t.groups,load:()=>b(e,t.component)});for(const e of t.groups||[])(0,O.io)({name:e,members:[r]})}else console.error(`The workspace ${r} from ${e} is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the workspace definition.`,t);else console.error(`A workspace definition in ${e} is missing a title and thus cannot be registered.\nTo fix this, ensure that you define the "title" field inside the workspace definition.`,t)}(e,t):console.warn(`A workspace for ${e} could not be registered as it does not appear to have the required properties`,t)}),i.forEach(t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")?function(e,t){const r=t.name;r?(0,O.io)({name:r,members:t.members??[]}):console.error(`A workspace group definition in ${e} is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.`,t)}(e,t):console.warn(`A workspace group for ${e} could not be registered as it does not appear to have the required properties`,t)}),a.forEach(t=>{t&&"object"==typeof t&&Object.hasOwn(t,"flagName")?function(e,t){t.flagName?t.label?t.description?(0,w.uA)(t.flagName,t.label,t.description):console.error(`A feature flag definition in ${e} is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "description" field inside the feature flag definition.`,t):console.error(`A feature flag definition in ${e} is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "label" field inside the feature flag definition.`,t):console.error(`A feature flag definition in ${e} is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the feature flag definition.`,t)}(e,t):console.warn(`A feature flag for ${e} could not be registered as it does not appear to have the required properties`,t)})}}function D(){x.sort((e,t)=>e.appName.localeCompare(t.appName,"en"));let e=new Map;for(let t of x){e.has(t.appName)?e.set(t.appName,e.get(t.appName)+1):e.set(t.appName,0);const r=e.get(t.appName),n=`${t.appName}-page-${r}`,o=t.containerDomId??"omrs-apps-container",s=document.getElementById(o),i=`single-spa-application:${n}`;if(!s)throw new Error(`${t.appName} ${t.component} cannot be mounted to "${o}"; DOM element does not exist.`);{const e=document.createElement("div");e.id=i,s?.appendChild(e)}F(n,t)}}function F(e,t){const r=void 0!==t.route?t.route:void 0!==t.routeRegex&&new RegExp(t.routeRegex);if(!1===r)return void console.warn('A registered page definition is missing a route and thus cannot be registered.\nTo fix this, ensure that you define the "route" (or alternatively the "routeRegex") field inside the extension definition.',e);if(!t.component)return void console.warn('A registered page definition is missing a component and thus cannot be registered.\nTo fix this, ensure that you define the "component" field inside the page definition.',e);const n=function(e,{online:t,offline:r,featureFlag:n}){return window.offlineEnabled?o=>!!(navigator.onLine&&(t??1)||!navigator.onLine&&r)&&!(n&&!(0,w.jj)(n))&&e(o):e}(C(r),t);(0,A.AG)(e,()=>b(t.appName,t.component),n)}function M(e=window.localStorage){try{return e.getItem("test"),!0}catch{return!1}}const k=M();function j(e,t){if(k){if("string"==typeof t){if(t.startsWith("http"))return B(e,t);try{const r=JSON.parse(t);if(V(r))return B(e,r);console.error(`The supplied routes for ${e} is not a valid OpenmrsAppRoutes object`,t)}catch(t){console.error(`Could not add routes override for ${e}: `,t)}}else{if(t instanceof URL)return B(e,t.toString());if(V(t))return B(e,t)}console.error(`Override for ${e} is not in a valid format. Expected either a Javascript Object, a JSON string of a Javascript object, or a URL`,t)}}function G(e){if(!k)return;const t=R+e;localStorage.removeItem(t)}function U(){if(!k)return;const e=window.localStorage;for(let t=0;t<e.length;t++){const r=e.key(t);r?.startsWith(R)&&e.removeItem(r)}}function B(e,t){const r=R+e;localStorage.setItem(r,JSON.stringify(t))}function V(e){if(e&&"object"==typeof e){const t=Object.prototype.hasOwnProperty,r=e;return!!((!t.call(e,"pages")||Boolean(r.pages)&&Array.isArray(r.pages))&&(!t.call(e,"extensions")||Boolean(r.extensions)&&Array.isArray(r.extensions))&&(!t.call(e,"workspaces")||Boolean(r.workspaces)&&Array.isArray(r.workspaces))&&(!t.call(e,"modals")||Boolean(r.modals)&&Array.isArray(r.modals)))}return!1}function _(e){if(e&&"object"==typeof e){const t=e;return Object.entries(t).every(([e,t])=>"string"==typeof e&&V(t))}return!1}var W=r(5048),X=r(5934),H=r(6410),z=r(7624),q=r(3616),J=r(5841),Y=r(3844),K=r(8101);function Q(e){let t={};for(let r of Object.keys(e))if(Z(e[r])&&e[r].hasOwnProperty("_default"))t[r]=e[r]._default;else{if(r.startsWith("_"))continue;Z(e[r])?t[r]=Q(e[r]):t[r]=e[r]}return t}function Z(e){return!!e&&e.constructor===Object}var ee=r(4469);function te(e){const[t,r,n]=e.split(".");return`${t}.${r}.${n}`}function re(e,t){const r=function(e){const t=e.indexOf("-");return t>=0?`${te(e.slice(0,t))}-${e.slice(t+1)}`:te(e)}(t);return ee.satisfies(r,e,{includePrerelease:!0})}async function ne(e,t={}){let{shouldRetry:r,getDelay:n,onError:o}=t;r=r??(e=>function(e){return e<=5}(e)),n=n??(e=>function(e,t,r=!1){const n=r?e+1:e;return 1e3*Math.pow(2,n)}(e));let s,i=0;do{try{return await oe(n(i)),await e()}catch(e){o?.(e,i),s=e}}while(r(i++));throw s}async function oe(e){if(!(e<=0))return new Promise(t=>setTimeout(t,e))}}}]);
1
+ (globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[840],{8944(e,t,r){const n=Symbol("SemVer ANY");class o{static get ANY(){return n}constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===!!t.loose)return e;e=e.value}c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?s[i.COMPARATORLOOSE]:s[i.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return a(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new p(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new p(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),s=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),c=a(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=a(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||s&&i||c||l}}e.exports=o;const{re:s,t:i}=r(3238),a=r(8943),c=r(1832),l=r(5476),p=r(6791)},6791(e,t,r){class n{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=this.options.loose;e=e.trim();const r=t?a[c.HYPHENRANGELOOSE]:a[c.HYPHENRANGE];e=e.replace(r,v(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(a[c.COMPARATORTRIM],l),s("comparator trim",e,a[c.COMPARATORTRIM]),e=(e=(e=e.replace(a[c.TILDETRIM],p)).replace(a[c.CARETTRIM],u)).split(/\s+/).join(" ");const n=t?a[c.COMPARATORLOOSE]:a[c.COMPARATOR];return e.split(" ").map(e=>h(e,this.options)).join(" ").split(/\s+/).map(e=>y(e,this.options)).filter(this.options.loose?e=>!!e.match(n):()=>!0).map(e=>new o(e,this.options))}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some(r=>f(r,t)&&e.set.some(e=>f(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(S(this.set[t],e,this.options))return!0;return!1}}e.exports=n;const o=r(8944),s=r(1832),i=r(5476),{re:a,t:c,comparatorTrimReplace:l,tildeTrimReplace:p,caretTrimReplace:u}=r(3238),f=(e,t)=>{let r=!0;const n=e.slice();let o=n.pop();for(;r&&n.length;)r=n.every(e=>o.intersects(e,t)),o=n.pop();return r},h=(e,t)=>(s("comp",e,t),e=g(e,t),s("caret",e),e=d(e,t),s("tildes",e),e=$(e,t),s("xrange",e),e=w(e,t),s("stars",e),e),m=e=>!e||"x"===e.toLowerCase()||"*"===e,d=(e,t)=>e.trim().split(/\s+/).map(e=>E(e,t)).join(" "),E=(e,t)=>{const r=t.loose?a[c.TILDELOOSE]:a[c.TILDE];return e.replace(r,(t,r,n,o,i)=>{let a;return s("tilde",e,t,r,n,o,i),m(r)?a="":m(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:m(o)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(s("replaceTilde pr",i),a=`>=${r}.${n}.${o}-${i} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,s("tilde return",a),a})},g=(e,t)=>e.trim().split(/\s+/).map(e=>I(e,t)).join(" "),I=(e,t)=>{s("caret",e,t);const r=t.loose?a[c.CARETLOOSE]:a[c.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,o,i,a)=>{let c;return s("caret",e,t,r,o,i,a),m(r)?c="":m(o)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:m(i)?c="0"===r?`>=${r}.${o}.0${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),c="0"===r?"0"===o?`>=${r}.${o}.${i}-${a} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}-${a} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i}-${a} <${+r+1}.0.0-0`):(s("no pr"),c="0"===r?"0"===o?`>=${r}.${o}.${i}${n} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i} <${+r+1}.0.0-0`),s("caret return",c),c})},$=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map(e=>O(e,t)).join(" ")),O=(e,t)=>{e=e.trim();const r=t.loose?a[c.XRANGELOOSE]:a[c.XRANGE];return e.replace(r,(r,n,o,i,a,c)=>{s("xRange",e,r,n,o,i,a,c);const l=m(o),p=l||m(i),u=p||m(a),f=u;return"="===n&&f&&(n=""),c=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&f?(p&&(i=0),a=0,">"===n?(n=">=",p?(o=+o+1,i=0,a=0):(i=+i+1,a=0)):"<="===n&&(n="<",p?o=+o+1:i=+i+1),"<"===n&&(c="-0"),r=`${n+o}.${i}.${a}${c}`):p?r=`>=${o}.0.0${c} <${+o+1}.0.0-0`:u&&(r=`>=${o}.${i}.0${c} <${o}.${+i+1}.0-0`),s("xRange return",r),r})},w=(e,t)=>(s("replaceStars",e,t),e.trim().replace(a[c.STAR],"")),y=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),v=e=>(t,r,n,o,s,i,a,c,l,p,u,f,h)=>`${r=m(n)?"":m(o)?`>=${n}.0.0${e?"-0":""}`:m(s)?`>=${n}.${o}.0${e?"-0":""}`:i?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=m(l)?"":m(p)?`<${+l+1}.0.0-0`:m(u)?`<${l}.${+p+1}.0-0`:f?`<=${l}.${p}.${u}-${f}`:e?`<${l}.${p}.${+u+1}-0`:`<=${c}`}`.trim(),S=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(s(e[r].semver),e[r].semver!==o.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},5476(e,t,r){const n=r(1832),{MAX_LENGTH:o,MAX_SAFE_INTEGER:s}=r(6516),{re:i,t:a}=r(3238),{compareIdentifiers:c}=r(803);class l{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?i[a.LOOSE]:i[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<s)return t}return e}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=l},5446(e,t,r){const n=r(848);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},8943(e,t,r){const n=r(5857),o=r(9983),s=r(1375),i=r(7785),a=r(6531),c=r(8576);e.exports=(e,t,r,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,l);case"!=":return o(e,r,l);case">":return s(e,r,l);case">=":return i(e,r,l);case"<":return a(e,r,l);case"<=":return c(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}}},7450(e,t,r){const n=r(5476),o=r(848),{re:s,t:i}=r(3238);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=s[i.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),s[i.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;s[i.COERCERTL].lastIndex=-1}else r=e.match(s[i.COERCE]);return null===r?null:o(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},5373(e,t,r){const n=r(5476);e.exports=(e,t,r)=>{const o=new n(e,r),s=new n(t,r);return o.compare(s)||o.compareBuild(s)}},3507(e,t,r){const n=r(3296);e.exports=(e,t)=>n(e,t,!0)},3296(e,t,r){const n=r(5476);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},5720(e,t,r){const n=r(848),o=r(5857);e.exports=(e,t)=>{if(o(e,t))return null;{const r=n(e),o=n(t),s=r.prerelease.length||o.prerelease.length,i=s?"pre":"",a=s?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==o[e])return i+e;return a}}},5857(e,t,r){const n=r(3296);e.exports=(e,t,r)=>0===n(e,t,r)},1375(e,t,r){const n=r(3296);e.exports=(e,t,r)=>n(e,t,r)>0},7785(e,t,r){const n=r(3296);e.exports=(e,t,r)=>n(e,t,r)>=0},6431(e,t,r){const n=r(5476);e.exports=(e,t,r,o)=>{"string"==typeof r&&(o=r,r=void 0);try{return new n(e,r).inc(t,o).version}catch(e){return null}}},6531(e,t,r){const n=r(3296);e.exports=(e,t,r)=>n(e,t,r)<0},8576(e,t,r){const n=r(3296);e.exports=(e,t,r)=>n(e,t,r)<=0},1274(e,t,r){const n=r(5476);e.exports=(e,t)=>new n(e,t).major},9646(e,t,r){const n=r(5476);e.exports=(e,t)=>new n(e,t).minor},9983(e,t,r){const n=r(3296);e.exports=(e,t,r)=>0!==n(e,t,r)},848(e,t,r){const{MAX_LENGTH:n}=r(6516),{re:o,t:s}=r(3238),i=r(5476);e.exports=(e,t)=>{if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>n)return null;if(!(t.loose?o[s.LOOSE]:o[s.FULL]).test(e))return null;try{return new i(e,t)}catch(e){return null}}},1821(e,t,r){const n=r(5476);e.exports=(e,t)=>new n(e,t).patch},5889(e,t,r){const n=r(848);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},7298(e,t,r){const n=r(3296);e.exports=(e,t,r)=>n(t,e,r)},1413(e,t,r){const n=r(5373);e.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))},198(e,t,r){const n=r(6791);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},679(e,t,r){const n=r(5373);e.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))},6473(e,t,r){const n=r(848);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},4469(e,t,r){const n=r(3238);e.exports={re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r(6516).SEMVER_SPEC_VERSION,SemVer:r(5476),compareIdentifiers:r(803).compareIdentifiers,rcompareIdentifiers:r(803).rcompareIdentifiers,parse:r(848),valid:r(6473),clean:r(5446),inc:r(6431),diff:r(5720),major:r(1274),minor:r(9646),patch:r(1821),prerelease:r(5889),compare:r(3296),rcompare:r(7298),compareLoose:r(3507),compareBuild:r(5373),sort:r(679),rsort:r(1413),gt:r(1375),lt:r(6531),eq:r(5857),neq:r(9983),gte:r(7785),lte:r(8576),cmp:r(8943),coerce:r(7450),Comparator:r(8944),Range:r(6791),satisfies:r(198),toComparators:r(2111),maxSatisfying:r(9420),minSatisfying:r(1150),minVersion:r(7133),validRange:r(4578),outside:r(4835),gtr:r(259),ltr:r(9342),intersects:r(3788),simplifyRange:r(4877),subset:r(5960)}},6516(e){const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},1832(e){const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},803(e){const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),o=t.test(r);return n&&o&&(e=+e,r=+r),e===r?0:n&&!o?-1:o&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},3238(e,t,r){const{MAX_SAFE_COMPONENT_LENGTH:n}=r(6516),o=r(1832),s=(t=e.exports={}).re=[],i=t.src=[],a=t.t={};let c=0;const l=(e,t,r)=>{const n=c++;o(n,t),a[e]=n,i[n]=t,s[n]=new RegExp(t,r?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${i[a.NUMERICIDENTIFIER]}|${i[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${i[a.NUMERICIDENTIFIERLOOSE]}|${i[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${i[a.PRERELEASEIDENTIFIER]}(?:\\.${i[a.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${i[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[a.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${i[a.BUILDIDENTIFIER]}(?:\\.${i[a.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${i[a.MAINVERSION]}${i[a.PRERELEASE]}?${i[a.BUILD]}?`),l("FULL",`^${i[a.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${i[a.MAINVERSIONLOOSE]}${i[a.PRERELEASELOOSE]}?${i[a.BUILD]}?`),l("LOOSE",`^${i[a.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",`${i[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),l("XRANGEIDENTIFIER",`${i[a.NUMERICIDENTIFIER]}|x|X|\\*`),l("XRANGEPLAIN",`[v=\\s]*(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:${i[a.PRERELEASE]})?${i[a.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:${i[a.PRERELEASELOOSE]})?${i[a.BUILD]}?)?)?`),l("XRANGE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),l("COERCERTL",i[a.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${i[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${i[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${i[a.LONECARET]}${i[a.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${i[a.LONECARET]}${i[a.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${i[a.GTLT]}\\s*(${i[a.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]}|${i[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${i[a.XRANGEPLAIN]})\\s+-\\s+(${i[a.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${i[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[a.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0.0.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},259(e,t,r){const n=r(4835);e.exports=(e,t,r)=>n(e,t,">",r)},3788(e,t,r){const n=r(6791);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t))},9342(e,t,r){const n=r(4835);e.exports=(e,t,r)=>n(e,t,"<",r)},9420(e,t,r){const n=r(5476),o=r(6791);e.exports=(e,t,r)=>{let s=null,i=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(s&&-1!==i.compare(e)||(s=e,i=new n(s,r)))}),s}},1150(e,t,r){const n=r(5476),o=r(6791);e.exports=(e,t,r)=>{let s=null,i=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(s&&1!==i.compare(e)||(s=e,i=new n(s,r)))}),s}},7133(e,t,r){const n=r(5476),o=r(6791),s=r(1375);e.exports=(e,t)=>{e=new o(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t)e.set[t].forEach(e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!s(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}});return r&&e.test(r)?r:null}},4835(e,t,r){const n=r(5476),o=r(8944),{ANY:s}=o,i=r(6791),a=r(198),c=r(1375),l=r(6531),p=r(8576),u=r(7785);e.exports=(e,t,r,f)=>{let h,m,d,E,g;switch(e=new n(e,f),t=new i(t,f),r){case">":h=c,m=p,d=l,E=">",g=">=";break;case"<":h=l,m=u,d=c,E="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,f))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let i=null,a=null;if(n.forEach(e=>{e.semver===s&&(e=new o(">=0.0.0")),i=i||e,a=a||e,h(e.semver,i.semver,f)?i=e:d(e.semver,a.semver,f)&&(a=e)}),i.operator===E||i.operator===g)return!1;if((!a.operator||a.operator===E)&&m(e,a.semver))return!1;if(a.operator===g&&d(e,a.semver))return!1}return!0}},4877(e,t,r){const n=r(198),o=r(3296);e.exports=(e,t,r)=>{const s=[];let i=null,a=null;const c=e.sort((e,t)=>o(e,t,r));for(const e of c)n(e,t,r)?(a=e,i||(i=e)):(a&&s.push([i,a]),a=null,i=null);i&&s.push([i,null]);const l=[];for(const[e,t]of s)e===t?l.push(e):t||e!==c[0]?t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`):l.push("*");const p=l.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return p.length<u.length?p:t}},5960(e,t,r){const n=r(6791),{ANY:o}=r(8944),s=r(198),i=r(3296),a=(e,t,r)=>{if(1===e.length&&e[0].semver===o)return 1===t.length&&t[0].semver===o;const n=new Set;let a,p,u,f,h,m,d;for(const t of e)">"===t.operator||">="===t.operator?a=c(a,t,r):"<"===t.operator||"<="===t.operator?p=l(p,t,r):n.add(t.semver);if(n.size>1)return null;if(a&&p){if(u=i(a.semver,p.semver,r),u>0)return null;if(0===u&&(">="!==a.operator||"<="!==p.operator))return null}for(const e of n){if(a&&!s(e,String(a),r))return null;if(p&&!s(e,String(p),r))return null;for(const n of t)if(!s(e,String(n),r))return!1;return!0}for(const e of t){if(d=d||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,a)if(">"===e.operator||">="===e.operator){if(f=c(a,e,r),f===e)return!1}else if(">="===a.operator&&!s(a.semver,String(e),r))return!1;if(p)if("<"===e.operator||"<="===e.operator){if(h=l(p,e,r),h===e)return!1}else if("<="===p.operator&&!s(p.semver,String(e),r))return!1;if(!e.operator&&(p||a)&&0!==u)return!1}return!(a&&m&&!p&&0!==u||p&&d&&!a&&0!==u)},c=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r)=>{e=new n(e,r),t=new n(t,r);let o=!1;e:for(const n of e.set){for(const e of t.set){const t=a(n,e,r);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}},2111(e,t,r){const n=r(6791);e.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},4578(e,t,r){const n=r(6791);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},6840(e,t,r){"use strict";r.r(t),r.d(t,{ActionMenu:()=>X.Wy,ActionMenuButton:()=>X.ED,ActionableNotificationComponent:()=>X.dr,ActivityIcon:()=>X.np,AddIcon:()=>X.RE,AllergiesIcon:()=>X.Ug,AppointmentsPictogram:()=>X.B1,ArrowDownIcon:()=>X.ZL,ArrowLeftIcon:()=>X.A6,ArrowRightIcon:()=>X.fl,ArrowUpIcon:()=>X.Kp,AttachmentIcon:()=>X.Pt,BabyIcon:()=>X.qY,Breakpoint:()=>X.EA,CalendarHeatMapIcon:()=>X.mm,CalendarIcon:()=>X.CT,CaretDownIcon:()=>X.bD,CaretLeftIcon:()=>X.eC,CaretRightIcon:()=>X.JJ,CaretUpIcon:()=>X.Sw,ChartAverageIcon:()=>X.ZH,CheckmarkFilledIcon:()=>X.Ft,CheckmarkOutlineIcon:()=>X.pm,ChemistryIcon:()=>X.W4,ChevronDownIcon:()=>X.D3,ChevronLeftIcon:()=>X.YJ,ChevronRightIcon:()=>X.vK,ChevronUpIcon:()=>X.Mt,CloseFilledIcon:()=>X.oC,CloseIcon:()=>X.US,CloseOutlineIcon:()=>X.Wd,ComponentContext:()=>S.zq,ConditionsIcon:()=>X.ci,ConfigurableLink:()=>S.i_,CustomOverflowMenu:()=>X.TQ,DashboardExtension:()=>X.cJ,DiagnosisTags:()=>X.Fz,DocumentAttachmentIcon:()=>X.Ce,DocumentIcon:()=>X.py,DownloadIcon:()=>X.s3,DrugOrderIcon:()=>X.uq,EditIcon:()=>X.qU,ErrorState:()=>X.W5,EventScheduleIcon:()=>X.X,EventsIcon:()=>X.Jc,Extension:()=>S.YY,ExtensionSlot:()=>S.W3,GenderFemaleIcon:()=>X.XB,GenderMaleIcon:()=>X.sz,GenderOtherIcon:()=>X.hX,GenderUnknownIcon:()=>X.x1,GenericOrderTypeIcon:()=>X.n,GroupAccessIcon:()=>X.Py,GroupIcon:()=>X.nF,HomePictogram:()=>X.KK,HospitalBedIcon:()=>X.jM,Icon:()=>X.In,ImageMedicalIcon:()=>X.Ix,InPatientPictogram:()=>X.th,InformationFilledIcon:()=>X._e,InformationIcon:()=>X.uQ,InformationSquareIcon:()=>X.Zr,InventoryManagementIcon:()=>X.vF,LabOrderIcon:()=>X.hi,LaboratoryPictogram:()=>X.eh,LeftNavMenu:()=>X.Oj,ListCheckedIcon:()=>X.Rt,LocationIcon:()=>X.BT,LocationPicker:()=>X.MT,MaterialOrderIcon:()=>X.zZ,MaximizeIcon:()=>X._X,MaybeIcon:()=>X.oy,MaybePictogram:()=>X.bm,MedicationIcon:()=>X.Fn,MessageQueueIcon:()=>X.uF,MicroscopeIcon:()=>X.u4,MoneyIcon:()=>X.yB,MotherIcon:()=>X.XE,MovementIcon:()=>X.ly,Notification:()=>X.Eg,OpenmrsAppContext:()=>S.p6,OpenmrsDatePicker:()=>X.rn,OpenmrsDateRangePicker:()=>X.Ye,OpenmrsFetchError:()=>n.$f,OverflowMenuHorizontalIcon:()=>X.rv,OverflowMenuVerticalIcon:()=>X.Rn,PageHeader:()=>X.zY,PageHeaderContent:()=>X.gp,PasswordIcon:()=>X.BG,PatientBannerActionsMenu:()=>X.k1,PatientBannerContactDetails:()=>X.m5,PatientBannerPatientIdentifiers:()=>X.XI,PatientBannerPatientInfo:()=>X.zv,PatientBannerToggleContactDetailsButton:()=>X.Qg,PatientListsPictogram:()=>X.$2,PatientPhoto:()=>X.yV,PedestrianFamilyIcon:()=>X.PP,PenIcon:()=>X.rZ,PharmacyPictogram:()=>X.w2,Pictogram:()=>X.bF,PrinterIcon:()=>X.ww,ProcedureOrderIcon:()=>X.H0,ProgramsIcon:()=>X.lq,RadiologyIcon:()=>X.SA,ReferralOrderIcon:()=>X.tC,RegistrationPictogram:()=>X.et,RenderIfValueIsTruthy:()=>S.fS,RenewIcon:()=>X.JT,ReportIcon:()=>X.cQ,ResetIcon:()=>X.NA,ResponsiveWrapper:()=>X.KF,SaveIcon:()=>X.LP,SearchIcon:()=>X.WI,ServiceQueuesPictogram:()=>X.Y2,ShoppingCartAddItemIcon:()=>X.Uv,ShoppingCartArrowDownIcon:()=>X.Lf,ShoppingCartIcon:()=>X.aJ,Snackbar:()=>X.qb,StickyNoteAddIcon:()=>X.OC,StockManagementPictogram:()=>X.q_,SwitcherIcon:()=>X.RF,SyringeIcon:()=>X.hZ,TableIcon:()=>X.Kb,TableOfContentsIcon:()=>X.pY,TimeIcon:()=>X.b1,Toast:()=>X.y8,ToolsIcon:()=>X.dw,TranslateIcon:()=>X.z$,TrashCanIcon:()=>X.EJ,TreeViewAltIcon:()=>X.MO,Type:()=>o.ZU,UserAvatarIcon:()=>X.yD,UserFollowIcon:()=>X.os,UserHasAccess:()=>S.qw,UserIcon:()=>X.ny,UserXrayIcon:()=>X.fe,ViewIcon:()=>X.MZ,ViewOffIcon:()=>X.Oi,VisitMode:()=>f.dx,VisitStatus:()=>f.Cj,WarningIcon:()=>X.id,WorkspaceContainer:()=>X.Xv,WorkspaceNotification:()=>X.tM,activateOfflineCapability:()=>v.nr,addRoutesOverride:()=>j,age:()=>H.K,attach:()=>O.K0,attachmentUrl:()=>f.Zu,backendDependencies:()=>n.QE,beginEditSynchronizationItem:()=>v.FO,canAccessStorage:()=>M,canBeginEditSynchronizationItemsOfType:()=>v.xN,canCloseWorkspaceWithoutPrompting:()=>X.Sv,cancelPrompt:()=>X.zl,changeWorkspaceContext:()=>X.JK,checkStatus:()=>O.dO,checkStatusFor:()=>O.Ef,cleanupObsoleteFeatureFlags:()=>w.D3,clearConfigErrors:()=>o.Nh,clearCurrentUser:()=>n.g$,clearHistory:()=>y.g4,closeAllWorkspaces:()=>X.G_,closeWorkspace:()=>X.MJ,compile:()=>m.wE,configExtensionStore:()=>o.hs,configInternalStore:()=>o.Rt,convertToLocaleCalendar:()=>z.d4,createAttachment:()=>f.cD,createErrorHandler:()=>h.J,createGlobalStore:()=>W.Zd,createUseStore:()=>S.rr,defaultVisitCustomRepresentation:()=>f.Rb,defineConfigSchema:()=>o.T0,defineExtensionConfigSchema:()=>o.ks,deleteAttachmentPermanently:()=>f.SY,deleteSynchronizationItem:()=>v.lY,detach:()=>O.Yo,detachAll:()=>O.No,dispatchActionableNotificationShown:()=>s.LQ,dispatchConnectivityChanged:()=>s.Yt,dispatchNotificationShown:()=>s.FI,dispatchPrecacheStaticDependencies:()=>s.pc,dispatchSnackbarShown:()=>s.$3,dispatchToastShown:()=>s.Vt,displayName:()=>Y.QC,esmStyleGuideSchema:()=>X.bt,evaluate:()=>m._3,evaluateAsBoolean:()=>m.eb,evaluateAsBooleanAsync:()=>m.Gz,evaluateAsNumber:()=>m.dX,evaluateAsNumberAsync:()=>m.$F,evaluateAsType:()=>m.Sj,evaluateAsTypeAsync:()=>m.uN,evaluateAsync:()=>m.mv,extractVariableNames:()=>g,featureFlagsStore:()=>w.jX,fetchCurrentPatient:()=>f.hG,fhirBaseUrl:()=>n.IU,filterBreadcrumbs:()=>y.D_,finishRegisteringAllApps:()=>D,formatDate:()=>z.Yq,formatDatetime:()=>z.Rt,formatDuration:()=>z.a3,formatPartialDate:()=>z.LW,formatPatientName:()=>Y.Qr,formatTime:()=>z.fU,formattedName:()=>Y.qK,generateOfflineUuid:()=>v.sA,getAssignedExtensions:()=>O.zx,getAsyncExtensionLifecycle:()=>S.sc,getAsyncLifecycle:()=>S.ns,getAttachmentByUuid:()=>f.KU,getAttachments:()=>f.Bv,getBreadcrumbs:()=>y.lz,getBreadcrumbsFor:()=>y.qh,getConfig:()=>o.zj,getConfigStore:()=>o.IS,getCoreTranslation:()=>i.V,getCurrentImportMap:()=>p,getCurrentOfflineMode:()=>v.wJ,getCurrentUser:()=>n.HW,getDefaultCalendar:()=>z.a7,getDefaultsFromConfigSchema:()=>Q,getDynamicOfflineDataEntries:()=>v.FE,getDynamicOfflineDataEntriesFor:()=>v.WA,getDynamicOfflineDataHandlers:()=>v.qb,getExtensionConfig:()=>o.UY,getExtensionConfigFromExtensionSlotStore:()=>o.g$,getExtensionConfigFromStore:()=>o.P0,getExtensionInternalStore:()=>O.a9,getExtensionNameFromId:()=>O.ES,getExtensionRegistration:()=>O.Tj,getExtensionRegistrationFrom:()=>O.xg,getExtensionSlotConfig:()=>o.G9,getExtensionSlotConfigFromStore:()=>o.vu,getExtensionSlotsConfigStore:()=>o.YP,getExtensionStore:()=>O.zF,getExtensionsConfigStore:()=>o.GI,getFeatureFlag:()=>w.jj,getFhirServerPaginationHandlers:()=>S.mw,getFullSynchronizationItems:()=>v.C$,getFullSynchronizationItemsFor:()=>v.xc,getGlobalStore:()=>W.jf,getHistory:()=>y.JK,getLifecycle:()=>S.JK,getLocale:()=>q.J,getLocations:()=>f.Vs,getLoggedInUser:()=>n.xC,getModalRegistration:()=>O.Fg,getOfflineDb:()=>v.e,getOfflinePatientDataStore:()=>v.WK,getOfflineSynchronizationStore:()=>v.LM,getOmrsServiceWorker:()=>v.Rs,getPatientName:()=>Y.Vp,getPromptBeforeClosingFcn:()=>X.Oe,getSessionLocation:()=>n.Kx,getSessionStore:()=>n.EW,getStartedVisit:()=>f.DK,getSyncLifecycle:()=>S.g9,getSynchronizationItem:()=>v.Gp,getSynchronizationItems:()=>v.pb,getSynchronizationItemsFor:()=>v.Io,getTranslationOverrides:()=>o.td,getVisitStore:()=>f.BX,getVisitTypes:()=>f.Pu,getVisitsForPatient:()=>f.BR,getWorkspaceGroupRegistration:()=>O.Q_,getWorkspaceGroupStore:()=>X.e_,getWorkspaceRegistration:()=>O.Xb,getWorkspaceStore:()=>X.Xz,goBackInHistory:()=>y.tA,implementerToolsConfigStore:()=>o.tN,importDynamic:()=>c,inRange:()=>o.r4,integrateBreakpoints:()=>X.WM,interpolateString:()=>y.zl,interpolateUrl:()=>y.JG,isDesktop:()=>S.xl,isDevEnabled:()=>n.L7,isOfflineUuid:()=>v.bO,isOmrsDateStrict:()=>z.hl,isOmrsDateToday:()=>z.vU,isOnline:()=>J.s,isOpenmrsAppRoutes:()=>V,isOpenmrsRoutes:()=>_,isUrl:()=>o.gU,isUrlWithTemplateParameters:()=>o.qG,isVersionSatisfied:()=>re,jsep:()=>m.PQ,launchWorkspace:()=>X.TC,launchWorkspaceGroup:()=>X.aN,leftNavStore:()=>O.Gp,loadLifeCycles:()=>b,localStorageRoutesPrefix:()=>R,makeUrl:()=>n.Gm,messageOmrsServiceWorker:()=>v.ms,navigate:()=>y.oo,navigateAndLaunchWorkspace:()=>X.Fm,offlineUuidPrefix:()=>v.jU,omrsOfflineCachingStrategyHttpHeaderName:()=>v.JC,omrsOfflineResponseBodyHttpHeaderName:()=>v.UH,omrsOfflineResponseStatusHttpHeaderName:()=>v.Gj,oneOf:()=>o.yL,openmrsComponentDecorator:()=>S.F7,openmrsFetch:()=>n.lo,openmrsObservableFetch:()=>n.ut,parseDate:()=>z._U,preloadImport:()=>l,processConfig:()=>o.mq,promptBeforeClosing:()=>X.F3,provide:()=>o.Gt,putDynamicOfflineData:()=>v.yD,putDynamicOfflineDataFor:()=>v.ff,queueSynchronizationItem:()=>v.Zr,queueSynchronizationItemFor:()=>v.Iq,refetchCurrentUser:()=>n.yH,registerApp:()=>P,registerBreadcrumb:()=>y.vf,registerBreadcrumbs:()=>y.MY,registerDefaultCalendar:()=>z.XE,registerExtension:()=>O.VK,registerExtensionSlot:()=>O.FY,registerFeatureFlag:()=>w.uA,registerGlobalStore:()=>W.CE,registerModal:()=>O.Ju,registerModuleLoad:()=>o.kl,registerModuleWithConfigSystem:()=>o.FL,registerOfflinePatientHandler:()=>v.KG,registerOmrsServiceWorker:()=>v.sZ,registerTranslationNamespace:()=>o.GV,registerWorkspace:()=>O.pm,registerWorkspaceGroup:()=>O.io,removeDynamicOfflineData:()=>v.NU,removeDynamicOfflineDataFor:()=>v.wn,removeRoutesOverride:()=>G,renderActionableNotifications:()=>X.zf,renderExtension:()=>O.wG,renderInlineNotifications:()=>X.CU,renderLoadingSpinner:()=>X.uW,renderSnackbars:()=>X.q9,renderToasts:()=>X.f1,reportError:()=>h.N,reset:()=>O.cL,resetAllRoutesOverrides:()=>U,resetWorkspaceStore:()=>X._1,restBaseUrl:()=>n.Jj,retry:()=>ne,runSynchronization:()=>v.AO,saveVisit:()=>f.Ds,selectPreferredName:()=>Y.VO,sessionEndpoint:()=>n.Ct,sessionStore:()=>n.eA,setCurrentOfflineMode:()=>v.Og,setCurrentVisit:()=>f.NH,setFeatureFlag:()=>w.B4,setLeftNav:()=>O.Vx,setSessionLocation:()=>n.Gp,setUserLanguage:()=>n.E4,setUserProperties:()=>n.Fi,setupApiModule:()=>n.Y0,setupDynamicOfflineDataHandler:()=>v.iD,setupHistory:()=>y.Wh,setupModals:()=>X.EP,setupOfflineSync:()=>v.cy,shallowEqual:()=>K.b,showActionableNotification:()=>X.Zy,showModal:()=>X.to,showNotification:()=>X.Ds,showSnackbar:()=>X.td,showToast:()=>X.P0,showWorkspacePrompts:()=>X.ct,slugify:()=>a,subscribeActionableNotificationShown:()=>s.bK,subscribeConnectivity:()=>s.sT,subscribeConnectivityChanged:()=>s.gj,subscribeNotificationShown:()=>s.bJ,subscribePrecacheStaticDependencies:()=>s.ff,subscribeSnackbarShown:()=>s.ls,subscribeTo:()=>W.i7,subscribeToFeatureFlag:()=>w.sM,subscribeToastShown:()=>s.dX,syncAllDynamicOfflineData:()=>v.Td,syncDynamicOfflineData:()=>v.u1,syncOfflinePatientData:()=>v.sK,temporaryConfigStore:()=>o.H,toDateObjectStrict:()=>z.kQ,toLocationObject:()=>f.E$,toOmrsIsoString:()=>z.l0,toVisitTypeObject:()=>f.Qx,translateFrom:()=>i.t,tryRegisterExtension:()=>T,unsetLeftNav:()=>O.sr,updateInternalExtensionStore:()=>O.DQ,updateVisit:()=>f.xL,updateWorkspaceWindowState:()=>X._R,useAbortController:()=>S.Ie,useAppContext:()=>S.Us,useAssignedExtensionIds:()=>S.Tt,useAssignedExtensions:()=>S.CX,useAttachments:()=>S._9,useBodyScrollLock:()=>S.yJ,useConfig:()=>S.UK,useConnectedExtensions:()=>S.zD,useConnectivity:()=>S.Fx,useDebounce:()=>S.d7,useDefineAppContext:()=>S.jn,useEmrConfiguration:()=>S.E4,useExtensionInternalStore:()=>S.$B,useExtensionSlot:()=>S.br,useExtensionSlotMeta:()=>S.Wq,useExtensionSlotStore:()=>S.uL,useExtensionStore:()=>S.Gz,useFeatureFlag:()=>S.u,useFhirFetchAll:()=>S.oq,useFhirInfinite:()=>S.vL,useFhirPagination:()=>S.to,useForceUpdate:()=>S.CH,useLayoutType:()=>S.qv,useLeftNav:()=>S.if,useLeftNavStore:()=>S.TA,useLocations:()=>S.kH,useOnClickOutside:()=>S.Wr,useOnVisible:()=>S.Jm,useOpenmrsFetchAll:()=>S.Bf,useOpenmrsInfinite:()=>S.iy,useOpenmrsPagination:()=>S.Ed,useOpenmrsSWR:()=>S.M3,usePagination:()=>S.WQ,usePatient:()=>S.tQ,usePatientPhoto:()=>X.R9,usePrimaryIdentifierCode:()=>S.wJ,useRenderableExtensions:()=>S.oU,useSession:()=>S.wV,useStore:()=>S.Pj,useStoreWithActions:()=>S.mQ,useVisit:()=>S.fq,useVisitContextStore:()=>S.xH,useVisitTypes:()=>S.wr,useWorkspaces:()=>X.CH,userHasAccess:()=>n.st,validator:()=>o.Nc,validators:()=>o.y$,workspaceStore:()=>X.x9});var n=r(967),o=r(6963),s=r(8581),i=r(4652);function a(e){return e.replace(/[\/\-@]/g,"_")}async function c(e,t="./start",n){const o=!n?.maxLoadingTime||n.maxLoadingTime<=0?6e5:n.maxLoadingTime;let s;await Promise.race([l(e,n?.importMap),new Promise((t,r)=>{s=setTimeout(()=>{var t;r(new Error(`Could not resolve requested script, ${e}, within ${t=o,t<1e3?`${t} milliseconds`:t<6e4?`${Math.floor(t/1e3)} seconds`:t<36e5?`${Math.floor(t/6e4)} minutes`:t<864e5?`${Math.floor(t/36e5)} hours`:`${Math.floor(t/864e5)} days`}.`))},o)})]),s&&clearTimeout(s);const i=a(e),c=window[i];if("object"!=typeof(p=c)||null===p||!("init"in p)||"function"!=typeof p.init||!("get"in p)||"function"!=typeof p.get){const e=`The global variable ${i} does not refer to a federated module`;throw console.error(e),new Error(e)}var p;c.init(r.S.default);const u=(await c.get(t))();if("object"!=typeof u||null===u){const t=`Container for ${e} did not return an ESM module as expected`;throw console.error(t),new Error(t)}return u}async function l(e,t){if("string"!=typeof e||0===e.trim().length){const e="Attempted to call importDynamic() without supplying a package to load";throw console.error(e),new Error(e)}const r=a(e);if(!window[r]){const r=t??await p();if(!r.imports.hasOwnProperty(e)){const t=`Could not find the package ${e} defined in the current importmap`;throw console.error(t),new Error(t)}let n=r.imports[e];n.startsWith("./")&&(n=window.spaBase+n.substring(1));const o=!!window.localStorage.getItem(`import-map-override:${e}`);try{return await new Promise((e,t)=>{!function(e,t,r){const n=document.head.querySelector(`script[src="${e}"]`);let o=window[u];if(o||(o=window[u]=new Set([])),n)if(o.has(e)){let e,o,s;s=()=>{e&&n.removeEventListener("load",e),o&&n.removeEventListener("error",o)},e=()=>{s(),t(null)},o=e=>{s(),r(e.message)},n.addEventListener("load",e),n.addEventListener("error",o)}else console.warn(`Script at ${e} already loaded. Not loading it again.`),t(null);else{o.add(e);const n=document.createElement("script");n.src=e,n.type="text/javascript",n.async=!0;const s=setTimeout(()=>{console.error(`The script at ${e} did not load within 5 seconds. This may indicate an issue with the imports in the script's entry-point file or with the script's bundler configuration.`)},5e3);let i,a,c;c=()=>{clearTimeout(s),o.delete(e),i&&n.removeEventListener("load",i),a&&n.removeEventListener("error",a)},i=()=>{c(),t(null)},a=t=>{c();const n=`Failed to load script from ${e}`;console.error(n,t),r(t.message??n)},n.addEventListener("load",i),n.addEventListener("error",a),document.head.appendChild(n)}}(n,e,t)})}catch(e){return o&&(0,s.Vt)({kind:"error",title:(0,i.V)("scriptLoadingFailed","Error: Script failed to load"),description:(0,i.V)("scriptLoadingError","Failed to load overridden script from {{- url}}. Please check that the bundled script is available at the expected URL. Click the button below to reset all import map overrides.",{url:n}),actionButtonLabel:(0,i.V)("resetOverrides","Reset overrides"),onActionButtonClick(){window.importMapOverrides.resetOverrides(),window.location.reload()}}),Promise.reject(e)}}return Promise.resolve()}async function p(){return window.importMapOverrides.getCurrentPageMap()}const u=Symbol("__openmrs_script_loading");var f=r(5070),h=r(44),m=r(4596),d=r(9493),E=r(2894);function g(e){if(!("string"==typeof e||"object"==typeof e&&e&&"type"in e))throw`Unknown expression type ${e}. Expressions must either be a string or pre-compiled string.`;const t=(r=E.f,{globals:{...r},isLocalExpression:!1,variables:new Set});var r;return I("string"==typeof e?(0,d.A)(e):e,t),[...t.variables]}function I(e,t){switch(e.type){case"UnaryExpression":return function(e,t){return I(e.argument,t)}(e,t);case"BinaryExpression":return function(e,t){return[I(e.left,t),I(e.right,t)].filter(Boolean)}(e,t);case"ConditionalExpression":return function(e,t){return[I(e.consequent,t),I(e.test,t),I(e.alternate,t)].filter(Boolean)}(e,t);case"CallExpression":return function(e,t){const r=I(e.callee,t);return e.arguments?.map($(t)),r}(e,t);case"ArrowFunctionExpression":return function(e,t){const r={...t};r.isLocalExpression=!0;const n=e.params?.map($(r))??[],o=I(e.body,r)??[];if(o&&Array.isArray(o))for(const e of o)n.includes(e)||t.variables.add(e)}(e,t);case"MemberExpression":return function(e,t){I(e.object,t);const r={...t};r.isLocalExpression=!0,I(e.property,r)}(e,t);case"ArrayExpression":return function(e,t){e.elements?.map($(t))}(e,t);case"SequenceExpression":return function(e,t){e.expressions?.map($(t))}(e,t);case"NewExpression":return function(e,t){e.arguments?.map($(t))}(e,t);case"Literal":case"TemplateElement":return;case"Identifier":return function(e,t){if(!(e.name in t.globals)){if(t.isLocalExpression)return e.name;t.variables.add(e.name)}}(e,t);case"TemplateLiteral":return function(e,t){e.expressions?.map($(t)),e.quasis?.map($(t))}(e,t);default:throw`Expression evaluator does not support expression of type '${e.type}'`}}function $(e){return function(t){return null===t?null:I(t,e)}}var O=r(3011),w=r(7513),y=r(5874),v=r(6484),S=r(316);const R="openmrs-routes:";var A=r(599);const N=new Map;async function b(e,t){const r=t.indexOf("#"),n=r>=0,s=n?t.substring(0,r):e,i=n?t.substring(r+1):t,a=await c(s);return a&&Object.hasOwn(a,i)&&"function"==typeof a[i]?async function(e,t){if(e in N)await N[e];else{let r=t??await c(e);await(N[e]=new Promise((t,n)=>{if(Object.hasOwn(r,"startupApp")){const s=r.startupApp;if("function"==typeof s)return Promise.resolve(s()).then(()=>{(0,o.kl)(e),t(null)}).catch(n)}(0,o.kl)(e),t(null)}))}}(s,a).then(()=>a[i]()):(a?a&&Object.hasOwn(a,i)?console.warn(`The export ${t}, defined in ${e}'s routes.json, is not a function`):console.warn(`${s} does not define a component called "${i}", referenced in ${e}'s routes.json. This cannot be loaded.`):console.warn(`Unknown app ${s} for ${t} defined in ${e}'s routes.json`),L)}const L={bootstrap:()=>Promise.resolve(),mount:()=>Promise.resolve(),unmount:()=>Promise.resolve()};function T(e,t){const r=t.name;if(!r)return void console.error(`An extension definition in ${e} is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nextension definition.`,t);t.slots&&t.slot&&console.warn(`The extension ${r} from ${e} declares both a 'slots' property and\na 'slot' property. Only the 'slots' property will be honored.`);const n=t.slots?t.slots:t.slot?[t.slot]:[];if(t.component){(0,O.VK)({name:r,load:()=>b(e,t.component),meta:t.meta||{},order:t.order,moduleName:e,privileges:t.privileges,online:t.online??!0,offline:t.offline??!1,featureFlag:t.featureFlag});for(const e of n)(0,O.K0)(e,r)}else console.error(`The extension ${r} from ${e} is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the extension definition.`,t)}const x=[];function C(e){if(Array.isArray(e)){const t=e.map(C);return e=>t.some(t=>t(e))}return"string"==typeof e?(0,A.fz)(window.getOpenmrsSpaBase()+e):e instanceof RegExp?t=>function(e,t){return e.test(t.pathname.replace(window.getOpenmrsSpaBase(),""))}(e,t):()=>e}function P(e,t){if(e&&t&&"object"==typeof t){(0,o.FL)(e);const r=t.extensions??[],n=t.modals??[],s=t.workspaces??[],i=t.workspaceGroups??[],a=t.featureFlags??[];t.pages?.forEach(t=>{t&&"object"==typeof t&&Object.hasOwn(t,"component")&&(Object.hasOwn(t,"route")||Object.hasOwn(t,"routeRegex")||Object.hasOwn(t,"routes"))?x.push({...t,appName:e}):console.warn(`A page for ${e} could not be registered as it does not appear to have the required properties`,t)}),r.forEach(t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?T(e,t):console.warn(`An extension for ${e} could not be registered as it does not appear to have the required properties`,t)}),n.forEach(t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){const r=t.name;r?t.component?(0,O.Ju)({name:r,moduleName:e,load:()=>b(e,t.component)}):console.error(`The modal ${r} from ${e} is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the modal definition.`,t):console.error(`A modal definition in ${e} is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nmodal definition.`,t)}(e,t):console.warn(`A modal for ${e} could not be registered as it does not appear to have the required properties`,t)}),s.forEach(t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){const r=t.name;if(!r)return void console.error(`A workspace definition in ${e} is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.`,t);const n=t.title;if(n)if(t.component){(0,O.pm)({name:r,title:n,component:t.component,moduleName:e,type:t.type,canHide:t.canHide,canMaximize:t.canMaximize,width:t.width,preferredWindowSize:t.preferredWindowSize,groups:t.groups,load:()=>b(e,t.component)});for(const e of t.groups||[])(0,O.io)({name:e,members:[r]})}else console.error(`The workspace ${r} from ${e} is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the workspace definition.`,t);else console.error(`A workspace definition in ${e} is missing a title and thus cannot be registered.\nTo fix this, ensure that you define the "title" field inside the workspace definition.`,t)}(e,t):console.warn(`A workspace for ${e} could not be registered as it does not appear to have the required properties`,t)}),i.forEach(t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")?function(e,t){const r=t.name;r?(0,O.io)({name:r,members:t.members??[]}):console.error(`A workspace group definition in ${e} is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.`,t)}(e,t):console.warn(`A workspace group for ${e} could not be registered as it does not appear to have the required properties`,t)}),a.forEach(t=>{t&&"object"==typeof t&&Object.hasOwn(t,"flagName")?function(e,t){t.flagName?t.label?t.description?(0,w.uA)(t.flagName,t.label,t.description):console.error(`A feature flag definition in ${e} is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "description" field inside the feature flag definition.`,t):console.error(`A feature flag definition in ${e} is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "label" field inside the feature flag definition.`,t):console.error(`A feature flag definition in ${e} is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the feature flag definition.`,t)}(e,t):console.warn(`A feature flag for ${e} could not be registered as it does not appear to have the required properties`,t)})}}function D(){x.sort((e,t)=>e.appName.localeCompare(t.appName,"en"));let e=new Map;for(let t of x){e.has(t.appName)?e.set(t.appName,e.get(t.appName)+1):e.set(t.appName,0);const r=e.get(t.appName),n=`${t.appName}-page-${r}`,o=t.containerDomId??"omrs-apps-container",s=document.getElementById(o),i=`single-spa-application:${n}`;if(!s)throw new Error(`${t.appName} ${t.component} cannot be mounted to "${o}"; DOM element does not exist.`);{const e=document.createElement("div");e.id=i,s?.appendChild(e)}F(n,t)}}function F(e,t){const r=void 0!==t.route?t.route:void 0!==t.routeRegex&&new RegExp(t.routeRegex);if(!1===r)return void console.warn('A registered page definition is missing a route and thus cannot be registered.\nTo fix this, ensure that you define the "route" (or alternatively the "routeRegex") field inside the extension definition.',e);if(!t.component)return void console.warn('A registered page definition is missing a component and thus cannot be registered.\nTo fix this, ensure that you define the "component" field inside the page definition.',e);const n=function(e,{online:t,offline:r,featureFlag:n}){return window.offlineEnabled?o=>!!(navigator.onLine&&(t??1)||!navigator.onLine&&r)&&!(n&&!(0,w.jj)(n))&&e(o):e}(C(r),t);(0,A.AG)(e,()=>b(t.appName,t.component),n)}function M(e=window.localStorage){try{return e.getItem("test"),!0}catch{return!1}}const k=M();function j(e,t){if(k){if("string"==typeof t){if(t.startsWith("http"))return B(e,t);try{const r=JSON.parse(t);if(V(r))return B(e,r);console.error(`The supplied routes for ${e} is not a valid OpenmrsAppRoutes object`,t)}catch(t){console.error(`Could not add routes override for ${e}: `,t)}}else{if(t instanceof URL)return B(e,t.toString());if(V(t))return B(e,t)}console.error(`Override for ${e} is not in a valid format. Expected either a Javascript Object, a JSON string of a Javascript object, or a URL`,t)}}function G(e){if(!k)return;const t=R+e;localStorage.removeItem(t)}function U(){if(!k)return;const e=window.localStorage;for(let t=0;t<e.length;t++){const r=e.key(t);r?.startsWith(R)&&e.removeItem(r)}}function B(e,t){const r=R+e;localStorage.setItem(r,JSON.stringify(t))}function V(e){if(e&&"object"==typeof e){const t=Object.prototype.hasOwnProperty,r=e;return!!((!t.call(e,"pages")||Boolean(r.pages)&&Array.isArray(r.pages))&&(!t.call(e,"extensions")||Boolean(r.extensions)&&Array.isArray(r.extensions))&&(!t.call(e,"workspaces")||Boolean(r.workspaces)&&Array.isArray(r.workspaces))&&(!t.call(e,"modals")||Boolean(r.modals)&&Array.isArray(r.modals)))}return!1}function _(e){if(e&&"object"==typeof e){const t=e;return Object.entries(t).every(([e,t])=>"string"==typeof e&&V(t))}return!1}var W=r(5048),X=r(4968),H=r(6410),z=r(7624),q=r(3616),J=r(5841),Y=r(3844),K=r(8101);function Q(e){let t={};for(let r of Object.keys(e))if(Z(e[r])&&e[r].hasOwnProperty("_default"))t[r]=e[r]._default;else{if(r.startsWith("_"))continue;Z(e[r])?t[r]=Q(e[r]):t[r]=e[r]}return t}function Z(e){return!!e&&e.constructor===Object}var ee=r(4469);function te(e){const[t,r,n]=e.split(".");return`${t}.${r}.${n}`}function re(e,t){const r=function(e){const t=e.indexOf("-");return t>=0?`${te(e.slice(0,t))}-${e.slice(t+1)}`:te(e)}(t);return ee.satisfies(r,e,{includePrerelease:!0})}async function ne(e,t={}){let{shouldRetry:r,getDelay:n,onError:o}=t;r=r??(e=>function(e){return e<=5}(e)),n=n??(e=>function(e,t,r=!1){const n=r?e+1:e;return 1e3*Math.pow(2,n)}(e));let s,i=0;do{try{return await oe(n(i)),await e()}catch(e){o?.(e,i),s=e}}while(r(i++));throw s}async function oe(e){if(!(e<=0))return new Promise(t=>setTimeout(t,e))}}}]);