@openmrs/esm-primary-navigation-app 3.4.1-pre.174 → 3.4.1-pre.180
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/.turbo/turbo-build.log +33 -33
- package/dist/789.js +1 -1
- package/dist/openmrs-esm-primary-navigation-app.js +1 -1
- package/dist/openmrs-esm-primary-navigation-app.js.buildmanifest.json +4 -4
- package/dist/openmrs-esm-primary-navigation-app.old +1 -1
- package/package.json +4 -4
- package/src/index.ts +5 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
[
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
24
|
-
[
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
[
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
[
|
|
33
|
-
[
|
|
1
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0mcache hit, replaying output [2md3af8ccbb97a16cf[0m
|
|
2
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m$ webpack --mode=production
|
|
3
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0massets by chunk 1.18 MiB (id hint: vendors)
|
|
4
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m asset [1m[33m322.js[39m[22m [1m[33m705 KiB[39m[22m [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m [1m[33m[big][39m[22m (id hint: vendors) 1 related asset
|
|
5
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m asset [1m[32m25.js[39m[22m 226 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
6
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m asset [1m[32m788.js[39m[22m 120 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
7
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m asset [1m[32m860.js[39m[22m 85.5 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors)
|
|
8
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m asset [1m[32m393.js[39m[22m 27.7 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
9
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m asset [1m[32m743.js[39m[22m 18.3 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors)
|
|
10
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m asset [1m[32m596.js[39m[22m 14 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
11
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m asset [1m[32m513.js[39m[22m 7.85 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors)
|
|
12
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m+ 11 assets
|
|
13
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0morphan modules 10 MiB [1m[33m[orphan][39m[22m 647 modules
|
|
14
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0mruntime modules 19.6 KiB 14 modules
|
|
15
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0mbuilt modules 7.51 MiB (javascript) 378 bytes (consume-shared) 336 bytes (share-init) [1m[33m[built][39m[22m
|
|
16
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m cacheable modules 7.51 MiB 85 modules
|
|
17
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m consume-shared-module modules 378 bytes
|
|
18
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m modules by path [1mconsume shared module (default) @openmrs/[39m[22m 84 bytes 2 modules
|
|
19
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m + 7 modules
|
|
20
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m provide-module modules 336 bytes
|
|
21
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m [1mprovide shared module (default) @openmrs/esm-framework/src/internal@3.4.1-pre.180 = ../../framework/esm-framework/src/internal.ts[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
22
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m [1mprovide shared module (default) carbon-components-react@7.31.0 = ../../../node_modules/carbon-components-react/es/index.js[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
23
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m + 6 modules
|
|
24
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m [1mcontainer entry[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
25
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m [1m./translations/ lazy nonrecursive .json$[39m[22m 160 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
26
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m
|
|
27
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m[1m[33mWARNING[39m[22m in [1masset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
28
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0mThis can impact web performance.
|
|
29
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0mAssets:
|
|
30
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m 889.js (376 KiB)
|
|
31
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m 322.js (705 KiB)[39m[22m
|
|
32
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0m
|
|
33
|
+
[34m@openmrs/esm-primary-navigation-app:build: [0mwebpack 5.70.0 compiled with [1m[33m1 warning[39m[22m in 140079 ms
|
package/dist/789.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[789],{1602:t=>{var n=function(t){"use strict";var n,e=Object.prototype,r=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,n,e){return Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{c({},"")}catch(t){c=function(t,n,e){return t[n]=e}}function s(t,n,e,r){var o=n&&n.prototype instanceof v?n:v,i=Object.create(o.prototype),a=new L(r||[]);return i._invoke=function(t,n,e){var r=l;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw i;return N()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var u=_(a,e);if(u){if(u===d)continue;return u}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(r===l)throw r=m,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r=h;var c=f(t,n,e);if("normal"===c.type){if(r=e.done?m:p,c.arg===d)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(r=m,e.method="throw",e.arg=c.arg)}}}(t,e,a),i}function f(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l="suspendedStart",p="suspendedYield",h="executing",m="completed",d={};function v(){}function y(){}function g(){}var w={};c(w,i,(function(){return this}));var E=Object.getPrototypeOf,b=E&&E(E(x([])));b&&b!==e&&r.call(b,i)&&(w=b);var O=g.prototype=v.prototype=Object.create(w);function P(t){["next","throw","return"].forEach((function(n){c(t,n,(function(t){return this._invoke(n,t)}))}))}function T(t,n){function e(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?n.resolve(l.__await).then((function(t){e("next",t,a,u)}),(function(t){e("throw",t,a,u)})):n.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return e("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,r){function i(){return new n((function(n,o){e(t,r,n,o)}))}return o=o?o.then(i,i):i()}}function _(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,_(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function S(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function A(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function x(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(r.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=n,e.done=!0,e};return a.next=a}}return{next:N}}function N(){return{value:n,done:!0}}return y.prototype=g,c(O,"constructor",g),c(g,"constructor",y),y.displayName=c(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===y||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},P(T.prototype),c(T.prototype,a,(function(){return this})),t.AsyncIterator=T,t.async=function(n,e,r,o,i){void 0===i&&(i=Promise);var a=new T(s(n,e,r,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(O),c(O,u,"Generator"),c(O,i,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=x,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(r,o){return u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),d},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),A(e),d}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;A(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:x(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),d}},t}(t.exports);try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},6639:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>u,genericLinkConfigSchema:()=>a});var r=e(6983),o=e.n(r),i=e(7644),a={title:{_default:"New Link",_type:i.Type.String},target:{_default:"#",_type:i.Type.String,_description:"The URL to link to.",_validators:[i.validators.isUrl]}};function u(){var t=(0,i.useConfig)();return o().createElement(i.ConfigurableLink,{to:t.target},t.title)}},1217:(t,n,e)=>{"use strict";e.d(n,{O:()=>r,e:()=>o});var r="user-property-change",o="@openmrs/esm-primary-navigation-app"},789:(t,n,e)=>{"use strict";e.r(n),e.d(n,{backendDependencies:()=>fn,importTranslation:()=>sn,setupOpenMRS:()=>pn});var r=e(7644),o=e(1602),i=e.n(o),a=e(8478),u=e(1217);function c(t,n,e,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?n(c):Promise.resolve(c).then(r,o)}function s(t){return function(){var n=this,e=arguments;return new Promise((function(r,o){var i=t.apply(n,e);function a(t){c(i,r,o,a,u,"next",t)}function u(t){c(i,r,o,a,u,"throw",t)}a(void 0)}))}}function f(t,n,e){return l.apply(this,arguments)}function l(){return(l=s(i().mark((function t(n,e,r){var o,u;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.getSessionLocation)();case 2:return o=t.sent,u=null==o?void 0:o.uuid,t.next=6,(0,a.openmrsFetch)("/ws/rest/v1/user/".concat(n),{method:"POST",body:{userProperties:e},headers:{"Content-Type":"application/json"},signal:r.signal});case 6:if(!u){t.next=9;break}return t.next=9,(0,a.setSessionLocation)(u,r);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function p(t,n){return(0,a.queueSynchronizationItemFor)(t,u.O,n,{displayName:"User Language Change"})}var h={logo:{src:{_type:r.Type.String,_default:null,_description:"A path or URL to an image. Defaults to the OpenMRS SVG sprite."},alt:{_type:r.Type.String,_default:"Logo",_description:"Alt text, shown on hover"},name:{_type:r.Type.String,_default:null,_description:"The organization name displayed when image is absent"}},externalRefLinks:{_type:r.Type.Array,_elements:{title:{_type:r.Type.String,_description:"Title of the link"},redirect:{_type:r.Type.String,_description:"Link to redirect to (must be an external link)",_validators:[r.validators.isUrl]}},_default:[],_description:"The external links to be showcased in the app menu"}};function m(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function d(t,n,e,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?n(c):Promise.resolve(c).then(r,o)}function v(t){return function(){var n=this,e=arguments;return new Promise((function(r,o){var i=t.apply(n,e);function a(t){d(i,r,o,a,u,"next",t)}function u(t){d(i,r,o,a,u,"throw",t)}a(void 0)}))}}function y(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i=[],a=!0,u=!1;try{for(e=e.call(t);!(a=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==e.return||e.return()}finally{if(u)throw o}}return i}}(t,n)||w(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||w(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,n){if(t){if("string"==typeof t)return m(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?m(t,n):void 0}}function E(t,n){return b.apply(this,arguments)}function b(){return b=v(i().mark((function t(n,e){var r,o,u,c;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.index){t.next=10;break}return t.next=4,(0,a.getLoggedInUser)();case 4:return o=t.sent,u=e.items.map((function(t){var n=y(t,2);return n[0],n[1]})),c=(r=Object).assign.apply(r,[{},o.userProperties].concat(g(u))),t.next=9,f(o.uuid,c,e.abort);case 9:(0,a.refetchCurrentUser)();case 10:case"end":return t.stop()}}),t)}))),b.apply(this,arguments)}var O=Object.freeze({__proto__:null,get start(){return on},get ensureJQuerySupport(){return Ut},get setBootstrapMaxTime(){return pt},get setMountMaxTime(){return ht},get setUnmountMaxTime(){return mt},get setUnloadMaxTime(){return dt},get registerApplication(){return Kt},get unregisterApplication(){return Jt},get getMountedApps(){return Wt},get getAppStatus(){return $t},get unloadApplication(){return Vt},get checkActivityFunctions(){return zt},get getAppNames(){return Ft},get pathToActiveWhen(){return Qt},get navigateToUrl(){return Pt},get triggerAppChange(){return tn},get addErrorHandler(){return x},get removeErrorHandler(){return N},get mountRootParcel(){return ut},get NOT_LOADED(){return k},get LOADING_SOURCE_CODE(){return D},get NOT_BOOTSTRAPPED(){return M},get BOOTSTRAPPING(){return I},get NOT_MOUNTED(){return R},get MOUNTING(){return C},get UPDATING(){return B},get LOAD_ERROR(){return F},get MOUNTED(){return G},get UNMOUNTING(){return W},get SKIP_BECAUSE_BROKEN(){return $}});function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var _=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e.g?e.g:"undefined"!=typeof self?self:{}).CustomEvent,S=function(){try{var t=new _("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?_:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,n){var e=document.createEvent("CustomEvent");return n?e.initCustomEvent(t,n.bubbles,n.cancelable,n.detail):e.initCustomEvent(t,!1,!1,void 0),e}:function(t,n){var e=document.createEventObject();return e.type=t,n?(e.bubbles=Boolean(n.bubbles),e.cancelable=Boolean(n.cancelable),e.detail=n.detail):(e.bubbles=!1,e.cancelable=!1,e.detail=void 0),e},A=[];function L(t,n,e){var r=U(t,n,e);A.length?A.forEach((function(t){return t(r)})):setTimeout((function(){throw r}))}function x(t){if("function"!=typeof t)throw Error(j(28,!1));A.push(t)}function N(t){if("function"!=typeof t)throw Error(j(29,!1));var n=!1;return A=A.filter((function(e){var r=e===t;return n=n||r,!r})),n}function j(t,n){for(var e=arguments.length,r=new Array(e>2?e-2:0),o=2;o<e;o++)r[o-2]=arguments[o];return"single-spa minified message #".concat(t,": ").concat(n?n+" ":"","See https://single-spa.js.org/error/?code=").concat(t).concat(r.length?"&arg=".concat(r.join("&arg=")):"")}function U(t,n,e){var r,o="".concat(q(n)," '").concat(J(n),"' died in status ").concat(n.status,": ");if(t instanceof Error){try{t.message=o+t.message}catch(t){}r=t}else{console.warn(j(30,!1,n.status,J(n)));try{r=Error(o+JSON.stringify(t))}catch(n){r=t}}return r.appOrParcelName=J(n),n.status=e,r}var k="NOT_LOADED",D="LOADING_SOURCE_CODE",M="NOT_BOOTSTRAPPED",I="BOOTSTRAPPING",R="NOT_MOUNTED",C="MOUNTING",G="MOUNTED",B="UPDATING",W="UNMOUNTING",F="LOAD_ERROR",$="SKIP_BECAUSE_BROKEN";function K(t){return t.status===G}function z(t){try{return t.activeWhen(window.location)}catch(n){return L(n,t,$),!1}}function J(t){return t.name}function V(t){return Boolean(t.unmountThisParcel)}function q(t){return V(t)?"parcel":"application"}function H(){for(var t=arguments.length-1;t>0;t--)for(var n in arguments[t])"__proto__"!==n&&(arguments[t-1][n]=arguments[t][n]);return arguments[0]}function Q(t,n){for(var e=0;e<t.length;e++)if(n(t[e]))return t[e];return null}function Y(t){return t&&("function"==typeof t||(n=t,Array.isArray(n)&&!Q(n,(function(t){return"function"!=typeof t}))));var n}function X(t,n){var e=t[n]||[];0===(e=Array.isArray(e)?e:[e]).length&&(e=[function(){return Promise.resolve()}]);var r=q(t),o=J(t);return function(t){return e.reduce((function(e,i,a){return e.then((function(){var e=i(t);return Z(e)?e:Promise.reject(j(15,!1,r,o,n,a))}))}),Promise.resolve())}}function Z(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}function tt(t,n){return Promise.resolve().then((function(){return t.status!==M?t:(t.status=I,t.bootstrap?vt(t,"bootstrap").then(e).catch((function(e){if(n)throw U(e,t,$);return L(e,t,$),t})):Promise.resolve().then(e))}));function e(){return t.status=R,t}}function nt(t,n){return Promise.resolve().then((function(){if(t.status!==G)return t;t.status=W;var e=Object.keys(t.parcels).map((function(n){return t.parcels[n].unmountThisParcel()}));return Promise.all(e).then(r,(function(e){return r().then((function(){var r=Error(e.message);if(n)throw U(r,t,$);L(r,t,$)}))})).then((function(){return t}));function r(){return vt(t,"unmount").then((function(){t.status=R})).catch((function(e){if(n)throw U(e,t,$);L(e,t,$)}))}}))}var et=!1,rt=!1;function ot(t,n){return Promise.resolve().then((function(){return t.status!==R?t:(et||(window.dispatchEvent(new S("single-spa:before-first-mount")),et=!0),vt(t,"mount").then((function(){return t.status=G,rt||(window.dispatchEvent(new S("single-spa:first-mount")),rt=!0),t})).catch((function(e){return t.status=G,nt(t,!0).then(r,r);function r(){if(n)throw U(e,t,$);return L(e,t,$),t}})))}))}var it=0,at={parcels:{}};function ut(){return ct.apply(at,arguments)}function ct(t,n){var e=this;if(!t||"object"!==P(t)&&"function"!=typeof t)throw Error(j(2,!1));if(t.name&&"string"!=typeof t.name)throw Error(j(3,!1,P(t.name)));if("object"!==P(n))throw Error(j(4,!1,name,P(n)));if(!n.domElement)throw Error(j(5,!1,name));var r,o=it++,i="function"==typeof t,a=i?t:function(){return Promise.resolve(t)},u={id:o,parcels:{},status:i?D:M,customProps:n,parentName:J(e),unmountThisParcel:function(){return p.then((function(){if(u.status!==G)throw Error(j(6,!1,name,u.status));return nt(u,!0)})).then((function(t){return u.parentName&&delete e.parcels[u.id],t})).then((function(t){return s(t),t})).catch((function(t){throw u.status=$,f(t),t}))}};e.parcels[o]=u;var c=a();if(!c||"function"!=typeof c.then)throw Error(j(7,!1));var s,f,l=(c=c.then((function(t){if(!t)throw Error(j(8,!1));var n=t.name||"parcel-".concat(o);if(Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!Y(t.bootstrap))throw Error(j(9,!1,n));if(!Y(t.mount))throw Error(j(10,!1,n));if(!Y(t.unmount))throw Error(j(11,!1,n));if(t.update&&!Y(t.update))throw Error(j(12,!1,n));var e=X(t,"bootstrap"),i=X(t,"mount"),a=X(t,"unmount");u.status=M,u.name=n,u.bootstrap=e,u.mount=i,u.unmount=a,u.timeouts=yt(t.timeouts),t.update&&(u.update=X(t,"update"),r.update=function(t){return u.customProps=t,st(function(t){return Promise.resolve().then((function(){if(t.status!==G)throw Error(j(32,!1,J(t)));return t.status=B,vt(t,"update").then((function(){return t.status=G,t})).catch((function(n){throw U(n,t,$)}))}))}(u))})}))).then((function(){return tt(u,!0)})),p=l.then((function(){return ot(u,!0)})),h=new Promise((function(t,n){s=t,f=n}));return r={mount:function(){return st(Promise.resolve().then((function(){if(u.status!==R)throw Error(j(13,!1,name,u.status));return e.parcels[o]=u,ot(u)})))},unmount:function(){return st(u.unmountThisParcel())},getStatus:function(){return u.status},loadPromise:st(c),bootstrapPromise:st(l),mountPromise:st(p),unmountPromise:st(h)}}function st(t){return t.then((function(){return null}))}function ft(t){var n=J(t),e="function"==typeof t.customProps?t.customProps(n,window.location):t.customProps;("object"!==P(e)||null===e||Array.isArray(e))&&(e={},console.warn(j(40,!1),n,e));var r=H({},e,{name:n,mountParcel:ct.bind(t),singleSpa:O});return V(t)&&(r.unmountSelf=t.unmountThisParcel),r}var lt={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}};function pt(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(16,!1));lt.bootstrap={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function ht(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(17,!1));lt.mount={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function mt(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(18,!1));lt.unmount={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function dt(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(19,!1));lt.unload={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function vt(t,n){var e=t.timeouts[n],r=e.warningMillis,o=q(t);return new Promise((function(i,a){var u=!1,c=!1;t[n](ft(t)).then((function(t){u=!0,i(t)})).catch((function(t){u=!0,a(t)})),setTimeout((function(){return f(1)}),r),setTimeout((function(){return f(!0)}),e.millis);var s=j(31,!1,n,o,J(t),e.millis);function f(t){if(!u)if(!0===t)c=!0,e.dieOnTimeout?a(Error(s)):console.error(s);else if(!c){var n=t,o=n*r;console.warn(s),o+r<e.millis&&setTimeout((function(){return f(n+1)}),r)}}}))}function yt(t){var n={};for(var e in lt)n[e]=H({},lt[e],t&&t[e]||{});return n}function gt(t){return Promise.resolve().then((function(){return t.loadPromise?t.loadPromise:t.status!==k&&t.status!==F?t:(t.status=D,t.loadPromise=Promise.resolve().then((function(){var r=t.loadApp(ft(t));if(!Z(r))throw e=!0,Error(j(33,!1,J(t)));return r.then((function(e){var r;t.loadErrorTime=null,"object"!==P(n=e)&&(r=34),Object.prototype.hasOwnProperty.call(n,"bootstrap")&&!Y(n.bootstrap)&&(r=35),Y(n.mount)||(r=36),Y(n.unmount)||(r=37);var o=q(n);if(r){var i;try{i=JSON.stringify(n)}catch(t){}return console.error(j(r,!1,o,J(t),i),n),L(void 0,t,$),t}return n.devtools&&n.devtools.overlays&&(t.devtools.overlays=H({},t.devtools.overlays,n.devtools.overlays)),t.status=M,t.bootstrap=X(n,"bootstrap"),t.mount=X(n,"mount"),t.unmount=X(n,"unmount"),t.unload=X(n,"unload"),t.timeouts=yt(n.timeouts),delete t.loadPromise,t}))})).catch((function(n){var r;return delete t.loadPromise,e?r=$:(r=F,t.loadErrorTime=(new Date).getTime()),L(n,t,r),t})));var n,e}))}var wt,Et="undefined"!=typeof window,bt={hashchange:[],popstate:[]},Ot=["hashchange","popstate"];function Pt(t){var n;if("string"==typeof t)n=t;else if(this&&this.href)n=this.href;else{if(!(t&&t.currentTarget&&t.currentTarget.href&&t.preventDefault))throw Error(j(14,!1));n=t.currentTarget.href,t.preventDefault()}var e=Nt(window.location.href),r=Nt(n);0===n.indexOf("#")?window.location.hash=r.hash:e.host!==r.host&&r.host?window.location.href=n:r.pathname===e.pathname&&r.search===e.search?window.location.hash=r.hash:window.history.pushState(null,null,n)}function Tt(t){var n=this;if(t){var e=t[0].type;Ot.indexOf(e)>=0&&bt[e].forEach((function(e){try{e.apply(n,t)}catch(t){setTimeout((function(){throw t}))}}))}}function _t(){nn([],arguments)}function St(t,n){return function(){var e=window.location.href,r=t.apply(this,arguments),o=window.location.href;return wt&&e===o||(an()?window.dispatchEvent(At(window.history.state,n)):nn([])),r}}function At(t,n){var e;try{e=new PopStateEvent("popstate",{state:t})}catch(n){(e=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,t)}return e.singleSpa=!0,e.singleSpaTrigger=n,e}if(Et){window.addEventListener("hashchange",_t),window.addEventListener("popstate",_t);var Lt=window.addEventListener,xt=window.removeEventListener;window.addEventListener=function(t,n){if(!("function"==typeof n&&Ot.indexOf(t)>=0)||Q(bt[t],(function(t){return t===n})))return Lt.apply(this,arguments);bt[t].push(n)},window.removeEventListener=function(t,n){if(!("function"==typeof n&&Ot.indexOf(t)>=0))return xt.apply(this,arguments);bt[t]=bt[t].filter((function(t){return t!==n}))},window.history.pushState=St(window.history.pushState,"pushState"),window.history.replaceState=St(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(j(41,!1)):window.singleSpaNavigate=Pt}function Nt(t){var n=document.createElement("a");return n.href=t,n}var jt=!1;function Ut(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(t||window.$&&window.$.fn&&window.$.fn.jquery&&(t=window.$),t&&!jt){var n=t.fn.on,e=t.fn.off;t.fn.on=function(t,e){return kt.call(this,n,window.addEventListener,t,e,arguments)},t.fn.off=function(t,n){return kt.call(this,e,window.removeEventListener,t,n,arguments)},jt=!0}}function kt(t,n,e,r,o){return"string"!=typeof e?t.apply(this,o):(e.split(/\s+/).forEach((function(t){Ot.indexOf(t)>=0&&(n(t,r),e=e.replace(t,""))})),""===e.trim()?this:t.apply(this,o))}var Dt={};function Mt(t){return Promise.resolve().then((function(){var n=Dt[J(t)];if(!n)return t;if(t.status===k)return It(t,n),t;if("UNLOADING"===t.status)return n.promise.then((function(){return t}));if(t.status!==R&&t.status!==F)return t;var e=t.status===F?Promise.resolve():vt(t,"unload");return t.status="UNLOADING",e.then((function(){return It(t,n),t})).catch((function(e){return function(t,n,e){delete Dt[J(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,L(e,t,$),n.reject(e)}(t,n,e),t}))}))}function It(t,n){delete Dt[J(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,t.status=k,n.resolve()}function Rt(t,n,e,r){Dt[J(t)]={app:t,resolve:e,reject:r},Object.defineProperty(Dt[J(t)],"promise",{get:n})}function Ct(t){return Dt[t]}var Gt=[];function Bt(){var t=[],n=[],e=[],r=[],o=(new Date).getTime();return Gt.forEach((function(i){var a=i.status!==$&&z(i);switch(i.status){case F:a&&o-i.loadErrorTime>=200&&e.push(i);break;case k:case D:a&&e.push(i);break;case M:case R:!a&&Ct(J(i))?t.push(i):a&&r.push(i);break;case G:a||n.push(i)}})),{appsToUnload:t,appsToUnmount:n,appsToLoad:e,appsToMount:r}}function Wt(){return Gt.filter(K).map(J)}function Ft(){return Gt.map(J)}function $t(t){var n=Q(Gt,(function(n){return J(n)===t}));return n?n.status:null}function Kt(t,n,e,r){var o=function(t,n,e,r){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===P(t)?(function(t){if(Array.isArray(t)||null===t)throw Error(j(39,!1));var n=["name","app","activeWhen","customProps"],e=Object.keys(t).reduce((function(t,e){return n.indexOf(e)>=0?t:t.concat(e)}),[]);if(0!==e.length)throw Error(j(38,!1,n.join(", "),e.join(", ")));if("string"!=typeof t.name||0===t.name.length)throw Error(j(20,!1));if("object"!==P(t.app)&&"function"!=typeof t.app)throw Error(j(20,!1));var r=function(t){return"string"==typeof t||"function"==typeof t};if(!(r(t.activeWhen)||Array.isArray(t.activeWhen)&&t.activeWhen.every(r)))throw Error(j(24,!1));if(!Ht(t.customProps))throw Error(j(22,!1))}(t),i.name=t.name,i.loadApp=t.app,i.activeWhen=t.activeWhen,i.customProps=t.customProps):(function(t,n,e,r){if("string"!=typeof t||0===t.length)throw Error(j(20,!1));if(!n)throw Error(j(23,!1));if("function"!=typeof e)throw Error(j(24,!1));if(!Ht(r))throw Error(j(22,!1))}(t,n,e,r),i.name=t,i.loadApp=n,i.activeWhen=e,i.customProps=r),i.loadApp="function"!=typeof(o=i.loadApp)?function(){return Promise.resolve(o)}:o,i.customProps=function(t){return t||{}}(i.customProps),i.activeWhen=function(t){var n=Array.isArray(t)?t:[t];return n=n.map((function(t){return"function"==typeof t?t:Qt(t)})),function(t){return n.some((function(n){return n(t)}))}}(i.activeWhen),i}(t,n,e,r);if(-1!==Ft().indexOf(o.name))throw Error(j(21,!1,o.name));Gt.push(H({loadErrorTime:null,status:k,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),Et&&(Ut(),nn())}function zt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return Gt.filter((function(n){return n.activeWhen(t)})).map(J)}function Jt(t){if(0===Gt.filter((function(n){return J(n)===t})).length)throw Error(j(25,!1,t));return Vt(t).then((function(){var n=Gt.map(J).indexOf(t);Gt.splice(n,1)}))}function Vt(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof t)throw Error(j(26,!1));var e=Q(Gt,(function(n){return J(n)===t}));if(!e)throw Error(j(27,!1,t));var r,o=Ct(J(e));if(n&&n.waitForUnmount){if(o)return o.promise;var i=new Promise((function(t,n){Rt(e,(function(){return i}),t,n)}));return i}return o?(r=o.promise,qt(e,o.resolve,o.reject)):r=new Promise((function(t,n){Rt(e,(function(){return r}),t,n),qt(e,t,n)})),r}function qt(t,n,e){nt(t).then(Mt).then((function(){n(),setTimeout((function(){nn()}))})).catch(e)}function Ht(t){return!t||"function"==typeof t||"object"===P(t)&&null!==t&&!Array.isArray(t)}function Qt(t,n){var e=function(t,n){var e=0,r=!1,o="^";"/"!==t[0]&&(t="/"+t);for(var i=0;i<t.length;i++){var a=t[i];(!r&&":"===a||r&&"/"===a)&&u(i)}return u(t.length),new RegExp(o,"i");function u(i){var a=t.slice(e,i).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=r?"[^/]+/?":a,i===t.length)if(r)n&&(o+="$");else{var u=n?"":".*";o="/"===o.charAt(o.length-1)?"".concat(o).concat(u,"$"):"".concat(o,"(/").concat(u,")?(#.*)?$")}r=!r,e=i}}(t,n);return function(t){var n=t.origin;n||(n="".concat(t.protocol,"//").concat(t.host));var r=t.href.replace(n,"").replace(t.search,"").split("?")[0];return e.test(r)}}var Yt=!1,Xt=[],Zt=Et&&window.location.href;function tn(){return nn()}function nn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;if(Yt)return new Promise((function(t,e){Xt.push({resolve:t,reject:e,eventArguments:n})}));var e,r=Bt(),o=r.appsToUnload,i=r.appsToUnmount,a=r.appsToLoad,u=r.appsToMount,c=!1,s=Zt,f=Zt=window.location.href;return an()?(Yt=!0,e=o.concat(a,i,u),h()):(e=a,p());function l(){c=!0}function p(){return Promise.resolve().then((function(){var t=a.map(gt);return Promise.all(t).then(d).then((function(){return[]})).catch((function(t){throw d(),t}))}))}function h(){return Promise.resolve().then((function(){if(window.dispatchEvent(new S(0===e.length?"single-spa:before-no-app-change":"single-spa:before-app-change",v(!0))),window.dispatchEvent(new S("single-spa:before-routing-event",v(!0,{cancelNavigation:l}))),c)return window.dispatchEvent(new S("single-spa:before-mount-routing-event",v(!0))),m(),void Pt(s);var n=o.map(Mt),r=i.map(nt).map((function(t){return t.then(Mt)})).concat(n),f=Promise.all(r);f.then((function(){window.dispatchEvent(new S("single-spa:before-mount-routing-event",v(!0)))}));var p=a.map((function(t){return gt(t).then((function(t){return en(t,f)}))})),h=u.filter((function(t){return a.indexOf(t)<0})).map((function(t){return en(t,f)}));return f.catch((function(t){throw d(),t})).then((function(){return d(),Promise.all(p.concat(h)).catch((function(n){throw t.forEach((function(t){return t.reject(n)})),n})).then(m)}))}))}function m(){var n=Wt();t.forEach((function(t){return t.resolve(n)}));try{var r=0===e.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new S(r,v())),window.dispatchEvent(new S("single-spa:routing-event",v()))}catch(t){setTimeout((function(){throw t}))}if(Yt=!1,Xt.length>0){var o=Xt;Xt=[],nn(o)}return n}function d(){t.forEach((function(t){Tt(t.eventArguments)})),Tt(n)}function v(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],l=arguments.length>1?arguments[1]:void 0,p={},h=(T(t={},G,[]),T(t,R,[]),T(t,k,[]),T(t,$,[]),t);r?(a.concat(u).forEach((function(t,n){d(t,G)})),o.forEach((function(t){d(t,k)})),i.forEach((function(t){d(t,R)}))):e.forEach((function(t){d(t)}));var m={detail:{newAppStatuses:p,appsByNewStatus:h,totalAppChanges:e.length,originalEvent:null==n?void 0:n[0],oldUrl:s,newUrl:f,navigationIsCanceled:c}};return l&&H(m.detail,l),m;function d(t,n){var e=J(t);n=n||$t(e),p[e]=n,(h[n]=h[n]||[]).push(e)}}}function en(t,n){return z(t)?tt(t).then((function(t){return n.then((function(){return z(t)?ot(t):t}))})):n.then((function(){return t}))}var rn=!1;function on(t){var n;rn=!0,t&&t.urlRerouteOnly&&(n=t.urlRerouteOnly,wt=n),Et&&nn()}function an(){return rn}Et&&setTimeout((function(){rn||console.warn(j(1,!1))}),5e3);var un={getRawAppData:function(){return[].concat(Gt)},reroute:nn,NOT_LOADED:k,toLoadPromise:gt,toBootstrapPromise:tt,unregisterApplication:Jt};Et&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods=un);var cn=e(6639),sn=e(3979),fn={"webservices.rest":"^2.2.0"},ln={featureName:"primary navigation",moduleName:u.e};function pn(){return(0,r.defineConfigSchema)(u.e,h),(0,r.defineExtensionConfigSchema)("link",cn.genericLinkConfigSchema),(0,r.setupOfflineSync)(u.O,[],E),{pages:[{load:(0,r.getAsyncLifecycle)((function(){return Promise.all([e.e(513),e.e(596),e.e(784),e.e(212)]).then(e.bind(e,3212))}),ln),route:function(t){return!t.pathname.startsWith(window.getOpenmrsSpaBase()+"login")},online:!0,offline:!0,order:0},{load:{bootstrap:function(){return Promise.resolve(Pt(window.getOpenmrsSpaBase()+"home"))},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}},route:function(t){return t.pathname===window.getOpenmrsSpaBase()},order:0}],extensions:[{name:"default-user-panel",slot:"user-panel-slot",order:0,load:(0,r.getAsyncLifecycle)((function(){return Promise.all([e.e(513),e.e(784),e.e(540)]).then(e.bind(e,3540))}),ln),online:!0,offline:!0},{name:"change-locale",slot:"user-panel-slot",order:1,load:(0,r.getAsyncLifecycle)((function(){return Promise.all([e.e(784),e.e(510)]).then(e.bind(e,510))}),ln),online:{postUserProperties:f},offline:{postUserProperties:p}},{name:"link",load:(0,r.getAsyncLifecycle)((function(){return Promise.resolve().then(e.bind(e,6639))}),{featureName:"Link",moduleName:u.e})}]}}},3979:(t,n,e)=>{var r={"./en.json":[3574,574]};function o(t){if(!e.o(r,t))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=r[t],o=n[0];return e.e(n[1]).then((()=>e(o)))}o.keys=()=>Object.keys(r),o.id=3979,t.exports=o}}]);
|
|
1
|
+
(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[789],{1602:t=>{var n=function(t){"use strict";var n,e=Object.prototype,r=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,n,e){return Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{c({},"")}catch(t){c=function(t,n,e){return t[n]=e}}function s(t,n,e,r){var o=n&&n.prototype instanceof v?n:v,i=Object.create(o.prototype),a=new L(r||[]);return i._invoke=function(t,n,e){var r=l;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw i;return N()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var u=_(a,e);if(u){if(u===d)continue;return u}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(r===l)throw r=m,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r=h;var c=f(t,n,e);if("normal"===c.type){if(r=e.done?m:p,c.arg===d)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(r=m,e.method="throw",e.arg=c.arg)}}}(t,e,a),i}function f(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l="suspendedStart",p="suspendedYield",h="executing",m="completed",d={};function v(){}function y(){}function g(){}var w={};c(w,i,(function(){return this}));var E=Object.getPrototypeOf,b=E&&E(E(x([])));b&&b!==e&&r.call(b,i)&&(w=b);var O=g.prototype=v.prototype=Object.create(w);function P(t){["next","throw","return"].forEach((function(n){c(t,n,(function(t){return this._invoke(n,t)}))}))}function T(t,n){function e(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?n.resolve(l.__await).then((function(t){e("next",t,a,u)}),(function(t){e("throw",t,a,u)})):n.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return e("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,r){function i(){return new n((function(n,o){e(t,r,n,o)}))}return o=o?o.then(i,i):i()}}function _(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,_(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function S(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function A(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function x(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(r.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=n,e.done=!0,e};return a.next=a}}return{next:N}}function N(){return{value:n,done:!0}}return y.prototype=g,c(O,"constructor",g),c(g,"constructor",y),y.displayName=c(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===y||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},P(T.prototype),c(T.prototype,a,(function(){return this})),t.AsyncIterator=T,t.async=function(n,e,r,o,i){void 0===i&&(i=Promise);var a=new T(s(n,e,r,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(O),c(O,u,"Generator"),c(O,i,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=x,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(r,o){return u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),d},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),A(e),d}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;A(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:x(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),d}},t}(t.exports);try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},6639:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>u,genericLinkConfigSchema:()=>a});var r=e(6983),o=e.n(r),i=e(7644),a={title:{_default:"New Link",_type:i.Type.String},target:{_default:"#",_type:i.Type.String,_description:"The URL to link to.",_validators:[i.validators.isUrl]}};function u(){var t=(0,i.useConfig)();return o().createElement(i.ConfigurableLink,{to:t.target},t.title)}},1217:(t,n,e)=>{"use strict";e.d(n,{O:()=>r,e:()=>o});var r="user-property-change",o="@openmrs/esm-primary-navigation-app"},789:(t,n,e)=>{"use strict";e.r(n),e.d(n,{backendDependencies:()=>ln,importTranslation:()=>fn,setupOpenMRS:()=>hn,version:()=>sn});var r=e(7644),o=e(1602),i=e.n(o),a=e(8478),u=e(1217);function c(t,n,e,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?n(c):Promise.resolve(c).then(r,o)}function s(t){return function(){var n=this,e=arguments;return new Promise((function(r,o){var i=t.apply(n,e);function a(t){c(i,r,o,a,u,"next",t)}function u(t){c(i,r,o,a,u,"throw",t)}a(void 0)}))}}function f(t,n,e){return l.apply(this,arguments)}function l(){return(l=s(i().mark((function t(n,e,r){var o,u;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.getSessionLocation)();case 2:return o=t.sent,u=null==o?void 0:o.uuid,t.next=6,(0,a.openmrsFetch)("/ws/rest/v1/user/".concat(n),{method:"POST",body:{userProperties:e},headers:{"Content-Type":"application/json"},signal:r.signal});case 6:if(!u){t.next=9;break}return t.next=9,(0,a.setSessionLocation)(u,r);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function p(t,n){return(0,a.queueSynchronizationItemFor)(t,u.O,n,{displayName:"User Language Change"})}var h={logo:{src:{_type:r.Type.String,_default:null,_description:"A path or URL to an image. Defaults to the OpenMRS SVG sprite."},alt:{_type:r.Type.String,_default:"Logo",_description:"Alt text, shown on hover"},name:{_type:r.Type.String,_default:null,_description:"The organization name displayed when image is absent"}},externalRefLinks:{_type:r.Type.Array,_elements:{title:{_type:r.Type.String,_description:"Title of the link"},redirect:{_type:r.Type.String,_description:"Link to redirect to (must be an external link)",_validators:[r.validators.isUrl]}},_default:[],_description:"The external links to be showcased in the app menu"}};function m(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function d(t,n,e,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?n(c):Promise.resolve(c).then(r,o)}function v(t){return function(){var n=this,e=arguments;return new Promise((function(r,o){var i=t.apply(n,e);function a(t){d(i,r,o,a,u,"next",t)}function u(t){d(i,r,o,a,u,"throw",t)}a(void 0)}))}}function y(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i=[],a=!0,u=!1;try{for(e=e.call(t);!(a=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==e.return||e.return()}finally{if(u)throw o}}return i}}(t,n)||w(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||w(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,n){if(t){if("string"==typeof t)return m(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?m(t,n):void 0}}function E(t,n){return b.apply(this,arguments)}function b(){return b=v(i().mark((function t(n,e){var r,o,u,c;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.index){t.next=10;break}return t.next=4,(0,a.getLoggedInUser)();case 4:return o=t.sent,u=e.items.map((function(t){var n=y(t,2);return n[0],n[1]})),c=(r=Object).assign.apply(r,[{},o.userProperties].concat(g(u))),t.next=9,f(o.uuid,c,e.abort);case 9:(0,a.refetchCurrentUser)();case 10:case"end":return t.stop()}}),t)}))),b.apply(this,arguments)}var O=Object.freeze({__proto__:null,get start(){return on},get ensureJQuerySupport(){return Ut},get setBootstrapMaxTime(){return pt},get setMountMaxTime(){return ht},get setUnmountMaxTime(){return mt},get setUnloadMaxTime(){return dt},get registerApplication(){return Kt},get unregisterApplication(){return Jt},get getMountedApps(){return Wt},get getAppStatus(){return $t},get unloadApplication(){return Vt},get checkActivityFunctions(){return zt},get getAppNames(){return Ft},get pathToActiveWhen(){return Qt},get navigateToUrl(){return Pt},get triggerAppChange(){return tn},get addErrorHandler(){return x},get removeErrorHandler(){return N},get mountRootParcel(){return ut},get NOT_LOADED(){return k},get LOADING_SOURCE_CODE(){return D},get NOT_BOOTSTRAPPED(){return M},get BOOTSTRAPPING(){return I},get NOT_MOUNTED(){return R},get MOUNTING(){return C},get UPDATING(){return B},get LOAD_ERROR(){return F},get MOUNTED(){return G},get UNMOUNTING(){return W},get SKIP_BECAUSE_BROKEN(){return $}});function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var _=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e.g?e.g:"undefined"!=typeof self?self:{}).CustomEvent,S=function(){try{var t=new _("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?_:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,n){var e=document.createEvent("CustomEvent");return n?e.initCustomEvent(t,n.bubbles,n.cancelable,n.detail):e.initCustomEvent(t,!1,!1,void 0),e}:function(t,n){var e=document.createEventObject();return e.type=t,n?(e.bubbles=Boolean(n.bubbles),e.cancelable=Boolean(n.cancelable),e.detail=n.detail):(e.bubbles=!1,e.cancelable=!1,e.detail=void 0),e},A=[];function L(t,n,e){var r=U(t,n,e);A.length?A.forEach((function(t){return t(r)})):setTimeout((function(){throw r}))}function x(t){if("function"!=typeof t)throw Error(j(28,!1));A.push(t)}function N(t){if("function"!=typeof t)throw Error(j(29,!1));var n=!1;return A=A.filter((function(e){var r=e===t;return n=n||r,!r})),n}function j(t,n){for(var e=arguments.length,r=new Array(e>2?e-2:0),o=2;o<e;o++)r[o-2]=arguments[o];return"single-spa minified message #".concat(t,": ").concat(n?n+" ":"","See https://single-spa.js.org/error/?code=").concat(t).concat(r.length?"&arg=".concat(r.join("&arg=")):"")}function U(t,n,e){var r,o="".concat(q(n)," '").concat(J(n),"' died in status ").concat(n.status,": ");if(t instanceof Error){try{t.message=o+t.message}catch(t){}r=t}else{console.warn(j(30,!1,n.status,J(n)));try{r=Error(o+JSON.stringify(t))}catch(n){r=t}}return r.appOrParcelName=J(n),n.status=e,r}var k="NOT_LOADED",D="LOADING_SOURCE_CODE",M="NOT_BOOTSTRAPPED",I="BOOTSTRAPPING",R="NOT_MOUNTED",C="MOUNTING",G="MOUNTED",B="UPDATING",W="UNMOUNTING",F="LOAD_ERROR",$="SKIP_BECAUSE_BROKEN";function K(t){return t.status===G}function z(t){try{return t.activeWhen(window.location)}catch(n){return L(n,t,$),!1}}function J(t){return t.name}function V(t){return Boolean(t.unmountThisParcel)}function q(t){return V(t)?"parcel":"application"}function H(){for(var t=arguments.length-1;t>0;t--)for(var n in arguments[t])"__proto__"!==n&&(arguments[t-1][n]=arguments[t][n]);return arguments[0]}function Q(t,n){for(var e=0;e<t.length;e++)if(n(t[e]))return t[e];return null}function Y(t){return t&&("function"==typeof t||(n=t,Array.isArray(n)&&!Q(n,(function(t){return"function"!=typeof t}))));var n}function X(t,n){var e=t[n]||[];0===(e=Array.isArray(e)?e:[e]).length&&(e=[function(){return Promise.resolve()}]);var r=q(t),o=J(t);return function(t){return e.reduce((function(e,i,a){return e.then((function(){var e=i(t);return Z(e)?e:Promise.reject(j(15,!1,r,o,n,a))}))}),Promise.resolve())}}function Z(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}function tt(t,n){return Promise.resolve().then((function(){return t.status!==M?t:(t.status=I,t.bootstrap?vt(t,"bootstrap").then(e).catch((function(e){if(n)throw U(e,t,$);return L(e,t,$),t})):Promise.resolve().then(e))}));function e(){return t.status=R,t}}function nt(t,n){return Promise.resolve().then((function(){if(t.status!==G)return t;t.status=W;var e=Object.keys(t.parcels).map((function(n){return t.parcels[n].unmountThisParcel()}));return Promise.all(e).then(r,(function(e){return r().then((function(){var r=Error(e.message);if(n)throw U(r,t,$);L(r,t,$)}))})).then((function(){return t}));function r(){return vt(t,"unmount").then((function(){t.status=R})).catch((function(e){if(n)throw U(e,t,$);L(e,t,$)}))}}))}var et=!1,rt=!1;function ot(t,n){return Promise.resolve().then((function(){return t.status!==R?t:(et||(window.dispatchEvent(new S("single-spa:before-first-mount")),et=!0),vt(t,"mount").then((function(){return t.status=G,rt||(window.dispatchEvent(new S("single-spa:first-mount")),rt=!0),t})).catch((function(e){return t.status=G,nt(t,!0).then(r,r);function r(){if(n)throw U(e,t,$);return L(e,t,$),t}})))}))}var it=0,at={parcels:{}};function ut(){return ct.apply(at,arguments)}function ct(t,n){var e=this;if(!t||"object"!==P(t)&&"function"!=typeof t)throw Error(j(2,!1));if(t.name&&"string"!=typeof t.name)throw Error(j(3,!1,P(t.name)));if("object"!==P(n))throw Error(j(4,!1,name,P(n)));if(!n.domElement)throw Error(j(5,!1,name));var r,o=it++,i="function"==typeof t,a=i?t:function(){return Promise.resolve(t)},u={id:o,parcels:{},status:i?D:M,customProps:n,parentName:J(e),unmountThisParcel:function(){return p.then((function(){if(u.status!==G)throw Error(j(6,!1,name,u.status));return nt(u,!0)})).then((function(t){return u.parentName&&delete e.parcels[u.id],t})).then((function(t){return s(t),t})).catch((function(t){throw u.status=$,f(t),t}))}};e.parcels[o]=u;var c=a();if(!c||"function"!=typeof c.then)throw Error(j(7,!1));var s,f,l=(c=c.then((function(t){if(!t)throw Error(j(8,!1));var n=t.name||"parcel-".concat(o);if(Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!Y(t.bootstrap))throw Error(j(9,!1,n));if(!Y(t.mount))throw Error(j(10,!1,n));if(!Y(t.unmount))throw Error(j(11,!1,n));if(t.update&&!Y(t.update))throw Error(j(12,!1,n));var e=X(t,"bootstrap"),i=X(t,"mount"),a=X(t,"unmount");u.status=M,u.name=n,u.bootstrap=e,u.mount=i,u.unmount=a,u.timeouts=yt(t.timeouts),t.update&&(u.update=X(t,"update"),r.update=function(t){return u.customProps=t,st(function(t){return Promise.resolve().then((function(){if(t.status!==G)throw Error(j(32,!1,J(t)));return t.status=B,vt(t,"update").then((function(){return t.status=G,t})).catch((function(n){throw U(n,t,$)}))}))}(u))})}))).then((function(){return tt(u,!0)})),p=l.then((function(){return ot(u,!0)})),h=new Promise((function(t,n){s=t,f=n}));return r={mount:function(){return st(Promise.resolve().then((function(){if(u.status!==R)throw Error(j(13,!1,name,u.status));return e.parcels[o]=u,ot(u)})))},unmount:function(){return st(u.unmountThisParcel())},getStatus:function(){return u.status},loadPromise:st(c),bootstrapPromise:st(l),mountPromise:st(p),unmountPromise:st(h)}}function st(t){return t.then((function(){return null}))}function ft(t){var n=J(t),e="function"==typeof t.customProps?t.customProps(n,window.location):t.customProps;("object"!==P(e)||null===e||Array.isArray(e))&&(e={},console.warn(j(40,!1),n,e));var r=H({},e,{name:n,mountParcel:ct.bind(t),singleSpa:O});return V(t)&&(r.unmountSelf=t.unmountThisParcel),r}var lt={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}};function pt(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(16,!1));lt.bootstrap={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function ht(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(17,!1));lt.mount={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function mt(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(18,!1));lt.unmount={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function dt(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(19,!1));lt.unload={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function vt(t,n){var e=t.timeouts[n],r=e.warningMillis,o=q(t);return new Promise((function(i,a){var u=!1,c=!1;t[n](ft(t)).then((function(t){u=!0,i(t)})).catch((function(t){u=!0,a(t)})),setTimeout((function(){return f(1)}),r),setTimeout((function(){return f(!0)}),e.millis);var s=j(31,!1,n,o,J(t),e.millis);function f(t){if(!u)if(!0===t)c=!0,e.dieOnTimeout?a(Error(s)):console.error(s);else if(!c){var n=t,o=n*r;console.warn(s),o+r<e.millis&&setTimeout((function(){return f(n+1)}),r)}}}))}function yt(t){var n={};for(var e in lt)n[e]=H({},lt[e],t&&t[e]||{});return n}function gt(t){return Promise.resolve().then((function(){return t.loadPromise?t.loadPromise:t.status!==k&&t.status!==F?t:(t.status=D,t.loadPromise=Promise.resolve().then((function(){var r=t.loadApp(ft(t));if(!Z(r))throw e=!0,Error(j(33,!1,J(t)));return r.then((function(e){var r;t.loadErrorTime=null,"object"!==P(n=e)&&(r=34),Object.prototype.hasOwnProperty.call(n,"bootstrap")&&!Y(n.bootstrap)&&(r=35),Y(n.mount)||(r=36),Y(n.unmount)||(r=37);var o=q(n);if(r){var i;try{i=JSON.stringify(n)}catch(t){}return console.error(j(r,!1,o,J(t),i),n),L(void 0,t,$),t}return n.devtools&&n.devtools.overlays&&(t.devtools.overlays=H({},t.devtools.overlays,n.devtools.overlays)),t.status=M,t.bootstrap=X(n,"bootstrap"),t.mount=X(n,"mount"),t.unmount=X(n,"unmount"),t.unload=X(n,"unload"),t.timeouts=yt(n.timeouts),delete t.loadPromise,t}))})).catch((function(n){var r;return delete t.loadPromise,e?r=$:(r=F,t.loadErrorTime=(new Date).getTime()),L(n,t,r),t})));var n,e}))}var wt,Et="undefined"!=typeof window,bt={hashchange:[],popstate:[]},Ot=["hashchange","popstate"];function Pt(t){var n;if("string"==typeof t)n=t;else if(this&&this.href)n=this.href;else{if(!(t&&t.currentTarget&&t.currentTarget.href&&t.preventDefault))throw Error(j(14,!1));n=t.currentTarget.href,t.preventDefault()}var e=Nt(window.location.href),r=Nt(n);0===n.indexOf("#")?window.location.hash=r.hash:e.host!==r.host&&r.host?window.location.href=n:r.pathname===e.pathname&&r.search===e.search?window.location.hash=r.hash:window.history.pushState(null,null,n)}function Tt(t){var n=this;if(t){var e=t[0].type;Ot.indexOf(e)>=0&&bt[e].forEach((function(e){try{e.apply(n,t)}catch(t){setTimeout((function(){throw t}))}}))}}function _t(){nn([],arguments)}function St(t,n){return function(){var e=window.location.href,r=t.apply(this,arguments),o=window.location.href;return wt&&e===o||(an()?window.dispatchEvent(At(window.history.state,n)):nn([])),r}}function At(t,n){var e;try{e=new PopStateEvent("popstate",{state:t})}catch(n){(e=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,t)}return e.singleSpa=!0,e.singleSpaTrigger=n,e}if(Et){window.addEventListener("hashchange",_t),window.addEventListener("popstate",_t);var Lt=window.addEventListener,xt=window.removeEventListener;window.addEventListener=function(t,n){if(!("function"==typeof n&&Ot.indexOf(t)>=0)||Q(bt[t],(function(t){return t===n})))return Lt.apply(this,arguments);bt[t].push(n)},window.removeEventListener=function(t,n){if(!("function"==typeof n&&Ot.indexOf(t)>=0))return xt.apply(this,arguments);bt[t]=bt[t].filter((function(t){return t!==n}))},window.history.pushState=St(window.history.pushState,"pushState"),window.history.replaceState=St(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(j(41,!1)):window.singleSpaNavigate=Pt}function Nt(t){var n=document.createElement("a");return n.href=t,n}var jt=!1;function Ut(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(t||window.$&&window.$.fn&&window.$.fn.jquery&&(t=window.$),t&&!jt){var n=t.fn.on,e=t.fn.off;t.fn.on=function(t,e){return kt.call(this,n,window.addEventListener,t,e,arguments)},t.fn.off=function(t,n){return kt.call(this,e,window.removeEventListener,t,n,arguments)},jt=!0}}function kt(t,n,e,r,o){return"string"!=typeof e?t.apply(this,o):(e.split(/\s+/).forEach((function(t){Ot.indexOf(t)>=0&&(n(t,r),e=e.replace(t,""))})),""===e.trim()?this:t.apply(this,o))}var Dt={};function Mt(t){return Promise.resolve().then((function(){var n=Dt[J(t)];if(!n)return t;if(t.status===k)return It(t,n),t;if("UNLOADING"===t.status)return n.promise.then((function(){return t}));if(t.status!==R&&t.status!==F)return t;var e=t.status===F?Promise.resolve():vt(t,"unload");return t.status="UNLOADING",e.then((function(){return It(t,n),t})).catch((function(e){return function(t,n,e){delete Dt[J(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,L(e,t,$),n.reject(e)}(t,n,e),t}))}))}function It(t,n){delete Dt[J(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,t.status=k,n.resolve()}function Rt(t,n,e,r){Dt[J(t)]={app:t,resolve:e,reject:r},Object.defineProperty(Dt[J(t)],"promise",{get:n})}function Ct(t){return Dt[t]}var Gt=[];function Bt(){var t=[],n=[],e=[],r=[],o=(new Date).getTime();return Gt.forEach((function(i){var a=i.status!==$&&z(i);switch(i.status){case F:a&&o-i.loadErrorTime>=200&&e.push(i);break;case k:case D:a&&e.push(i);break;case M:case R:!a&&Ct(J(i))?t.push(i):a&&r.push(i);break;case G:a||n.push(i)}})),{appsToUnload:t,appsToUnmount:n,appsToLoad:e,appsToMount:r}}function Wt(){return Gt.filter(K).map(J)}function Ft(){return Gt.map(J)}function $t(t){var n=Q(Gt,(function(n){return J(n)===t}));return n?n.status:null}function Kt(t,n,e,r){var o=function(t,n,e,r){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===P(t)?(function(t){if(Array.isArray(t)||null===t)throw Error(j(39,!1));var n=["name","app","activeWhen","customProps"],e=Object.keys(t).reduce((function(t,e){return n.indexOf(e)>=0?t:t.concat(e)}),[]);if(0!==e.length)throw Error(j(38,!1,n.join(", "),e.join(", ")));if("string"!=typeof t.name||0===t.name.length)throw Error(j(20,!1));if("object"!==P(t.app)&&"function"!=typeof t.app)throw Error(j(20,!1));var r=function(t){return"string"==typeof t||"function"==typeof t};if(!(r(t.activeWhen)||Array.isArray(t.activeWhen)&&t.activeWhen.every(r)))throw Error(j(24,!1));if(!Ht(t.customProps))throw Error(j(22,!1))}(t),i.name=t.name,i.loadApp=t.app,i.activeWhen=t.activeWhen,i.customProps=t.customProps):(function(t,n,e,r){if("string"!=typeof t||0===t.length)throw Error(j(20,!1));if(!n)throw Error(j(23,!1));if("function"!=typeof e)throw Error(j(24,!1));if(!Ht(r))throw Error(j(22,!1))}(t,n,e,r),i.name=t,i.loadApp=n,i.activeWhen=e,i.customProps=r),i.loadApp="function"!=typeof(o=i.loadApp)?function(){return Promise.resolve(o)}:o,i.customProps=function(t){return t||{}}(i.customProps),i.activeWhen=function(t){var n=Array.isArray(t)?t:[t];return n=n.map((function(t){return"function"==typeof t?t:Qt(t)})),function(t){return n.some((function(n){return n(t)}))}}(i.activeWhen),i}(t,n,e,r);if(-1!==Ft().indexOf(o.name))throw Error(j(21,!1,o.name));Gt.push(H({loadErrorTime:null,status:k,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),Et&&(Ut(),nn())}function zt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return Gt.filter((function(n){return n.activeWhen(t)})).map(J)}function Jt(t){if(0===Gt.filter((function(n){return J(n)===t})).length)throw Error(j(25,!1,t));return Vt(t).then((function(){var n=Gt.map(J).indexOf(t);Gt.splice(n,1)}))}function Vt(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof t)throw Error(j(26,!1));var e=Q(Gt,(function(n){return J(n)===t}));if(!e)throw Error(j(27,!1,t));var r,o=Ct(J(e));if(n&&n.waitForUnmount){if(o)return o.promise;var i=new Promise((function(t,n){Rt(e,(function(){return i}),t,n)}));return i}return o?(r=o.promise,qt(e,o.resolve,o.reject)):r=new Promise((function(t,n){Rt(e,(function(){return r}),t,n),qt(e,t,n)})),r}function qt(t,n,e){nt(t).then(Mt).then((function(){n(),setTimeout((function(){nn()}))})).catch(e)}function Ht(t){return!t||"function"==typeof t||"object"===P(t)&&null!==t&&!Array.isArray(t)}function Qt(t,n){var e=function(t,n){var e=0,r=!1,o="^";"/"!==t[0]&&(t="/"+t);for(var i=0;i<t.length;i++){var a=t[i];(!r&&":"===a||r&&"/"===a)&&u(i)}return u(t.length),new RegExp(o,"i");function u(i){var a=t.slice(e,i).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=r?"[^/]+/?":a,i===t.length)if(r)n&&(o+="$");else{var u=n?"":".*";o="/"===o.charAt(o.length-1)?"".concat(o).concat(u,"$"):"".concat(o,"(/").concat(u,")?(#.*)?$")}r=!r,e=i}}(t,n);return function(t){var n=t.origin;n||(n="".concat(t.protocol,"//").concat(t.host));var r=t.href.replace(n,"").replace(t.search,"").split("?")[0];return e.test(r)}}var Yt=!1,Xt=[],Zt=Et&&window.location.href;function tn(){return nn()}function nn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;if(Yt)return new Promise((function(t,e){Xt.push({resolve:t,reject:e,eventArguments:n})}));var e,r=Bt(),o=r.appsToUnload,i=r.appsToUnmount,a=r.appsToLoad,u=r.appsToMount,c=!1,s=Zt,f=Zt=window.location.href;return an()?(Yt=!0,e=o.concat(a,i,u),h()):(e=a,p());function l(){c=!0}function p(){return Promise.resolve().then((function(){var t=a.map(gt);return Promise.all(t).then(d).then((function(){return[]})).catch((function(t){throw d(),t}))}))}function h(){return Promise.resolve().then((function(){if(window.dispatchEvent(new S(0===e.length?"single-spa:before-no-app-change":"single-spa:before-app-change",v(!0))),window.dispatchEvent(new S("single-spa:before-routing-event",v(!0,{cancelNavigation:l}))),c)return window.dispatchEvent(new S("single-spa:before-mount-routing-event",v(!0))),m(),void Pt(s);var n=o.map(Mt),r=i.map(nt).map((function(t){return t.then(Mt)})).concat(n),f=Promise.all(r);f.then((function(){window.dispatchEvent(new S("single-spa:before-mount-routing-event",v(!0)))}));var p=a.map((function(t){return gt(t).then((function(t){return en(t,f)}))})),h=u.filter((function(t){return a.indexOf(t)<0})).map((function(t){return en(t,f)}));return f.catch((function(t){throw d(),t})).then((function(){return d(),Promise.all(p.concat(h)).catch((function(n){throw t.forEach((function(t){return t.reject(n)})),n})).then(m)}))}))}function m(){var n=Wt();t.forEach((function(t){return t.resolve(n)}));try{var r=0===e.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new S(r,v())),window.dispatchEvent(new S("single-spa:routing-event",v()))}catch(t){setTimeout((function(){throw t}))}if(Yt=!1,Xt.length>0){var o=Xt;Xt=[],nn(o)}return n}function d(){t.forEach((function(t){Tt(t.eventArguments)})),Tt(n)}function v(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],l=arguments.length>1?arguments[1]:void 0,p={},h=(T(t={},G,[]),T(t,R,[]),T(t,k,[]),T(t,$,[]),t);r?(a.concat(u).forEach((function(t,n){d(t,G)})),o.forEach((function(t){d(t,k)})),i.forEach((function(t){d(t,R)}))):e.forEach((function(t){d(t)}));var m={detail:{newAppStatuses:p,appsByNewStatus:h,totalAppChanges:e.length,originalEvent:null==n?void 0:n[0],oldUrl:s,newUrl:f,navigationIsCanceled:c}};return l&&H(m.detail,l),m;function d(t,n){var e=J(t);n=n||$t(e),p[e]=n,(h[n]=h[n]||[]).push(e)}}}function en(t,n){return z(t)?tt(t).then((function(t){return n.then((function(){return z(t)?ot(t):t}))})):n.then((function(){return t}))}var rn=!1;function on(t){var n;rn=!0,t&&t.urlRerouteOnly&&(n=t.urlRerouteOnly,wt=n),Et&&nn()}function an(){return rn}Et&&setTimeout((function(){rn||console.warn(j(1,!1))}),5e3);var un={getRawAppData:function(){return[].concat(Gt)},reroute:nn,NOT_LOADED:k,toLoadPromise:gt,toBootstrapPromise:tt,unregisterApplication:Jt};Et&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods=un);var cn=e(6639),sn="3.4.1-pre.180",fn=e(3979),ln={"webservices.rest":"^2.2.0"},pn={featureName:"primary navigation",moduleName:u.e};function hn(){return(0,r.defineConfigSchema)(u.e,h),(0,r.defineExtensionConfigSchema)("link",cn.genericLinkConfigSchema),(0,r.setupOfflineSync)(u.O,[],E),{pages:[{load:(0,r.getAsyncLifecycle)((function(){return Promise.all([e.e(513),e.e(596),e.e(784),e.e(212)]).then(e.bind(e,3212))}),pn),route:function(t){return!t.pathname.startsWith(window.getOpenmrsSpaBase()+"login")},online:!0,offline:!0,order:0},{load:{bootstrap:function(){return Promise.resolve(Pt(window.getOpenmrsSpaBase()+"home"))},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}},route:function(t){return t.pathname===window.getOpenmrsSpaBase()},order:0}],extensions:[{name:"default-user-panel",slot:"user-panel-slot",order:0,load:(0,r.getAsyncLifecycle)((function(){return Promise.all([e.e(513),e.e(784),e.e(540)]).then(e.bind(e,3540))}),pn),online:!0,offline:!0},{name:"change-locale",slot:"user-panel-slot",order:1,load:(0,r.getAsyncLifecycle)((function(){return Promise.all([e.e(784),e.e(510)]).then(e.bind(e,510))}),pn),online:{postUserProperties:f},offline:{postUserProperties:p}},{name:"link",load:(0,r.getAsyncLifecycle)((function(){return Promise.resolve().then(e.bind(e,6639))}),{featureName:"Link",moduleName:u.e})}]}}},3979:(t,n,e)=>{var r={"./en.json":[3574,574]};function o(t){if(!e.o(r,t))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=r[t],o=n[0];return e.e(n[1]).then((()=>e(o)))}o.keys=()=>Object.keys(r),o.id=3979,t.exports=o}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@openmrs/esm-primary-navigation-app",[],function(a,j){var b=void 0;return{execute:function(){a((()=>{function k(a){var b=y[a];if(void 0!==b)return b.exports;var c=y[a]={id:a,loaded:!1,exports:{}};return M[a].call(c.exports,c,c.exports,k),c.loaded=!0,c.exports}var q,w,x,z,A,B,C,D,E,F,G,r,H,I,J,K,L,M={6585:(a,b,c)=>{(0,c(7968).s)(1)},7968:(a,b,c)=>{const d=c(1577).R;b.s=function(a){if(a||(a=1),!c.y.meta||!c.y.meta.url)throw console.error("__system_context__",c.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");c.p=d(c.y.meta.url,a)}},8331:(a,b,c)=>{c(6585)},1577:(a,b)=>{b.R=function(b,c){var d=document.createElement("a");d.href=b;for(var e="/"===d.pathname[0]?d.pathname:"/"+d.pathname,f=0,g=e.length;f!==c&&0<=g;)"/"===e[--g]&&f++;if(f!==c)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+c+") is greater than the number of directories ("+f+") in the URL path "+b);var h=e.slice(0,g+1);return d.protocol+"//"+d.host+h},Number.isInteger},7972:(c,d,f)=>{var g={app:()=>(b||((self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[789],{1602:a=>{var b=function(j){function k(a,b,c){return Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}),a[b]}function q(b,c,d,e){var g=c&&c.prototype instanceof f?c:f,j=Object.create(g.prototype),i=new A(e||[]);return j._invoke=function(b,d,f){var e=o;return function(g,j){if(e===p)throw new Error("Generator is already running");if(e===h){if("throw"===g)throw j;return x()}for(f.method=g,f.arg=j;;){var i=f.delegate;if(i){var a=y(i,f);if(a){if(a===m)continue;return a}}if("next"===f.method)f.sent=f._sent=f.arg;else if("throw"===f.method){if(e===o)throw e=h,f.arg;f.dispatchException(f.arg)}else"return"===f.method&&f.abrupt("return",f.arg);e=p;var k=z(b,d,f);if("normal"===k.type){if(e=f.done?h:l,k.arg===m)continue;return{value:k.arg,done:f.done}}"throw"===k.type&&(e=h,f.method="throw",f.arg=k.arg)}}}(b,d,i),j}function z(a,b,c){try{return{type:"normal",arg:a.call(b,c)}}catch(a){return{type:"throw",arg:a}}}function f(){}function s(){}function v(){}function g(a){["next","throw","return"].forEach(function(b){k(a,b,function(a){return this._invoke(b,a)})})}function t(b,d){function c(e,f,g,a){var h=z(b[e],b,f);if("throw"!==h.type){var i=h.arg,j=i.value;return j&&"object"==typeof j&&G.call(j,"__await")?d.resolve(j.__await).then(function(b){c("next",b,g,a)},function(b){c("throw",b,g,a)}):d.resolve(j).then(function(a){i.value=a,g(i)},function(b){return c("throw",b,g,a)})}a(h.arg)}var a;this._invoke=function(b,e){function f(){return new d(function(a,d){c(b,e,a,d)})}return a=a?a.then(f,f):f()}}function y(a,b){var c=a.iterator[b.method];if(c===F){if(b.delegate=null,"throw"===b.method){if(a.iterator.return&&(b.method="return",b.arg=F,y(a,b),"throw"===b.method))return m;b.method="throw",b.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var d=z(c,a.iterator,b.arg);if("throw"===d.type)return b.method="throw",b.arg=d.arg,b.delegate=null,m;var e=d.arg;return e?e.done?(b[a.resultName]=e.value,b.next=a.nextLoc,"return"!==b.method&&(b.method="next",b.arg=F),b.delegate=null,m):e:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,m)}function B(a){var b={tryLoc:a[0]};1 in a&&(b.catchLoc=a[1]),2 in a&&(b.finallyLoc=a[2],b.afterLoc=a[3]),this.tryEntries.push(b)}function C(a){var b=a.completion||{};b.type="normal",delete b.arg,a.completion=b}function A(a){this.tryEntries=[{tryLoc:"root"}],a.forEach(B,this),this.reset(!0)}function D(b){if(b){var c=b[r];if(c)return c.call(b);if("function"==typeof b.next)return b;if(!isNaN(b.length)){var d=-1,e=function a(){for(;++d<b.length;)if(G.call(b,d))return a.value=b[d],a.done=!1,a;return a.value=F,a.done=!0,a};return e.next=e}}return{next:x}}function x(){return{value:F,done:!0}}var F,n=Object.prototype,G=n.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",i=e.asyncIterator||"@@asyncIterator",a=e.toStringTag||"@@toStringTag";try{k({},"")}catch(a){k=function(a,b,c){return a[b]=c}}j.wrap=q;var o="suspendedStart",l="suspendedYield",p="executing",h="completed",m={},d={};k(d,r,function(){return this});var u=Object.getPrototypeOf,E=u&&u(u(D([])));E&&E!==n&&G.call(E,r)&&(d=E);var b=v.prototype=f.prototype=Object.create(d);return s.prototype=v,k(b,"constructor",v),k(v,"constructor",s),s.displayName=k(v,a,"GeneratorFunction"),j.isGeneratorFunction=function(a){var b="function"==typeof a&&a.constructor;return!!b&&(b===s||"GeneratorFunction"===(b.displayName||b.name))},j.mark=function(c){return Object.setPrototypeOf?Object.setPrototypeOf(c,v):(c.__proto__=v,k(c,a,"GeneratorFunction")),c.prototype=Object.create(b),c},j.awrap=function(a){return{__await:a}},g(t.prototype),k(t.prototype,i,function(){return this}),j.AsyncIterator=t,j.async=function(b,c,d,e,f){void 0===f&&(f=Promise);var g=new t(q(b,c,d,e),f);return j.isGeneratorFunction(c)?g:g.next().then(function(a){return a.done?a.value:g.next()})},g(b),k(b,a,"Generator"),k(b,r,function(){return this}),k(b,"toString",function(){return"[object Generator]"}),j.keys=function(a){var b=[];for(var c in a)b.push(c);return b.reverse(),function c(){for(;b.length;){var d=b.pop();if(d in a)return c.value=d,c.done=!1,c}return c.done=!0,c}},j.values=D,A.prototype={constructor:A,reset:function(a){if(this.prev=0,this.next=0,this.sent=this._sent=F,this.done=!1,this.delegate=null,this.method="next",this.arg=F,this.tryEntries.forEach(C),!a)for(var b in this)"t"===b.charAt(0)&&G.call(this,b)&&!isNaN(+b.slice(1))&&(this[b]=F)},stop:function(){this.done=!0;var a=this.tryEntries[0].completion;if("throw"===a.type)throw a.arg;return this.rval},dispatchException:function(b){function d(c,d){return a.type="throw",a.arg=b,f.next=c,d&&(f.method="next",f.arg=F),!!d}if(this.done)throw b;for(var f=this,e=this.tryEntries.length-1;0<=e;--e){var g=this.tryEntries[e],a=g.completion;if("root"===g.tryLoc)return d("end");if(g.tryLoc<=this.prev){var h=G.call(g,"catchLoc"),c=G.call(g,"finallyLoc");if(h&&c){if(this.prev<g.catchLoc)return d(g.catchLoc,!0);if(this.prev<g.finallyLoc)return d(g.finallyLoc)}else if(!h){if(!c)throw new Error("try statement without catch or finally");if(this.prev<g.finallyLoc)return d(g.finallyLoc)}else if(this.prev<g.catchLoc)return d(g.catchLoc,!0)}}},abrupt:function(b,c){for(var d,f=this.tryEntries.length-1;0<=f;--f)if(d=this.tryEntries[f],d.tryLoc<=this.prev&&G.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var g=d;break}g&&("break"===b||"continue"===b)&&g.tryLoc<=c&&c<=g.finallyLoc&&(g=null);var h=g?g.completion:{};return h.type=b,h.arg=c,g?(this.method="next",this.next=g.finallyLoc,m):this.complete(h)},complete:function(a,b){if("throw"===a.type)throw a.arg;return"break"===a.type||"continue"===a.type?this.next=a.arg:"return"===a.type?(this.rval=this.arg=a.arg,this.method="return",this.next="end"):"normal"===a.type&&b&&(this.next=b),m},finish:function(a){for(var b,c=this.tryEntries.length-1;0<=c;--c)if(b=this.tryEntries[c],b.finallyLoc===a)return this.complete(b.completion,b.afterLoc),C(b),m},catch:function(a){for(var b,c=this.tryEntries.length-1;0<=c;--c)if(b=this.tryEntries[c],b.tryLoc===a){var d=b.completion;if("throw"===d.type){var f=d.arg;C(b)}return f}throw new Error("illegal catch attempt")},delegateYield:function(a,b,c){return this.delegate={iterator:D(a),resultName:b,nextLoc:c},"next"===this.method&&(this.arg=F),m}},j}(a.exports);try{regeneratorRuntime=b}catch(a){"object"==typeof globalThis?globalThis.regeneratorRuntime=b:Function("r","regeneratorRuntime = r")(b)}},6639:(b,c,d)=>{function e(){var a=(0,h.useConfig)();return g().createElement(h.ConfigurableLink,{to:a.target},a.title)}d.r(c),d.d(c,{default:()=>e,genericLinkConfigSchema:()=>i});var f=d(6983),g=d.n(f),h=d(7644),i={title:{_default:"New Link",_type:h.Type.String},target:{_default:"#",_type:h.Type.String,_description:"The URL to link to.",_validators:[h.validators.isUrl]}}},1217:(a,b,c)=>{c.d(b,{O:()=>d,e:()=>e});var d="user-property-change",e="@openmrs/esm-primary-navigation-app"},789:(B,t,n)=>{function e(b,d,f,e,g,h,i){try{var a=b[h](i),j=a.value}catch(a){return void f(a)}a.done?d(j):Promise.resolve(j).then(e,g)}function c(b){return function(){var c=this,d=arguments;return new Promise(function(f,g){function h(b){e(j,f,g,h,a,"next",b)}function a(b){e(j,f,g,h,a,"throw",b)}var j=b.apply(c,d);h(void 0)})}}function s(){return f.apply(this,arguments)}function f(){return(f=c(Ma().mark(function d(a,b,c){var e,f;return Ma().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,(0,i.getSessionLocation)();case 2:return e=d.sent,f=null==e?void 0:e.uuid,d.next=6,(0,i.openmrsFetch)("/ws/rest/v1/user/".concat(a),{method:"POST",body:{userProperties:b},headers:{"Content-Type":"application/json"},signal:c.signal});case 6:if(!f){d.next=9;break}return d.next=9,(0,i.setSessionLocation)(f,c);case 9:case"end":return d.stop();}},d)}))).apply(this,arguments)}function C(b,c){return(0,i.queueSynchronizationItemFor)(b,a.O,c,{displayName:"User Language Change"})}function p(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c<b;c++)d[c]=a[c];return d}function m(b,d,f,e,g,h,i){try{var a=b[h](i),j=a.value}catch(a){return void f(a)}a.done?d(j):Promise.resolve(j).then(e,g)}function d(b){return function(){var c=this,d=arguments;return new Promise(function(e,f){function g(b){m(h,e,f,g,a,"next",b)}function a(b){m(h,e,f,g,a,"throw",b)}var h=b.apply(c,d);g(void 0)})}}function v(a,b){return function(a){if(Array.isArray(a))return a}(a)||function(b,c){var d=null==b?null:"undefined"!=typeof Symbol&&b[Symbol.iterator]||b["@@iterator"];if(null!=d){var f,g,h=[],i=!0,j=!1;try{for(d=d.call(b);!(i=(f=d.next()).done)&&(h.push(f.value),!c||h.length!==c);i=!0);}catch(a){j=!0,g=a}finally{try{i||null==d.return||d.return()}finally{if(j)throw g}}return h}}(a,b)||g(a,b)||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.")}()}function y(a){return function(a){if(Array.isArray(a))return p(a)}(a)||function(a){if("undefined"!=typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}(a)||g(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(a,b){if(a){if("string"==typeof a)return p(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return"Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c?Array.from(c):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?p(a,b):void 0}}function w(){return D.apply(this,arguments)}function D(){return D=d(Ma().mark(function d(a,b){var e,f,g,h;return Ma().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(0!==b.index){a.next=10;break}return a.next=4,(0,i.getLoggedInUser)();case 4:return f=a.sent,g=b.items.map(function(a){var b=v(a,2);return b[0],b[1]}),h=(e=Object).assign.apply(e,[{},f.userProperties].concat(y(g))),a.next=9,s(f.uuid,h,b.abort);case 9:(0,i.refetchCurrentUser)();case 10:case"end":return a.stop();}},d)})),D.apply(this,arguments)}function E(a){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(a)}function F(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function G(a,b,c){var d=j(a,b,c);S.length?S.forEach(function(a){return a(d)}):setTimeout(function(){throw d})}function I(a){if("function"!=typeof a)throw Error(L(28,!1));S.push(a)}function x(a){if("function"!=typeof a)throw Error(L(29,!1));var b=!1;return S=S.filter(function(c){var d=c===a;return b=b||d,!d}),b}function L(a,b){for(var c=arguments.length,d=Array(2<c?c-2:0),e=2;e<c;e++)d[e-2]=arguments[e];return"single-spa minified message #".concat(a,": ").concat(b?b+" ":"","See https://single-spa.js.org/error/?code=").concat(a).concat(d.length?"&arg=".concat(d.join("&arg=")):"")}function j(a,b,c){var d,e="".concat(N(b)," '").concat(z(b),"' died in status ").concat(b.status,": ");if(a instanceof Error){try{a.message=e+a.message}catch(a){}d=a}else{console.warn(L(30,!1,b.status,z(b)));try{d=Error(e+JSON.stringify(a))}catch(b){d=a}}return d.appOrParcelName=z(b),b.status=c,d}function M(a){return"MOUNTED"===a.status}function K(a){try{return a.activeWhen(window.location)}catch(b){return G(b,a,"SKIP_BECAUSE_BROKEN"),!1}}function z(a){return a.name}function J(a){return!!a.unmountThisParcel}function N(a){return J(a)?"parcel":"application"}function q(){for(var a=arguments.length-1;0<a;a--)for(var b in arguments[a])"__proto__"!=b&&(arguments[a-1][b]=arguments[a][b]);return arguments[0]}function H(a,b){for(var c=0;c<a.length;c++)if(b(a[c]))return a[c];return null}function Q(a){return a&&("function"==typeof a||(b=a,Array.isArray(b)&&!H(b,function(a){return"function"!=typeof a})));var b}function R(a,b){var c=a[b]||[];0===(c=Array.isArray(c)?c:[c]).length&&(c=[function(){return Promise.resolve()}]);var d=N(a),f=z(a);return function(g){return c.reduce(function(c,h,i){return c.then(function(){var a=h(g);return T(a)?a:Promise.reject(L(15,!1,d,f,b,i))})},Promise.resolve())}}function T(a){return a&&"function"==typeof a.then&&"function"==typeof a.catch}function U(a,b){function c(){return a.status="NOT_MOUNTED",a}return Promise.resolve().then(function(){return"NOT_BOOTSTRAPPED"===a.status?(a.status="BOOTSTRAPPING",a.bootstrap?ea(a,"bootstrap").then(c).catch(function(c){if(b)throw j(c,a,"SKIP_BECAUSE_BROKEN");return G(c,a,"SKIP_BECAUSE_BROKEN"),a}):Promise.resolve().then(c)):a})}function V(a,b){return Promise.resolve().then(function(){function c(){return ea(a,"unmount").then(function(){a.status="NOT_MOUNTED"}).catch(function(c){if(b)throw j(c,a,"SKIP_BECAUSE_BROKEN");G(c,a,"SKIP_BECAUSE_BROKEN")})}if("MOUNTED"!==a.status)return a;a.status="UNMOUNTING";var d=Object.keys(a.parcels).map(function(b){return a.parcels[b].unmountThisParcel()});return Promise.all(d).then(c,function(d){return c().then(function(){var c=Error(d.message);if(b)throw j(c,a,"SKIP_BECAUSE_BROKEN");G(c,a,"SKIP_BECAUSE_BROKEN")})}).then(function(){return a})})}function W(a,b){return Promise.resolve().then(function(){return"NOT_MOUNTED"===a.status?(k||(window.dispatchEvent(new O("single-spa:before-first-mount")),k=!0),ea(a,"mount").then(function(){return a.status="MOUNTED",Na||(window.dispatchEvent(new O("single-spa:first-mount")),Na=!0),a}).catch(function(c){function d(){if(b)throw j(c,a,"SKIP_BECAUSE_BROKEN");return G(c,a,"SKIP_BECAUSE_BROKEN"),a}return a.status="MOUNTED",V(a,!0).then(d,d)})):a})}function X(){return Y.apply(Pa,arguments)}function Y(b,d){var g=this;if(!b||"object"!==E(b)&&"function"!=typeof b)throw Error(L(2,!1));if(b.name&&"string"!=typeof b.name)throw Error(L(3,!1,E(b.name)));if("object"!==E(d))throw Error(L(4,!1,name,E(d)));if(!d.domElement)throw Error(L(5,!1,name));var k,m=Oa++,e="function"==typeof b,i=e?b:function(){return Promise.resolve(b)},o={id:m,parcels:{},status:e?"LOADING_SOURCE_CODE":"NOT_BOOTSTRAPPED",customProps:d,parentName:z(g),unmountThisParcel:function(){return l.then(function(){if("MOUNTED"!==o.status)throw Error(L(6,!1,name,o.status));return V(o,!0)}).then(function(a){return o.parentName&&delete g.parcels[o.id],a}).then(function(a){return q(a),a}).catch(function(a){throw o.status="SKIP_BECAUSE_BROKEN",u(a),a})}};g.parcels[m]=o;var a=i();if(!a||"function"!=typeof a.then)throw Error(L(7,!1));var q,u,n=(a=a.then(function(b){if(!b)throw Error(L(8,!1));var c=b.name||"parcel-".concat(m);if(Object.prototype.hasOwnProperty.call(b,"bootstrap")&&!Q(b.bootstrap))throw Error(L(9,!1,c));if(!Q(b.mount))throw Error(L(10,!1,c));if(!Q(b.unmount))throw Error(L(11,!1,c));if(b.update&&!Q(b.update))throw Error(L(12,!1,c));var d=R(b,"bootstrap"),e=R(b,"mount"),f=R(b,"unmount");o.status="NOT_BOOTSTRAPPED",o.name=c,o.bootstrap=d,o.mount=e,o.unmount=f,o.timeouts=fa(b.timeouts),b.update&&(o.update=R(b,"update"),k.update=function(a){return o.customProps=a,Z(function(a){return Promise.resolve().then(function(){if("MOUNTED"!==a.status)throw Error(L(32,!1,z(a)));return a.status="UPDATING",ea(a,"update").then(function(){return a.status="MOUNTED",a}).catch(function(b){throw j(b,a,"SKIP_BECAUSE_BROKEN")})})}(o))})})).then(function(){return U(o,!0)}),l=n.then(function(){return W(o,!0)}),p=new Promise(function(a,b){q=a,u=b});return k={mount:function(){return Z(Promise.resolve().then(function(){if("NOT_MOUNTED"!==o.status)throw Error(L(13,!1,name,o.status));return g.parcels[m]=o,W(o)}))},unmount:function(){return Z(o.unmountThisParcel())},getStatus:function(){return o.status},loadPromise:Z(a),bootstrapPromise:Z(n),mountPromise:Z(l),unmountPromise:Z(p)}}function Z(a){return a.then(function(){return null})}function $(a){var b=z(a),c="function"==typeof a.customProps?a.customProps(b,window.location):a.customProps;("object"!==E(c)||null===c||Array.isArray(c))&&(c={},console.warn(L(40,!1),b,c));var d=q({},c,{name:b,mountParcel:Y.bind(a),singleSpa:h});return J(a)&&(d.unmountSelf=a.unmountThisParcel),d}function aa(a,b,c){if("number"!=typeof a||0>=a)throw Error(L(16,!1));Qa.bootstrap={millis:a,dieOnTimeout:b,warningMillis:c||1e3}}function ba(a,b,c){if("number"!=typeof a||0>=a)throw Error(L(17,!1));Qa.mount={millis:a,dieOnTimeout:b,warningMillis:c||1e3}}function ca(a,b,c){if("number"!=typeof a||0>=a)throw Error(L(18,!1));Qa.unmount={millis:a,dieOnTimeout:b,warningMillis:c||1e3}}function da(a,b,c){if("number"!=typeof a||0>=a)throw Error(L(19,!1));Qa.unload={millis:a,dieOnTimeout:b,warningMillis:c||1e3}}function ea(b,d){var g=b.timeouts[d],e=g.warningMillis,h=N(b);return new Promise(function(j,i){function a(b){if(!f)if(!0===b)k=!0,g.dieOnTimeout?i(Error(l)):console.error(l);else if(!k){var c=b;console.warn(l),c*e+e<g.millis&&setTimeout(function(){return a(c+1)},e)}}var f=!1,k=!1;b[d]($(b)).then(function(a){f=!0,j(a)}).catch(function(a){f=!0,i(a)}),setTimeout(function(){return a(1)},e),setTimeout(function(){return a(!0)},g.millis);var l=L(31,!1,d,h,z(b),g.millis)})}function fa(a){var b={};for(var c in Qa)b[c]=q({},Qa[c],a&&a[c]||{});return b}function ga(a){return Promise.resolve().then(function(){return a.loadPromise?a.loadPromise:"NOT_LOADED"!==a.status&&"LOAD_ERROR"!==a.status?a:(a.status="LOADING_SOURCE_CODE",a.loadPromise=Promise.resolve().then(function(){var d=a.loadApp($(a));if(!T(d))throw c=!0,Error(L(33,!1,z(a)));return d.then(function(c){var d;a.loadErrorTime=null,"object"!==E(b=c)&&(d=34),Object.prototype.hasOwnProperty.call(b,"bootstrap")&&!Q(b.bootstrap)&&(d=35),Q(b.mount)||(d=36),Q(b.unmount)||(d=37);var e=N(b);if(d){var f;try{f=JSON.stringify(b)}catch(a){}return console.error(L(d,!1,e,z(a),f),b),G(void 0,a,"SKIP_BECAUSE_BROKEN"),a}return b.devtools&&b.devtools.overlays&&(a.devtools.overlays=q({},a.devtools.overlays,b.devtools.overlays)),a.status="NOT_BOOTSTRAPPED",a.bootstrap=R(b,"bootstrap"),a.mount=R(b,"mount"),a.unmount=R(b,"unmount"),a.unload=R(b,"unload"),a.timeouts=fa(b.timeouts),delete a.loadPromise,a})}).catch(function(b){var d;return delete a.loadPromise,c?d="SKIP_BECAUSE_BROKEN":(d="LOAD_ERROR",a.loadErrorTime=new Date().getTime()),G(b,a,d),a}));var b,c})}function ha(a){var b;if("string"==typeof a)b=a;else if(this&&this.href)b=this.href;else{if(!(a&&a.currentTarget&&a.currentTarget.href&&a.preventDefault))throw Error(L(14,!1));b=a.currentTarget.href,a.preventDefault()}var c=ma(window.location.href),d=ma(b);0===b.indexOf("#")?window.location.hash=d.hash:c.host!==d.host&&d.host?window.location.href=b:d.pathname===c.pathname&&d.search===c.search?window.location.hash=d.hash:window.history.pushState(null,null,b)}function ia(a){var b=this;if(a){var c=a[0].type;0<=Ta.indexOf(c)&&Sa[c].forEach(function(c){try{c.apply(b,a)}catch(a){setTimeout(function(){throw a})}})}}function ja(){Fa([],arguments)}function ka(a,b){return function(){var c=window.location.href,d=a.apply(this,arguments),e=window.location.href;return Ka&&c===e||(Ia()?window.dispatchEvent(la(window.history.state,b)):Fa([])),d}}function la(a,b){var c;try{c=new PopStateEvent("popstate",{state:a})}catch(b){(c=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,a)}return c.singleSpa=!0,c.singleSpaTrigger=b,c}function ma(a){var b=document.createElement("a");return b.href=a,b}function na(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(a||window.$&&window.$.fn&&window.$.fn.jquery&&(a=window.$),a&&!Wa){var b=a.fn.on,c=a.fn.off;a.fn.on=function(a,c){return oa.call(this,b,window.addEventListener,a,c,arguments)},a.fn.off=function(a,b){return oa.call(this,c,window.removeEventListener,a,b,arguments)},Wa=!0}}function oa(a,b,c,d,f){return"string"==typeof c?(c.split(/\s+/).forEach(function(a){0<=Ta.indexOf(a)&&(b(a,d),c=c.replace(a,""))}),""===c.trim()?this:a.apply(this,f)):a.apply(this,f)}function pa(a){return Promise.resolve().then(function(){var b=Xa[z(a)];if(!b)return a;if("NOT_LOADED"===a.status)return qa(a,b),a;if("UNLOADING"===a.status)return b.promise.then(function(){return a});if("NOT_MOUNTED"!==a.status&&"LOAD_ERROR"!==a.status)return a;var c="LOAD_ERROR"===a.status?Promise.resolve():ea(a,"unload");return a.status="UNLOADING",c.then(function(){return qa(a,b),a}).catch(function(c){return function(a,b,c){delete Xa[z(a)],delete a.bootstrap,delete a.mount,delete a.unmount,delete a.unload,G(c,a,"SKIP_BECAUSE_BROKEN"),b.reject(c)}(a,b,c),a})})}function qa(a,b){delete Xa[z(a)],delete a.bootstrap,delete a.mount,delete a.unmount,delete a.unload,a.status="NOT_LOADED",b.resolve()}function ra(a,b,c,d){Xa[z(a)]={app:a,resolve:c,reject:d},Object.defineProperty(Xa[z(a)],"promise",{get:b})}function sa(a){return Xa[a]}function ta(){var b=[],c=[],d=[],e=[],f=new Date().getTime();return Ya.forEach(function(g){var h="SKIP_BECAUSE_BROKEN"!==g.status&&K(g);switch(g.status){case"LOAD_ERROR":h&&200<=f-g.loadErrorTime&&d.push(g);break;case"NOT_LOADED":case"LOADING_SOURCE_CODE":h&&d.push(g);break;case"NOT_BOOTSTRAPPED":case"NOT_MOUNTED":!h&&sa(z(g))?b.push(g):h&&e.push(g);break;case"MOUNTED":h||c.push(g);}}),{appsToUnload:b,appsToUnmount:c,appsToLoad:d,appsToMount:e}}function ua(){return Ya.filter(M).map(z)}function va(){return Ya.map(z)}function wa(a){var b=H(Ya,function(b){return z(b)===a});return b?b.status:null}function xa(a,b,c,d){var e=function(a,b,c,d){var e,f={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===E(a)?(function(a){if(Array.isArray(a)||null===a)throw Error(L(39,!1));var b=["name","app","activeWhen","customProps"],c=Object.keys(a).reduce(function(a,c){return 0<=b.indexOf(c)?a:a.concat(c)},[]);if(0!==c.length)throw Error(L(38,!1,b.join(", "),c.join(", ")));if("string"!=typeof a.name||0===a.name.length)throw Error(L(20,!1));if("object"!==E(a.app)&&"function"!=typeof a.app)throw Error(L(20,!1));var d=function(a){return"string"==typeof a||"function"==typeof a};if(!(d(a.activeWhen)||Array.isArray(a.activeWhen)&&a.activeWhen.every(d)))throw Error(L(24,!1));if(!Ca(a.customProps))throw Error(L(22,!1))}(a),f.name=a.name,f.loadApp=a.app,f.activeWhen=a.activeWhen,f.customProps=a.customProps):(function(a,b,c,d){if("string"!=typeof a||0===a.length)throw Error(L(20,!1));if(!b)throw Error(L(23,!1));if("function"!=typeof c)throw Error(L(24,!1));if(!Ca(d))throw Error(L(22,!1))}(a,b,c,d),f.name=a,f.loadApp=b,f.activeWhen=c,f.customProps=d),f.loadApp="function"==typeof(e=f.loadApp)?e:function(){return Promise.resolve(e)},f.customProps=function(a){return a||{}}(f.customProps),f.activeWhen=function(a){var b=Array.isArray(a)?a:[a];return b=b.map(function(a){return"function"==typeof a?a:Da(a)}),function(a){return b.some(function(b){return b(a)})}}(f.activeWhen),f}(a,b,c,d);if(-1!==va().indexOf(e.name))throw Error(L(21,!1,e.name));Ya.push(q({loadErrorTime:null,status:"NOT_LOADED",parcels:{},devtools:{overlays:{options:{},selectors:[]}}},e)),Ra&&(na(),Fa())}function ya(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.location;return Ya.filter(function(b){return b.activeWhen(a)}).map(z)}function za(a){if(0===Ya.filter(function(b){return z(b)===a}).length)throw Error(L(25,!1,a));return Aa(a).then(function(){var b=Ya.map(z).indexOf(a);Ya.splice(b,1)})}function Aa(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof a)throw Error(L(26,!1));var c=H(Ya,function(b){return z(b)===a});if(!c)throw Error(L(27,!1,a));var d,e=sa(z(c));if(b&&b.waitForUnmount){if(e)return e.promise;var f=new Promise(function(a,b){ra(c,function(){return f},a,b)});return f}return e?(d=e.promise,Ba(c,e.resolve,e.reject)):d=new Promise(function(a,b){ra(c,function(){return d},a,b),Ba(c,a,b)}),d}function Ba(a,b,c){V(a).then(pa).then(function(){b(),setTimeout(function(){Fa()})}).catch(c)}function Ca(a){return!a||"function"==typeof a||"object"===E(a)&&null!==a&&!Array.isArray(a)}function Da(a,b){var c=function(b,c){function d(d){var e=b.slice(f,d).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(h+=g?"[^/]+/?":e,d===b.length)if(g)c&&(h+="$");else{var a=c?"":".*";h="/"===h.charAt(h.length-1)?"".concat(h).concat(a,"$"):"".concat(h,"(/").concat(a,")?(#.*)?$")}g=!g,f=d}var f=0,g=!1,h="^";"/"!==b[0]&&(b="/"+b);for(var j,k=0;k<b.length;k++)j=b[k],(!g&&":"===j||g&&"/"===j)&&d(k);return d(b.length),new RegExp(h,"i")}(a,b);return function(a){var b=a.origin;b||(b="".concat(a.protocol,"//").concat(a.host));var d=a.href.replace(b,"").replace(a.search,"").split("?")[0];return c.test(d)}}function Ea(){return Fa()}function Fa(){function b(){u=!0}function g(){var a=ua();h.forEach(function(b){return b.resolve(a)});try{var b=0===v.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new O(b,d())),window.dispatchEvent(new O("single-spa:routing-event",d()))}catch(a){setTimeout(function(){throw a})}if(Za=!1,0<$a.length){var c=$a;$a=[],Fa(c)}return a}function j(){h.forEach(function(a){ia(a.eventArguments)}),ia(k)}function d(){function b(a,b){var c=z(a);b=b||wa(c),f[c]=b,(g[b]=g[b]||[]).push(c)}var c,d=0<arguments.length&&void 0!==arguments[0]&&arguments[0],e=1<arguments.length?arguments[1]:void 0,f={},g=(F(c={},"MOUNTED",[]),F(c,"NOT_MOUNTED",[]),F(c,"NOT_LOADED",[]),F(c,"SKIP_BECAUSE_BROKEN",[]),c);d?(i.concat(a).forEach(function(a){b(a,"MOUNTED")}),w.forEach(function(a){b(a,"NOT_LOADED")}),o.forEach(function(a){b(a,"NOT_MOUNTED")})):v.forEach(function(a){b(a)});var h={detail:{newAppStatuses:f,appsByNewStatus:g,totalAppChanges:v.length,originalEvent:null==k?void 0:k[0],oldUrl:x,newUrl:n,navigationIsCanceled:u}};return e&&q(h.detail,e),h}var h=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],k=1<arguments.length?arguments[1]:void 0;if(Za)return new Promise(function(a,b){$a.push({resolve:a,reject:b,eventArguments:k})});var v,l=ta(),w=l.appsToUnload,o=l.appsToUnmount,i=l.appsToLoad,a=l.appsToMount,u=!1,x=_a,n=_a=window.location.href;return Ia()?(Za=!0,v=w.concat(i,o,a),function(){return Promise.resolve().then(function(){if(window.dispatchEvent(new O(0===v.length?"single-spa:before-no-app-change":"single-spa:before-app-change",d(!0))),window.dispatchEvent(new O("single-spa:before-routing-event",d(!0,{cancelNavigation:b}))),u)return window.dispatchEvent(new O("single-spa:before-mount-routing-event",d(!0))),g(),void ha(x);var c=w.map(pa),e=o.map(V).map(function(a){return a.then(pa)}).concat(c),k=Promise.all(e);k.then(function(){window.dispatchEvent(new O("single-spa:before-mount-routing-event",d(!0)))});var f=i.map(function(a){return ga(a).then(function(a){return Ga(a,k)})}),l=a.filter(function(a){return 0>i.indexOf(a)}).map(function(a){return Ga(a,k)});return k.catch(function(a){throw j(),a}).then(function(){return j(),Promise.all(f.concat(l)).catch(function(a){throw h.forEach(function(b){return b.reject(a)}),a}).then(g)})})}()):(v=i,function(){return Promise.resolve().then(function(){var a=i.map(ga);return Promise.all(a).then(j).then(function(){return[]}).catch(function(a){throw j(),a})})}())}function Ga(a,b){return K(a)?U(a).then(function(a){return b.then(function(){return K(a)?W(a):a})}):b.then(function(){return a})}function Ha(a){var b;ab=!0,a&&a.urlRerouteOnly&&(b=a.urlRerouteOnly,Ka=b),Ra&&Fa()}function Ia(){return ab}function Ja(){return(0,La.defineConfigSchema)(a.e,o),(0,La.defineExtensionConfigSchema)("link",bb.genericLinkConfigSchema),(0,La.setupOfflineSync)(a.O,[],w),{pages:[{load:(0,La.getAsyncLifecycle)(function(){return Promise.all([n.e(513),n.e(596),n.e(784),n.e(212)]).then(n.bind(n,3212))},eb),route:function(a){return!a.pathname.startsWith(window.getOpenmrsSpaBase()+"login")},online:!0,offline:!0,order:0},{load:{bootstrap:function(){return Promise.resolve(ha(window.getOpenmrsSpaBase()+"home"))},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}},route:function(a){return a.pathname===window.getOpenmrsSpaBase()},order:0}],extensions:[{name:"default-user-panel",slot:"user-panel-slot",order:0,load:(0,La.getAsyncLifecycle)(function(){return Promise.all([n.e(513),n.e(784),n.e(540)]).then(n.bind(n,3540))},eb),online:!0,offline:!0},{name:"change-locale",slot:"user-panel-slot",order:1,load:(0,La.getAsyncLifecycle)(function(){return Promise.all([n.e(784),n.e(510)]).then(n.bind(n,510))},eb),online:{postUserProperties:s},offline:{postUserProperties:C}},{name:"link",load:(0,La.getAsyncLifecycle)(function(){return Promise.resolve().then(n.bind(n,6639))},{featureName:"Link",moduleName:a.e})}]}}n.r(t),n.d(t,{backendDependencies:()=>db,importTranslation:()=>cb,setupOpenMRS:()=>Ja,assets:()=>["1.js","25.js","openmrs-esm-primary-navigation-app.js","212.js","216.js","322.js","393.js","510.js","513.js","540.js","574.js","596.js","735.js","743.js","788.js","860.js","889.js"]});var Ka,La=n(7644),r=n(1602),Ma=n.n(r),i=n(8478),a=n(1217),o={logo:{src:{_type:La.Type.String,_default:null,_description:"A path or URL to an image. Defaults to the OpenMRS SVG sprite."},alt:{_type:La.Type.String,_default:"Logo",_description:"Alt text, shown on hover"},name:{_type:La.Type.String,_default:null,_description:"The organization name displayed when image is absent"}},externalRefLinks:{_type:La.Type.Array,_elements:{title:{_type:La.Type.String,_description:"Title of the link"},redirect:{_type:La.Type.String,_description:"Link to redirect to (must be an external link)",_validators:[La.validators.isUrl]}},_default:[],_description:"The external links to be showcased in the app menu"}},h=Object.freeze({__proto__:null,get start(){return Ha},get ensureJQuerySupport(){return na},get setBootstrapMaxTime(){return aa},get setMountMaxTime(){return ba},get setUnmountMaxTime(){return ca},get setUnloadMaxTime(){return da},get registerApplication(){return xa},get unregisterApplication(){return za},get getMountedApps(){return ua},get getAppStatus(){return wa},get unloadApplication(){return Aa},get checkActivityFunctions(){return ya},get getAppNames(){return va},get pathToActiveWhen(){return Da},get navigateToUrl(){return ha},get triggerAppChange(){return Ea},get addErrorHandler(){return I},get removeErrorHandler(){return x},get mountRootParcel(){return X},get NOT_LOADED(){return _},get LOADING_SOURCE_CODE(){return"LOADING_SOURCE_CODE"},get NOT_BOOTSTRAPPED(){return"NOT_BOOTSTRAPPED"},get BOOTSTRAPPING(){return"BOOTSTRAPPING"},get NOT_MOUNTED(){return"NOT_MOUNTED"},get MOUNTING(){return"MOUNTING"},get UPDATING(){return"UPDATING"},get LOAD_ERROR(){return"LOAD_ERROR"},get MOUNTED(){return"MOUNTED"},get UNMOUNTING(){return"UNMOUNTING"},get SKIP_BECAUSE_BROKEN(){return"SKIP_BECAUSE_BROKEN"}}),u=("undefined"==typeof globalThis?"undefined"==typeof window?void 0===n.g?"undefined"==typeof self?{}:self:n.g:window:globalThis).CustomEvent,O=function(){try{var a=new u("cat",{detail:{foo:"bar"}});return"cat"===a.type&&"bar"===a.detail.foo}catch(a){}return!1}()?u:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(a,b){var c=document.createEvent("CustomEvent");return b?c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail):c.initCustomEvent(a,!1,!1,void 0),c}:function(a,b){var c=document.createEventObject();return c.type=a,b?(c.bubbles=!!b.bubbles,c.cancelable=!!b.cancelable,c.detail=b.detail):(c.bubbles=!1,c.cancelable=!1,c.detail=void 0),c},S=[],_="NOT_LOADED",k=!1,Na=!1,Oa=0,Pa={parcels:{}},Qa={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}},Ra="undefined"!=typeof window,Sa={hashchange:[],popstate:[]},Ta=["hashchange","popstate"];if(Ra){window.addEventListener("hashchange",ja),window.addEventListener("popstate",ja);var Ua=window.addEventListener,Va=window.removeEventListener;window.addEventListener=function(a,b){return!("function"==typeof b&&0<=Ta.indexOf(a))||H(Sa[a],function(a){return a===b})?Ua.apply(this,arguments):void Sa[a].push(b)},window.removeEventListener=function(a,b){return"function"==typeof b&&0<=Ta.indexOf(a)?void(Sa[a]=Sa[a].filter(function(a){return a!==b})):Va.apply(this,arguments)},window.history.pushState=ka(window.history.pushState,"pushState"),window.history.replaceState=ka(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(L(41,!1)):window.singleSpaNavigate=ha}var Wa=!1,Xa={},Ya=[],Za=!1,$a=[],_a=Ra&&window.location.href,ab=!1;Ra&&setTimeout(function(){ab||console.warn(L(1,!1))},5e3);Ra&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods={getRawAppData:function(){return[].concat(Ya)},reroute:Fa,NOT_LOADED:_,toLoadPromise:ga,toBootstrapPromise:U,unregisterApplication:za});var bb=n(6639),cb=n(3979),db={"webservices.rest":"^2.2.0"},eb={featureName:"primary navigation",moduleName:a.e}},3979:(a,b,c)=>{function d(a){if(!c.o(e,a))return Promise.resolve().then(()=>{var b=new Error("Cannot find module '"+a+"'");throw b.code="MODULE_NOT_FOUND",b});var b=e[a],d=b[0];return c.e(b[1]).then(()=>c(d))}var e={"./en.json":[3574,574]};d.keys=()=>Object.keys(e),d.id=3979,a.exports=d}}]),b=Promise.all([f.e(983),f.e(789)]).then(()=>()=>f(789))),b)},e=(a,b)=>(f.R=b,b=f.o(g,a)?g[a]():Promise.resolve().then(()=>{throw new Error("Module \""+a+"\" does not exist in container.")}),f.R=void 0,b),h=(a,b)=>{if(f.S){var c=f.S["default"];if(c&&c!==a)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return f.S["default"]=a,f.I("default",b)}};f.d(d,{get:()=>e,init:()=>h})}},y={};return k.m=M,k.c=y,k.y=j,k.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return k.d(b,{a:b}),b},k.d=(a,b)=>{for(var c in b)k.o(b,c)&&!k.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},k.f={},k.e=a=>Promise.all(Object.keys(k.f).reduce((b,c)=>(k.f[c](a,b),b),[])),k.u=a=>a+".js",k.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),k.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),q={},w="@openmrs/esm-primary-navigation-app:",k.l=(a,b,d)=>{if(q[a])q[a].push(b);else{var e,g;if(void 0!==d)for(var h,j=document.getElementsByTagName("script"),l=0;l<j.length;l++)if(h=j[l],h.getAttribute("src")==a||h.getAttribute("data-webpack")==w+d){e=h;break}e||(g=!0,(e=document.createElement("script")).charset="utf-8",e.timeout=120,k.nc&&e.setAttribute("nonce",k.nc),e.setAttribute("data-webpack",w+d),e.src=a),q[a]=[b];var m=(b,c)=>{e.onerror=e.onload=null,clearTimeout(f);var d=q[a];if(delete q[a],e.parentNode&&e.parentNode.removeChild(e),d&&d.forEach(a=>a(c)),b)return b(c)},f=setTimeout(m.bind(null,void 0,{type:"timeout",target:e}),12e4);e.onerror=m.bind(null,e.onerror),e.onload=m.bind(null,e.onload),g&&document.head.appendChild(e)}},k.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},k.nmd=a=>(a.paths=[],a.children||(a.children=[]),a),(()=>{k.S={};var b={},c={};k.I=(d,e)=>{e||(e=[]);var f=c[d];if(f||(f=c[d]={}),!(0<=e.indexOf(f))){if(e.push(f),b[d])return b[d];k.o(k.S,d)||(k.S[d]={});var g=k.S[d],a=(a,b,c,d)=>{var e=g[a]=g[a]||{},f=e[b];f&&(f.loaded||(!d==!f.eager?!("@openmrs/esm-primary-navigation-app">f.from):!d))||(e[b]={get:c,from:"@openmrs/esm-primary-navigation-app",eager:!!d})},h=[];return"default"===d&&(a("@openmrs/esm-framework/src/internal","3.4.1-pre.174",()=>Promise.all([k.e(983),k.e(889)]).then(()=>()=>k(4889))),a("carbon-components-react","7.31.0",()=>Promise.all([k.e(322),k.e(983),k.e(69)]).then(()=>()=>k(7322))),a("carbon-components","10.31.0",()=>Promise.all([k.e(25),k.e(1)]).then(()=>()=>k(25))),a("carbon-icons","7.0.7",()=>k.e(860).then(()=>()=>k(4860))),a("react-dom","16.14.0",()=>Promise.all([k.e(788),k.e(983)]).then(()=>()=>k(2788))),a("react-i18next","11.16.2",()=>Promise.all([k.e(743),k.e(983)]).then(()=>()=>k(5743))),a("react-router-dom","5.3.0",()=>Promise.all([k.e(393),k.e(983),k.e(216)]).then(()=>()=>k(7393))),a("react","16.14.0",()=>k.e(735).then(()=>()=>k(2735)))),b[d]=h.length?Promise.all(h).then(()=>b[d]=1):1}}})(),k.p="",x=a=>{var b=a=>a.split(".").map(a=>+a==a?+a:a),c=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(a),d=c[1]?b(c[1]):[];return c[2]&&(d.length++,d.push.apply(d,b(c[2]))),c[3]&&(d.push([]),d.push.apply(d,b(c[3]))),d},z=(b,c)=>{b=x(b),c=x(c);for(var d=0;;){if(d>=b.length)return d<c.length&&"u"!=(typeof c[d])[0];var f=b[d],g=(typeof f)[0];if(d>=c.length)return"u"==g;var a=c[d],h=(typeof a)[0];if(g!=h)return"o"==g&&"n"==h||"s"==h||"u"==g;if("o"!=g&&"u"!=g&&f!=a)return f<a;d++}},A=a=>{function b(){return g.pop().replace(/^\((.+)\)$/,"$1")}var c=a[0],d="";if(1===a.length)return"*";if(c+.5){d+=0==c?">=":-1==c?"<":1==c?"^":2==c?"~":0<c?"=":"!=";for(var e=1,f=1;f<a.length;f++)e--,d+="u"==(typeof(h=a[f]))[0]?"-":(0<e?".":"")+(e=2,h);return d}var g=[];for(f=1;f<a.length;f++){var h=a[f];g.push(0===h?"not("+b()+")":1===h?"("+b()+" || "+b()+")":2===h?g.pop()+" "+g.pop():A(h))}return b()},B=(b,e)=>{if(0 in b){e=x(e);var g=b[0],i=0>g;i&&(g=-g-1);for(var j=0,k=1,m=!0;;k++,j++){var n,o,q=k<b.length?(typeof b[k])[0]:"";if(j>=e.length||"o"==(o=(typeof(n=e[j]))[0]))return!m||("u"==q?k>g&&!i:""==q!=i);if("u"==o){if(!m||"u"!=q)return!1;}else if(!m)"s"!=q&&"n"!=q&&(m=!1,k--);else if(q==o){if(!(k<=g)){if(i?n>b[k]:n<b[k])return!1;n!=b[k]&&(m=!1)}else if(n!=b[k])return!1;}else if("s"!=q&&"n"!=q){if(i||k<=g)return!1;m=!1,k--}else{if(k<=g||o<q!=i)return!1;m=!1}}}var f=[],c=f.pop.bind(f);for(j=1;j<b.length;j++){var d=b[j];f.push(1==d?c()|c():2==d?c()&c():d?B(d,e):!c())}return!!c()},C=(a,b)=>{var c=a[b];return Object.keys(c).reduce((a,b)=>a&&(c[a].loaded||!z(a,b))?a:b,0)},D=(a,b,c,d)=>"Unsatisfied version "+c+" from "+(c&&a[b][c].from)+" of shared singleton module "+b+" (required "+A(d)+")",E=(a,b,c)=>{var d=C(a,c);return G(a[c][d])},F=(a,b,c,d)=>{var e=C(a,c);return B(d,e)||"undefined"!=typeof console&&console.warn&&console.warn(D(a,c,e,d)),G(a[c][e])},G=a=>(a.loaded=1,a.get()),H=(r=b=>function(c,d,e,f){var g=k.I(c);return g&&g.then?g.then(b.bind(b,c,k.S[c],d,e,f)):b(c,k.S[c],d,e,f)})((a,b,c,d)=>b&&k.o(b,c)?E(b,0,c):d()),I=r((a,b,c,d,e)=>b&&k.o(b,c)?F(b,0,c,d):e()),J={},K={6983:()=>I("default","react",[1,16],()=>k.e(735).then(()=>()=>k(2735))),7644:()=>I("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],()=>k.e(889).then(()=>()=>k(4889))),8478:()=>H("default","@openmrs/esm-framework/src/internal",()=>k.e(889).then(()=>()=>k(4889))),5412:()=>I("default","react-dom",[1,16],()=>k.e(788).then(()=>()=>k(2788))),6240:()=>I("default","carbon-icons",[1,7],()=>k.e(860).then(()=>()=>k(4860))),7569:()=>I("default","carbon-components",[1,10],()=>k.e(25).then(()=>()=>k(25))),9784:()=>I("default","carbon-components-react",[1,7],()=>Promise.all([k.e(322),k.e(69)]).then(()=>()=>k(7322))),2268:()=>I("default","react-router-dom",[1,5],()=>k.e(393).then(()=>()=>k(7393))),2680:()=>I("default","react-i18next",[1,11],()=>k.e(743).then(()=>()=>k(5743)))},L={69:[5412,6240,7569],212:[2268,2680],784:[9784],789:[7644,8478],983:[6983]},k.f.consumes=(a,b)=>{k.o(L,a)&&L[a].forEach(a=>{if(k.o(J,a))return b.push(J[a]);var c=b=>{J[a]=0,k.m[a]=c=>{delete k.c[a],c.exports=b()}},d=b=>{delete J[a],k.m[a]=()=>{throw delete k.c[a],b}};try{var e=K[a]();e.then?b.push(J[a]=e.then(c).catch(d)):c(e)}catch(a){d(a)}})},(()=>{var b={115:0};k.f.j=(c,d)=>{var e=k.o(b,c)?b[c]:void 0;if(0!==e)if(e)d.push(e[2]);else if(/^(69|784|983)$/.test(c))b[c]=0;else{var f=new Promise((a,d)=>e=b[c]=[a,d]);d.push(e[2]=f);var g=k.p+k.u(c),h=new Error;k.l(g,d=>{if(k.o(b,c)&&(0!==(e=b[c])&&(b[c]=void 0),e)){var f=d&&("load"===d.type?"missing":d.type),g=d&&d.target&&d.target.src;h.message="Loading chunk "+c+" failed.\n("+f+": "+g+")",h.name="ChunkLoadError",h.type=f,h.request=g,e[1](h)}},"chunk-"+c,c)}};var a=(c,d)=>{var e,f,[g,a,h]=d,i=0;if(g.some(a=>0!==b[a])){for(e in a)k.o(a,e)&&(k.m[e]=a[e]);h&&h(k)}for(c&&c(d);i<g.length;i++)f=g[i],k.o(b,f)&&b[f]&&b[f][0](),b[f]=0},c=self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[];c.forEach(a.bind(null,0)),c.push=a.bind(null,c.push.bind(c))})(),k(8331),k(7972)})())}}});
|
|
1
|
+
System.register("@openmrs/esm-primary-navigation-app",[],function(a,j){var b=void 0;return{execute:function(){a((()=>{function k(a){var b=y[a];if(void 0!==b)return b.exports;var c=y[a]={id:a,loaded:!1,exports:{}};return M[a].call(c.exports,c,c.exports,k),c.loaded=!0,c.exports}var q,w,x,z,A,B,C,D,E,F,G,r,H,I,J,K,L,M={6585:(a,b,c)=>{(0,c(7968).s)(1)},7968:(a,b,c)=>{const d=c(1577).R;b.s=function(a){if(a||(a=1),!c.y.meta||!c.y.meta.url)throw console.error("__system_context__",c.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");c.p=d(c.y.meta.url,a)}},8331:(a,b,c)=>{c(6585)},1577:(a,b)=>{b.R=function(b,c){var d=document.createElement("a");d.href=b;for(var e="/"===d.pathname[0]?d.pathname:"/"+d.pathname,f=0,g=e.length;f!==c&&0<=g;)"/"===e[--g]&&f++;if(f!==c)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+c+") is greater than the number of directories ("+f+") in the URL path "+b);var h=e.slice(0,g+1);return d.protocol+"//"+d.host+h},Number.isInteger},7972:(c,d,f)=>{var g={app:()=>(b||((self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[789],{1602:a=>{var b=function(j){function k(a,b,c){return Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}),a[b]}function q(b,c,d,e){var g=c&&c.prototype instanceof f?c:f,j=Object.create(g.prototype),i=new A(e||[]);return j._invoke=function(b,d,f){var e=o;return function(g,j){if(e===p)throw new Error("Generator is already running");if(e===h){if("throw"===g)throw j;return x()}for(f.method=g,f.arg=j;;){var i=f.delegate;if(i){var a=y(i,f);if(a){if(a===m)continue;return a}}if("next"===f.method)f.sent=f._sent=f.arg;else if("throw"===f.method){if(e===o)throw e=h,f.arg;f.dispatchException(f.arg)}else"return"===f.method&&f.abrupt("return",f.arg);e=p;var k=z(b,d,f);if("normal"===k.type){if(e=f.done?h:l,k.arg===m)continue;return{value:k.arg,done:f.done}}"throw"===k.type&&(e=h,f.method="throw",f.arg=k.arg)}}}(b,d,i),j}function z(a,b,c){try{return{type:"normal",arg:a.call(b,c)}}catch(a){return{type:"throw",arg:a}}}function f(){}function s(){}function v(){}function g(a){["next","throw","return"].forEach(function(b){k(a,b,function(a){return this._invoke(b,a)})})}function t(b,d){function c(e,f,g,a){var h=z(b[e],b,f);if("throw"!==h.type){var i=h.arg,j=i.value;return j&&"object"==typeof j&&G.call(j,"__await")?d.resolve(j.__await).then(function(b){c("next",b,g,a)},function(b){c("throw",b,g,a)}):d.resolve(j).then(function(a){i.value=a,g(i)},function(b){return c("throw",b,g,a)})}a(h.arg)}var a;this._invoke=function(b,e){function f(){return new d(function(a,d){c(b,e,a,d)})}return a=a?a.then(f,f):f()}}function y(a,b){var c=a.iterator[b.method];if(c===F){if(b.delegate=null,"throw"===b.method){if(a.iterator.return&&(b.method="return",b.arg=F,y(a,b),"throw"===b.method))return m;b.method="throw",b.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var d=z(c,a.iterator,b.arg);if("throw"===d.type)return b.method="throw",b.arg=d.arg,b.delegate=null,m;var e=d.arg;return e?e.done?(b[a.resultName]=e.value,b.next=a.nextLoc,"return"!==b.method&&(b.method="next",b.arg=F),b.delegate=null,m):e:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,m)}function B(a){var b={tryLoc:a[0]};1 in a&&(b.catchLoc=a[1]),2 in a&&(b.finallyLoc=a[2],b.afterLoc=a[3]),this.tryEntries.push(b)}function C(a){var b=a.completion||{};b.type="normal",delete b.arg,a.completion=b}function A(a){this.tryEntries=[{tryLoc:"root"}],a.forEach(B,this),this.reset(!0)}function D(b){if(b){var c=b[r];if(c)return c.call(b);if("function"==typeof b.next)return b;if(!isNaN(b.length)){var d=-1,e=function a(){for(;++d<b.length;)if(G.call(b,d))return a.value=b[d],a.done=!1,a;return a.value=F,a.done=!0,a};return e.next=e}}return{next:x}}function x(){return{value:F,done:!0}}var F,n=Object.prototype,G=n.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",i=e.asyncIterator||"@@asyncIterator",a=e.toStringTag||"@@toStringTag";try{k({},"")}catch(a){k=function(a,b,c){return a[b]=c}}j.wrap=q;var o="suspendedStart",l="suspendedYield",p="executing",h="completed",m={},d={};k(d,r,function(){return this});var u=Object.getPrototypeOf,E=u&&u(u(D([])));E&&E!==n&&G.call(E,r)&&(d=E);var b=v.prototype=f.prototype=Object.create(d);return s.prototype=v,k(b,"constructor",v),k(v,"constructor",s),s.displayName=k(v,a,"GeneratorFunction"),j.isGeneratorFunction=function(a){var b="function"==typeof a&&a.constructor;return!!b&&(b===s||"GeneratorFunction"===(b.displayName||b.name))},j.mark=function(c){return Object.setPrototypeOf?Object.setPrototypeOf(c,v):(c.__proto__=v,k(c,a,"GeneratorFunction")),c.prototype=Object.create(b),c},j.awrap=function(a){return{__await:a}},g(t.prototype),k(t.prototype,i,function(){return this}),j.AsyncIterator=t,j.async=function(b,c,d,e,f){void 0===f&&(f=Promise);var g=new t(q(b,c,d,e),f);return j.isGeneratorFunction(c)?g:g.next().then(function(a){return a.done?a.value:g.next()})},g(b),k(b,a,"Generator"),k(b,r,function(){return this}),k(b,"toString",function(){return"[object Generator]"}),j.keys=function(a){var b=[];for(var c in a)b.push(c);return b.reverse(),function c(){for(;b.length;){var d=b.pop();if(d in a)return c.value=d,c.done=!1,c}return c.done=!0,c}},j.values=D,A.prototype={constructor:A,reset:function(a){if(this.prev=0,this.next=0,this.sent=this._sent=F,this.done=!1,this.delegate=null,this.method="next",this.arg=F,this.tryEntries.forEach(C),!a)for(var b in this)"t"===b.charAt(0)&&G.call(this,b)&&!isNaN(+b.slice(1))&&(this[b]=F)},stop:function(){this.done=!0;var a=this.tryEntries[0].completion;if("throw"===a.type)throw a.arg;return this.rval},dispatchException:function(b){function d(c,d){return a.type="throw",a.arg=b,f.next=c,d&&(f.method="next",f.arg=F),!!d}if(this.done)throw b;for(var f=this,e=this.tryEntries.length-1;0<=e;--e){var g=this.tryEntries[e],a=g.completion;if("root"===g.tryLoc)return d("end");if(g.tryLoc<=this.prev){var h=G.call(g,"catchLoc"),c=G.call(g,"finallyLoc");if(h&&c){if(this.prev<g.catchLoc)return d(g.catchLoc,!0);if(this.prev<g.finallyLoc)return d(g.finallyLoc)}else if(!h){if(!c)throw new Error("try statement without catch or finally");if(this.prev<g.finallyLoc)return d(g.finallyLoc)}else if(this.prev<g.catchLoc)return d(g.catchLoc,!0)}}},abrupt:function(b,c){for(var d,f=this.tryEntries.length-1;0<=f;--f)if(d=this.tryEntries[f],d.tryLoc<=this.prev&&G.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var g=d;break}g&&("break"===b||"continue"===b)&&g.tryLoc<=c&&c<=g.finallyLoc&&(g=null);var h=g?g.completion:{};return h.type=b,h.arg=c,g?(this.method="next",this.next=g.finallyLoc,m):this.complete(h)},complete:function(a,b){if("throw"===a.type)throw a.arg;return"break"===a.type||"continue"===a.type?this.next=a.arg:"return"===a.type?(this.rval=this.arg=a.arg,this.method="return",this.next="end"):"normal"===a.type&&b&&(this.next=b),m},finish:function(a){for(var b,c=this.tryEntries.length-1;0<=c;--c)if(b=this.tryEntries[c],b.finallyLoc===a)return this.complete(b.completion,b.afterLoc),C(b),m},catch:function(a){for(var b,c=this.tryEntries.length-1;0<=c;--c)if(b=this.tryEntries[c],b.tryLoc===a){var d=b.completion;if("throw"===d.type){var f=d.arg;C(b)}return f}throw new Error("illegal catch attempt")},delegateYield:function(a,b,c){return this.delegate={iterator:D(a),resultName:b,nextLoc:c},"next"===this.method&&(this.arg=F),m}},j}(a.exports);try{regeneratorRuntime=b}catch(a){"object"==typeof globalThis?globalThis.regeneratorRuntime=b:Function("r","regeneratorRuntime = r")(b)}},6639:(b,c,d)=>{function e(){var a=(0,h.useConfig)();return g().createElement(h.ConfigurableLink,{to:a.target},a.title)}d.r(c),d.d(c,{default:()=>e,genericLinkConfigSchema:()=>i});var f=d(6983),g=d.n(f),h=d(7644),i={title:{_default:"New Link",_type:h.Type.String},target:{_default:"#",_type:h.Type.String,_description:"The URL to link to.",_validators:[h.validators.isUrl]}}},1217:(a,b,c)=>{c.d(b,{O:()=>d,e:()=>e});var d="user-property-change",e="@openmrs/esm-primary-navigation-app"},789:(B,t,n)=>{function e(b,d,f,e,g,h,i){try{var a=b[h](i),j=a.value}catch(a){return void f(a)}a.done?d(j):Promise.resolve(j).then(e,g)}function c(b){return function(){var c=this,d=arguments;return new Promise(function(f,g){function h(b){e(j,f,g,h,a,"next",b)}function a(b){e(j,f,g,h,a,"throw",b)}var j=b.apply(c,d);h(void 0)})}}function s(){return f.apply(this,arguments)}function f(){return(f=c(Ma().mark(function d(a,b,c){var e,f;return Ma().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,(0,i.getSessionLocation)();case 2:return e=d.sent,f=null==e?void 0:e.uuid,d.next=6,(0,i.openmrsFetch)("/ws/rest/v1/user/".concat(a),{method:"POST",body:{userProperties:b},headers:{"Content-Type":"application/json"},signal:c.signal});case 6:if(!f){d.next=9;break}return d.next=9,(0,i.setSessionLocation)(f,c);case 9:case"end":return d.stop();}},d)}))).apply(this,arguments)}function C(b,c){return(0,i.queueSynchronizationItemFor)(b,a.O,c,{displayName:"User Language Change"})}function p(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c<b;c++)d[c]=a[c];return d}function m(b,d,f,e,g,h,i){try{var a=b[h](i),j=a.value}catch(a){return void f(a)}a.done?d(j):Promise.resolve(j).then(e,g)}function d(b){return function(){var c=this,d=arguments;return new Promise(function(e,f){function g(b){m(h,e,f,g,a,"next",b)}function a(b){m(h,e,f,g,a,"throw",b)}var h=b.apply(c,d);g(void 0)})}}function v(a,b){return function(a){if(Array.isArray(a))return a}(a)||function(b,c){var d=null==b?null:"undefined"!=typeof Symbol&&b[Symbol.iterator]||b["@@iterator"];if(null!=d){var f,g,h=[],i=!0,j=!1;try{for(d=d.call(b);!(i=(f=d.next()).done)&&(h.push(f.value),!c||h.length!==c);i=!0);}catch(a){j=!0,g=a}finally{try{i||null==d.return||d.return()}finally{if(j)throw g}}return h}}(a,b)||g(a,b)||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.")}()}function y(a){return function(a){if(Array.isArray(a))return p(a)}(a)||function(a){if("undefined"!=typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}(a)||g(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(a,b){if(a){if("string"==typeof a)return p(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return"Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c?Array.from(c):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?p(a,b):void 0}}function w(){return D.apply(this,arguments)}function D(){return D=d(Ma().mark(function d(a,b){var e,f,g,h;return Ma().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(0!==b.index){a.next=10;break}return a.next=4,(0,i.getLoggedInUser)();case 4:return f=a.sent,g=b.items.map(function(a){var b=v(a,2);return b[0],b[1]}),h=(e=Object).assign.apply(e,[{},f.userProperties].concat(y(g))),a.next=9,s(f.uuid,h,b.abort);case 9:(0,i.refetchCurrentUser)();case 10:case"end":return a.stop();}},d)})),D.apply(this,arguments)}function E(a){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(a)}function F(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function G(a,b,c){var d=j(a,b,c);S.length?S.forEach(function(a){return a(d)}):setTimeout(function(){throw d})}function I(a){if("function"!=typeof a)throw Error(L(28,!1));S.push(a)}function x(a){if("function"!=typeof a)throw Error(L(29,!1));var b=!1;return S=S.filter(function(c){var d=c===a;return b=b||d,!d}),b}function L(a,b){for(var c=arguments.length,d=Array(2<c?c-2:0),e=2;e<c;e++)d[e-2]=arguments[e];return"single-spa minified message #".concat(a,": ").concat(b?b+" ":"","See https://single-spa.js.org/error/?code=").concat(a).concat(d.length?"&arg=".concat(d.join("&arg=")):"")}function j(a,b,c){var d,e="".concat(N(b)," '").concat(z(b),"' died in status ").concat(b.status,": ");if(a instanceof Error){try{a.message=e+a.message}catch(a){}d=a}else{console.warn(L(30,!1,b.status,z(b)));try{d=Error(e+JSON.stringify(a))}catch(b){d=a}}return d.appOrParcelName=z(b),b.status=c,d}function M(a){return"MOUNTED"===a.status}function K(a){try{return a.activeWhen(window.location)}catch(b){return G(b,a,"SKIP_BECAUSE_BROKEN"),!1}}function z(a){return a.name}function J(a){return!!a.unmountThisParcel}function N(a){return J(a)?"parcel":"application"}function q(){for(var a=arguments.length-1;0<a;a--)for(var b in arguments[a])"__proto__"!=b&&(arguments[a-1][b]=arguments[a][b]);return arguments[0]}function H(a,b){for(var c=0;c<a.length;c++)if(b(a[c]))return a[c];return null}function Q(a){return a&&("function"==typeof a||(b=a,Array.isArray(b)&&!H(b,function(a){return"function"!=typeof a})));var b}function R(a,b){var c=a[b]||[];0===(c=Array.isArray(c)?c:[c]).length&&(c=[function(){return Promise.resolve()}]);var d=N(a),f=z(a);return function(g){return c.reduce(function(c,h,i){return c.then(function(){var a=h(g);return T(a)?a:Promise.reject(L(15,!1,d,f,b,i))})},Promise.resolve())}}function T(a){return a&&"function"==typeof a.then&&"function"==typeof a.catch}function U(a,b){function c(){return a.status="NOT_MOUNTED",a}return Promise.resolve().then(function(){return"NOT_BOOTSTRAPPED"===a.status?(a.status="BOOTSTRAPPING",a.bootstrap?ea(a,"bootstrap").then(c).catch(function(c){if(b)throw j(c,a,"SKIP_BECAUSE_BROKEN");return G(c,a,"SKIP_BECAUSE_BROKEN"),a}):Promise.resolve().then(c)):a})}function V(a,b){return Promise.resolve().then(function(){function c(){return ea(a,"unmount").then(function(){a.status="NOT_MOUNTED"}).catch(function(c){if(b)throw j(c,a,"SKIP_BECAUSE_BROKEN");G(c,a,"SKIP_BECAUSE_BROKEN")})}if("MOUNTED"!==a.status)return a;a.status="UNMOUNTING";var d=Object.keys(a.parcels).map(function(b){return a.parcels[b].unmountThisParcel()});return Promise.all(d).then(c,function(d){return c().then(function(){var c=Error(d.message);if(b)throw j(c,a,"SKIP_BECAUSE_BROKEN");G(c,a,"SKIP_BECAUSE_BROKEN")})}).then(function(){return a})})}function W(a,b){return Promise.resolve().then(function(){return"NOT_MOUNTED"===a.status?(k||(window.dispatchEvent(new O("single-spa:before-first-mount")),k=!0),ea(a,"mount").then(function(){return a.status="MOUNTED",Na||(window.dispatchEvent(new O("single-spa:first-mount")),Na=!0),a}).catch(function(c){function d(){if(b)throw j(c,a,"SKIP_BECAUSE_BROKEN");return G(c,a,"SKIP_BECAUSE_BROKEN"),a}return a.status="MOUNTED",V(a,!0).then(d,d)})):a})}function X(){return Y.apply(Pa,arguments)}function Y(b,d){var g=this;if(!b||"object"!==E(b)&&"function"!=typeof b)throw Error(L(2,!1));if(b.name&&"string"!=typeof b.name)throw Error(L(3,!1,E(b.name)));if("object"!==E(d))throw Error(L(4,!1,name,E(d)));if(!d.domElement)throw Error(L(5,!1,name));var k,m=Oa++,e="function"==typeof b,i=e?b:function(){return Promise.resolve(b)},o={id:m,parcels:{},status:e?"LOADING_SOURCE_CODE":"NOT_BOOTSTRAPPED",customProps:d,parentName:z(g),unmountThisParcel:function(){return l.then(function(){if("MOUNTED"!==o.status)throw Error(L(6,!1,name,o.status));return V(o,!0)}).then(function(a){return o.parentName&&delete g.parcels[o.id],a}).then(function(a){return q(a),a}).catch(function(a){throw o.status="SKIP_BECAUSE_BROKEN",u(a),a})}};g.parcels[m]=o;var a=i();if(!a||"function"!=typeof a.then)throw Error(L(7,!1));var q,u,n=(a=a.then(function(b){if(!b)throw Error(L(8,!1));var c=b.name||"parcel-".concat(m);if(Object.prototype.hasOwnProperty.call(b,"bootstrap")&&!Q(b.bootstrap))throw Error(L(9,!1,c));if(!Q(b.mount))throw Error(L(10,!1,c));if(!Q(b.unmount))throw Error(L(11,!1,c));if(b.update&&!Q(b.update))throw Error(L(12,!1,c));var d=R(b,"bootstrap"),e=R(b,"mount"),f=R(b,"unmount");o.status="NOT_BOOTSTRAPPED",o.name=c,o.bootstrap=d,o.mount=e,o.unmount=f,o.timeouts=fa(b.timeouts),b.update&&(o.update=R(b,"update"),k.update=function(a){return o.customProps=a,Z(function(a){return Promise.resolve().then(function(){if("MOUNTED"!==a.status)throw Error(L(32,!1,z(a)));return a.status="UPDATING",ea(a,"update").then(function(){return a.status="MOUNTED",a}).catch(function(b){throw j(b,a,"SKIP_BECAUSE_BROKEN")})})}(o))})})).then(function(){return U(o,!0)}),l=n.then(function(){return W(o,!0)}),p=new Promise(function(a,b){q=a,u=b});return k={mount:function(){return Z(Promise.resolve().then(function(){if("NOT_MOUNTED"!==o.status)throw Error(L(13,!1,name,o.status));return g.parcels[m]=o,W(o)}))},unmount:function(){return Z(o.unmountThisParcel())},getStatus:function(){return o.status},loadPromise:Z(a),bootstrapPromise:Z(n),mountPromise:Z(l),unmountPromise:Z(p)}}function Z(a){return a.then(function(){return null})}function $(a){var b=z(a),c="function"==typeof a.customProps?a.customProps(b,window.location):a.customProps;("object"!==E(c)||null===c||Array.isArray(c))&&(c={},console.warn(L(40,!1),b,c));var d=q({},c,{name:b,mountParcel:Y.bind(a),singleSpa:h});return J(a)&&(d.unmountSelf=a.unmountThisParcel),d}function aa(a,b,c){if("number"!=typeof a||0>=a)throw Error(L(16,!1));Qa.bootstrap={millis:a,dieOnTimeout:b,warningMillis:c||1e3}}function ba(a,b,c){if("number"!=typeof a||0>=a)throw Error(L(17,!1));Qa.mount={millis:a,dieOnTimeout:b,warningMillis:c||1e3}}function ca(a,b,c){if("number"!=typeof a||0>=a)throw Error(L(18,!1));Qa.unmount={millis:a,dieOnTimeout:b,warningMillis:c||1e3}}function da(a,b,c){if("number"!=typeof a||0>=a)throw Error(L(19,!1));Qa.unload={millis:a,dieOnTimeout:b,warningMillis:c||1e3}}function ea(b,d){var g=b.timeouts[d],e=g.warningMillis,h=N(b);return new Promise(function(j,i){function a(b){if(!f)if(!0===b)k=!0,g.dieOnTimeout?i(Error(l)):console.error(l);else if(!k){var c=b;console.warn(l),c*e+e<g.millis&&setTimeout(function(){return a(c+1)},e)}}var f=!1,k=!1;b[d]($(b)).then(function(a){f=!0,j(a)}).catch(function(a){f=!0,i(a)}),setTimeout(function(){return a(1)},e),setTimeout(function(){return a(!0)},g.millis);var l=L(31,!1,d,h,z(b),g.millis)})}function fa(a){var b={};for(var c in Qa)b[c]=q({},Qa[c],a&&a[c]||{});return b}function ga(a){return Promise.resolve().then(function(){return a.loadPromise?a.loadPromise:"NOT_LOADED"!==a.status&&"LOAD_ERROR"!==a.status?a:(a.status="LOADING_SOURCE_CODE",a.loadPromise=Promise.resolve().then(function(){var d=a.loadApp($(a));if(!T(d))throw c=!0,Error(L(33,!1,z(a)));return d.then(function(c){var d;a.loadErrorTime=null,"object"!==E(b=c)&&(d=34),Object.prototype.hasOwnProperty.call(b,"bootstrap")&&!Q(b.bootstrap)&&(d=35),Q(b.mount)||(d=36),Q(b.unmount)||(d=37);var e=N(b);if(d){var f;try{f=JSON.stringify(b)}catch(a){}return console.error(L(d,!1,e,z(a),f),b),G(void 0,a,"SKIP_BECAUSE_BROKEN"),a}return b.devtools&&b.devtools.overlays&&(a.devtools.overlays=q({},a.devtools.overlays,b.devtools.overlays)),a.status="NOT_BOOTSTRAPPED",a.bootstrap=R(b,"bootstrap"),a.mount=R(b,"mount"),a.unmount=R(b,"unmount"),a.unload=R(b,"unload"),a.timeouts=fa(b.timeouts),delete a.loadPromise,a})}).catch(function(b){var d;return delete a.loadPromise,c?d="SKIP_BECAUSE_BROKEN":(d="LOAD_ERROR",a.loadErrorTime=new Date().getTime()),G(b,a,d),a}));var b,c})}function ha(a){var b;if("string"==typeof a)b=a;else if(this&&this.href)b=this.href;else{if(!(a&&a.currentTarget&&a.currentTarget.href&&a.preventDefault))throw Error(L(14,!1));b=a.currentTarget.href,a.preventDefault()}var c=ma(window.location.href),d=ma(b);0===b.indexOf("#")?window.location.hash=d.hash:c.host!==d.host&&d.host?window.location.href=b:d.pathname===c.pathname&&d.search===c.search?window.location.hash=d.hash:window.history.pushState(null,null,b)}function ia(a){var b=this;if(a){var c=a[0].type;0<=Ta.indexOf(c)&&Sa[c].forEach(function(c){try{c.apply(b,a)}catch(a){setTimeout(function(){throw a})}})}}function ja(){Fa([],arguments)}function ka(a,b){return function(){var c=window.location.href,d=a.apply(this,arguments),e=window.location.href;return Ka&&c===e||(Ia()?window.dispatchEvent(la(window.history.state,b)):Fa([])),d}}function la(a,b){var c;try{c=new PopStateEvent("popstate",{state:a})}catch(b){(c=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,a)}return c.singleSpa=!0,c.singleSpaTrigger=b,c}function ma(a){var b=document.createElement("a");return b.href=a,b}function na(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(a||window.$&&window.$.fn&&window.$.fn.jquery&&(a=window.$),a&&!Wa){var b=a.fn.on,c=a.fn.off;a.fn.on=function(a,c){return oa.call(this,b,window.addEventListener,a,c,arguments)},a.fn.off=function(a,b){return oa.call(this,c,window.removeEventListener,a,b,arguments)},Wa=!0}}function oa(a,b,c,d,f){return"string"==typeof c?(c.split(/\s+/).forEach(function(a){0<=Ta.indexOf(a)&&(b(a,d),c=c.replace(a,""))}),""===c.trim()?this:a.apply(this,f)):a.apply(this,f)}function pa(a){return Promise.resolve().then(function(){var b=Xa[z(a)];if(!b)return a;if("NOT_LOADED"===a.status)return qa(a,b),a;if("UNLOADING"===a.status)return b.promise.then(function(){return a});if("NOT_MOUNTED"!==a.status&&"LOAD_ERROR"!==a.status)return a;var c="LOAD_ERROR"===a.status?Promise.resolve():ea(a,"unload");return a.status="UNLOADING",c.then(function(){return qa(a,b),a}).catch(function(c){return function(a,b,c){delete Xa[z(a)],delete a.bootstrap,delete a.mount,delete a.unmount,delete a.unload,G(c,a,"SKIP_BECAUSE_BROKEN"),b.reject(c)}(a,b,c),a})})}function qa(a,b){delete Xa[z(a)],delete a.bootstrap,delete a.mount,delete a.unmount,delete a.unload,a.status="NOT_LOADED",b.resolve()}function ra(a,b,c,d){Xa[z(a)]={app:a,resolve:c,reject:d},Object.defineProperty(Xa[z(a)],"promise",{get:b})}function sa(a){return Xa[a]}function ta(){var b=[],c=[],d=[],e=[],f=new Date().getTime();return Ya.forEach(function(g){var h="SKIP_BECAUSE_BROKEN"!==g.status&&K(g);switch(g.status){case"LOAD_ERROR":h&&200<=f-g.loadErrorTime&&d.push(g);break;case"NOT_LOADED":case"LOADING_SOURCE_CODE":h&&d.push(g);break;case"NOT_BOOTSTRAPPED":case"NOT_MOUNTED":!h&&sa(z(g))?b.push(g):h&&e.push(g);break;case"MOUNTED":h||c.push(g);}}),{appsToUnload:b,appsToUnmount:c,appsToLoad:d,appsToMount:e}}function ua(){return Ya.filter(M).map(z)}function va(){return Ya.map(z)}function wa(a){var b=H(Ya,function(b){return z(b)===a});return b?b.status:null}function xa(a,b,c,d){var e=function(a,b,c,d){var e,f={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===E(a)?(function(a){if(Array.isArray(a)||null===a)throw Error(L(39,!1));var b=["name","app","activeWhen","customProps"],c=Object.keys(a).reduce(function(a,c){return 0<=b.indexOf(c)?a:a.concat(c)},[]);if(0!==c.length)throw Error(L(38,!1,b.join(", "),c.join(", ")));if("string"!=typeof a.name||0===a.name.length)throw Error(L(20,!1));if("object"!==E(a.app)&&"function"!=typeof a.app)throw Error(L(20,!1));var d=function(a){return"string"==typeof a||"function"==typeof a};if(!(d(a.activeWhen)||Array.isArray(a.activeWhen)&&a.activeWhen.every(d)))throw Error(L(24,!1));if(!Ca(a.customProps))throw Error(L(22,!1))}(a),f.name=a.name,f.loadApp=a.app,f.activeWhen=a.activeWhen,f.customProps=a.customProps):(function(a,b,c,d){if("string"!=typeof a||0===a.length)throw Error(L(20,!1));if(!b)throw Error(L(23,!1));if("function"!=typeof c)throw Error(L(24,!1));if(!Ca(d))throw Error(L(22,!1))}(a,b,c,d),f.name=a,f.loadApp=b,f.activeWhen=c,f.customProps=d),f.loadApp="function"==typeof(e=f.loadApp)?e:function(){return Promise.resolve(e)},f.customProps=function(a){return a||{}}(f.customProps),f.activeWhen=function(a){var b=Array.isArray(a)?a:[a];return b=b.map(function(a){return"function"==typeof a?a:Da(a)}),function(a){return b.some(function(b){return b(a)})}}(f.activeWhen),f}(a,b,c,d);if(-1!==va().indexOf(e.name))throw Error(L(21,!1,e.name));Ya.push(q({loadErrorTime:null,status:"NOT_LOADED",parcels:{},devtools:{overlays:{options:{},selectors:[]}}},e)),Ra&&(na(),Fa())}function ya(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.location;return Ya.filter(function(b){return b.activeWhen(a)}).map(z)}function za(a){if(0===Ya.filter(function(b){return z(b)===a}).length)throw Error(L(25,!1,a));return Aa(a).then(function(){var b=Ya.map(z).indexOf(a);Ya.splice(b,1)})}function Aa(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof a)throw Error(L(26,!1));var c=H(Ya,function(b){return z(b)===a});if(!c)throw Error(L(27,!1,a));var d,e=sa(z(c));if(b&&b.waitForUnmount){if(e)return e.promise;var f=new Promise(function(a,b){ra(c,function(){return f},a,b)});return f}return e?(d=e.promise,Ba(c,e.resolve,e.reject)):d=new Promise(function(a,b){ra(c,function(){return d},a,b),Ba(c,a,b)}),d}function Ba(a,b,c){V(a).then(pa).then(function(){b(),setTimeout(function(){Fa()})}).catch(c)}function Ca(a){return!a||"function"==typeof a||"object"===E(a)&&null!==a&&!Array.isArray(a)}function Da(a,b){var c=function(b,c){function d(d){var e=b.slice(f,d).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(h+=g?"[^/]+/?":e,d===b.length)if(g)c&&(h+="$");else{var a=c?"":".*";h="/"===h.charAt(h.length-1)?"".concat(h).concat(a,"$"):"".concat(h,"(/").concat(a,")?(#.*)?$")}g=!g,f=d}var f=0,g=!1,h="^";"/"!==b[0]&&(b="/"+b);for(var j,k=0;k<b.length;k++)j=b[k],(!g&&":"===j||g&&"/"===j)&&d(k);return d(b.length),new RegExp(h,"i")}(a,b);return function(a){var b=a.origin;b||(b="".concat(a.protocol,"//").concat(a.host));var d=a.href.replace(b,"").replace(a.search,"").split("?")[0];return c.test(d)}}function Ea(){return Fa()}function Fa(){function b(){u=!0}function g(){var a=ua();h.forEach(function(b){return b.resolve(a)});try{var b=0===v.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new O(b,d())),window.dispatchEvent(new O("single-spa:routing-event",d()))}catch(a){setTimeout(function(){throw a})}if(Za=!1,0<$a.length){var c=$a;$a=[],Fa(c)}return a}function j(){h.forEach(function(a){ia(a.eventArguments)}),ia(k)}function d(){function b(a,b){var c=z(a);b=b||wa(c),f[c]=b,(g[b]=g[b]||[]).push(c)}var c,d=0<arguments.length&&void 0!==arguments[0]&&arguments[0],e=1<arguments.length?arguments[1]:void 0,f={},g=(F(c={},"MOUNTED",[]),F(c,"NOT_MOUNTED",[]),F(c,"NOT_LOADED",[]),F(c,"SKIP_BECAUSE_BROKEN",[]),c);d?(i.concat(a).forEach(function(a){b(a,"MOUNTED")}),w.forEach(function(a){b(a,"NOT_LOADED")}),o.forEach(function(a){b(a,"NOT_MOUNTED")})):v.forEach(function(a){b(a)});var h={detail:{newAppStatuses:f,appsByNewStatus:g,totalAppChanges:v.length,originalEvent:null==k?void 0:k[0],oldUrl:x,newUrl:n,navigationIsCanceled:u}};return e&&q(h.detail,e),h}var h=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],k=1<arguments.length?arguments[1]:void 0;if(Za)return new Promise(function(a,b){$a.push({resolve:a,reject:b,eventArguments:k})});var v,l=ta(),w=l.appsToUnload,o=l.appsToUnmount,i=l.appsToLoad,a=l.appsToMount,u=!1,x=_a,n=_a=window.location.href;return Ia()?(Za=!0,v=w.concat(i,o,a),function(){return Promise.resolve().then(function(){if(window.dispatchEvent(new O(0===v.length?"single-spa:before-no-app-change":"single-spa:before-app-change",d(!0))),window.dispatchEvent(new O("single-spa:before-routing-event",d(!0,{cancelNavigation:b}))),u)return window.dispatchEvent(new O("single-spa:before-mount-routing-event",d(!0))),g(),void ha(x);var c=w.map(pa),e=o.map(V).map(function(a){return a.then(pa)}).concat(c),k=Promise.all(e);k.then(function(){window.dispatchEvent(new O("single-spa:before-mount-routing-event",d(!0)))});var f=i.map(function(a){return ga(a).then(function(a){return Ga(a,k)})}),l=a.filter(function(a){return 0>i.indexOf(a)}).map(function(a){return Ga(a,k)});return k.catch(function(a){throw j(),a}).then(function(){return j(),Promise.all(f.concat(l)).catch(function(a){throw h.forEach(function(b){return b.reject(a)}),a}).then(g)})})}()):(v=i,function(){return Promise.resolve().then(function(){var a=i.map(ga);return Promise.all(a).then(j).then(function(){return[]}).catch(function(a){throw j(),a})})}())}function Ga(a,b){return K(a)?U(a).then(function(a){return b.then(function(){return K(a)?W(a):a})}):b.then(function(){return a})}function Ha(a){var b;ab=!0,a&&a.urlRerouteOnly&&(b=a.urlRerouteOnly,Ka=b),Ra&&Fa()}function Ia(){return ab}function Ja(){return(0,La.defineConfigSchema)(a.e,o),(0,La.defineExtensionConfigSchema)("link",bb.genericLinkConfigSchema),(0,La.setupOfflineSync)(a.O,[],w),{pages:[{load:(0,La.getAsyncLifecycle)(function(){return Promise.all([n.e(513),n.e(596),n.e(784),n.e(212)]).then(n.bind(n,3212))},fb),route:function(a){return!a.pathname.startsWith(window.getOpenmrsSpaBase()+"login")},online:!0,offline:!0,order:0},{load:{bootstrap:function(){return Promise.resolve(ha(window.getOpenmrsSpaBase()+"home"))},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}},route:function(a){return a.pathname===window.getOpenmrsSpaBase()},order:0}],extensions:[{name:"default-user-panel",slot:"user-panel-slot",order:0,load:(0,La.getAsyncLifecycle)(function(){return Promise.all([n.e(513),n.e(784),n.e(540)]).then(n.bind(n,3540))},fb),online:!0,offline:!0},{name:"change-locale",slot:"user-panel-slot",order:1,load:(0,La.getAsyncLifecycle)(function(){return Promise.all([n.e(784),n.e(510)]).then(n.bind(n,510))},fb),online:{postUserProperties:s},offline:{postUserProperties:C}},{name:"link",load:(0,La.getAsyncLifecycle)(function(){return Promise.resolve().then(n.bind(n,6639))},{featureName:"Link",moduleName:a.e})}]}}n.r(t),n.d(t,{backendDependencies:()=>eb,importTranslation:()=>db,setupOpenMRS:()=>Ja,assets:()=>["1.js","25.js","openmrs-esm-primary-navigation-app.js","212.js","216.js","322.js","393.js","510.js","513.js","540.js","574.js","596.js","735.js","743.js","788.js","860.js","889.js"],version:()=>cb});var Ka,La=n(7644),r=n(1602),Ma=n.n(r),i=n(8478),a=n(1217),o={logo:{src:{_type:La.Type.String,_default:null,_description:"A path or URL to an image. Defaults to the OpenMRS SVG sprite."},alt:{_type:La.Type.String,_default:"Logo",_description:"Alt text, shown on hover"},name:{_type:La.Type.String,_default:null,_description:"The organization name displayed when image is absent"}},externalRefLinks:{_type:La.Type.Array,_elements:{title:{_type:La.Type.String,_description:"Title of the link"},redirect:{_type:La.Type.String,_description:"Link to redirect to (must be an external link)",_validators:[La.validators.isUrl]}},_default:[],_description:"The external links to be showcased in the app menu"}},h=Object.freeze({__proto__:null,get start(){return Ha},get ensureJQuerySupport(){return na},get setBootstrapMaxTime(){return aa},get setMountMaxTime(){return ba},get setUnmountMaxTime(){return ca},get setUnloadMaxTime(){return da},get registerApplication(){return xa},get unregisterApplication(){return za},get getMountedApps(){return ua},get getAppStatus(){return wa},get unloadApplication(){return Aa},get checkActivityFunctions(){return ya},get getAppNames(){return va},get pathToActiveWhen(){return Da},get navigateToUrl(){return ha},get triggerAppChange(){return Ea},get addErrorHandler(){return I},get removeErrorHandler(){return x},get mountRootParcel(){return X},get NOT_LOADED(){return _},get LOADING_SOURCE_CODE(){return"LOADING_SOURCE_CODE"},get NOT_BOOTSTRAPPED(){return"NOT_BOOTSTRAPPED"},get BOOTSTRAPPING(){return"BOOTSTRAPPING"},get NOT_MOUNTED(){return"NOT_MOUNTED"},get MOUNTING(){return"MOUNTING"},get UPDATING(){return"UPDATING"},get LOAD_ERROR(){return"LOAD_ERROR"},get MOUNTED(){return"MOUNTED"},get UNMOUNTING(){return"UNMOUNTING"},get SKIP_BECAUSE_BROKEN(){return"SKIP_BECAUSE_BROKEN"}}),u=("undefined"==typeof globalThis?"undefined"==typeof window?void 0===n.g?"undefined"==typeof self?{}:self:n.g:window:globalThis).CustomEvent,O=function(){try{var a=new u("cat",{detail:{foo:"bar"}});return"cat"===a.type&&"bar"===a.detail.foo}catch(a){}return!1}()?u:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(a,b){var c=document.createEvent("CustomEvent");return b?c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail):c.initCustomEvent(a,!1,!1,void 0),c}:function(a,b){var c=document.createEventObject();return c.type=a,b?(c.bubbles=!!b.bubbles,c.cancelable=!!b.cancelable,c.detail=b.detail):(c.bubbles=!1,c.cancelable=!1,c.detail=void 0),c},S=[],_="NOT_LOADED",k=!1,Na=!1,Oa=0,Pa={parcels:{}},Qa={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}},Ra="undefined"!=typeof window,Sa={hashchange:[],popstate:[]},Ta=["hashchange","popstate"];if(Ra){window.addEventListener("hashchange",ja),window.addEventListener("popstate",ja);var Ua=window.addEventListener,Va=window.removeEventListener;window.addEventListener=function(a,b){return!("function"==typeof b&&0<=Ta.indexOf(a))||H(Sa[a],function(a){return a===b})?Ua.apply(this,arguments):void Sa[a].push(b)},window.removeEventListener=function(a,b){return"function"==typeof b&&0<=Ta.indexOf(a)?void(Sa[a]=Sa[a].filter(function(a){return a!==b})):Va.apply(this,arguments)},window.history.pushState=ka(window.history.pushState,"pushState"),window.history.replaceState=ka(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(L(41,!1)):window.singleSpaNavigate=ha}var Wa=!1,Xa={},Ya=[],Za=!1,$a=[],_a=Ra&&window.location.href,ab=!1;Ra&&setTimeout(function(){ab||console.warn(L(1,!1))},5e3);Ra&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods={getRawAppData:function(){return[].concat(Ya)},reroute:Fa,NOT_LOADED:_,toLoadPromise:ga,toBootstrapPromise:U,unregisterApplication:za});var bb=n(6639),cb="3.4.1-pre.180",db=n(3979),eb={"webservices.rest":"^2.2.0"},fb={featureName:"primary navigation",moduleName:a.e}},3979:(a,b,c)=>{function d(a){if(!c.o(e,a))return Promise.resolve().then(()=>{var b=new Error("Cannot find module '"+a+"'");throw b.code="MODULE_NOT_FOUND",b});var b=e[a],d=b[0];return c.e(b[1]).then(()=>c(d))}var e={"./en.json":[3574,574]};d.keys=()=>Object.keys(e),d.id=3979,a.exports=d}}]),b=Promise.all([f.e(983),f.e(789)]).then(()=>()=>f(789))),b)},e=(a,b)=>(f.R=b,b=f.o(g,a)?g[a]():Promise.resolve().then(()=>{throw new Error("Module \""+a+"\" does not exist in container.")}),f.R=void 0,b),h=(a,b)=>{if(f.S){var c=f.S["default"];if(c&&c!==a)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return f.S["default"]=a,f.I("default",b)}};f.d(d,{get:()=>e,init:()=>h})}},y={};return k.m=M,k.c=y,k.y=j,k.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return k.d(b,{a:b}),b},k.d=(a,b)=>{for(var c in b)k.o(b,c)&&!k.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},k.f={},k.e=a=>Promise.all(Object.keys(k.f).reduce((b,c)=>(k.f[c](a,b),b),[])),k.u=a=>a+".js",k.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),k.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),q={},w="@openmrs/esm-primary-navigation-app:",k.l=(a,b,d)=>{if(q[a])q[a].push(b);else{var e,g;if(void 0!==d)for(var h,j=document.getElementsByTagName("script"),l=0;l<j.length;l++)if(h=j[l],h.getAttribute("src")==a||h.getAttribute("data-webpack")==w+d){e=h;break}e||(g=!0,(e=document.createElement("script")).charset="utf-8",e.timeout=120,k.nc&&e.setAttribute("nonce",k.nc),e.setAttribute("data-webpack",w+d),e.src=a),q[a]=[b];var m=(b,c)=>{e.onerror=e.onload=null,clearTimeout(f);var d=q[a];if(delete q[a],e.parentNode&&e.parentNode.removeChild(e),d&&d.forEach(a=>a(c)),b)return b(c)},f=setTimeout(m.bind(null,void 0,{type:"timeout",target:e}),12e4);e.onerror=m.bind(null,e.onerror),e.onload=m.bind(null,e.onload),g&&document.head.appendChild(e)}},k.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},k.nmd=a=>(a.paths=[],a.children||(a.children=[]),a),(()=>{k.S={};var b={},c={};k.I=(d,e)=>{e||(e=[]);var f=c[d];if(f||(f=c[d]={}),!(0<=e.indexOf(f))){if(e.push(f),b[d])return b[d];k.o(k.S,d)||(k.S[d]={});var g=k.S[d],a=(a,b,c,d)=>{var e=g[a]=g[a]||{},f=e[b];f&&(f.loaded||(!d==!f.eager?!("@openmrs/esm-primary-navigation-app">f.from):!d))||(e[b]={get:c,from:"@openmrs/esm-primary-navigation-app",eager:!!d})},h=[];return"default"===d&&(a("@openmrs/esm-framework/src/internal","3.4.1-pre.180",()=>Promise.all([k.e(983),k.e(889)]).then(()=>()=>k(4889))),a("carbon-components-react","7.31.0",()=>Promise.all([k.e(322),k.e(983),k.e(69)]).then(()=>()=>k(7322))),a("carbon-components","10.31.0",()=>Promise.all([k.e(25),k.e(1)]).then(()=>()=>k(25))),a("carbon-icons","7.0.7",()=>k.e(860).then(()=>()=>k(4860))),a("react-dom","16.14.0",()=>Promise.all([k.e(788),k.e(983)]).then(()=>()=>k(2788))),a("react-i18next","11.16.2",()=>Promise.all([k.e(743),k.e(983)]).then(()=>()=>k(5743))),a("react-router-dom","5.3.0",()=>Promise.all([k.e(393),k.e(983),k.e(216)]).then(()=>()=>k(7393))),a("react","16.14.0",()=>k.e(735).then(()=>()=>k(2735)))),b[d]=h.length?Promise.all(h).then(()=>b[d]=1):1}}})(),k.p="",x=a=>{var b=a=>a.split(".").map(a=>+a==a?+a:a),c=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(a),d=c[1]?b(c[1]):[];return c[2]&&(d.length++,d.push.apply(d,b(c[2]))),c[3]&&(d.push([]),d.push.apply(d,b(c[3]))),d},z=(b,c)=>{b=x(b),c=x(c);for(var d=0;;){if(d>=b.length)return d<c.length&&"u"!=(typeof c[d])[0];var f=b[d],g=(typeof f)[0];if(d>=c.length)return"u"==g;var a=c[d],h=(typeof a)[0];if(g!=h)return"o"==g&&"n"==h||"s"==h||"u"==g;if("o"!=g&&"u"!=g&&f!=a)return f<a;d++}},A=a=>{function b(){return g.pop().replace(/^\((.+)\)$/,"$1")}var c=a[0],d="";if(1===a.length)return"*";if(c+.5){d+=0==c?">=":-1==c?"<":1==c?"^":2==c?"~":0<c?"=":"!=";for(var e=1,f=1;f<a.length;f++)e--,d+="u"==(typeof(h=a[f]))[0]?"-":(0<e?".":"")+(e=2,h);return d}var g=[];for(f=1;f<a.length;f++){var h=a[f];g.push(0===h?"not("+b()+")":1===h?"("+b()+" || "+b()+")":2===h?g.pop()+" "+g.pop():A(h))}return b()},B=(b,e)=>{if(0 in b){e=x(e);var g=b[0],i=0>g;i&&(g=-g-1);for(var j=0,k=1,m=!0;;k++,j++){var n,o,q=k<b.length?(typeof b[k])[0]:"";if(j>=e.length||"o"==(o=(typeof(n=e[j]))[0]))return!m||("u"==q?k>g&&!i:""==q!=i);if("u"==o){if(!m||"u"!=q)return!1;}else if(!m)"s"!=q&&"n"!=q&&(m=!1,k--);else if(q==o){if(!(k<=g)){if(i?n>b[k]:n<b[k])return!1;n!=b[k]&&(m=!1)}else if(n!=b[k])return!1;}else if("s"!=q&&"n"!=q){if(i||k<=g)return!1;m=!1,k--}else{if(k<=g||o<q!=i)return!1;m=!1}}}var f=[],c=f.pop.bind(f);for(j=1;j<b.length;j++){var d=b[j];f.push(1==d?c()|c():2==d?c()&c():d?B(d,e):!c())}return!!c()},C=(a,b)=>{var c=a[b];return Object.keys(c).reduce((a,b)=>a&&(c[a].loaded||!z(a,b))?a:b,0)},D=(a,b,c,d)=>"Unsatisfied version "+c+" from "+(c&&a[b][c].from)+" of shared singleton module "+b+" (required "+A(d)+")",E=(a,b,c)=>{var d=C(a,c);return G(a[c][d])},F=(a,b,c,d)=>{var e=C(a,c);return B(d,e)||"undefined"!=typeof console&&console.warn&&console.warn(D(a,c,e,d)),G(a[c][e])},G=a=>(a.loaded=1,a.get()),H=(r=b=>function(c,d,e,f){var g=k.I(c);return g&&g.then?g.then(b.bind(b,c,k.S[c],d,e,f)):b(c,k.S[c],d,e,f)})((a,b,c,d)=>b&&k.o(b,c)?E(b,0,c):d()),I=r((a,b,c,d,e)=>b&&k.o(b,c)?F(b,0,c,d):e()),J={},K={6983:()=>I("default","react",[1,16],()=>k.e(735).then(()=>()=>k(2735))),7644:()=>I("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],()=>k.e(889).then(()=>()=>k(4889))),8478:()=>H("default","@openmrs/esm-framework/src/internal",()=>k.e(889).then(()=>()=>k(4889))),5412:()=>I("default","react-dom",[1,16],()=>k.e(788).then(()=>()=>k(2788))),6240:()=>I("default","carbon-icons",[1,7],()=>k.e(860).then(()=>()=>k(4860))),7569:()=>I("default","carbon-components",[1,10],()=>k.e(25).then(()=>()=>k(25))),9784:()=>I("default","carbon-components-react",[1,7],()=>Promise.all([k.e(322),k.e(69)]).then(()=>()=>k(7322))),2268:()=>I("default","react-router-dom",[1,5],()=>k.e(393).then(()=>()=>k(7393))),2680:()=>I("default","react-i18next",[1,11],()=>k.e(743).then(()=>()=>k(5743)))},L={69:[5412,6240,7569],212:[2268,2680],784:[9784],789:[7644,8478],983:[6983]},k.f.consumes=(a,b)=>{k.o(L,a)&&L[a].forEach(a=>{if(k.o(J,a))return b.push(J[a]);var c=b=>{J[a]=0,k.m[a]=c=>{delete k.c[a],c.exports=b()}},d=b=>{delete J[a],k.m[a]=()=>{throw delete k.c[a],b}};try{var e=K[a]();e.then?b.push(J[a]=e.then(c).catch(d)):c(e)}catch(a){d(a)}})},(()=>{var b={115:0};k.f.j=(c,d)=>{var e=k.o(b,c)?b[c]:void 0;if(0!==e)if(e)d.push(e[2]);else if(/^(69|784|983)$/.test(c))b[c]=0;else{var f=new Promise((a,d)=>e=b[c]=[a,d]);d.push(e[2]=f);var g=k.p+k.u(c),h=new Error;k.l(g,d=>{if(k.o(b,c)&&(0!==(e=b[c])&&(b[c]=void 0),e)){var f=d&&("load"===d.type?"missing":d.type),g=d&&d.target&&d.target.src;h.message="Loading chunk "+c+" failed.\n("+f+": "+g+")",h.name="ChunkLoadError",h.type=f,h.request=g,e[1](h)}},"chunk-"+c,c)}};var a=(c,d)=>{var e,f,[g,a,h]=d,i=0;if(g.some(a=>0!==b[a])){for(e in a)k.o(a,e)&&(k.m[e]=a[e]);h&&h(k)}for(c&&c(d);i<g.length;i++)f=g[i],k.o(b,f)&&b[f]&&b[f][0](),b[f]=0},c=self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[];c.forEach(a.bind(null,0)),c.push=a.bind(null,c.push.bind(c))})(),k(8331),k(7972)})())}}});
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"openmrs-esm-primary-navigation-app.js"
|
|
88
88
|
],
|
|
89
89
|
"auxiliaryFiles": [],
|
|
90
|
-
"hash": "
|
|
90
|
+
"hash": "90ac6104ac202d8c0e71",
|
|
91
91
|
"childrenByOrder": {}
|
|
92
92
|
},
|
|
93
93
|
{
|
|
@@ -386,9 +386,9 @@
|
|
|
386
386
|
"initial": false,
|
|
387
387
|
"entry": false,
|
|
388
388
|
"recorded": false,
|
|
389
|
-
"size":
|
|
389
|
+
"size": 59173,
|
|
390
390
|
"sizes": {
|
|
391
|
-
"javascript":
|
|
391
|
+
"javascript": 59089,
|
|
392
392
|
"consume-shared": 84
|
|
393
393
|
},
|
|
394
394
|
"names": [],
|
|
@@ -400,7 +400,7 @@
|
|
|
400
400
|
"789.js"
|
|
401
401
|
],
|
|
402
402
|
"auxiliaryFiles": [],
|
|
403
|
-
"hash": "
|
|
403
|
+
"hash": "6a4286c18a948c2c6747",
|
|
404
404
|
"childrenByOrder": {}
|
|
405
405
|
},
|
|
406
406
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@openmrs/esm-primary-navigation-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,s,l,u,p,f,c,d,h,m,v,g,y={6585:(e,r,t)=>{(0,t(7968).s)(1)},7968:(e,r,t)=>{const n=t(1577).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},8331:(e,r,t)=>{t(6585)},1577:(e,r,t)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&a>=0;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var i=n.slice(0,a+1);return t.protocol+"//"+t.host+i};Number.isInteger},7972:(e,r,t)=>{"use strict";var n={app:()=>Promise.all([t.e(983),t.e(789)]).then((()=>()=>t(789)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},b={};function w(e){var r=b[e];if(void 0!==r)return r.exports;var t=b[e]={id:e,loaded:!1,exports:{}};return y[e].call(t.exports,t,t.exports,w),t.loaded=!0,t.exports}return w.m=y,w.c=b,w.y=r,w.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return w.d(r,{a:r}),r},w.d=(e,r)=>{for(var t in r)w.o(r,t)&&!w.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},w.f={},w.e=e=>Promise.all(Object.keys(w.f).reduce(((r,t)=>(w.f[t](e,r),r)),[])),w.u=e=>e+".js",w.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),w.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},t="@openmrs/esm-primary-navigation-app:",w.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==r||p.getAttribute("data-webpack")==t+o){i=p;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,w.nc&&i.setAttribute("nonce",w.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var f=(t,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},c=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&document.head.appendChild(i)}},w.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},w.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{w.S={};var e={},r={};w.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];w.o(w.S,t)||(w.S[t]={});var a=w.S[t],i="@openmrs/esm-primary-navigation-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},l=[];return"default"===t&&(s("@openmrs/esm-framework/src/internal","3.4.1-pre.
|
|
1
|
+
System.register("@openmrs/esm-primary-navigation-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,s,l,u,p,f,c,d,h,m,v,g,y={6585:(e,r,t)=>{(0,t(7968).s)(1)},7968:(e,r,t)=>{const n=t(1577).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},8331:(e,r,t)=>{t(6585)},1577:(e,r,t)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&a>=0;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var i=n.slice(0,a+1);return t.protocol+"//"+t.host+i};Number.isInteger},7972:(e,r,t)=>{"use strict";var n={app:()=>Promise.all([t.e(983),t.e(789)]).then((()=>()=>t(789)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},b={};function w(e){var r=b[e];if(void 0!==r)return r.exports;var t=b[e]={id:e,loaded:!1,exports:{}};return y[e].call(t.exports,t,t.exports,w),t.loaded=!0,t.exports}return w.m=y,w.c=b,w.y=r,w.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return w.d(r,{a:r}),r},w.d=(e,r)=>{for(var t in r)w.o(r,t)&&!w.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},w.f={},w.e=e=>Promise.all(Object.keys(w.f).reduce(((r,t)=>(w.f[t](e,r),r)),[])),w.u=e=>e+".js",w.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),w.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},t="@openmrs/esm-primary-navigation-app:",w.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==r||p.getAttribute("data-webpack")==t+o){i=p;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,w.nc&&i.setAttribute("nonce",w.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var f=(t,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},c=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&document.head.appendChild(i)}},w.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},w.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{w.S={};var e={},r={};w.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];w.o(w.S,t)||(w.S[t]={});var a=w.S[t],i="@openmrs/esm-primary-navigation-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},l=[];return"default"===t&&(s("@openmrs/esm-framework/src/internal","3.4.1-pre.180",(()=>Promise.all([w.e(983),w.e(889)]).then((()=>()=>w(4889))))),s("carbon-components-react","7.31.0",(()=>Promise.all([w.e(322),w.e(983),w.e(69)]).then((()=>()=>w(7322))))),s("carbon-components","10.31.0",(()=>Promise.all([w.e(25),w.e(1)]).then((()=>()=>w(25))))),s("carbon-icons","7.0.7",(()=>w.e(860).then((()=>()=>w(4860))))),s("react-dom","16.14.0",(()=>Promise.all([w.e(788),w.e(983)]).then((()=>()=>w(2788))))),s("react-i18next","11.16.2",(()=>Promise.all([w.e(743),w.e(983)]).then((()=>()=>w(5743))))),s("react-router-dom","5.3.0",(()=>Promise.all([w.e(393),w.e(983),w.e(216)]).then((()=>()=>w(7393))))),s("react","16.14.0",(()=>w.e(735).then((()=>()=>w(2735)))))),e[t]=l.length?Promise.all(l).then((()=>e[t]=1)):1}}})(),w.p="",n=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},o=(e,r)=>{e=n(e),r=n(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var o=e[t],a=(typeof o)[0];if(t>=r.length)return"u"==a;var i=r[t],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;t++}},a=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,t+="u"==(typeof(s=e[o]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var i=[];for(o=1;o<e.length;o++){var s=e[o];i.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?i.pop()+" "+i.pop():a(s))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},i=(e,r)=>{if(0 in e){r=n(r);var t=e[0],o=t<0;o&&(t=-t-1);for(var a=0,s=1,l=!0;;s++,a++){var u,p,f=s<e.length?(typeof e[s])[0]:"";if(a>=r.length||"o"==(p=(typeof(u=r[a]))[0]))return!l||("u"==f?s>t&&!o:""==f!=o);if("u"==p){if(!l||"u"!=f)return!1}else if(l)if(f==p)if(s<=t){if(u!=e[s])return!1}else{if(o?u>e[s]:u<e[s])return!1;u!=e[s]&&(l=!1)}else if("s"!=f&&"n"!=f){if(o||s<=t)return!1;l=!1,s--}else{if(s<=t||p<f!=o)return!1;l=!1}else"s"!=f&&"n"!=f&&(l=!1,s--)}}var c=[],d=c.pop.bind(c);for(a=1;a<e.length;a++){var h=e[a];c.push(1==h?d()|d():2==h?d()&d():h?i(h,r):!d())}return!!d()},s=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&o(e,r)?r:e),0)},l=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+a(n)+")",u=(e,r,t,n)=>{var o=s(e,t);return f(e[t][o])},p=(e,r,t,n)=>{var o=s(e,t);return i(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(l(e,t,o,n)),f(e[t][o])},f=e=>(e.loaded=1,e.get()),d=(c=e=>function(r,t,n,o){var a=w.I(r);return a&&a.then?a.then(e.bind(e,r,w.S[r],t,n,o)):e(r,w.S[r],t,n,o)})(((e,r,t,n)=>r&&w.o(r,t)?u(r,0,t):n())),h=c(((e,r,t,n,o)=>r&&w.o(r,t)?p(r,0,t,n):o())),m={},v={6983:()=>h("default","react",[1,16],(()=>w.e(735).then((()=>()=>w(2735))))),7644:()=>h("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],(()=>w.e(889).then((()=>()=>w(4889))))),8478:()=>d("default","@openmrs/esm-framework/src/internal",(()=>w.e(889).then((()=>()=>w(4889))))),5412:()=>h("default","react-dom",[1,16],(()=>w.e(788).then((()=>()=>w(2788))))),6240:()=>h("default","carbon-icons",[1,7],(()=>w.e(860).then((()=>()=>w(4860))))),7569:()=>h("default","carbon-components",[1,10],(()=>w.e(25).then((()=>()=>w(25))))),9784:()=>h("default","carbon-components-react",[1,7],(()=>Promise.all([w.e(322),w.e(69)]).then((()=>()=>w(7322))))),2268:()=>h("default","react-router-dom",[1,5],(()=>w.e(393).then((()=>()=>w(7393))))),2680:()=>h("default","react-i18next",[1,11],(()=>w.e(743).then((()=>()=>w(5743)))))},g={69:[5412,6240,7569],212:[2268,2680],784:[9784],789:[7644,8478],983:[6983]},w.f.consumes=(e,r)=>{w.o(g,e)&&g[e].forEach((e=>{if(w.o(m,e))return r.push(m[e]);var t=r=>{m[e]=0,w.m[e]=t=>{delete w.c[e],t.exports=r()}},n=r=>{delete m[e],w.m[e]=t=>{throw delete w.c[e],r}};try{var o=v[e]();o.then?r.push(m[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={115:0};w.f.j=(r,t)=>{var n=w.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(69|784|983)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=w.p+w.u(r),i=new Error;w.l(a,(t=>{if(w.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,s]=t,l=0;if(a.some((r=>0!==e[r]))){for(n in i)w.o(i,n)&&(w.m[n]=i[n]);s&&s(w)}for(r&&r(t);l<a.length;l++)o=a[l],w.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),w(8331),w(7972)})())}}}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-primary-navigation-app",
|
|
3
|
-
"version": "3.4.1-pre.
|
|
3
|
+
"version": "3.4.1-pre.180",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Main navbar microfrontend for the OpenMRS SPA",
|
|
6
6
|
"browser": "dist/openmrs-esm-primary-navigation-app.js",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"rxjs": "6.x"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@openmrs/esm-framework": "^3.4.1-pre.
|
|
56
|
-
"@openmrs/webpack-config": "^3.4.1-pre.
|
|
55
|
+
"@openmrs/esm-framework": "^3.4.1-pre.180",
|
|
56
|
+
"@openmrs/webpack-config": "^3.4.1-pre.180",
|
|
57
57
|
"@types/carbon-components-react": "^7.24.0",
|
|
58
58
|
"@types/react-router-dom": "^5.1.7",
|
|
59
59
|
"jest": "^26.6.3",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"react-dom": "^16.13.1",
|
|
62
62
|
"rxjs": "^6.5.3"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "ee733435ce5f9bf892a915a6b04cef861426077d"
|
|
65
65
|
}
|
package/src/index.ts
CHANGED
|
@@ -14,6 +14,10 @@ import { syncUserLanguagePreference } from "./offline";
|
|
|
14
14
|
import { navigateToUrl } from "single-spa";
|
|
15
15
|
import { genericLinkConfigSchema } from "./components/generic-link/generic-link.component";
|
|
16
16
|
|
|
17
|
+
declare var __VERSION__: string;
|
|
18
|
+
// __VERSION__ is replaced by Webpack with the version from package.json
|
|
19
|
+
const version = __VERSION__;
|
|
20
|
+
|
|
17
21
|
const importTranslation = require.context(
|
|
18
22
|
"../translations",
|
|
19
23
|
false,
|
|
@@ -102,4 +106,4 @@ function setupOpenMRS() {
|
|
|
102
106
|
};
|
|
103
107
|
}
|
|
104
108
|
|
|
105
|
-
export { setupOpenMRS, importTranslation, backendDependencies };
|
|
109
|
+
export { setupOpenMRS, importTranslation, backendDependencies, version };
|