@openmrs/esm-implementer-tools-app 5.2.0 → 5.2.1-pre.1058
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 +39 -39
- package/dist/329.js +1 -1
- package/dist/499.js +1 -1
- package/dist/{640.js → 691.js} +1 -1
- package/dist/{640.js.map → 691.js.map} +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-implementer-tools-app.js +1 -1
- package/dist/openmrs-esm-implementer-tools-app.js.buildmanifest.json +21 -21
- package/dist/openmrs-esm-implementer-tools-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +4 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
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
|
-
[
|
|
34
|
-
[
|
|
35
|
-
[
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
[
|
|
39
|
-
[
|
|
1
|
+
[32m@openmrs/esm-implementer-tools-app:build[0m: cache hit, replaying output [2mfff4e0c02a66151e[0m
|
|
2
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0massets by path [1m[32m*.js[39m[22m 1.86 MiB
|
|
3
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m assets by chunk 847 KiB (id hint: vendors)
|
|
4
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m asset [1m[33m620.js[39m[22m [1m[33m452 KiB[39m[22m [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m [1m[33m[big][39m[22m (id hint: vendors) 2 related assets
|
|
5
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m asset [1m[32m837.js[39m[22m 190 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 2 related assets
|
|
6
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m asset [1m[32m788.js[39m[22m 130 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 2 related assets
|
|
7
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m asset [1m[32m329.js[39m[22m 27.2 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 2 related assets
|
|
8
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m asset [1m[32m263.js[39m[22m 19 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
9
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m asset [1m[32m220.js[39m[22m 12.7 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
10
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m asset [1m[32m500.js[39m[22m 7.88 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
11
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m asset [1m[32m56.js[39m[22m 6.06 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
12
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m asset [1m[32m575.js[39m[22m 1.43 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
13
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m + 18 assets
|
|
14
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0massets by path [1m[32m*.json[39m[22m 15.2 KiB
|
|
15
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m asset [1m[32mopenmrs-esm-implementer-tools-app.js.buildmanifest.json[39m[22m 14.9 KiB [1m[32m[emitted][39m[22m
|
|
16
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m asset [1m[32mroutes.json[39m[22m 310 bytes [1m[32m[emitted][39m[22m [from: src/routes.json] [1m[32m[copied][39m[22m
|
|
17
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0morphan modules 3.15 MiB [1m[33m[orphan][39m[22m 533 modules
|
|
18
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0mruntime modules 39.3 KiB 30 modules
|
|
19
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0mbuilt modules 5.45 MiB (javascript) 252 bytes (consume-shared) 210 bytes (share-init) [1m[33m[built][39m[22m
|
|
20
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m modules by path [1m../../[39m[22m 4.94 MiB 126 modules
|
|
21
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m modules by path [1m./[39m[22m 522 KiB
|
|
22
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m modules by path [1m./src/[39m[22m 516 KiB 26 modules
|
|
23
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m modules by path [1m./translations/[39m[22m 5.94 KiB 7 modules
|
|
24
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m consume-shared-module modules 252 bytes
|
|
25
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m modules by path [1mconsume shared module (default) @openmrs/[39m[22m 84 bytes 2 modules
|
|
26
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m + 4 modules
|
|
27
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m provide-module modules 210 bytes
|
|
28
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m [1mprovide shared module (default) @openmrs/esm-framework@5.2.1-pre.1058 = ../../fr...(truncated)[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
29
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m + 4 modules
|
|
30
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m [1mcontainer entry[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
31
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m
|
|
32
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m[1m[33mWARNING[39m[22m in [1masset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
33
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0mThis can impact web performance.
|
|
34
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0mAssets:
|
|
35
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m 889.js (615 KiB)
|
|
36
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m 691.js (353 KiB)
|
|
37
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m 620.js (452 KiB)[39m[22m
|
|
38
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0m
|
|
39
|
+
[32m@openmrs/esm-implementer-tools-app:build: [0mwebpack 5.88.0 compiled with [1m[33m1 warning[39m[22m in 140598 ms
|
package/dist/329.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 329.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_implementer_tools_app=globalThis.webpackChunk_openmrs_esm_implementer_tools_app||[]).push([[329],{8696:(t,e,r)=>{r.d(e,{AG:()=>l,vc:()=>v});var n,o,a,i,c,u=r(5776),s=r.n(u),f=r(6248);const l=s().forwardRef((function(t,e){let{children:r,size:o=16,...a}=t;return s().createElement(f.I,{width:o,height:o,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...a},n||(n=s().createElement("path",{d:"M18,28A12,12,0,1,0,6,16v6.2L2.4,18.6,1,20l6,6,6-6-1.4-1.4L8,22.2V16H8A10,10,0,1,1,18,26Z"})),r)})),v=s().forwardRef((function(t,e){let{children:r,size:n=16,...u}=t;return 16===n||"16"===n||"16px"===n?s().createElement(f.I,{width:n,height:n,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...u},o||(o=s().createElement("path",{d:"M13.9,4.6l-2.5-2.5C11.3,2.1,11.1,2,11,2H3C2.4,2,2,2.4,2,3v10c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1V5 C14,4.9,13.9,4.7,13.9,4.6z M6,3h4v2H6V3z M10,13H6V9h4V13z M11,13V9c0-0.6-0.4-1-1-1H6C5.4,8,5,8.4,5,9v4H3V3h2v2c0,0.6,0.4,1,1,1 h4c0.6,0,1-0.4,1-1V3.2l2,2V13H11z"})),r):20===n||"20"===n||"20px"===n?s().createElement(f.I,{width:n,height:n,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...u},a||(a=s().createElement("path",{d:"M17.8,5.5l-3.3-3.3C14.3,2.1,14.2,2,14,2H3.3C2.6,2,2,2.6,2,3.3v13.3C2,17.4,2.6,18,3.3,18h13.3c0.7,0,1.4-0.5,1.4-1.2V6.1 C18,5.7,17.9,5.7,17.8,5.5z M7.3,3.3h5.3v3.3H7.3V3.3z M12.7,16.7H7.3v-5.3h5.3L12.7,16.7L12.7,16.7z M14,16.7v-5.3 c0-0.7-0.6-1.3-1.3-1.3H7.3C6.6,10,6,10.6,6,11.3v5.3H3.3V3.3H6v3.3C6,7.4,6.6,8,7.3,8h5.3C13.4,8,14,7.4,14,6.7v-3l2.7,2.7v10.4 L14,16.7L14,16.7z"})),r):24===n||"24"===n||"24px"===n?s().createElement(f.I,{width:n,height:n,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...u},i||(i=s().createElement("path",{d:"M20.8,7L17,3.2C16.9,3.1,16.7,3,16.5,3h-12C3.7,3,3,3.7,3,4.5v15C3,20.3,3.7,21,4.5,21h15c0.8,0,1.5-0.7,1.5-1.5v-12 C21,7.3,20.9,7.1,20.8,7z M9,4.5h6v3H9V4.5z M15,19.5H9v-6h6V19.5z M16.5,19.5v-6c0-0.8-0.7-1.5-1.5-1.5H9c-0.8,0-1.5,0.7-1.5,1.5v6 h-3v-15h3v3C7.5,8.3,8.2,9,9,9h6c0.8,0,1.5-0.7,1.5-1.5V4.8l3,3v11.7H16.5z"})),r):s().createElement(f.I,{width:n,height:n,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...u},c||(c=s().createElement("path",{d:"M27.71,9.29l-5-5A1,1,0,0,0,22,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V10A1,1,0,0,0,27.71,9.29ZM12,6h8v4H12Zm8,20H12V18h8Zm2,0V18a2,2,0,0,0-2-2H12a2,2,0,0,0-2,2v8H6V6h4v4a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V6.41l4,4V26Z"})),r)}))},2173:(t,e,r)=>{var n=r(5776),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},a=n.useState,i=n.useEffect,c=n.useLayoutEffect,u=n.useDebugValue;function s(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!o(t,r)}catch(t){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var r=e(),n=a({inst:{value:r,getSnapshot:e}}),o=n[0].inst,f=n[1];return c((function(){o.value=r,o.getSnapshot=e,s(o)&&f({inst:o})}),[t,r,e]),i((function(){return s(o)&&f({inst:o}),t((function(){s(o)&&f({inst:o})}))}),[t]),u(r),r};e.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:f},1374:(t,e,r)=>{t.exports=r(2173)},1890:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(7487);var o=r(6763),a=r(6776);function i(t){var e=this.__data__=new n.Z(t);this.size=e.size}i.prototype.clear=function(){this.__data__=new n.Z,this.size=0},i.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},i.prototype.get=function(t){return this.__data__.get(t)},i.prototype.has=function(t){return this.__data__.has(t)},i.prototype.set=function(t,e){var r=this.__data__;if(r instanceof n.Z){var i=r.__data__;if(!o.Z||i.length<199)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new a.Z(i)}return r.set(t,e),this.size=r.size,this};const c=i},4269:(t,e,r)=>{r.d(e,{Z:()=>n});const n=r(658).Z.Uint8Array},1602:(t,e,r)=>{r.d(e,{Z:()=>s});var n=r(4996),o=r(6575),a=r(5008),i=r(5313),c=r(8485),u=Object.prototype.hasOwnProperty;const s=function(t,e){var r=(0,o.Z)(t),s=!r&&(0,n.Z)(t),f=!r&&!s&&(0,a.Z)(t),l=!r&&!s&&!f&&(0,c.Z)(t),v=r||s||f||l,d=v?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],Z=d.length;for(var p in t)!e&&!u.call(t,p)||v&&("length"==p||f&&("offset"==p||"parent"==p)||l&&("buffer"==p||"byteLength"==p||"byteOffset"==p)||(0,i.Z)(p,Z))||d.push(p);return d}},9616:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(1250),o=r(8670),a=Object.prototype.hasOwnProperty;const i=function(t,e,r){var i=t[e];a.call(t,e)&&(0,o.Z)(i,r)&&(void 0!==r||e in t)||(0,n.Z)(t,e,r)}},1250:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(6684);const o=function(t,e,r){"__proto__"==e&&n.Z?(0,n.Z)(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},7106:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(6205),o=r(199);const a=function(t,e){for(var r=0,a=(e=(0,n.Z)(e,t)).length;null!=t&&r<a;)t=t[(0,o.Z)(e[r++])];return r&&r==a?t:void 0}},6449:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(4895),o=r(6575);const a=function(t,e,r){var a=e(t);return(0,o.Z)(t)?a:(0,n.Z)(a,r(t))}},8165:(t,e,r)=>{r.d(e,{Z:()=>V});var n=r(1890),o=r(7693);const a=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1};var i=r(2248);const c=function(t,e,r,n,c,u){var s=1&r,f=t.length,l=e.length;if(f!=l&&!(s&&l>f))return!1;var v=u.get(t),d=u.get(e);if(v&&d)return v==e&&d==t;var Z=-1,p=!0,b=2&r?new o.Z:void 0;for(u.set(t,e),u.set(e,t);++Z<f;){var h=t[Z],y=e[Z];if(n)var g=s?n(y,h,Z,e,t,u):n(h,y,Z,t,e,u);if(void 0!==g){if(g)continue;p=!1;break}if(b){if(!a(e,(function(t,e){if(!(0,i.Z)(b,e)&&(h===t||c(h,t,r,n,u)))return b.push(e)}))){p=!1;break}}else if(h!==y&&!c(h,y,r,n,u)){p=!1;break}}return u.delete(t),u.delete(e),p};var u=r(7851),s=r(4269),f=r(8670);const l=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r},v=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r};var d=u.Z?u.Z.prototype:void 0,Z=d?d.valueOf:void 0;var p=r(8924),b=Object.prototype.hasOwnProperty;var h=r(6812),y=r(6575),g=r(5008),j=r(8485),w="[object Arguments]",m="[object Array]",E="[object Object]",_=Object.prototype.hasOwnProperty;const A=function(t,e,r,o,a,i){var u=(0,y.Z)(t),d=(0,y.Z)(e),A=u?m:(0,h.Z)(t),O=d?m:(0,h.Z)(e),V=(A=A==w?E:A)==E,x=(O=O==w?E:O)==E,S=A==O;if(S&&(0,g.Z)(t)){if(!(0,g.Z)(e))return!1;u=!0,V=!1}if(S&&!V)return i||(i=new n.Z),u||(0,j.Z)(t)?c(t,e,r,o,a,i):function(t,e,r,n,o,a,i){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!a(new s.Z(t),new s.Z(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,f.Z)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var u=l;case"[object Set]":var d=1&n;if(u||(u=v),t.size!=e.size&&!d)return!1;var p=i.get(t);if(p)return p==e;n|=2,i.set(t,e);var b=c(u(t),u(e),n,o,a,i);return i.delete(t),b;case"[object Symbol]":if(Z)return Z.call(t)==Z.call(e)}return!1}(t,e,A,r,o,a,i);if(!(1&r)){var C=V&&_.call(t,"__wrapped__"),U=x&&_.call(e,"__wrapped__");if(C||U){var T=C?t.value():t,R=U?e.value():e;return i||(i=new n.Z),a(T,R,r,o,i)}}return!!S&&(i||(i=new n.Z),function(t,e,r,n,o,a){var i=1&r,c=(0,p.Z)(t),u=c.length;if(u!=(0,p.Z)(e).length&&!i)return!1;for(var s=u;s--;){var f=c[s];if(!(i?f in e:b.call(e,f)))return!1}var l=a.get(t),v=a.get(e);if(l&&v)return l==e&&v==t;var d=!0;a.set(t,e),a.set(e,t);for(var Z=i;++s<u;){var h=t[f=c[s]],y=e[f];if(n)var g=i?n(y,h,f,e,t,a):n(h,y,f,t,e,a);if(!(void 0===g?h===y||o(h,y,r,n,a):g)){d=!1;break}Z||(Z="constructor"==f)}if(d&&!Z){var j=t.constructor,w=e.constructor;j==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof j&&j instanceof j&&"function"==typeof w&&w instanceof w||(d=!1)}return a.delete(t),a.delete(e),d}(t,e,r,o,a,i))};var O=r(4897);const V=function t(e,r,n,o,a){return e===r||(null==e||null==r||!(0,O.Z)(e)&&!(0,O.Z)(r)?e!=e&&r!=r:A(e,r,n,o,t,a))}},3126:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(9494);const o=(0,r(6899).Z)(Object.keys,Object);var a=Object.prototype.hasOwnProperty;const i=function(t){if(!(0,n.Z)(t))return o(t);var e=[];for(var r in Object(t))a.call(t,r)&&"constructor"!=r&&e.push(r);return e}},6205:(t,e,r)=>{r.d(e,{Z:()=>d});var n=r(6575),o=r(5506),a=r(6776);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=t.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(i.Cache||a.Z),r}i.Cache=a.Z;var c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g;const s=(f=i((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(c,(function(t,r,n,o){e.push(n?o.replace(u,"$1"):r||t)})),e}),(function(t){return 500===l.size&&l.clear(),t})),l=f.cache,f);var f,l,v=r(131);const d=function(t,e){return(0,n.Z)(t)?t:(0,o.Z)(t,e)?[t]:s((0,v.Z)(t))}},8924:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(6449),o=r(7451),a=r(825);const i=function(t){return(0,n.Z)(t,a.Z,o.Z)}},1325:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(6449),o=r(1830),a=r(9809);const i=function(t){return(0,n.Z)(t,a.Z,o.Z)}},4003:(t,e,r)=>{r.d(e,{Z:()=>n});const n=(0,r(6899).Z)(Object.getPrototypeOf,Object)},7451:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(1940),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;const i=a?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,a=[];++r<n;){var i=t[r];e(i,r,t)&&(a[o++]=i)}return a}(a(t),(function(e){return o.call(t,e)})))}:n.Z},1830:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(4895),o=r(4003),a=r(7451),i=r(1940);const c=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)(0,n.Z)(e,(0,a.Z)(t)),t=(0,o.Z)(t);return e}:i.Z},6812:(t,e,r)=>{r.d(e,{Z:()=>E});var n=r(5441),o=r(658);const a=(0,n.Z)(o.Z,"DataView");var i=r(6763);const c=(0,n.Z)(o.Z,"Promise"),u=(0,n.Z)(o.Z,"Set"),s=(0,n.Z)(o.Z,"WeakMap");var f=r(1258),l=r(9441),v="[object Map]",d="[object Promise]",Z="[object Set]",p="[object WeakMap]",b="[object DataView]",h=(0,l.Z)(a),y=(0,l.Z)(i.Z),g=(0,l.Z)(c),j=(0,l.Z)(u),w=(0,l.Z)(s),m=f.Z;(a&&m(new a(new ArrayBuffer(1)))!=b||i.Z&&m(new i.Z)!=v||c&&m(c.resolve())!=d||u&&m(new u)!=Z||s&&m(new s)!=p)&&(m=function(t){var e=(0,f.Z)(t),r="[object Object]"==e?t.constructor:void 0,n=r?(0,l.Z)(r):"";if(n)switch(n){case h:return b;case y:return v;case g:return d;case j:return Z;case w:return p}return e});const E=m},5313:(t,e,r)=>{r.d(e,{Z:()=>o});var n=/^(?:0|[1-9]\d*)$/;const o=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},5506:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(6575),o=r(54),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;const c=function(t,e){if((0,n.Z)(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!(0,o.Z)(t))||i.test(t)||!a.test(t)||null!=e&&t in Object(e)}},9494:(t,e,r)=>{r.d(e,{Z:()=>o});var n=Object.prototype;const o=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},9801:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(5852),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof module&&module&&!module.nodeType&&module,i=a&&a.exports===o&&n.Z.process;const c=function(){try{return a&&a.require&&a.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}()},6899:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t,e){return function(r){return t(e(r))}}},199:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(54);const o=function(t){if("string"==typeof t||(0,n.Z)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},839:(t,e,r)=>{r.d(e,{Z:()=>$});var n=r(1890);var o=r(9616),a=r(1250);const i=function(t,e,r,n){var i=!r;r||(r={});for(var c=-1,u=e.length;++c<u;){var s=e[c],f=n?n(r[s],t[s],s,r,t):void 0;void 0===f&&(f=t[s]),i?(0,a.Z)(r,s,f):(0,o.Z)(r,s,f)}return r};var c=r(825);var u=r(9809);var s=r(658),f="object"==typeof exports&&exports&&!exports.nodeType&&exports,l=f&&"object"==typeof module&&module&&!module.nodeType&&module,v=l&&l.exports===f?s.Z.Buffer:void 0,d=v?v.allocUnsafe:void 0;var Z=r(7451);var p=r(1830);var b=r(8924),h=r(1325),y=r(6812),g=Object.prototype.hasOwnProperty;var j=r(4269);const w=function(t){var e=new t.constructor(t.byteLength);return new j.Z(e).set(new j.Z(t)),e};var m=/\w*$/;var E=r(7851),_=E.Z?E.Z.prototype:void 0,A=_?_.valueOf:void 0;const O=function(t,e,r){var n,o,a,i=t.constructor;switch(e){case"[object ArrayBuffer]":return w(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return function(t,e){var r=e?w(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var r=e?w(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,r);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return(a=new(o=t).constructor(o.source,m.exec(o))).lastIndex=o.lastIndex,a;case"[object Symbol]":return n=t,A?Object(A.call(n)):{}}};var V=r(7275),x=Object.create;const S=function(){function t(){}return function(e){if(!(0,V.Z)(e))return{};if(x)return x(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();var C=r(4003),U=r(9494);var T=r(6575),R=r(5008),I=r(4897);var M=r(7133),L=r(9801),z=L.Z&&L.Z.isMap;const H=z?(0,M.Z)(z):function(t){return(0,I.Z)(t)&&"[object Map]"==(0,y.Z)(t)};var k=L.Z&&L.Z.isSet;const D=k?(0,M.Z)(k):function(t){return(0,I.Z)(t)&&"[object Set]"==(0,y.Z)(t)};var P="[object Arguments]",N="[object Function]",B="[object Object]",F={};F[P]=F["[object Array]"]=F["[object ArrayBuffer]"]=F["[object DataView]"]=F["[object Boolean]"]=F["[object Date]"]=F["[object Float32Array]"]=F["[object Float64Array]"]=F["[object Int8Array]"]=F["[object Int16Array]"]=F["[object Int32Array]"]=F["[object Map]"]=F["[object Number]"]=F[B]=F["[object RegExp]"]=F["[object Set]"]=F["[object String]"]=F["[object Symbol]"]=F["[object Uint8Array]"]=F["[object Uint8ClampedArray]"]=F["[object Uint16Array]"]=F["[object Uint32Array]"]=!0,F["[object Error]"]=F[N]=F["[object WeakMap]"]=!1;const W=function t(e,r,a,s,f,l){var v,j=1&r,w=2&r,m=4&r;if(a&&(v=f?a(e,s,f,l):a(e)),void 0!==v)return v;if(!(0,V.Z)(e))return e;var E=(0,T.Z)(e);if(E){if(v=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&g.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(e),!j)return function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(e,v)}else{var _=(0,y.Z)(e),A=_==N||"[object GeneratorFunction]"==_;if((0,R.Z)(e))return function(t,e){if(e)return t.slice();var r=t.length,n=d?d(r):new t.constructor(r);return t.copy(n),n}(e,j);if(_==B||_==P||A&&!f){if(v=w||A?{}:function(t){return"function"!=typeof t.constructor||(0,U.Z)(t)?{}:S((0,C.Z)(t))}(e),!j)return w?function(t,e){return i(t,(0,p.Z)(t),e)}(e,function(t,e){return t&&i(e,(0,u.Z)(e),t)}(v,e)):function(t,e){return i(t,(0,Z.Z)(t),e)}(e,function(t,e){return t&&i(e,(0,c.Z)(e),t)}(v,e))}else{if(!F[_])return f?e:{};v=O(e,_,j)}}l||(l=new n.Z);var x=l.get(e);if(x)return x;l.set(e,v),D(e)?e.forEach((function(n){v.add(t(n,r,a,n,e,l))})):H(e)&&e.forEach((function(n,o){v.set(o,t(n,r,a,o,e,l))}));var I=m?w?h.Z:b.Z:w?u.Z:c.Z,M=E?void 0:I(e);return function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););}(M||e,(function(n,i){M&&(n=e[i=n]),(0,o.Z)(v,i,t(n,r,a,i,e,l))})),v},$=function(t){return W(t,5)}},744:(t,e,r)=>{r.d(e,{Z:()=>h});var n=r(7275),o=r(658);const a=function(){return o.Z.Date.now()};var i=/\s/;var c=/^\s+/;const u=function(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&i.test(t.charAt(e)););return e}(t)+1).replace(c,""):t};var s=r(54),f=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,v=/^0o[0-7]+$/i,d=parseInt;const Z=function(t){if("number"==typeof t)return t;if((0,s.Z)(t))return NaN;if((0,n.Z)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,n.Z)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=u(t);var r=l.test(t);return r||v.test(t)?d(t.slice(2),r?2:8):f.test(t)?NaN:+t};var p=Math.max,b=Math.min;const h=function(t,e,r){var o,i,c,u,s,f,l=0,v=!1,d=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var r=o,n=i;return o=i=void 0,l=e,u=t.apply(n,r)}function g(t){var r=t-f;return void 0===f||r>=e||r<0||d&&t-l>=c}function j(){var t=a();if(g(t))return w(t);s=setTimeout(j,function(t){var r=e-(t-f);return d?b(r,c-(t-l)):r}(t))}function w(t){return s=void 0,h&&o?y(t):(o=i=void 0,u)}function m(){var t=a(),r=g(t);if(o=arguments,i=this,f=t,r){if(void 0===s)return function(t){return l=t,s=setTimeout(j,e),v?y(t):u}(f);if(d)return clearTimeout(s),s=setTimeout(j,e),y(f)}return void 0===s&&(s=setTimeout(j,e)),u}return e=Z(e)||0,(0,n.Z)(r)&&(v=!!r.leading,c=(d="maxWait"in r)?p(Z(r.maxWait)||0,e):c,h="trailing"in r?!!r.trailing:h),m.cancel=function(){void 0!==s&&clearTimeout(s),l=0,o=f=i=s=void 0},m.flush=function(){return void 0===s?u:w(a())},m}},5008:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(658);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof module&&module&&!module.nodeType&&module,i=a&&a.exports===o?n.Z.Buffer:void 0;const c=(i?i.isBuffer:void 0)||function(){return!1}},8403:(t,e,r)=>{r.d(e,{Z:()=>v});var n=r(3126),o=r(6812),a=r(4996),i=r(6575),c=r(6905),u=r(5008),s=r(9494),f=r(8485),l=Object.prototype.hasOwnProperty;const v=function(t){if(null==t)return!0;if((0,c.Z)(t)&&((0,i.Z)(t)||"string"==typeof t||"function"==typeof t.splice||(0,u.Z)(t)||(0,f.Z)(t)||(0,a.Z)(t)))return!t.length;var e=(0,o.Z)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,s.Z)(t))return!(0,n.Z)(t).length;for(var r in t)if(l.call(t,r))return!1;return!0}},988:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(8165);const o=function(t,e){return(0,n.Z)(t,e)}},54:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(1258),o=r(4897);const a=function(t){return"symbol"==typeof t||(0,o.Z)(t)&&"[object Symbol]"==(0,n.Z)(t)}},8485:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(1258),o=r(3492),a=r(4897),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1;var c=r(7133),u=r(9801),s=u.Z&&u.Z.isTypedArray;const f=s?(0,c.Z)(s):function(t){return(0,a.Z)(t)&&(0,o.Z)(t.length)&&!!i[(0,n.Z)(t)]}},825:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(1602),o=r(3126),a=r(6905);const i=function(t){return(0,a.Z)(t)?(0,n.Z)(t):(0,o.Z)(t)}},9809:(t,e,r)=>{r.d(e,{Z:()=>s});var n=r(1602),o=r(7275),a=r(9494);var i=Object.prototype.hasOwnProperty;const c=function(t){if(!(0,o.Z)(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=(0,a.Z)(t),r=[];for(var n in t)("constructor"!=n||!e&&i.call(t,n))&&r.push(n);return r};var u=r(6905);const s=function(t){return(0,u.Z)(t)?(0,n.Z)(t,!0):c(t)}},9340:(t,e,r)=>{r.d(e,{Z:()=>V});var n=r(2363),o=r(1890),a=r(8165);var i=r(7275);const c=function(t){return t==t&&!(0,i.Z)(t)};var u=r(825);const s=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}},f=function(t){var e=function(t){for(var e=(0,u.Z)(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,c(o)]}return e}(t);return 1==e.length&&e[0][2]?s(e[0][0],e[0][1]):function(r){return r===t||function(t,e,r,n){var i=r.length,c=i,u=!n;if(null==t)return!c;for(t=Object(t);i--;){var s=r[i];if(u&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<c;){var f=(s=r[i])[0],l=t[f],v=s[1];if(u&&s[2]){if(void 0===l&&!(f in t))return!1}else{var d=new o.Z;if(n)var Z=n(l,v,f,t,e,d);if(!(void 0===Z?(0,a.Z)(v,l,3,n,d):Z))return!1}}return!0}(r,t,e)}};var l=r(7106);const v=function(t,e){return null!=t&&e in Object(t)};var d=r(6205),Z=r(4996),p=r(6575),b=r(5313),h=r(3492),y=r(199);const g=function(t,e){return null!=t&&function(t,e,r){for(var n=-1,o=(e=(0,d.Z)(e,t)).length,a=!1;++n<o;){var i=(0,y.Z)(e[n]);if(!(a=null!=t&&r(t,i)))break;t=t[i]}return a||++n!=o?a:!!(o=null==t?0:t.length)&&(0,h.Z)(o)&&(0,b.Z)(i,o)&&((0,p.Z)(t)||(0,Z.Z)(t))}(t,e,v)};var j=r(5506);const w=function(t,e){return(0,j.Z)(t)&&c(e)?s((0,y.Z)(t),e):function(r){var n=function(t,e,r){var n=null==t?void 0:(0,l.Z)(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?g(r,t):(0,a.Z)(e,n,3)}};var m=r(1116);const E=function(t){return(0,j.Z)(t)?(e=(0,y.Z)(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return(0,l.Z)(e,t)}}(t);var e};var _=r(9616);const A=function(t,e,r,n){if(!(0,i.Z)(t))return t;for(var o=-1,a=(e=(0,d.Z)(e,t)).length,c=a-1,u=t;null!=u&&++o<a;){var s=(0,y.Z)(e[o]),f=r;if("__proto__"===s||"constructor"===s||"prototype"===s)return t;if(o!=c){var l=u[s];void 0===(f=n?n(l,s,u):void 0)&&(f=(0,i.Z)(l)?l:(0,b.Z)(e[o+1])?[]:{})}(0,_.Z)(u,s,f),u=u[s]}return t};var O=r(1325);const V=function(t,e){if(null==t)return{};var r,o=(0,n.Z)((0,O.Z)(t),(function(t){return[t]}));return e="function"==typeof(r=e)?r:null==r?m.Z:"object"==typeof r?(0,p.Z)(r)?w(r[0],r[1]):f(r):E(r),function(t,e,r){for(var n=-1,o=e.length,a={};++n<o;){var i=e[n],c=(0,l.Z)(t,i);r(c,i)&&A(a,(0,d.Z)(i,t),c)}return a}(t,o,(function(t,r){return e(t,r[0])}))}},1940:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(){return[]}},131:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(7851),o=r(2363),a=r(6575),i=r(54),c=n.Z?n.Z.prototype:void 0,u=c?c.toString:void 0;const s=function t(e){if("string"==typeof e)return e;if((0,a.Z)(e))return(0,o.Z)(e,t)+"";if((0,i.Z)(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r},f=function(t){return null==t?"":s(t)}},7474:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(131),o=0;const a=function(t){var e=++o;return(0,n.Z)(t)+e}},5751:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(6205);var o=r(7106);const a=function(t,e){return e.length<2?t:(0,o.Z)(t,function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var a=Array(o);++n<o;)a[n]=t[n+e];return a}(e,0,-1))};var i=r(199);const c=function(t,e){return null==t||function(t,e){return e=(0,n.Z)(e,t),null==(t=a(t,e))||delete t[(0,i.Z)((r=e,o=null==r?0:r.length,o?r[o-1]:void 0))];var r,o}(t,e)}},4126:(t,e,r)=>{r.d(e,{ZP:()=>u});var n=r(5776),o=r(1374),a=r(1697);const i=n.use||(t=>{if("pending"===t.status)throw t;if("fulfilled"===t.status)return t.value;throw"rejected"===t.status?t.reason:(t.status="pending",t.then((e=>{t.status="fulfilled",t.value=e}),(e=>{t.status="rejected",t.reason=e})),t)}),c={dedupe:!0},u=(a.OBJECT.defineProperty(a.SWRConfig,"defaultValue",{value:a.defaultConfig}),(0,a.withArgs)(((t,e,r)=>{const{cache:u,compare:s,suspense:f,fallbackData:l,revalidateOnMount:v,revalidateIfStale:d,refreshInterval:Z,refreshWhenHidden:p,refreshWhenOffline:b,keepPreviousData:h}=r,[y,g,j,w]=a.SWRGlobalState.get(u),[m,E]=(0,a.serialize)(t),_=(0,n.useRef)(!1),A=(0,n.useRef)(!1),O=(0,n.useRef)(m),V=(0,n.useRef)(e),x=(0,n.useRef)(r),S=()=>x.current,C=()=>S().isVisible()&&S().isOnline(),[U,T,R,I]=(0,a.createCacheHelper)(u,m),M=(0,n.useRef)({}).current,L=(0,a.isUndefined)(l)?r.fallback[m]:l,z=(t,e)=>{for(const r in M){const n=r;if("data"===n){if(!s(t[n],e[n])){if(!(0,a.isUndefined)(t[n]))return!1;if(!s($,e[n]))return!1}}else if(e[n]!==t[n])return!1}return!0},H=(0,n.useMemo)((()=>{const t=!!m&&!!e&&((0,a.isUndefined)(v)?!S().isPaused()&&!f&&(!!(0,a.isUndefined)(d)||d):v),r=e=>{const r=(0,a.mergeObjects)(e);return delete r._k,t?{isValidating:!0,isLoading:!0,...r}:r},n=U(),o=I(),i=r(n),c=n===o?i:r(o);let u=i;return[()=>{const t=r(U());return z(t,u)?(u.data=t.data,u.isLoading=t.isLoading,u.isValidating=t.isValidating,u.error=t.error,u):(u=t,t)},()=>c]}),[u,m]),k=(0,o.useSyncExternalStore)((0,n.useCallback)((t=>R(m,((e,r)=>{z(r,e)||t()}))),[u,m]),H[0],H[1]),D=!_.current,P=y[m]&&y[m].length>0,N=k.data,B=(0,a.isUndefined)(N)?L:N,F=k.error,W=(0,n.useRef)(B),$=h?(0,a.isUndefined)(N)?W.current:N:B,G=!(P&&!(0,a.isUndefined)(F))&&(D&&!(0,a.isUndefined)(v)?v:!S().isPaused()&&(f?!(0,a.isUndefined)(B)&&d:(0,a.isUndefined)(B)||d)),q=!!(m&&e&&D&&G),Y=(0,a.isUndefined)(k.isValidating)?q:k.isValidating,J=(0,a.isUndefined)(k.isLoading)?q:k.isLoading,K=(0,n.useCallback)((async t=>{const e=V.current;if(!m||!e||A.current||S().isPaused())return!1;let n,o,i=!0;const c=t||{},u=!j[m]||!c.dedupe,f=()=>a.IS_REACT_LEGACY?!A.current&&m===O.current&&_.current:m===O.current,l={isValidating:!1,isLoading:!1},v=()=>{T(l)},d=()=>{const t=j[m];t&&t[1]===o&&delete j[m]},Z={isValidating:!0};(0,a.isUndefined)(U().data)&&(Z.isLoading=!0);try{if(u&&(T(Z),r.loadingTimeout&&(0,a.isUndefined)(U().data)&&setTimeout((()=>{i&&f()&&S().onLoadingSlow(m,r)}),r.loadingTimeout),j[m]=[e(E),(0,a.getTimestamp)()]),[n,o]=j[m],n=await n,u&&setTimeout(d,r.dedupingInterval),!j[m]||j[m][1]!==o)return u&&f()&&S().onDiscarded(m),!1;l.error=a.UNDEFINED;const t=g[m];if(!(0,a.isUndefined)(t)&&(o<=t[0]||o<=t[1]||0===t[1]))return v(),u&&f()&&S().onDiscarded(m),!1;const c=U().data;l.data=s(c,n)?c:n,u&&f()&&S().onSuccess(n,m,r)}catch(t){d();const e=S(),{shouldRetryOnError:r}=e;e.isPaused()||(l.error=t,u&&f()&&(e.onError(t,m,e),(!0===r||(0,a.isFunction)(r)&&r(t))&&C()&&e.onErrorRetry(t,m,e,(t=>{const e=y[m];e&&e[0]&&e[0](a.revalidateEvents.ERROR_REVALIDATE_EVENT,t)}),{retryCount:(c.retryCount||0)+1,dedupe:!0})))}return i=!1,v(),!0}),[m,u]),Q=(0,n.useCallback)(((...t)=>(0,a.internalMutate)(u,O.current,...t)),[]);if((0,a.useIsomorphicLayoutEffect)((()=>{V.current=e,x.current=r,(0,a.isUndefined)(N)||(W.current=N)})),(0,a.useIsomorphicLayoutEffect)((()=>{if(!m)return;const t=K.bind(a.UNDEFINED,c);let e=0;const r=(0,a.subscribeCallback)(m,y,((r,n={})=>{if(r==a.revalidateEvents.FOCUS_EVENT){const r=Date.now();S().revalidateOnFocus&&r>e&&C()&&(e=r+S().focusThrottleInterval,t())}else if(r==a.revalidateEvents.RECONNECT_EVENT)S().revalidateOnReconnect&&C()&&t();else{if(r==a.revalidateEvents.MUTATE_EVENT)return K();if(r==a.revalidateEvents.ERROR_REVALIDATE_EVENT)return K(n)}}));return A.current=!1,O.current=m,_.current=!0,T({_k:E}),G&&((0,a.isUndefined)(B)||a.IS_SERVER?t():(0,a.rAF)(t)),()=>{A.current=!0,r()}}),[m]),(0,a.useIsomorphicLayoutEffect)((()=>{let t;function e(){const e=(0,a.isFunction)(Z)?Z(U().data):Z;e&&-1!==t&&(t=setTimeout(r,e))}function r(){U().error||!p&&!S().isVisible()||!b&&!S().isOnline()?e():K(c).then(e)}return e(),()=>{t&&(clearTimeout(t),t=-1)}}),[Z,p,b,m]),(0,n.useDebugValue)($),f&&(0,a.isUndefined)(B)&&m){if(!a.IS_REACT_LEGACY&&a.IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");V.current=e,x.current=r,A.current=!1;const t=w[m];if(!(0,a.isUndefined)(t)){const e=Q(t);i(e)}if(!(0,a.isUndefined)(F))throw F;{const t=K(c);(0,a.isUndefined)($)||(t.status="fulfilled",t.value=!0),i(t)}}return{mutate:Q,get data(){return M.data=!0,$},get error(){return M.error=!0,F},get isValidating(){return M.isValidating=!0,Y},get isLoading(){return M.isLoading=!0,J}}})))}}]);
|
|
2
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_implementer_tools_app=globalThis.webpackChunk_openmrs_esm_implementer_tools_app||[]).push([[329],{8696:(t,e,r)=>{r.d(e,{AG:()=>l,vc:()=>v});var n,o,a,i,c,u=r(5776),s=r.n(u),f=r(6248);const l=s().forwardRef((function(t,e){let{children:r,size:o=16,...a}=t;return s().createElement(f.I,{width:o,height:o,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...a},n||(n=s().createElement("path",{d:"M18,28A12,12,0,1,0,6,16v6.2L2.4,18.6,1,20l6,6,6-6-1.4-1.4L8,22.2V16H8A10,10,0,1,1,18,26Z"})),r)})),v=s().forwardRef((function(t,e){let{children:r,size:n=16,...u}=t;return 16===n||"16"===n||"16px"===n?s().createElement(f.I,{width:n,height:n,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...u},o||(o=s().createElement("path",{d:"M13.9,4.6l-2.5-2.5C11.3,2.1,11.1,2,11,2H3C2.4,2,2,2.4,2,3v10c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1V5 C14,4.9,13.9,4.7,13.9,4.6z M6,3h4v2H6V3z M10,13H6V9h4V13z M11,13V9c0-0.6-0.4-1-1-1H6C5.4,8,5,8.4,5,9v4H3V3h2v2c0,0.6,0.4,1,1,1 h4c0.6,0,1-0.4,1-1V3.2l2,2V13H11z"})),r):20===n||"20"===n||"20px"===n?s().createElement(f.I,{width:n,height:n,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...u},a||(a=s().createElement("path",{d:"M17.8,5.5l-3.3-3.3C14.3,2.1,14.2,2,14,2H3.3C2.6,2,2,2.6,2,3.3v13.3C2,17.4,2.6,18,3.3,18h13.3c0.7,0,1.4-0.5,1.4-1.2V6.1 C18,5.7,17.9,5.7,17.8,5.5z M7.3,3.3h5.3v3.3H7.3V3.3z M12.7,16.7H7.3v-5.3h5.3L12.7,16.7L12.7,16.7z M14,16.7v-5.3 c0-0.7-0.6-1.3-1.3-1.3H7.3C6.6,10,6,10.6,6,11.3v5.3H3.3V3.3H6v3.3C6,7.4,6.6,8,7.3,8h5.3C13.4,8,14,7.4,14,6.7v-3l2.7,2.7v10.4 L14,16.7L14,16.7z"})),r):24===n||"24"===n||"24px"===n?s().createElement(f.I,{width:n,height:n,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...u},i||(i=s().createElement("path",{d:"M20.8,7L17,3.2C16.9,3.1,16.7,3,16.5,3h-12C3.7,3,3,3.7,3,4.5v15C3,20.3,3.7,21,4.5,21h15c0.8,0,1.5-0.7,1.5-1.5v-12 C21,7.3,20.9,7.1,20.8,7z M9,4.5h6v3H9V4.5z M15,19.5H9v-6h6V19.5z M16.5,19.5v-6c0-0.8-0.7-1.5-1.5-1.5H9c-0.8,0-1.5,0.7-1.5,1.5v6 h-3v-15h3v3C7.5,8.3,8.2,9,9,9h6c0.8,0,1.5-0.7,1.5-1.5V4.8l3,3v11.7H16.5z"})),r):s().createElement(f.I,{width:n,height:n,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...u},c||(c=s().createElement("path",{d:"M27.71,9.29l-5-5A1,1,0,0,0,22,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V10A1,1,0,0,0,27.71,9.29ZM12,6h8v4H12Zm8,20H12V18h8Zm2,0V18a2,2,0,0,0-2-2H12a2,2,0,0,0-2,2v8H6V6h4v4a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V6.41l4,4V26Z"})),r)}))},2173:(t,e,r)=>{var n=r(5776),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},a=n.useState,i=n.useEffect,c=n.useLayoutEffect,u=n.useDebugValue;function s(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!o(t,r)}catch(t){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var r=e(),n=a({inst:{value:r,getSnapshot:e}}),o=n[0].inst,f=n[1];return c((function(){o.value=r,o.getSnapshot=e,s(o)&&f({inst:o})}),[t,r,e]),i((function(){return s(o)&&f({inst:o}),t((function(){s(o)&&f({inst:o})}))}),[t]),u(r),r};e.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:f},1374:(t,e,r)=>{t.exports=r(2173)},1890:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(7487);var o=r(6763),a=r(6776);function i(t){var e=this.__data__=new n.Z(t);this.size=e.size}i.prototype.clear=function(){this.__data__=new n.Z,this.size=0},i.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},i.prototype.get=function(t){return this.__data__.get(t)},i.prototype.has=function(t){return this.__data__.has(t)},i.prototype.set=function(t,e){var r=this.__data__;if(r instanceof n.Z){var i=r.__data__;if(!o.Z||i.length<199)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new a.Z(i)}return r.set(t,e),this.size=r.size,this};const c=i},4269:(t,e,r)=>{r.d(e,{Z:()=>n});const n=r(658).Z.Uint8Array},1602:(t,e,r)=>{r.d(e,{Z:()=>s});var n=r(4996),o=r(6575),a=r(5008),i=r(5313),c=r(8485),u=Object.prototype.hasOwnProperty;const s=function(t,e){var r=(0,o.Z)(t),s=!r&&(0,n.Z)(t),f=!r&&!s&&(0,a.Z)(t),l=!r&&!s&&!f&&(0,c.Z)(t),v=r||s||f||l,d=v?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],Z=d.length;for(var p in t)!e&&!u.call(t,p)||v&&("length"==p||f&&("offset"==p||"parent"==p)||l&&("buffer"==p||"byteLength"==p||"byteOffset"==p)||(0,i.Z)(p,Z))||d.push(p);return d}},9616:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(1250),o=r(8670),a=Object.prototype.hasOwnProperty;const i=function(t,e,r){var i=t[e];a.call(t,e)&&(0,o.Z)(i,r)&&(void 0!==r||e in t)||(0,n.Z)(t,e,r)}},1250:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(6684);const o=function(t,e,r){"__proto__"==e&&n.Z?(0,n.Z)(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},7106:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(6205),o=r(199);const a=function(t,e){for(var r=0,a=(e=(0,n.Z)(e,t)).length;null!=t&&r<a;)t=t[(0,o.Z)(e[r++])];return r&&r==a?t:void 0}},6449:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(4895),o=r(6575);const a=function(t,e,r){var a=e(t);return(0,o.Z)(t)?a:(0,n.Z)(a,r(t))}},8165:(t,e,r)=>{r.d(e,{Z:()=>V});var n=r(1890),o=r(7693);const a=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1};var i=r(2248);const c=function(t,e,r,n,c,u){var s=1&r,f=t.length,l=e.length;if(f!=l&&!(s&&l>f))return!1;var v=u.get(t),d=u.get(e);if(v&&d)return v==e&&d==t;var Z=-1,p=!0,b=2&r?new o.Z:void 0;for(u.set(t,e),u.set(e,t);++Z<f;){var h=t[Z],y=e[Z];if(n)var g=s?n(y,h,Z,e,t,u):n(h,y,Z,t,e,u);if(void 0!==g){if(g)continue;p=!1;break}if(b){if(!a(e,(function(t,e){if(!(0,i.Z)(b,e)&&(h===t||c(h,t,r,n,u)))return b.push(e)}))){p=!1;break}}else if(h!==y&&!c(h,y,r,n,u)){p=!1;break}}return u.delete(t),u.delete(e),p};var u=r(7851),s=r(4269),f=r(8670);const l=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r},v=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r};var d=u.Z?u.Z.prototype:void 0,Z=d?d.valueOf:void 0;var p=r(8924),b=Object.prototype.hasOwnProperty;var h=r(6812),y=r(6575),g=r(5008),j=r(8485),w="[object Arguments]",m="[object Array]",E="[object Object]",_=Object.prototype.hasOwnProperty;const A=function(t,e,r,o,a,i){var u=(0,y.Z)(t),d=(0,y.Z)(e),A=u?m:(0,h.Z)(t),O=d?m:(0,h.Z)(e),V=(A=A==w?E:A)==E,x=(O=O==w?E:O)==E,S=A==O;if(S&&(0,g.Z)(t)){if(!(0,g.Z)(e))return!1;u=!0,V=!1}if(S&&!V)return i||(i=new n.Z),u||(0,j.Z)(t)?c(t,e,r,o,a,i):function(t,e,r,n,o,a,i){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!a(new s.Z(t),new s.Z(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,f.Z)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var u=l;case"[object Set]":var d=1&n;if(u||(u=v),t.size!=e.size&&!d)return!1;var p=i.get(t);if(p)return p==e;n|=2,i.set(t,e);var b=c(u(t),u(e),n,o,a,i);return i.delete(t),b;case"[object Symbol]":if(Z)return Z.call(t)==Z.call(e)}return!1}(t,e,A,r,o,a,i);if(!(1&r)){var C=V&&_.call(t,"__wrapped__"),U=x&&_.call(e,"__wrapped__");if(C||U){var T=C?t.value():t,R=U?e.value():e;return i||(i=new n.Z),a(T,R,r,o,i)}}return!!S&&(i||(i=new n.Z),function(t,e,r,n,o,a){var i=1&r,c=(0,p.Z)(t),u=c.length;if(u!=(0,p.Z)(e).length&&!i)return!1;for(var s=u;s--;){var f=c[s];if(!(i?f in e:b.call(e,f)))return!1}var l=a.get(t),v=a.get(e);if(l&&v)return l==e&&v==t;var d=!0;a.set(t,e),a.set(e,t);for(var Z=i;++s<u;){var h=t[f=c[s]],y=e[f];if(n)var g=i?n(y,h,f,e,t,a):n(h,y,f,t,e,a);if(!(void 0===g?h===y||o(h,y,r,n,a):g)){d=!1;break}Z||(Z="constructor"==f)}if(d&&!Z){var j=t.constructor,w=e.constructor;j==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof j&&j instanceof j&&"function"==typeof w&&w instanceof w||(d=!1)}return a.delete(t),a.delete(e),d}(t,e,r,o,a,i))};var O=r(4897);const V=function t(e,r,n,o,a){return e===r||(null==e||null==r||!(0,O.Z)(e)&&!(0,O.Z)(r)?e!=e&&r!=r:A(e,r,n,o,t,a))}},3126:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(9494);const o=(0,r(6899).Z)(Object.keys,Object);var a=Object.prototype.hasOwnProperty;const i=function(t){if(!(0,n.Z)(t))return o(t);var e=[];for(var r in Object(t))a.call(t,r)&&"constructor"!=r&&e.push(r);return e}},6205:(t,e,r)=>{r.d(e,{Z:()=>d});var n=r(6575),o=r(5506),a=r(6776);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=t.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(i.Cache||a.Z),r}i.Cache=a.Z;var c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g;const s=(f=i((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(c,(function(t,r,n,o){e.push(n?o.replace(u,"$1"):r||t)})),e}),(function(t){return 500===l.size&&l.clear(),t})),l=f.cache,f);var f,l,v=r(131);const d=function(t,e){return(0,n.Z)(t)?t:(0,o.Z)(t,e)?[t]:s((0,v.Z)(t))}},8924:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(6449),o=r(7451),a=r(825);const i=function(t){return(0,n.Z)(t,a.Z,o.Z)}},1325:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(6449),o=r(1830),a=r(9809);const i=function(t){return(0,n.Z)(t,a.Z,o.Z)}},4003:(t,e,r)=>{r.d(e,{Z:()=>n});const n=(0,r(6899).Z)(Object.getPrototypeOf,Object)},7451:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(1940),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;const i=a?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,a=[];++r<n;){var i=t[r];e(i,r,t)&&(a[o++]=i)}return a}(a(t),(function(e){return o.call(t,e)})))}:n.Z},1830:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(4895),o=r(4003),a=r(7451),i=r(1940);const c=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)(0,n.Z)(e,(0,a.Z)(t)),t=(0,o.Z)(t);return e}:i.Z},6812:(t,e,r)=>{r.d(e,{Z:()=>E});var n=r(5441),o=r(658);const a=(0,n.Z)(o.Z,"DataView");var i=r(6763);const c=(0,n.Z)(o.Z,"Promise"),u=(0,n.Z)(o.Z,"Set"),s=(0,n.Z)(o.Z,"WeakMap");var f=r(1258),l=r(9441),v="[object Map]",d="[object Promise]",Z="[object Set]",p="[object WeakMap]",b="[object DataView]",h=(0,l.Z)(a),y=(0,l.Z)(i.Z),g=(0,l.Z)(c),j=(0,l.Z)(u),w=(0,l.Z)(s),m=f.Z;(a&&m(new a(new ArrayBuffer(1)))!=b||i.Z&&m(new i.Z)!=v||c&&m(c.resolve())!=d||u&&m(new u)!=Z||s&&m(new s)!=p)&&(m=function(t){var e=(0,f.Z)(t),r="[object Object]"==e?t.constructor:void 0,n=r?(0,l.Z)(r):"";if(n)switch(n){case h:return b;case y:return v;case g:return d;case j:return Z;case w:return p}return e});const E=m},5313:(t,e,r)=>{r.d(e,{Z:()=>o});var n=/^(?:0|[1-9]\d*)$/;const o=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},5506:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(6575),o=r(54),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;const c=function(t,e){if((0,n.Z)(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!(0,o.Z)(t))||i.test(t)||!a.test(t)||null!=e&&t in Object(e)}},9494:(t,e,r)=>{r.d(e,{Z:()=>o});var n=Object.prototype;const o=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},9801:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(5852),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof module&&module&&!module.nodeType&&module,i=a&&a.exports===o&&n.Z.process;const c=function(){try{return a&&a.require&&a.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}()},6899:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t,e){return function(r){return t(e(r))}}},199:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(54);const o=function(t){if("string"==typeof t||(0,n.Z)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},839:(t,e,r)=>{r.d(e,{Z:()=>$});var n=r(1890);var o=r(9616),a=r(1250);const i=function(t,e,r,n){var i=!r;r||(r={});for(var c=-1,u=e.length;++c<u;){var s=e[c],f=n?n(r[s],t[s],s,r,t):void 0;void 0===f&&(f=t[s]),i?(0,a.Z)(r,s,f):(0,o.Z)(r,s,f)}return r};var c=r(825);var u=r(9809);var s=r(658),f="object"==typeof exports&&exports&&!exports.nodeType&&exports,l=f&&"object"==typeof module&&module&&!module.nodeType&&module,v=l&&l.exports===f?s.Z.Buffer:void 0,d=v?v.allocUnsafe:void 0;var Z=r(7451);var p=r(1830);var b=r(8924),h=r(1325),y=r(6812),g=Object.prototype.hasOwnProperty;var j=r(4269);const w=function(t){var e=new t.constructor(t.byteLength);return new j.Z(e).set(new j.Z(t)),e};var m=/\w*$/;var E=r(7851),_=E.Z?E.Z.prototype:void 0,A=_?_.valueOf:void 0;const O=function(t,e,r){var n,o,a,i=t.constructor;switch(e){case"[object ArrayBuffer]":return w(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return function(t,e){var r=e?w(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var r=e?w(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,r);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return(a=new(o=t).constructor(o.source,m.exec(o))).lastIndex=o.lastIndex,a;case"[object Symbol]":return n=t,A?Object(A.call(n)):{}}};var V=r(7275),x=Object.create;const S=function(){function t(){}return function(e){if(!(0,V.Z)(e))return{};if(x)return x(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();var C=r(4003),U=r(9494);var T=r(6575),R=r(5008),I=r(4897);var M=r(7133),L=r(9801),z=L.Z&&L.Z.isMap;const H=z?(0,M.Z)(z):function(t){return(0,I.Z)(t)&&"[object Map]"==(0,y.Z)(t)};var k=L.Z&&L.Z.isSet;const D=k?(0,M.Z)(k):function(t){return(0,I.Z)(t)&&"[object Set]"==(0,y.Z)(t)};var P="[object Arguments]",N="[object Function]",B="[object Object]",F={};F[P]=F["[object Array]"]=F["[object ArrayBuffer]"]=F["[object DataView]"]=F["[object Boolean]"]=F["[object Date]"]=F["[object Float32Array]"]=F["[object Float64Array]"]=F["[object Int8Array]"]=F["[object Int16Array]"]=F["[object Int32Array]"]=F["[object Map]"]=F["[object Number]"]=F[B]=F["[object RegExp]"]=F["[object Set]"]=F["[object String]"]=F["[object Symbol]"]=F["[object Uint8Array]"]=F["[object Uint8ClampedArray]"]=F["[object Uint16Array]"]=F["[object Uint32Array]"]=!0,F["[object Error]"]=F[N]=F["[object WeakMap]"]=!1;const W=function t(e,r,a,s,f,l){var v,j=1&r,w=2&r,m=4&r;if(a&&(v=f?a(e,s,f,l):a(e)),void 0!==v)return v;if(!(0,V.Z)(e))return e;var E=(0,T.Z)(e);if(E){if(v=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&g.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(e),!j)return function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(e,v)}else{var _=(0,y.Z)(e),A=_==N||"[object GeneratorFunction]"==_;if((0,R.Z)(e))return function(t,e){if(e)return t.slice();var r=t.length,n=d?d(r):new t.constructor(r);return t.copy(n),n}(e,j);if(_==B||_==P||A&&!f){if(v=w||A?{}:function(t){return"function"!=typeof t.constructor||(0,U.Z)(t)?{}:S((0,C.Z)(t))}(e),!j)return w?function(t,e){return i(t,(0,p.Z)(t),e)}(e,function(t,e){return t&&i(e,(0,u.Z)(e),t)}(v,e)):function(t,e){return i(t,(0,Z.Z)(t),e)}(e,function(t,e){return t&&i(e,(0,c.Z)(e),t)}(v,e))}else{if(!F[_])return f?e:{};v=O(e,_,j)}}l||(l=new n.Z);var x=l.get(e);if(x)return x;l.set(e,v),D(e)?e.forEach((function(n){v.add(t(n,r,a,n,e,l))})):H(e)&&e.forEach((function(n,o){v.set(o,t(n,r,a,o,e,l))}));var I=m?w?h.Z:b.Z:w?u.Z:c.Z,M=E?void 0:I(e);return function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););}(M||e,(function(n,i){M&&(n=e[i=n]),(0,o.Z)(v,i,t(n,r,a,i,e,l))})),v},$=function(t){return W(t,5)}},744:(t,e,r)=>{r.d(e,{Z:()=>h});var n=r(7275),o=r(658);const a=function(){return o.Z.Date.now()};var i=/\s/;var c=/^\s+/;const u=function(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&i.test(t.charAt(e)););return e}(t)+1).replace(c,""):t};var s=r(54),f=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,v=/^0o[0-7]+$/i,d=parseInt;const Z=function(t){if("number"==typeof t)return t;if((0,s.Z)(t))return NaN;if((0,n.Z)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,n.Z)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=u(t);var r=l.test(t);return r||v.test(t)?d(t.slice(2),r?2:8):f.test(t)?NaN:+t};var p=Math.max,b=Math.min;const h=function(t,e,r){var o,i,c,u,s,f,l=0,v=!1,d=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var r=o,n=i;return o=i=void 0,l=e,u=t.apply(n,r)}function g(t){var r=t-f;return void 0===f||r>=e||r<0||d&&t-l>=c}function j(){var t=a();if(g(t))return w(t);s=setTimeout(j,function(t){var r=e-(t-f);return d?b(r,c-(t-l)):r}(t))}function w(t){return s=void 0,h&&o?y(t):(o=i=void 0,u)}function m(){var t=a(),r=g(t);if(o=arguments,i=this,f=t,r){if(void 0===s)return function(t){return l=t,s=setTimeout(j,e),v?y(t):u}(f);if(d)return clearTimeout(s),s=setTimeout(j,e),y(f)}return void 0===s&&(s=setTimeout(j,e)),u}return e=Z(e)||0,(0,n.Z)(r)&&(v=!!r.leading,c=(d="maxWait"in r)?p(Z(r.maxWait)||0,e):c,h="trailing"in r?!!r.trailing:h),m.cancel=function(){void 0!==s&&clearTimeout(s),l=0,o=f=i=s=void 0},m.flush=function(){return void 0===s?u:w(a())},m}},5008:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(658);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof module&&module&&!module.nodeType&&module,i=a&&a.exports===o?n.Z.Buffer:void 0;const c=(i?i.isBuffer:void 0)||function(){return!1}},8403:(t,e,r)=>{r.d(e,{Z:()=>v});var n=r(3126),o=r(6812),a=r(4996),i=r(6575),c=r(6905),u=r(5008),s=r(9494),f=r(8485),l=Object.prototype.hasOwnProperty;const v=function(t){if(null==t)return!0;if((0,c.Z)(t)&&((0,i.Z)(t)||"string"==typeof t||"function"==typeof t.splice||(0,u.Z)(t)||(0,f.Z)(t)||(0,a.Z)(t)))return!t.length;var e=(0,o.Z)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,s.Z)(t))return!(0,n.Z)(t).length;for(var r in t)if(l.call(t,r))return!1;return!0}},988:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(8165);const o=function(t,e){return(0,n.Z)(t,e)}},54:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(1258),o=r(4897);const a=function(t){return"symbol"==typeof t||(0,o.Z)(t)&&"[object Symbol]"==(0,n.Z)(t)}},8485:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(1258),o=r(3492),a=r(4897),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1;var c=r(7133),u=r(9801),s=u.Z&&u.Z.isTypedArray;const f=s?(0,c.Z)(s):function(t){return(0,a.Z)(t)&&(0,o.Z)(t.length)&&!!i[(0,n.Z)(t)]}},825:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(1602),o=r(3126),a=r(6905);const i=function(t){return(0,a.Z)(t)?(0,n.Z)(t):(0,o.Z)(t)}},9809:(t,e,r)=>{r.d(e,{Z:()=>s});var n=r(1602),o=r(7275),a=r(9494);var i=Object.prototype.hasOwnProperty;const c=function(t){if(!(0,o.Z)(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=(0,a.Z)(t),r=[];for(var n in t)("constructor"!=n||!e&&i.call(t,n))&&r.push(n);return r};var u=r(6905);const s=function(t){return(0,u.Z)(t)?(0,n.Z)(t,!0):c(t)}},9340:(t,e,r)=>{r.d(e,{Z:()=>V});var n=r(2363),o=r(1890),a=r(8165);var i=r(7275);const c=function(t){return t==t&&!(0,i.Z)(t)};var u=r(825);const s=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}},f=function(t){var e=function(t){for(var e=(0,u.Z)(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,c(o)]}return e}(t);return 1==e.length&&e[0][2]?s(e[0][0],e[0][1]):function(r){return r===t||function(t,e,r,n){var i=r.length,c=i,u=!n;if(null==t)return!c;for(t=Object(t);i--;){var s=r[i];if(u&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<c;){var f=(s=r[i])[0],l=t[f],v=s[1];if(u&&s[2]){if(void 0===l&&!(f in t))return!1}else{var d=new o.Z;if(n)var Z=n(l,v,f,t,e,d);if(!(void 0===Z?(0,a.Z)(v,l,3,n,d):Z))return!1}}return!0}(r,t,e)}};var l=r(7106);const v=function(t,e){return null!=t&&e in Object(t)};var d=r(6205),Z=r(4996),p=r(6575),b=r(5313),h=r(3492),y=r(199);const g=function(t,e){return null!=t&&function(t,e,r){for(var n=-1,o=(e=(0,d.Z)(e,t)).length,a=!1;++n<o;){var i=(0,y.Z)(e[n]);if(!(a=null!=t&&r(t,i)))break;t=t[i]}return a||++n!=o?a:!!(o=null==t?0:t.length)&&(0,h.Z)(o)&&(0,b.Z)(i,o)&&((0,p.Z)(t)||(0,Z.Z)(t))}(t,e,v)};var j=r(5506);const w=function(t,e){return(0,j.Z)(t)&&c(e)?s((0,y.Z)(t),e):function(r){var n=function(t,e,r){var n=null==t?void 0:(0,l.Z)(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?g(r,t):(0,a.Z)(e,n,3)}};var m=r(1116);const E=function(t){return(0,j.Z)(t)?(e=(0,y.Z)(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return(0,l.Z)(e,t)}}(t);var e};var _=r(9616);const A=function(t,e,r,n){if(!(0,i.Z)(t))return t;for(var o=-1,a=(e=(0,d.Z)(e,t)).length,c=a-1,u=t;null!=u&&++o<a;){var s=(0,y.Z)(e[o]),f=r;if("__proto__"===s||"constructor"===s||"prototype"===s)return t;if(o!=c){var l=u[s];void 0===(f=n?n(l,s,u):void 0)&&(f=(0,i.Z)(l)?l:(0,b.Z)(e[o+1])?[]:{})}(0,_.Z)(u,s,f),u=u[s]}return t};var O=r(1325);const V=function(t,e){if(null==t)return{};var r,o=(0,n.Z)((0,O.Z)(t),(function(t){return[t]}));return e="function"==typeof(r=e)?r:null==r?m.Z:"object"==typeof r?(0,p.Z)(r)?w(r[0],r[1]):f(r):E(r),function(t,e,r){for(var n=-1,o=e.length,a={};++n<o;){var i=e[n],c=(0,l.Z)(t,i);r(c,i)&&A(a,(0,d.Z)(i,t),c)}return a}(t,o,(function(t,r){return e(t,r[0])}))}},1940:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(){return[]}},131:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(7851),o=r(2363),a=r(6575),i=r(54),c=n.Z?n.Z.prototype:void 0,u=c?c.toString:void 0;const s=function t(e){if("string"==typeof e)return e;if((0,a.Z)(e))return(0,o.Z)(e,t)+"";if((0,i.Z)(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r},f=function(t){return null==t?"":s(t)}},7474:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(131),o=0;const a=function(t){var e=++o;return(0,n.Z)(t)+e}},5751:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(6205);var o=r(7106);const a=function(t,e){return e.length<2?t:(0,o.Z)(t,function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var a=Array(o);++n<o;)a[n]=t[n+e];return a}(e,0,-1))};var i=r(199);const c=function(t,e){return null==t||function(t,e){return e=(0,n.Z)(e,t),null==(t=a(t,e))||delete t[(0,i.Z)((r=e,o=null==r?0:r.length,o?r[o-1]:void 0))];var r,o}(t,e)}},4126:(t,e,r)=>{r.d(e,{ZP:()=>u});var n=r(5776),o=r(1374),a=r(3978);const i=n.use||(t=>{if("pending"===t.status)throw t;if("fulfilled"===t.status)return t.value;throw"rejected"===t.status?t.reason:(t.status="pending",t.then((e=>{t.status="fulfilled",t.value=e}),(e=>{t.status="rejected",t.reason=e})),t)}),c={dedupe:!0},u=(a.OBJECT.defineProperty(a.SWRConfig,"defaultValue",{value:a.defaultConfig}),(0,a.withArgs)(((t,e,r)=>{const{cache:u,compare:s,suspense:f,fallbackData:l,revalidateOnMount:v,revalidateIfStale:d,refreshInterval:Z,refreshWhenHidden:p,refreshWhenOffline:b,keepPreviousData:h}=r,[y,g,j,w]=a.SWRGlobalState.get(u),[m,E]=(0,a.serialize)(t),_=(0,n.useRef)(!1),A=(0,n.useRef)(!1),O=(0,n.useRef)(m),V=(0,n.useRef)(e),x=(0,n.useRef)(r),S=()=>x.current,C=()=>S().isVisible()&&S().isOnline(),[U,T,R,I]=(0,a.createCacheHelper)(u,m),M=(0,n.useRef)({}).current,L=(0,a.isUndefined)(l)?r.fallback[m]:l,z=(t,e)=>{for(const r in M){const n=r;if("data"===n){if(!s(t[n],e[n])){if(!(0,a.isUndefined)(t[n]))return!1;if(!s($,e[n]))return!1}}else if(e[n]!==t[n])return!1}return!0},H=(0,n.useMemo)((()=>{const t=!!m&&!!e&&((0,a.isUndefined)(v)?!S().isPaused()&&!f&&(!!(0,a.isUndefined)(d)||d):v),r=e=>{const r=(0,a.mergeObjects)(e);return delete r._k,t?{isValidating:!0,isLoading:!0,...r}:r},n=U(),o=I(),i=r(n),c=n===o?i:r(o);let u=i;return[()=>{const t=r(U());return z(t,u)?(u.data=t.data,u.isLoading=t.isLoading,u.isValidating=t.isValidating,u.error=t.error,u):(u=t,t)},()=>c]}),[u,m]),k=(0,o.useSyncExternalStore)((0,n.useCallback)((t=>R(m,((e,r)=>{z(r,e)||t()}))),[u,m]),H[0],H[1]),D=!_.current,P=y[m]&&y[m].length>0,N=k.data,B=(0,a.isUndefined)(N)?L:N,F=k.error,W=(0,n.useRef)(B),$=h?(0,a.isUndefined)(N)?W.current:N:B,G=!(P&&!(0,a.isUndefined)(F))&&(D&&!(0,a.isUndefined)(v)?v:!S().isPaused()&&(f?!(0,a.isUndefined)(B)&&d:(0,a.isUndefined)(B)||d)),q=!!(m&&e&&D&&G),Y=(0,a.isUndefined)(k.isValidating)?q:k.isValidating,J=(0,a.isUndefined)(k.isLoading)?q:k.isLoading,K=(0,n.useCallback)((async t=>{const e=V.current;if(!m||!e||A.current||S().isPaused())return!1;let n,o,i=!0;const c=t||{},u=!j[m]||!c.dedupe,f=()=>a.IS_REACT_LEGACY?!A.current&&m===O.current&&_.current:m===O.current,l={isValidating:!1,isLoading:!1},v=()=>{T(l)},d=()=>{const t=j[m];t&&t[1]===o&&delete j[m]},Z={isValidating:!0};(0,a.isUndefined)(U().data)&&(Z.isLoading=!0);try{if(u&&(T(Z),r.loadingTimeout&&(0,a.isUndefined)(U().data)&&setTimeout((()=>{i&&f()&&S().onLoadingSlow(m,r)}),r.loadingTimeout),j[m]=[e(E),(0,a.getTimestamp)()]),[n,o]=j[m],n=await n,u&&setTimeout(d,r.dedupingInterval),!j[m]||j[m][1]!==o)return u&&f()&&S().onDiscarded(m),!1;l.error=a.UNDEFINED;const t=g[m];if(!(0,a.isUndefined)(t)&&(o<=t[0]||o<=t[1]||0===t[1]))return v(),u&&f()&&S().onDiscarded(m),!1;const c=U().data;l.data=s(c,n)?c:n,u&&f()&&S().onSuccess(n,m,r)}catch(t){d();const e=S(),{shouldRetryOnError:r}=e;e.isPaused()||(l.error=t,u&&f()&&(e.onError(t,m,e),(!0===r||(0,a.isFunction)(r)&&r(t))&&C()&&e.onErrorRetry(t,m,e,(t=>{const e=y[m];e&&e[0]&&e[0](a.revalidateEvents.ERROR_REVALIDATE_EVENT,t)}),{retryCount:(c.retryCount||0)+1,dedupe:!0})))}return i=!1,v(),!0}),[m,u]),Q=(0,n.useCallback)(((...t)=>(0,a.internalMutate)(u,O.current,...t)),[]);if((0,a.useIsomorphicLayoutEffect)((()=>{V.current=e,x.current=r,(0,a.isUndefined)(N)||(W.current=N)})),(0,a.useIsomorphicLayoutEffect)((()=>{if(!m)return;const t=K.bind(a.UNDEFINED,c);let e=0;const r=(0,a.subscribeCallback)(m,y,((r,n={})=>{if(r==a.revalidateEvents.FOCUS_EVENT){const r=Date.now();S().revalidateOnFocus&&r>e&&C()&&(e=r+S().focusThrottleInterval,t())}else if(r==a.revalidateEvents.RECONNECT_EVENT)S().revalidateOnReconnect&&C()&&t();else{if(r==a.revalidateEvents.MUTATE_EVENT)return K();if(r==a.revalidateEvents.ERROR_REVALIDATE_EVENT)return K(n)}}));return A.current=!1,O.current=m,_.current=!0,T({_k:E}),G&&((0,a.isUndefined)(B)||a.IS_SERVER?t():(0,a.rAF)(t)),()=>{A.current=!0,r()}}),[m]),(0,a.useIsomorphicLayoutEffect)((()=>{let t;function e(){const e=(0,a.isFunction)(Z)?Z(U().data):Z;e&&-1!==t&&(t=setTimeout(r,e))}function r(){U().error||!p&&!S().isVisible()||!b&&!S().isOnline()?e():K(c).then(e)}return e(),()=>{t&&(clearTimeout(t),t=-1)}}),[Z,p,b,m]),(0,n.useDebugValue)($),f&&(0,a.isUndefined)(B)&&m){if(!a.IS_REACT_LEGACY&&a.IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");V.current=e,x.current=r,A.current=!1;const t=w[m];if(!(0,a.isUndefined)(t)){const e=Q(t);i(e)}if(!(0,a.isUndefined)(F))throw F;{const t=K(c);(0,a.isUndefined)($)||(t.status="fulfilled",t.value=!0),i(t)}}return{mutate:Q,get data(){return M.data=!0,$},get error(){return M.error=!0,F},get isValidating(){return M.isValidating=!0,Y},get isLoading(){return M.isLoading=!0,J}}})))}}]);
|
package/dist/499.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_implementer_tools_app=globalThis.webpackChunk_openmrs_esm_implementer_tools_app||[]).push([[499],{7499:(e,n,t)=>{t.r(n),t.d(n,{default:()=>I});var r,o=t(5776),i=t.n(o),u=t(4610),a=t(1004),l=t(500);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function s(e,n,t,r,o,i,u){try{var a=e[i](u),l=a.value}catch(e){return void t(e)}a.done?n(l):Promise.resolve(l).then(r,o)}function f(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function u(e){s(i,r,o,u,a,"next",e)}function a(e){s(i,r,o,u,a,"throw",e)}u(void 0)}))}}function p(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(e)||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 d(e,n){var t,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;u;)try{if(t=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=n.call(e,u)}catch(e){i=[6,e],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function y(){return m.apply(this,arguments)}function m(){return(m=f((function(){var e;return d(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,u.openmrsFetch)("/ws/rest/v1/module?v=custom:(uuid,version)",{method:"GET"})];case 1:return[2,n.sent().data.results];case 2:return e=n.sent(),console.error(e),[3,3];case 3:return[2,[]]}}))}))).apply(this,arguments)}function b(e,n){return(0,u.isVersionSatisfied)(e,n)?"okay":"version-mismatch"}function v(){return(v=f((function(){var e,n,t;return d(this,(function(o){switch(o.label){case 0:return r?[3,2]:(n=(null!==(e=window.installedModules)&&void 0!==e?e:[]).filter((function(e){var n;return Boolean(null===(n=e[1])||void 0===n?void 0:n.backendDependencies)})).map((function(e){return{backendDependencies:e[1].backendDependencies,moduleName:e[0]}})),[4,y()]);case 1:t=o.sent(),r=n.map((function(e){return function(e,n){var t,r=[],o=function(e,n){if(!e)return[];var t=Object.keys(e),r=n.map((function(e){return e.uuid}));return(0,l.Z)(t,r).map((function(n){return{uuid:n,version:e[n]}}))}(e.backendDependencies,n),i=function(e,n){return e?Object.keys(e).map((function(n){return{uuid:n,version:e[n]}})).filter((function(e){return n.find((function(n){return e.uuid===n.uuid}))})):[]}(e.backendDependencies,n);return(t=r).push.apply(t,p(o.map((function(e){return{name:e.uuid,requiredVersion:e.version,type:"missing"}}))).concat(p(i.map((function(e){var t=e.version,r=function(e,n){var t,r,o=e.uuid;return null!==(r=null===(t=n.find((function(e){return e.uuid==o})))||void 0===t?void 0:t.version)&&void 0!==r?r:""}(e,n);return{name:e.uuid,requiredVersion:t,installedVersion:r,type:b(t,r)}}))))),{name:e.moduleName,dependencies:r}}(e,t)})),o.label=2;case 2:return[2,r]}}))}))).apply(this,arguments)}function h(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function w(){var e,n,t=(e=(0,o.useState)([]),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],u=!0,a=!1;try{for(t=t.call(e);!(u=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);u=!0);}catch(e){a=!0,o=e}finally{try{u||null==t.return||t.return()}finally{if(a)throw o}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return h(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?h(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),r=t[0],i=t[1];return(0,o.useEffect)((function(){(function(){return v.apply(this,arguments)})().then(i)}),[]),r}var g=t(2680);function O(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function k(){return(0,o.useMemo)((function(){var e;return(null!==(e=window.installedModules)&&void 0!==e?e:[]).filter((function(e){return Boolean(e)&&Boolean(e[1])})).map((function(e){return n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){O(e,n,t[n])}))}return e}({},e[1]),t=null!=(t={name:e[0]})?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n;var n,t}))}),[])}function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var j=i().lazy((function(){return Promise.all([t.e(220),t.e(837),t.e(575),t.e(329),t.e(551),t.e(478),t.e(
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_implementer_tools_app=globalThis.webpackChunk_openmrs_esm_implementer_tools_app||[]).push([[499],{7499:(e,n,t)=>{t.r(n),t.d(n,{default:()=>I});var r,o=t(5776),i=t.n(o),u=t(4610),a=t(1004),l=t(500);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function s(e,n,t,r,o,i,u){try{var a=e[i](u),l=a.value}catch(e){return void t(e)}a.done?n(l):Promise.resolve(l).then(r,o)}function f(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function u(e){s(i,r,o,u,a,"next",e)}function a(e){s(i,r,o,u,a,"throw",e)}u(void 0)}))}}function p(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(e)||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 d(e,n){var t,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;u;)try{if(t=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=n.call(e,u)}catch(e){i=[6,e],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function y(){return m.apply(this,arguments)}function m(){return(m=f((function(){var e;return d(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,u.openmrsFetch)("/ws/rest/v1/module?v=custom:(uuid,version)",{method:"GET"})];case 1:return[2,n.sent().data.results];case 2:return e=n.sent(),console.error(e),[3,3];case 3:return[2,[]]}}))}))).apply(this,arguments)}function b(e,n){return(0,u.isVersionSatisfied)(e,n)?"okay":"version-mismatch"}function v(){return(v=f((function(){var e,n,t;return d(this,(function(o){switch(o.label){case 0:return r?[3,2]:(n=(null!==(e=window.installedModules)&&void 0!==e?e:[]).filter((function(e){var n;return Boolean(null===(n=e[1])||void 0===n?void 0:n.backendDependencies)})).map((function(e){return{backendDependencies:e[1].backendDependencies,moduleName:e[0]}})),[4,y()]);case 1:t=o.sent(),r=n.map((function(e){return function(e,n){var t,r=[],o=function(e,n){if(!e)return[];var t=Object.keys(e),r=n.map((function(e){return e.uuid}));return(0,l.Z)(t,r).map((function(n){return{uuid:n,version:e[n]}}))}(e.backendDependencies,n),i=function(e,n){return e?Object.keys(e).map((function(n){return{uuid:n,version:e[n]}})).filter((function(e){return n.find((function(n){return e.uuid===n.uuid}))})):[]}(e.backendDependencies,n);return(t=r).push.apply(t,p(o.map((function(e){return{name:e.uuid,requiredVersion:e.version,type:"missing"}}))).concat(p(i.map((function(e){var t=e.version,r=function(e,n){var t,r,o=e.uuid;return null!==(r=null===(t=n.find((function(e){return e.uuid==o})))||void 0===t?void 0:t.version)&&void 0!==r?r:""}(e,n);return{name:e.uuid,requiredVersion:t,installedVersion:r,type:b(t,r)}}))))),{name:e.moduleName,dependencies:r}}(e,t)})),o.label=2;case 2:return[2,r]}}))}))).apply(this,arguments)}function h(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function w(){var e,n,t=(e=(0,o.useState)([]),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],u=!0,a=!1;try{for(t=t.call(e);!(u=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);u=!0);}catch(e){a=!0,o=e}finally{try{u||null==t.return||t.return()}finally{if(a)throw o}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return h(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?h(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),r=t[0],i=t[1];return(0,o.useEffect)((function(){(function(){return v.apply(this,arguments)})().then(i)}),[]),r}var g=t(2680);function O(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function k(){return(0,o.useMemo)((function(){var e;return(null!==(e=window.installedModules)&&void 0!==e?e:[]).filter((function(e){return Boolean(e)&&Boolean(e[1])})).map((function(e){return n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){O(e,n,t[n])}))}return e}({},e[1]),t=null!=(t={name:e[0]})?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n;var n,t}))}),[])}function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var j=i().lazy((function(){return Promise.all([t.e(220),t.e(837),t.e(575),t.e(329),t.e(551),t.e(478),t.e(691)]).then(t.bind(t,3199))})),A=i().lazy((function(){return Promise.all([t.e(220),t.e(837),t.e(551),t.e(478),t.e(587)]).then(t.bind(t,587))}));function E(){var e,n,t=k(),r=w(),l=(e=(0,o.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],u=!0,a=!1;try{for(t=t.call(e);!(u=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);u=!0);}catch(e){a=!0,o=e}finally{try{u||null==t.return||t.return()}finally{if(a)throw o}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return S(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?S(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=l[0],s=l[1],f=(0,g.useTranslation)().t;(0,o.useEffect)((function(){s((function(e){return e||function(e){return e.some((function(e){return e.dependencies.some((function(e){return"okay"!==e.type}))}))}(r)}))}),[r]),(0,o.useEffect)((function(){c&&(0,u.showActionableNotification)({critical:!1,kind:"error",subtitle:f("checkImplementerToolsMessage","Check the Backend Modules tab in the Implementer Tools for more details"),title:f("modulesWithMissingDependenciesWarning","Some modules have unresolved backend dependencies"),actionButtonLabel:f("viewModules","View modules"),onActionButtonClick:a.XE})}),[f,c]);var p=(0,u.useStore)(a.wT),d=p.isOpen,y=p.isUIEditorEnabled,m=p.openTabIndex;return i().createElement(i().Fragment,null,d?i().createElement(j,{close:a.zI,frontendModules:t,backendDependencies:r,visibleTabIndex:m}):null,y?i().createElement(A,null):null)}function I(){return i().createElement(u.UserHasAccess,{privilege:"coreapps.systemAdministration"},i().createElement(E,null))}}}]);
|