@cc-openmrs/cc-esm-active-prescriptions 1.0.51 → 1.0.53

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/319.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[319],{2786(n,e,r){r.d(e,{A:()=>c});var t=r(2996),a=r.n(t),o=r(159),i=r.n(o)()(a());i.push([n.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-cc-esm-active-prescriptions__box__blue___62DJr{background-color:#00008b}.-cc-esm-active-prescriptions__box__red___w2gGh{background-color:darkred}.-cc-esm-active-prescriptions__box__brand___DgXfT{background-color:#005d5d;background-color:var(--brand-01);color:#fff;padding:.5rem}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/boxes/extensions/box.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCtDD,iDACC,wBAAA,CAGF,gDACE,wBAAA,CAMF,kDDsBE,wBAAA,CACA,gCAAA,CCrBA,UAAA,CACA,aAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","/* Extensions should supply the minimum amount of styling\n * necessary. Here, the extensions set only their colors.\n * Their sizes and other general features of their display\n * is controlled by the slot. */\n@use \"@carbon/layout\";\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n .blue {\n background-color: darkblue;\n}\n\n.red {\n background-color: darkred;\n}\n\n/* Brand colors are special. They must be included using a\n * SASS mix-in (shown here) or using a CSS variable like\n * `var(--brand-01)`. */\n.brand {\n @include brand-01(background-color);\n color: white;\n padding: layout.$spacing-03;\n}\n"],sourceRoot:""}]),i.locals={blue:"-cc-esm-active-prescriptions__box__blue___62DJr",red:"-cc-esm-active-prescriptions__box__red___w2gGh",brand:"-cc-esm-active-prescriptions__box__brand___DgXfT"};const c=i},159(n){n.exports=function(n){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r}).join("")},e.i=function(n,r,t){"string"==typeof n&&(n=[[null,n,""]]);var a={};if(t)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(a[i]=!0)}for(var c=0;c<n.length;c++){var s=[].concat(n[c]);t&&a[s[0]]||(r&&(s[2]?s[2]="".concat(r," and ").concat(s[2]):s[2]=r),e.push(s))}},e}},2996(n){function e(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=n[r];return t}n.exports=function(n){var r,t,a=(t=4,function(n){if(Array.isArray(n))return n}(r=n)||function(n,e){var r=n&&("undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"]);if(null!=r){var t,a,o=[],i=!0,c=!1;try{for(r=r.call(n);!(i=(t=r.next()).done)&&(o.push(t.value),!e||o.length!==e);i=!0);}catch(n){c=!0,a=n}finally{try{i||null==r.return||r.return()}finally{if(c)throw a}}return o}}(r,t)||function(n,r){if(n){if("string"==typeof n)return e(n,r);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?e(n,r):void 0}}(r,t)||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.")}()),o=a[1],i=a[3];if(!i)return o;if("function"==typeof btoa){var c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),d="/*# ".concat(s," */"),p=i.sources.map(function(n){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(n," */")});return[o].concat(p).concat([d]).join("\n")}return[o].join("\n")}},4319(n,e,r){r.r(e),r.d(e,{default:()=>o});var t=r(6072),a=r(9953);const o=function(){return t.createElement("div",{className:a.A.red})}},9953(n,e,r){r.d(e,{A:()=>v});var t=r(5072),a=r.n(t),o=r(7825),i=r.n(o),c=r(7659),s=r.n(c),d=r(5056),p=r.n(d),u=r(540),l=r.n(u),f=r(1113),b=r.n(f),m=r(2786),h={};h.styleTagTransform=b(),h.setAttributes=p(),h.insert=s().bind(null,"head"),h.domAPI=i(),h.insertStyleElement=l(),a()(m.A,h);const v=m.A&&m.A.locals?m.A.locals:void 0},5072(n){var e=[];function r(n){for(var r=-1,t=0;t<e.length;t++)if(e[t].identifier===n){r=t;break}return r}function t(n,t){for(var o={},i=[],c=0;c<n.length;c++){var s=n[c],d=t.base?s[0]+t.base:s[0],p=o[d]||0,u="".concat(d," ").concat(p);o[d]=p+1;var l=r(u),f={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==l)e[l].references++,e[l].updater(f);else{var b=a(f,t);t.byIndex=c,e.splice(c,0,{identifier:u,updater:b,references:1})}i.push(u)}return i}function a(n,e){var r=e.domAPI(e);return r.update(n),function(e){if(e){if(e.css===n.css&&e.media===n.media&&e.sourceMap===n.sourceMap&&e.supports===n.supports&&e.layer===n.layer)return;r.update(n=e)}else r.remove()}}n.exports=function(n,a){var o=t(n=n||[],a=a||{});return function(n){n=n||[];for(var i=0;i<o.length;i++){var c=r(o[i]);e[c].references--}for(var s=t(n,a),d=0;d<o.length;d++){var p=r(o[d]);0===e[p].references&&(e[p].updater(),e.splice(p,1))}o=s}}},7659(n){var e={};n.exports=function(n,r){var t=function(n){if(void 0===e[n]){var r=document.querySelector(n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(n){r=null}e[n]=r}return e[n]}(n);if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");t.appendChild(r)}},540(n){n.exports=function(n){var e=document.createElement("style");return n.setAttributes(e,n.attributes),n.insert(e,n.options),e}},5056(n,e,r){n.exports=function(n){var e=r.nc;e&&n.setAttribute("nonce",e)}},7825(n){n.exports=function(n){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=n.insertStyleElement(n);return{update:function(r){!function(n,e,r){var t="";r.supports&&(t+="@supports (".concat(r.supports,") {")),r.media&&(t+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(t+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),t+=r.css,a&&(t+="}"),r.media&&(t+="}"),r.supports&&(t+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(t,n,e.options)}(e,n,r)},remove:function(){!function(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n)}(e)}}}},1113(n){n.exports=function(n,e){if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}}}]);
1
+ "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[319],{2786(n,r,e){e.d(r,{A:()=>i});var a=e(2996),o=e.n(a),s=e(159),t=e.n(s)()(o());t.push([n.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-cc-esm-active-prescriptions__box__blue___62DJr{background-color:#00008b}.-cc-esm-active-prescriptions__box__red___w2gGh{background-color:darkred}.-cc-esm-active-prescriptions__box__brand___DgXfT{background-color:#005d5d;background-color:var(--brand-01);color:#fff;padding:.5rem}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/boxes/extensions/box.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCtDD,iDACC,wBAAA,CAGF,gDACE,wBAAA,CAMF,kDDsBE,wBAAA,CACA,gCAAA,CCrBA,UAAA,CACA,aAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","/* Extensions should supply the minimum amount of styling\n * necessary. Here, the extensions set only their colors.\n * Their sizes and other general features of their display\n * is controlled by the slot. */\n@use \"@carbon/layout\";\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n .blue {\n background-color: darkblue;\n}\n\n.red {\n background-color: darkred;\n}\n\n/* Brand colors are special. They must be included using a\n * SASS mix-in (shown here) or using a CSS variable like\n * `var(--brand-01)`. */\n.brand {\n @include brand-01(background-color);\n color: white;\n padding: layout.$spacing-03;\n}\n"],sourceRoot:""}]),t.locals={blue:"-cc-esm-active-prescriptions__box__blue___62DJr",red:"-cc-esm-active-prescriptions__box__red___w2gGh",brand:"-cc-esm-active-prescriptions__box__brand___DgXfT"};const i=t},4319(n,r,e){e.r(r),e.d(r,{default:()=>s});var a=e(6072),o=e(9953);const s=function(){return a.createElement("div",{className:o.A.red})}},9953(n,r,e){e.d(r,{A:()=>g});var a=e(5072),o=e.n(a),s=e(7825),t=e.n(s),i=e(7659),d=e.n(i),c=e(5056),p=e.n(c),b=e(540),l=e.n(b),A=e(1113),h=e.n(A),m=e(2786),u={};u.styleTagTransform=h(),u.setAttributes=p(),u.insert=d().bind(null,"head"),u.domAPI=t(),u.insertStyleElement=l(),o()(m.A,u);const g=m.A&&m.A.locals?m.A.locals:void 0}}]);
package/dist/478.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 478.js.LICENSE.txt */
2
+ "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[478],{8493(e,t,s){var i=s(6072),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=i.useState,a=i.useEffect,r=i.useLayoutEffect,l=i.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!o(e,s)}catch(e){return!0}}var h="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),i=n({inst:{value:s,getSnapshot:t}}),o=i[0].inst,h=i[1];return r(function(){o.value=s,o.getSnapshot=t,c(o)&&h({inst:o})},[e,s,t]),a(function(){return c(o)&&h({inst:o}),e(function(){c(o)&&h({inst:o})})},[e]),l(s),s};t.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:h},9888(e,t,s){e.exports=s(8493)},2635(e,t,s){s.d(t,{Ay:()=>q,Rm:()=>R});const i=e=>"string"==typeof e,o=()=>{let e,t;const s=new Promise((s,i)=>{e=s,t=i});return s.resolve=e,s.reject=t,s},n=e=>null==e?"":""+e,a=/###/g,r=e=>e&&e.indexOf("###")>-1?e.replace(a,"."):e,l=e=>!e||i(e),c=(e,t,s)=>{const o=i(t)?t.split("."):t;let n=0;for(;n<o.length-1;){if(l(e))return{};const t=r(o[n]);!e[t]&&s&&(e[t]=new s),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++n}return l(e)?{}:{obj:e,k:r(o[n])}},h=(e,t,s)=>{const{obj:i,k:o}=c(e,t,Object);if(void 0!==i||1===t.length)return void(i[o]=s);let n=t[t.length-1],a=t.slice(0,t.length-1),r=c(e,a,Object);for(;void 0===r.obj&&a.length;)n=`${a[a.length-1]}.${n}`,a=a.slice(0,a.length-1),r=c(e,a,Object),r?.obj&&void 0!==r.obj[`${r.k}.${n}`]&&(r.obj=void 0);r.obj[`${r.k}.${n}`]=s},p=(e,t)=>{const{obj:s,k:i}=c(e,t);if(s&&Object.prototype.hasOwnProperty.call(s,i))return s[i]},u=(e,t,s)=>{for(const o in t)"__proto__"!==o&&"constructor"!==o&&(o in e?i(e[o])||e[o]instanceof String||i(t[o])||t[o]instanceof String?s&&(e[o]=t[o]):u(e[o],t[o],s):e[o]=t[o]);return e},g=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const f=e=>i(e)?e.replace(/[&<>"'\/]/g,e=>d[e]):e,m=[" ",",","?","!",";"],y=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const s=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,s),this.regExpQueue.push(e),s}}(20),x=(e,t,s=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const i=t.split(s);let o=e;for(let e=0;e<i.length;){if(!o||"object"!=typeof o)return;let t,n="";for(let a=e;a<i.length;++a)if(a!==e&&(n+=s),n+=i[a],t=o[n],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<i.length-1)continue;e+=a-e+1;break}o=t}return o},b=e=>e?.replace(/_/g,"-"),v={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class k{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||v,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,s,o){return o&&!this.debug?null:(i(e[0])&&(e[0]=`${s}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new k(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new k(this.logger,e)}}var S=new k;class O{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const s=this.observers[e].get(t)||0;this.observers[e].set(t,s+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,s])=>{for(let i=0;i<s;i++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([s,i])=>{for(let o=0;o<i;o++)s.apply(s,[e,...t])})}}class L extends O{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,s,o={}){const n=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let r;e.indexOf(".")>-1?r=e.split("."):(r=[e,t],s&&(Array.isArray(s)?r.push(...s):i(s)&&n?r.push(...s.split(n)):r.push(s)));const l=p(this.data,r);return!l&&!t&&!s&&e.indexOf(".")>-1&&(e=r[0],t=r[1],s=r.slice(2).join(".")),!l&&a&&i(s)?x(this.data?.[e]?.[t],s,n):l}addResource(e,t,s,i,o={silent:!1}){const n=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let a=[e,t];s&&(a=a.concat(n?s.split(n):s)),e.indexOf(".")>-1&&(a=e.split("."),i=t,t=a[1]),this.addNamespaces(t),h(this.data,a,i),o.silent||this.emit("added",e,t,s,i)}addResources(e,t,s,o={silent:!1}){for(const o in s)(i(s[o])||Array.isArray(s[o]))&&this.addResource(e,t,o,s[o],{silent:!0});o.silent||this.emit("added",e,t,s)}addResourceBundle(e,t,s,i,o,n={silent:!1,skipCopy:!1}){let a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),i=s,s=t,t=a[1]),this.addNamespaces(t);let r=p(this.data,a)||{};n.skipCopy||(s=JSON.parse(JSON.stringify(s))),i?u(r,s,o):r={...r,...s},h(this.data,a,r),n.silent||this.emit("added",e,t,s)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var w={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,s,i,o){return e.forEach(e=>{t=this.processors[e]?.process(t,s,i,o)??t}),t}};const $=Symbol("i18next/PATH_KEY");function R(e,t){const{[$]:s}=e(function(){const e=[],t=Object.create(null);let s;return t.get=(i,o)=>(s?.revoke?.(),o===$?e:(e.push(o),s=Proxy.revocable(i,t),s.proxy)),Proxy.revocable(Object.create(null),t).proxy}()),i=t?.keySeparator??".",o=t?.nsSeparator??":";if(s.length>1&&o){const e=t?.ns;if((e?Array.isArray(e)?e:[e]:[]).includes(s[0]))return`${s[0]}${o}${s.slice(1).join(i)}`}return s.join(i)}const C={},j=e=>!i(e)&&"boolean"!=typeof e&&"number"!=typeof e;class P extends O{constructor(e,t={}){var s,i;super(),s=e,i=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{s[e]&&(i[e]=s[e])}),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=S.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const s={...t};if(null==e)return!1;const i=this.resolve(e,s);if(void 0===i?.res)return!1;const o=j(i.res);return!1!==s.returnObjects||!o}extractFromKey(e,t){let s=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===s&&(s=":");const o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let n=t.ns||this.options.defaultNS||[];const a=s&&e.indexOf(s)>-1,r=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,s)=>{t=t||"",s=s||"";const i=m.filter(e=>t.indexOf(e)<0&&s.indexOf(e)<0);if(0===i.length)return!0;const o=y.getRegExp(`(${i.map(e=>"?"===e?"\\?":e).join("|")})`);let n=!o.test(e);if(!n){const t=e.indexOf(s);t>0&&!o.test(e.substring(0,t))&&(n=!0)}return n})(e,s,o));if(a&&!r){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i(n)?[n]:n};const a=e.split(s);(s!==o||s===o&&this.options.ns.indexOf(a[0])>-1)&&(n=a.shift()),e=a.join(o)}return{key:e,namespaces:i(n)?[n]:n}}translate(e,t,s){let o="object"==typeof t?{...t}:t;if("object"!=typeof o&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof o&&(o={...o}),o||(o={}),null==e)return"";"function"==typeof e&&(e=R(e,{...this.options,...o})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?R(e,{...this.options,...o}):String(e));const n=void 0!==o.returnDetails?o.returnDetails:this.options.returnDetails,a=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,{key:r,namespaces:l}=this.extractFromKey(e[e.length-1],o),c=l[l.length-1];let h=void 0!==o.nsSeparator?o.nsSeparator:this.options.nsSeparator;void 0===h&&(h=":");const p=o.lng||this.language,u=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===p?.toLowerCase())return u?n?{res:`${c}${h}${r}`,usedKey:r,exactUsedKey:r,usedLng:p,usedNS:c,usedParams:this.getUsedParamsDetails(o)}:`${c}${h}${r}`:n?{res:r,usedKey:r,exactUsedKey:r,usedLng:p,usedNS:c,usedParams:this.getUsedParamsDetails(o)}:r;const g=this.resolve(e,o);let d=g?.res;const f=g?.usedKey||r,m=g?.exactUsedKey||r,y=void 0!==o.joinArrays?o.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,b=void 0!==o.count&&!i(o.count),v=P.hasDefaultValue(o),k=b?this.pluralResolver.getSuffix(p,o.count,o):"",S=o.ordinal&&b?this.pluralResolver.getSuffix(p,o.count,{ordinal:!1}):"",O=b&&!o.ordinal&&0===o.count,L=O&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${k}`]||o[`defaultValue${S}`]||o.defaultValue;let w=d;x&&!d&&v&&(w=L);const $=j(w),C=Object.prototype.toString.apply(w);if(!(x&&w&&$&&["[object Number]","[object Function]","[object RegExp]"].indexOf(C)<0)||i(y)&&Array.isArray(w))if(x&&i(y)&&Array.isArray(d))d=d.join(y),d&&(d=this.extendTranslation(d,e,o,s));else{let t=!1,i=!1;!this.isValidLookup(d)&&v&&(t=!0,d=L),this.isValidLookup(d)||(i=!0,d=r);const n=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:d,l=v&&L!==d&&this.options.updateMissing;if(i||t||l){if(this.logger.log(l?"updateKey":"missingKey",p,c,r,l?L:d),a){const e=this.resolve(r,{...o,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let s=0;s<t.length;s++)e.push(t[s]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(o.lng||this.language):e.push(o.lng||this.language);const s=(e,t,s)=>{const i=v&&s!==d?s:n;this.options.missingKeyHandler?this.options.missingKeyHandler(e,c,t,i,l,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,c,t,i,l,o),this.emit("missingKey",e,c,t,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,o);O&&o[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{s([e],r+t,o[`defaultValue${t}`]||L)})}):s(e,r,L))}d=this.extendTranslation(d,e,o,g,s),i&&d===r&&this.options.appendNamespaceToMissingKey&&(d=`${c}${h}${r}`),(i||t)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${h}${r}`:r,t?d:void 0,o))}else{if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,w,{...o,ns:l}):`key '${r} (${this.language})' returned an object instead of string.`;return n?(g.res=e,g.usedParams=this.getUsedParamsDetails(o),g):e}if(a){const e=Array.isArray(w),t=e?[]:{},s=e?m:f;for(const e in w)if(Object.prototype.hasOwnProperty.call(w,e)){const i=`${s}${a}${e}`;t[e]=v&&!d?this.translate(i,{...o,defaultValue:j(L)?L[e]:void 0,joinArrays:!1,ns:l}):this.translate(i,{...o,joinArrays:!1,ns:l}),t[e]===i&&(t[e]=w[e])}d=t}}return n?(g.res=d,g.usedParams=this.getUsedParamsDetails(o),g):d}extendTranslation(e,t,s,o,n){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const a=i(e)&&(void 0!==s?.interpolation?.skipOnVariables?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let r;if(a){const t=e.match(this.interpolator.nestingRegexp);r=t&&t.length}let l=s.replace&&!i(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,s.lng||this.language||o.usedLng,s),a){const t=e.match(this.interpolator.nestingRegexp);r<(t&&t.length)&&(s.nest=!1)}!s.lng&&o&&o.res&&(s.lng=this.language||o.usedLng),!1!==s.nest&&(e=this.interpolator.nest(e,(...e)=>n?.[0]!==e[0]||s.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),s)),s.interpolation&&this.interpolator.reset()}const a=s.postProcess||this.options.postProcess,r=i(a)?[a]:a;return null!=e&&r?.length&&!1!==s.applyPostProcessor&&(e=w.handle(r,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),e}resolve(e,t={}){let s,o,n,a,r;return i(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?R(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(s))return;const l=this.extractFromKey(e,t),c=l.key;o=c;let h=l.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const p=void 0!==t.count&&!i(t.count),u=p&&!t.ordinal&&0===t.count,g=void 0!==t.context&&(i(t.context)||"number"==typeof t.context)&&""!==t.context,d=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);h.forEach(e=>{this.isValidLookup(s)||(r=e,C[`${d[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(r)||(C[`${d[0]}-${e}`]=!0,this.logger.warn(`key "${o}" for languages "${d.join(", ")}" won't get resolved as namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach(i=>{if(this.isValidLookup(s))return;a=i;const o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,i,e,t);else{let e;p&&(e=this.pluralResolver.getSuffix(i,t.count,t));const s=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(t.ordinal&&0===e.indexOf(n)&&o.push(c+e.replace(n,this.options.pluralSeparator)),o.push(c+e),u&&o.push(c+s)),g){const i=`${c}${this.options.contextSeparator||"_"}${t.context}`;o.push(i),p&&(t.ordinal&&0===e.indexOf(n)&&o.push(i+e.replace(n,this.options.pluralSeparator)),o.push(i+e),u&&o.push(i+s))}}let r;for(;r=o.pop();)this.isValidLookup(s)||(n=r,s=this.getResource(i,e,r,t))}))})}),{res:s,usedKey:o,exactUsedKey:n,usedLng:a,usedNS:r}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,s,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,s,i):this.resourceStore.getResource(e,t,s,i)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=e.replace&&!i(e.replace);let o=s?e.replace:e;if(s&&void 0!==e.count&&(o.count=e.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!s){o={...o};for(const e of t)delete o[e]}return o}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}class N{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=S.create("languageUtils")}getScriptPartFromCode(e){if(!(e=b(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=b(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(i(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const s=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(s)||(t=s)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const s=this.getScriptPartFromCode(e);if(this.isSupportedCode(s))return t=s;const i=this.getLanguagePartFromCode(e);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(e=>e===i?e:e.indexOf("-")<0&&i.indexOf("-")<0?void 0:e.indexOf("-")>0&&i.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===i||0===e.indexOf(i)&&i.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),i(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let s=e[t];return s||(s=e[this.getScriptPartFromCode(t)]),s||(s=e[this.formatLanguageCode(t)]),s||(s=e[this.getLanguagePartFromCode(t)]),s||(s=e.default),s||[]}toResolveHierarchy(e,t){const s=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),o=[],n=e=>{e&&(this.isSupportedCode(e)?o.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return i(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&n(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&n(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&n(this.getLanguagePartFromCode(e))):i(e)&&n(this.formatLanguageCode(e)),s.forEach(e=>{o.indexOf(e)<0&&n(this.formatLanguageCode(e))}),o}}const E={zero:0,one:1,two:2,few:3,many:4,other:5},F={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class T{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=S.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const s=b("dev"===e?"en":e),i=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:s,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let n;try{n=new Intl.PluralRules(s,{type:i})}catch(s){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),F;if(!e.match(/-|_/))return F;const i=this.languageUtils.getLanguagePartFromCode(e);n=this.getRule(i,t)}return this.pluralRulesCache[o]=n,n}needsPlural(e,t={}){let s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),s?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,s={}){return this.getSuffixes(e,s).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),s?s.resolvedOptions().pluralCategories.sort((e,t)=>E[e]-E[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,s={}){const i=this.getRule(e,s);return i?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,s))}}const I=(e,t,s,o=".",n=!0)=>{let a=((e,t,s)=>{const i=p(e,s);return void 0!==i?i:p(t,s)})(e,t,s);return!a&&n&&i(s)&&(a=x(e,s,o),void 0===a&&(a=x(t,s,o))),a},V=e=>e.replace(/\$/g,"$$$$");class D{constructor(e={}){this.logger=S.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:s,useRawValueToEscape:i,prefix:o,prefixEscaped:n,suffix:a,suffixEscaped:r,formatSeparator:l,unescapeSuffix:c,unescapePrefix:h,nestingPrefix:p,nestingPrefixEscaped:u,nestingSuffix:d,nestingSuffixEscaped:m,nestingOptionsSeparator:y,maxReplaces:x,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:f,this.escapeValue=void 0===s||s,this.useRawValueToEscape=void 0!==i&&i,this.prefix=o?g(o):n||"{{",this.suffix=a?g(a):r||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=p?g(p):u||g("$t("),this.nestingSuffix=d?g(d):m||g(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=x||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,s,o){let a,r,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=e=>{if(e.indexOf(this.formatSeparator)<0){const i=I(t,c,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,s,{...o,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),n=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(I(t,c,n,this.options.keySeparator,this.options.ignoreJSONStructure),a,s,{...o,...t,interpolationkey:n})};this.resetRegExp();const p=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=void 0!==o?.interpolation?.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>V(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?V(this.escape(e)):V(e)}].forEach(t=>{for(l=0;a=t.regex.exec(e);){const s=a[1].trim();if(r=h(s),void 0===r)if("function"==typeof p){const t=p(e,a,o);r=i(t)?t:""}else if(o&&Object.prototype.hasOwnProperty.call(o,s))r="";else{if(u){r=a[0];continue}this.logger.warn(`missed to pass in variable ${s} for interpolating ${e}`),r=""}else i(r)||this.useRawValueToEscape||(r=n(r));const c=t.safeValue(r);if(e=e.replace(a[0],c),u?(t.regex.lastIndex+=r.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t,s={}){let o,a,r;const l=(e,t)=>{const s=this.nestingOptionsSeparator;if(e.indexOf(s)<0)return e;const i=e.split(new RegExp(`${g(s)}[ ]*{`));let o=`{${i[1]}`;e=i[0],o=this.interpolate(o,r);const n=o.match(/'/g),a=o.match(/"/g);((n?.length??0)%2==0&&!a||(a?.length??0)%2!=0)&&(o=o.replace(/'/g,'"'));try{r=JSON.parse(o),t&&(r={...t,...r})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${s}${o}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,e};for(;o=this.nestingRegexp.exec(e);){let c=[];r={...s},r=r.replace&&!i(r.replace)?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;const h=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(-1!==h&&(c=o[1].slice(h).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),o[1]=o[1].slice(0,h)),a=t(l.call(this,o[1].trim(),r),r),a&&o[0]===e&&!i(a))return a;i(a)||(a=n(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),a=""),c.length&&(a=c.reduce((e,t)=>this.format(e,t,s.lng,{...s,interpolationkey:o[1].trim()}),a.trim())),e=e.replace(o[0],a),this.regexp.lastIndex=0}return e}}const A=e=>{const t={};return(s,i,o)=>{let n=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(n={...n,[o.interpolationkey]:void 0});const a=i+JSON.stringify(n);let r=t[a];return r||(r=e(b(i),o),t[a]=r),r(s)}},K=e=>(t,s,i)=>e(b(s),i)(t);class U{constructor(e={}){this.logger=S.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const s=t.cacheInBuiltFormats?A:K;this.formats={number:s((e,t)=>{const s=new Intl.NumberFormat(e,{...t});return e=>s.format(e)}),currency:s((e,t)=>{const s=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>s.format(e)}),datetime:s((e,t)=>{const s=new Intl.DateTimeFormat(e,{...t});return e=>s.format(e)}),relativetime:s((e,t)=>{const s=new Intl.RelativeTimeFormat(e,{...t});return e=>s.format(e,t.range||"day")}),list:s((e,t)=>{const s=new Intl.ListFormat(e,{...t});return e=>s.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=A(t)}format(e,t,s,i={}){const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(e=>e.indexOf(")")>-1)){const e=o.findIndex(e=>e.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}return o.reduce((e,t)=>{const{formatName:o,formatOptions:n}=(e=>{let t=e.toLowerCase().trim();const s={};if(e.indexOf("(")>-1){const i=e.split("(");t=i[0].toLowerCase().trim();const o=i[1].substring(0,i[1].length-1);"currency"===t&&o.indexOf(":")<0?s.currency||(s.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?s.range||(s.range=o.trim()):o.split(";").forEach(e=>{if(e){const[t,...i]=e.split(":"),o=i.join(":").trim().replace(/^'+|'+$/g,""),n=t.trim();s[n]||(s[n]=o),"false"===o&&(s[n]=!1),"true"===o&&(s[n]=!0),isNaN(o)||(s[n]=parseInt(o,10))}})}return{formatName:t,formatOptions:s}})(t);if(this.formats[o]){let t=e;try{const a=i?.formatParams?.[i.interpolationkey]||{},r=a.locale||a.lng||i.locale||i.lng||s;t=this.formats[o](e,r,{...n,...i,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e)}}class M extends O{constructor(e,t,s,i={}){super(),this.backend=e,this.store=t,this.services=s,this.languageUtils=s.languageUtils,this.options=i,this.logger=S.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(s,i.backend,i)}queueLoad(e,t,s,i){const o={},n={},a={},r={};return e.forEach(e=>{let i=!0;t.forEach(t=>{const a=`${e}|${t}`;!s.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===n[a]&&(n[a]=!0):(this.state[a]=1,i=!1,void 0===n[a]&&(n[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===r[t]&&(r[t]=!0)))}),i||(a[e]=!0)}),(Object.keys(o).length||Object.keys(n).length)&&this.queue.push({pending:n,pendingCount:Object.keys(n).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(n),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(r)}}loaded(e,t,s){const i=e.split("|"),o=i[0],n=i[1];t&&this.emit("failedLoading",o,n,t),!t&&s&&this.store.addResourceBundle(o,n,s,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&s&&(this.state[e]=0);const a={};this.queue.forEach(s=>{((e,t,s)=>{const{obj:i,k:o}=c(e,t,Object);i[o]=i[o]||[],i[o].push(s)})(s.loaded,[o],n),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(s,e),t&&s.errors.push(t),0!==s.pendingCount||s.done||(Object.keys(s.loaded).forEach(e=>{a[e]||(a[e]={});const t=s.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,s,i=0,o=this.retryTimeout,n){if(!e.length)return n(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:s,tried:i,wait:o,callback:n});this.readingCalls++;const a=(a,r)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&r&&i<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,s,i+1,2*o,n)},o):n(a,r)},r=this.backend[s].bind(this.backend);if(2!==r.length)return r(e,t,a);try{const s=r(e,t);s&&"function"==typeof s.then?s.then(e=>a(null,e)).catch(a):a(null,s)}catch(e){a(e)}}prepareLoading(e,t,s={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();i(e)&&(e=this.languageUtils.toResolveHierarchy(e)),i(t)&&(t=[t]);const n=this.queueLoad(e,t,s,o);if(!n.toLoad.length)return n.pending.length||o(),null;n.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,s){this.prepareLoading(e,t,{},s)}reload(e,t,s){this.prepareLoading(e,t,{reload:!0},s)}loadOne(e,t=""){const s=e.split("|"),i=s[0],o=s[1];this.read(i,o,"read",void 0,void 0,(s,n)=>{s&&this.logger.warn(`${t}loading namespace ${o} for language ${i} failed`,s),!s&&n&&this.logger.log(`${t}loaded namespace ${o} for language ${i}`,n),this.loaded(e,s,n)})}saveMissing(e,t,s,i,o,n={},a=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=s&&""!==s){if(this.backend?.create){const r={...n,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;o=5===l.length?l(e,t,s,i,r):l(e,t,s,i),o&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else l(e,t,s,i,a,r)}e&&e[0]&&this.store.addResource(e[0],t,s,i)}}else this.logger.warn(`did not save key "${s}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const z=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),i(e[1])&&(t.defaultValue=e[1]),i(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const s=e[3]||e[2];Object.keys(s).forEach(e=>{t[e]=s[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),H=e=>(i(e.ns)&&(e.ns=[e.ns]),i(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),i(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),_=()=>{},B="__i18next_supportNoticeShown";class J extends O{constructor(e={},t){var s;if(super(),this.options=H(e),this.services={},this.logger=S,this.modules={external:[]},s=this,Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(e=>{"function"==typeof s[e]&&(s[e]=s[e].bind(s))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(i(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const s=z();var n;this.options={...s,...this.options,...H(e)},this.options.interpolation={...s.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=s.overloadTranslationOptionHandler),!1===this.options.showSupportNotice||(n=this,n?.modules?.backend?.name?.indexOf("Locize")>0||n?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||n?.options?.backend?.backends&&n.options.backend.backends.some(e=>e?.name?.indexOf("Locize")>0||e?.constructor?.name?.indexOf("Locize")>0)||n?.options?.backend?.projectId||n?.options?.backend?.backendOptions&&n.options.backend.backendOptions.some(e=>e?.projectId))||"undefined"!=typeof globalThis&&globalThis[B]||("undefined"!=typeof console&&void 0!==console.info&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),"undefined"!=typeof globalThis&&(globalThis[B]=!0));const a=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?S.init(a(this.modules.logger),this.options):S.init(null,this.options),e=this.modules.formatter?this.modules.formatter:U;const t=new N(this.options);this.store=new L(this.options.resources,this.options);const i=this.services;i.logger=S,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new T(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==s.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==s.interpolation.format||(i.formatter=a(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new D(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new M(a(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=a(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=a(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new P(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=_),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const r=o(),l=()=>{const e=(e,s)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),r.resolve(s),t(e,s)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),r}loadResources(e,t=_){let s=t;const o=i(e)?e:this.language;if("function"==typeof e&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===o?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return s();const e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};o?t(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),s(e)})}else s(null)}reloadResources(e,t,s){const i=o();return"function"==typeof e&&(s=e,e=void 0),"function"==typeof t&&(s=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),s||(s=_),this.services.backendConnector.reload(e,t,e=>{i.resolve(),s(e)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&w.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const s=o();this.emit("languageChanging",e);const n=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(i,o)=>{o?this.isLanguageChangingTo===e&&(n(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,s.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},r=t=>{e||t||!this.services.languageDetector||(t=[]);const s=i(t)?t:t&&t[0],o=this.store.hasLanguageSomeTranslations(s)?s:this.services.languageUtils.getBestMatchFromCodes(i(t)?[t]:t);o&&(this.language||n(o),this.translator.language||this.translator.changeLanguage(o),this.services.languageDetector?.cacheUserLanguage?.(o)),this.loadResources(o,e=>{a(e,o)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(r):this.services.languageDetector.detect(r):r(e):r(this.services.languageDetector.detect()),s}getFixedT(e,t,s){const o=(e,t,...i)=>{let n;n="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(i)):{...t},n.lng=n.lng||o.lng,n.lngs=n.lngs||o.lngs,n.ns=n.ns||o.ns,""!==n.keyPrefix&&(n.keyPrefix=n.keyPrefix||s||o.keyPrefix);const a=this.options.keySeparator||".";let r;return n.keyPrefix&&Array.isArray(e)?r=e.map(e=>("function"==typeof e&&(e=R(e,{...this.options,...t})),`${n.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=R(e,{...this.options,...t})),r=n.keyPrefix?`${n.keyPrefix}${a}${e}`:e),this.t(r,n)};return i(e)?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=s,o}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=t.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===s.toLowerCase())return!0;const n=(e,t)=>{const s=this.services.backendConnector.state[`${e}|${t}`];return-1===s||0===s||2===s};if(t.precheck){const e=t.precheck(this,n);if(void 0!==e)return e}return!(!this.hasResourceBundle(s,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!n(s,e)||i&&!n(o,e)))}loadNamespaces(e,t){const s=o();return this.options.ns?(i(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{s.resolve(),t&&t(e)}),s):(t&&t(),Promise.resolve())}loadLanguages(e,t){const s=o();i(e)&&(e=[e]);const n=this.options.preload||[],a=e.filter(e=>n.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return a.length?(this.options.preload=n.concat(a),this.loadResources(e=>{s.resolve(),t&&t(e)}),s):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=this.services?.languageUtils||new N(z());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const s=new J(e,t);return s.createInstance=J.createInstance,s}cloneInstance(e={},t=_){const s=e.forkResourceStore;s&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},o=new J(i);if(void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},s){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((s,i)=>(s[i]={...e[t][i]},s),e[t]),e),{});o.store=new L(e,i),o.services.resourceStore=o.store}if(e.interpolation){const t={...z().interpolation,...this.options.interpolation,...e.interpolation},s={...i,interpolation:t};o.services.interpolator=new D(s)}return o.translator=new P(o.services,i),o.translator.on("*",(e,...t)=>{o.emit(e,...t)}),o.init(i,t),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const q=J.createInstance();q.createInstance,q.dir,q.init,q.loadResources,q.reloadResources,q.use,q.changeLanguage,q.getFixedT,q.t,q.exists,q.setDefaultNamespace,q.hasLoadedNamespace,q.loadNamespaces,q.loadLanguages}}]);
package/dist/499.js ADDED
@@ -0,0 +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}}]);
package/dist/537.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[537],{2786(n,e,r){r.d(e,{A:()=>c});var t=r(2996),a=r.n(t),o=r(159),i=r.n(o)()(a());i.push([n.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-cc-esm-active-prescriptions__box__blue___62DJr{background-color:#00008b}.-cc-esm-active-prescriptions__box__red___w2gGh{background-color:darkred}.-cc-esm-active-prescriptions__box__brand___DgXfT{background-color:#005d5d;background-color:var(--brand-01);color:#fff;padding:.5rem}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/boxes/extensions/box.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCtDD,iDACC,wBAAA,CAGF,gDACE,wBAAA,CAMF,kDDsBE,wBAAA,CACA,gCAAA,CCrBA,UAAA,CACA,aAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","/* Extensions should supply the minimum amount of styling\n * necessary. Here, the extensions set only their colors.\n * Their sizes and other general features of their display\n * is controlled by the slot. */\n@use \"@carbon/layout\";\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n .blue {\n background-color: darkblue;\n}\n\n.red {\n background-color: darkred;\n}\n\n/* Brand colors are special. They must be included using a\n * SASS mix-in (shown here) or using a CSS variable like\n * `var(--brand-01)`. */\n.brand {\n @include brand-01(background-color);\n color: white;\n padding: layout.$spacing-03;\n}\n"],sourceRoot:""}]),i.locals={blue:"-cc-esm-active-prescriptions__box__blue___62DJr",red:"-cc-esm-active-prescriptions__box__red___w2gGh",brand:"-cc-esm-active-prescriptions__box__brand___DgXfT"};const c=i},159(n){n.exports=function(n){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r}).join("")},e.i=function(n,r,t){"string"==typeof n&&(n=[[null,n,""]]);var a={};if(t)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(a[i]=!0)}for(var c=0;c<n.length;c++){var s=[].concat(n[c]);t&&a[s[0]]||(r&&(s[2]?s[2]="".concat(r," and ").concat(s[2]):s[2]=r),e.push(s))}},e}},2996(n){function e(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=n[r];return t}n.exports=function(n){var r,t,a=(t=4,function(n){if(Array.isArray(n))return n}(r=n)||function(n,e){var r=n&&("undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"]);if(null!=r){var t,a,o=[],i=!0,c=!1;try{for(r=r.call(n);!(i=(t=r.next()).done)&&(o.push(t.value),!e||o.length!==e);i=!0);}catch(n){c=!0,a=n}finally{try{i||null==r.return||r.return()}finally{if(c)throw a}}return o}}(r,t)||function(n,r){if(n){if("string"==typeof n)return e(n,r);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?e(n,r):void 0}}(r,t)||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.")}()),o=a[1],i=a[3];if(!i)return o;if("function"==typeof btoa){var c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),d="/*# ".concat(s," */"),p=i.sources.map(function(n){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(n," */")});return[o].concat(p).concat([d]).join("\n")}return[o].join("\n")}},1537(n,e,r){r.r(e),r.d(e,{default:()=>o});var t=r(6072),a=r(9953);const o=function(){return t.createElement("div",{className:a.A.brand})}},9953(n,e,r){r.d(e,{A:()=>v});var t=r(5072),a=r.n(t),o=r(7825),i=r.n(o),c=r(7659),s=r.n(c),d=r(5056),p=r.n(d),u=r(540),l=r.n(u),f=r(1113),b=r.n(f),m=r(2786),h={};h.styleTagTransform=b(),h.setAttributes=p(),h.insert=s().bind(null,"head"),h.domAPI=i(),h.insertStyleElement=l(),a()(m.A,h);const v=m.A&&m.A.locals?m.A.locals:void 0},5072(n){var e=[];function r(n){for(var r=-1,t=0;t<e.length;t++)if(e[t].identifier===n){r=t;break}return r}function t(n,t){for(var o={},i=[],c=0;c<n.length;c++){var s=n[c],d=t.base?s[0]+t.base:s[0],p=o[d]||0,u="".concat(d," ").concat(p);o[d]=p+1;var l=r(u),f={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==l)e[l].references++,e[l].updater(f);else{var b=a(f,t);t.byIndex=c,e.splice(c,0,{identifier:u,updater:b,references:1})}i.push(u)}return i}function a(n,e){var r=e.domAPI(e);return r.update(n),function(e){if(e){if(e.css===n.css&&e.media===n.media&&e.sourceMap===n.sourceMap&&e.supports===n.supports&&e.layer===n.layer)return;r.update(n=e)}else r.remove()}}n.exports=function(n,a){var o=t(n=n||[],a=a||{});return function(n){n=n||[];for(var i=0;i<o.length;i++){var c=r(o[i]);e[c].references--}for(var s=t(n,a),d=0;d<o.length;d++){var p=r(o[d]);0===e[p].references&&(e[p].updater(),e.splice(p,1))}o=s}}},7659(n){var e={};n.exports=function(n,r){var t=function(n){if(void 0===e[n]){var r=document.querySelector(n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(n){r=null}e[n]=r}return e[n]}(n);if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");t.appendChild(r)}},540(n){n.exports=function(n){var e=document.createElement("style");return n.setAttributes(e,n.attributes),n.insert(e,n.options),e}},5056(n,e,r){n.exports=function(n){var e=r.nc;e&&n.setAttribute("nonce",e)}},7825(n){n.exports=function(n){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=n.insertStyleElement(n);return{update:function(r){!function(n,e,r){var t="";r.supports&&(t+="@supports (".concat(r.supports,") {")),r.media&&(t+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(t+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),t+=r.css,a&&(t+="}"),r.media&&(t+="}"),r.supports&&(t+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(t,n,e.options)}(e,n,r)},remove:function(){!function(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n)}(e)}}}},1113(n){n.exports=function(n,e){if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}}}]);
1
+ "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[537],{2786(n,r,e){e.d(r,{A:()=>i});var a=e(2996),o=e.n(a),s=e(159),t=e.n(s)()(o());t.push([n.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-cc-esm-active-prescriptions__box__blue___62DJr{background-color:#00008b}.-cc-esm-active-prescriptions__box__red___w2gGh{background-color:darkred}.-cc-esm-active-prescriptions__box__brand___DgXfT{background-color:#005d5d;background-color:var(--brand-01);color:#fff;padding:.5rem}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/boxes/extensions/box.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCtDD,iDACC,wBAAA,CAGF,gDACE,wBAAA,CAMF,kDDsBE,wBAAA,CACA,gCAAA,CCrBA,UAAA,CACA,aAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","/* Extensions should supply the minimum amount of styling\n * necessary. Here, the extensions set only their colors.\n * Their sizes and other general features of their display\n * is controlled by the slot. */\n@use \"@carbon/layout\";\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n .blue {\n background-color: darkblue;\n}\n\n.red {\n background-color: darkred;\n}\n\n/* Brand colors are special. They must be included using a\n * SASS mix-in (shown here) or using a CSS variable like\n * `var(--brand-01)`. */\n.brand {\n @include brand-01(background-color);\n color: white;\n padding: layout.$spacing-03;\n}\n"],sourceRoot:""}]),t.locals={blue:"-cc-esm-active-prescriptions__box__blue___62DJr",red:"-cc-esm-active-prescriptions__box__red___w2gGh",brand:"-cc-esm-active-prescriptions__box__brand___DgXfT"};const i=t},1537(n,r,e){e.r(r),e.d(r,{default:()=>s});var a=e(6072),o=e(9953);const s=function(){return a.createElement("div",{className:o.A.brand})}},9953(n,r,e){e.d(r,{A:()=>g});var a=e(5072),o=e.n(a),s=e(7825),t=e.n(s),i=e(7659),d=e.n(i),c=e(5056),b=e.n(c),p=e(540),l=e.n(p),A=e(1113),h=e.n(A),m=e(2786),u={};u.styleTagTransform=h(),u.setAttributes=b(),u.insert=d().bind(null,"head"),u.domAPI=t(),u.insertStyleElement=l(),o()(m.A,u);const g=m.A&&m.A.locals?m.A.locals:void 0}}]);
package/dist/652.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[652],{4652(e){e.exports=JSON.parse('{"casualGreeting":"hey","configSystem":"מערכת התצורה","configSystemExplainer":"הברכה המוצגת להלן מונעת על ידי מערכת התצורה. כדי לשנות את מאפייני התצורה, לחץ על סמל מפתח הברגים בסרגל הניווט כדי למשוך את החלונית Implementer Tools. לאחר מכן, הקלד <2>תבנית</2> בקלט <4>תצורת חיפוש</4>. זה אמור לסנן את מאפייני התצורה כדי להציג רק את אלו הרלוונטיים למודול זה. אתה יכול לשנות את הערכים של מאפיינים אלה וללחוץ על <6>שמור</6> כדי לראות את השינויים המשתקפים בממשק המשתמש","connect":"לְחַבֵּר","connectExplainer":"צור קשר עם הקהילה","dataFetching":"איסוף נתונים","designDocs":"תיעוד עיצוב","designDocsExplainer":"קרא את תיעוד התכנון של O3","explainer":"הדוגמאות הבאות מדגימות כמה תכונות מפתח של מסגרת O3","extensionExplainer":"הנה כמה קופסאות צבעוניות. מכיוון שהם מחוברים כהרחבות בתוך חריץ, מנהל מערכת יכול לשנות אילו תיבות יוצגו באמצעות תצורה. התיבות האלה מוגדרות במקרה במודול הזה, אבל הן יכולות להכנס למשבצת הזו גם אם הן היו במודול אחר","extensionSystem":"מערכת ההרחבה","formalGreeting":"שלום","frontendDocs":"תיעוד חזיתי","getPatient":"קח מטופל בשם","getStarted":"להתחיל","getStartedExplainer":"צור מודול מתבנית זו","learnExplainer":"למד כיצד להשתמש במסגרת O3","loading":"טוען","patientGetterExplainer":"נסה ללחוץ על הכפתור למטה כדי להביא מטופל מאחור","resources":"משאבים נוספים","usefulLinks":"להלן כמה קישורים למשאבים שימושיים","welcomeText":"ברוכים הבאים לאפליקציית O3 Template"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[652],{2271(e){e.exports=JSON.parse('{"casualGreeting":"hey","configSystem":"מערכת התצורה","configSystemExplainer":"הברכה המוצגת להלן מונעת על ידי מערכת התצורה. כדי לשנות את מאפייני התצורה, לחץ על סמל מפתח הברגים בסרגל הניווט כדי למשוך את החלונית Implementer Tools. לאחר מכן, הקלד <2>תבנית</2> בקלט <4>תצורת חיפוש</4>. זה אמור לסנן את מאפייני התצורה כדי להציג רק את אלו הרלוונטיים למודול זה. אתה יכול לשנות את הערכים של מאפיינים אלה וללחוץ על <6>שמור</6> כדי לראות את השינויים המשתקפים בממשק המשתמש","connect":"לְחַבֵּר","connectExplainer":"צור קשר עם הקהילה","dataFetching":"איסוף נתונים","designDocs":"תיעוד עיצוב","designDocsExplainer":"קרא את תיעוד התכנון של O3","explainer":"הדוגמאות הבאות מדגימות כמה תכונות מפתח של מסגרת O3","extensionExplainer":"הנה כמה קופסאות צבעוניות. מכיוון שהם מחוברים כהרחבות בתוך חריץ, מנהל מערכת יכול לשנות אילו תיבות יוצגו באמצעות תצורה. התיבות האלה מוגדרות במקרה במודול הזה, אבל הן יכולות להכנס למשבצת הזו גם אם הן היו במודול אחר","extensionSystem":"מערכת ההרחבה","formalGreeting":"שלום","frontendDocs":"תיעוד חזיתי","getPatient":"קח מטופל בשם","getStarted":"להתחיל","getStartedExplainer":"צור מודול מתבנית זו","learnExplainer":"למד כיצד להשתמש במסגרת O3","loading":"טוען","patientGetterExplainer":"נסה ללחוץ על הכפתור למטה כדי להביא מטופל מאחור","resources":"משאבים נוספים","usefulLinks":"להלן כמה קישורים למשאבים שימושיים","welcomeText":"ברוכים הבאים לאפליקציית O3 Template"}')}}]);
package/dist/840.js ADDED
@@ -0,0 +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))}}}]);