@openmrs/esm-form-engine-app 9.2.3-pre.7493 → 9.2.3-pre.7501

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.
@@ -1,9 +1,9 @@
1
1
  Browserslist: caniuse-lite is outdated. Please run:
2
2
  npx update-browserslist-db@latest
3
3
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
4
- assets by path *.js 4.55 MiB
5
- assets by chunk 4.12 MiB (id hint: vendors)
6
- assets by status 4.02 MiB [big]
4
+ assets by path *.js 4.56 MiB
5
+ assets by chunk 4.13 MiB (id hint: vendors)
6
+ assets by status 4.03 MiB [big]
7
7
  asset 5631.js 2.16 MiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
8
8
  asset 6805.js 1.51 MiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
9
9
  asset 8996.js 368 KiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
@@ -24,8 +24,8 @@ built modules 11.7 MiB (javascript) 378 bytes (share-init) 378 bytes (consume-sh
24
24
  javascript modules 68.2 KiB 8 modules
25
25
  provide-module modules 378 bytes 9 modules
26
26
  consume-shared-module modules 378 bytes 9 modules
27
- modules by path ../esm-patient-common-lib/src/ 231 KiB
28
- ../esm-patient-common-lib/src/index.ts + 39 modules 88 KiB [built] [code generated]
27
+ modules by path ../esm-patient-common-lib/src/ 230 KiB
28
+ ../esm-patient-common-lib/src/index.ts + 39 modules 87.8 KiB [built] [code generated]
29
29
  ../../node_modules/@openmrs/webpack-config/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!../esm-patient-common-lib/src/dashboards/dashboard-extension.scss 14.2 KiB [built] [code generated]
30
30
  + 4 modules
31
31
  container entry 42 bytes [built] [code generated]
@@ -37,4 +37,4 @@ Assets:
37
37
  6805.js (1.51 MiB)
38
38
  5631.js (2.16 MiB)
39
39
 
40
- webpack 5.94.0 compiled with 1 warning in 136036 ms
40
+ webpack 5.94.0 compiled with 1 warning in 173317 ms
package/dist/1496.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 1496.js.LICENSE.txt */
2
- "use strict";(globalThis.webpackChunk_openmrs_esm_form_engine_app=globalThis.webpackChunk_openmrs_esm_form_engine_app||[]).push([[1496],{5924:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},977:t=>{function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}t.exports=function(t){var n,r,o=(r=4,function(t){if(Array.isArray(t))return t}(n=t)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(a.push(r.value),!e||a.length!==e);i=!0);}catch(t){s=!0,o=t}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(n,r)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(n,r)||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.")}()),a=o[1],i=o[3];if(!i)return a;if("function"==typeof btoa){var s=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),u="/*# ".concat(c," */"),l=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[a].concat(l).concat([u]).join("\n")}return[a].join("\n")}},506:t=>{var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var a={},i=[],s=0;s<t.length;s++){var c=t[s],u=r.base?c[0]+r.base:c[0],l=a[u]||0,f="".concat(u," ").concat(l);a[u]=l+1;var d=n(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var v=o(p,r);r.byIndex=s,e.splice(s,0,{identifier:f,updater:v,references:1})}i.push(f)}return i}function o(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,o){var a=r(t=t||[],o=o||{});return function(t){t=t||[];for(var i=0;i<a.length;i++){var s=n(a[i]);e[s].references--}for(var c=r(t,o),u=0;u<a.length;u++){var l=n(a[u]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}a=c}}},105:t=>{var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},5326:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},7154:(t,e,n)=>{t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},9867:t=>{t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},7763:t=>{t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},3296:(t,e,n)=>{var r=n(1343),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},a=r.useState,i=r.useEffect,s=r.useLayoutEffect,c=r.useDebugValue;function u(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!o(t,n)}catch(t){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=a({inst:{value:n,getSnapshot:e}}),o=r[0].inst,l=r[1];return s((function(){o.value=n,o.getSnapshot=e,u(o)&&l({inst:o})}),[t,n,e]),i((function(){return u(o)&&l({inst:o}),t((function(){u(o)&&l({inst:o})}))}),[t]),c(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},8139:(t,e,n)=>{t.exports=n(3296)},2086:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(6979);const o=function(t,e){for(var n=t.length;n--;)if((0,r.A)(t[n][0],e))return n;return-1};var a=Array.prototype.splice;function i(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}i.prototype.clear=function(){this.__data__=[],this.size=0},i.prototype.delete=function(t){var e=this.__data__,n=o(e,t);return!(n<0||(n==e.length-1?e.pop():a.call(e,n,1),--this.size,0))},i.prototype.get=function(t){var e=this.__data__,n=o(e,t);return n<0?void 0:e[n][1]},i.prototype.has=function(t){return o(this.__data__,t)>-1},i.prototype.set=function(t,e){var n=this.__data__,r=o(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};const s=i},5436:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(1465),o=n(9600);const a=(0,r.A)(o.A,"Map")},9240:(t,e,n)=>{n.d(e,{A:()=>d});const r=(0,n(1465).A)(Object,"create");var o=Object.prototype.hasOwnProperty;var a=Object.prototype.hasOwnProperty;function i(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}i.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},i.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},i.prototype.get=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(e,t)?e[t]:void 0},i.prototype.has=function(t){var e=this.__data__;return r?void 0!==e[t]:a.call(e,t)},i.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this};const s=i;var c=n(2086),u=n(5436);const l=function(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map};function f(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}f.prototype.clear=function(){this.size=0,this.__data__={hash:new s,map:new(u.A||c.A),string:new s}},f.prototype.delete=function(t){var e=l(this,t).delete(t);return this.size-=e?1:0,e},f.prototype.get=function(t){return l(this,t).get(t)},f.prototype.has=function(t){return l(this,t).has(t)},f.prototype.set=function(t,e){var n=l(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};const d=f},8574:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(1465),o=n(9600);const a=(0,r.A)(o.A,"Set")},9791:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(2086);var o=n(5436),a=n(9240);function i(t){var e=this.__data__=new r.A(t);this.size=e.size}i.prototype.clear=function(){this.__data__=new r.A,this.size=0},i.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},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 n=this.__data__;if(n instanceof r.A){var i=n.__data__;if(!o.A||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new a.A(i)}return n.set(t,e),this.size=n.size,this};const s=i},3516:(t,e,n)=>{n.d(e,{A:()=>r});const r=n(9600).A.Symbol},7913:(t,e,n)=>{n.d(e,{A:()=>r});const r=n(9600).A.Uint8Array},9158:(t,e,n)=>{n.d(e,{A:()=>u});var r=n(1697),o=n(6956),a=n(5821),i=n(5378),s=n(7283),c=Object.prototype.hasOwnProperty;const u=function(t,e){var n=(0,o.A)(t),u=!n&&(0,r.A)(t),l=!n&&!u&&(0,a.A)(t),f=!n&&!u&&!l&&(0,s.A)(t),d=n||u||l||f,p=d?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],v=p.length;for(var h in t)!e&&!c.call(t,h)||d&&("length"==h||l&&("offset"==h||"parent"==h)||f&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||(0,i.A)(h,v))||p.push(h);return p}},3271:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},4494:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(3271),o=n(6956);const a=function(t,e,n){var a=e(t);return(0,o.A)(t)?a:(0,r.A)(a,n(t))}},2135:(t,e,n)=>{n.d(e,{A:()=>l});var r=n(3516),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r.A?r.A.toStringTag:void 0;var c=Object.prototype.toString;var u=r.A?r.A.toStringTag:void 0;const l=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?function(t){var e=a.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var o=i.call(t);return r&&(e?t[s]=n:delete t[s]),o}(t):function(t){return c.call(t)}(t)}},5632:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(1140);const o=(0,n(7244).A)(Object.keys,Object);var a=Object.prototype.hasOwnProperty;const i=function(t){if(!(0,r.A)(t))return o(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}},8126:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){return function(e){return t(e)}}},6713:(t,e,n)=>{n.d(e,{A:()=>r});const r="object"==typeof global&&global&&global.Object===Object&&global},2475:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(4494),o=n(3721),a=n(7817);const i=function(t){return(0,r.A)(t,a.A,o.A)}},1465:(t,e,n)=>{n.d(e,{A:()=>y});var r=n(405);const o=n(9600).A["__core-js_shared__"];var a,i=(a=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";var s=n(7942),c=n(1548),u=/^\[object .+?Constructor\]$/,l=Function.prototype,f=Object.prototype,d=l.toString,p=f.hasOwnProperty,v=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const h=function(t){return!(!(0,s.A)(t)||(e=t,i&&i in e))&&((0,r.A)(t)?v:u).test((0,c.A)(t));var e},y=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return h(n)?n:void 0}},3721:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(1276),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;const i=a?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,a=[];++n<r;){var i=t[n];e(i,n,t)&&(a[o++]=i)}return a}(a(t),(function(e){return o.call(t,e)})))}:r.A},7576:(t,e,n)=>{n.d(e,{A:()=>E});var r=n(1465),o=n(9600);const a=(0,r.A)(o.A,"DataView");var i=n(5436);const s=(0,r.A)(o.A,"Promise");var c=n(8574);const u=(0,r.A)(o.A,"WeakMap");var l=n(2135),f=n(1548),d="[object Map]",p="[object Promise]",v="[object Set]",h="[object WeakMap]",y="[object DataView]",A=(0,f.A)(a),b=(0,f.A)(i.A),_=(0,f.A)(s),g=(0,f.A)(c.A),m=(0,f.A)(u),j=l.A;(a&&j(new a(new ArrayBuffer(1)))!=y||i.A&&j(new i.A)!=d||s&&j(s.resolve())!=p||c.A&&j(new c.A)!=v||u&&j(new u)!=h)&&(j=function(t){var e=(0,l.A)(t),n="[object Object]"==e?t.constructor:void 0,r=n?(0,f.A)(n):"";if(r)switch(r){case A:return y;case b:return d;case _:return p;case g:return v;case m:return h}return e});const E=j},5378:(t,e,n)=>{n.d(e,{A:()=>o});var r=/^(?:0|[1-9]\d*)$/;const o=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},1140:(t,e,n)=>{n.d(e,{A:()=>o});var r=Object.prototype;const o=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},248:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(6713),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof module&&module&&!module.nodeType&&module,i=a&&a.exports===o&&r.A.process;const s=function(){try{return a&&a.require&&a.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}()},7244:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e){return function(n){return t(e(n))}}},9600:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(6713),o="object"==typeof self&&self&&self.Object===Object&&self;const a=r.A||o||Function("return this")()},1548:(t,e,n)=>{n.d(e,{A:()=>o});var r=Function.prototype.toString;const o=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},6979:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e){return t===e||t!=t&&e!=e}},1697:(t,e,n)=>{n.d(e,{A:()=>u});var r=n(2135),o=n(7313);const a=function(t){return(0,o.A)(t)&&"[object Arguments]"==(0,r.A)(t)};var i=Object.prototype,s=i.hasOwnProperty,c=i.propertyIsEnumerable;const u=a(function(){return arguments}())?a:function(t){return(0,o.A)(t)&&s.call(t,"callee")&&!c.call(t,"callee")}},6956:(t,e,n)=>{n.d(e,{A:()=>r});const r=Array.isArray},1475:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(405),o=n(7893);const a=function(t){return null!=t&&(0,o.A)(t.length)&&!(0,r.A)(t)}},5821:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(9600);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof module&&module&&!module.nodeType&&module,i=a&&a.exports===o?r.A.Buffer:void 0;const s=(i?i.isBuffer:void 0)||function(){return!1}},405:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(2135),o=n(7942);const a=function(t){if(!(0,o.A)(t))return!1;var e=(0,r.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},7893:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7942:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7313:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){return null!=t&&"object"==typeof t}},4089:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(2135),o=n(7313);const a=function(t){return"symbol"==typeof t||(0,o.A)(t)&&"[object Symbol]"==(0,r.A)(t)}},7283:(t,e,n)=>{n.d(e,{A:()=>l});var r=n(2135),o=n(7893),a=n(7313),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 s=n(8126),c=n(248),u=c.A&&c.A.isTypedArray;const l=u?(0,s.A)(u):function(t){return(0,a.A)(t)&&(0,o.A)(t.length)&&!!i[(0,r.A)(t)]}},7817:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(9158),o=n(5632),a=n(1475);const i=function(t){return(0,a.A)(t)?(0,r.A)(t):(0,o.A)(t)}},1276:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(){return[]}},1123:(t,e,n)=>{n.d(e,{Ay:()=>c,iX:()=>a.useSWRConfig});var r=n(1343),o=n(8139),a=n(5434);const i=r.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)}),s={dedupe:!0},c=(a.OBJECT.defineProperty(a.SWRConfig,"defaultValue",{value:a.defaultConfig}),(0,a.withArgs)(((t,e,n)=>{const{cache:c,compare:u,suspense:l,fallbackData:f,revalidateOnMount:d,revalidateIfStale:p,refreshInterval:v,refreshWhenHidden:h,refreshWhenOffline:y,keepPreviousData:A}=n,[b,_,g,m]=a.SWRGlobalState.get(c),[j,E]=(0,a.serialize)(t),O=(0,r.useRef)(!1),S=(0,r.useRef)(!1),w=(0,r.useRef)(j),R=(0,r.useRef)(e),T=(0,r.useRef)(n),U=()=>T.current,C=()=>U().isVisible()&&U().isOnline(),[x,I,V,L]=(0,a.createCacheHelper)(c,j),k=(0,r.useRef)({}).current,z=(0,a.isUndefined)(f)?n.fallback[j]:f,F=(t,e)=>{for(const n in k){const r=n;if("data"===r){if(!u(t[r],e[r])){if(!(0,a.isUndefined)(t[r]))return!1;if(!u(G,e[r]))return!1}}else if(e[r]!==t[r])return!1}return!0},P=(0,r.useMemo)((()=>{const t=!!j&&!!e&&((0,a.isUndefined)(d)?!U().isPaused()&&!l&&(!!(0,a.isUndefined)(p)||p):d),n=e=>{const n=(0,a.mergeObjects)(e);return delete n._k,t?{isValidating:!0,isLoading:!0,...n}:n},r=x(),o=L(),i=n(r),s=r===o?i:n(o);let c=i;return[()=>{const t=n(x());return F(t,c)?(c.data=t.data,c.isLoading=t.isLoading,c.isValidating=t.isValidating,c.error=t.error,c):(c=t,t)},()=>s]}),[c,j]),M=(0,o.useSyncExternalStore)((0,r.useCallback)((t=>V(j,((e,n)=>{F(n,e)||t()}))),[c,j]),P[0],P[1]),D=!O.current,N=b[j]&&b[j].length>0,W=M.data,$=(0,a.isUndefined)(W)?z:W,B=M.error,q=(0,r.useRef)($),G=A?(0,a.isUndefined)(W)?q.current:W:$,H=!(N&&!(0,a.isUndefined)(B))&&(D&&!(0,a.isUndefined)(d)?d:!U().isPaused()&&(l?!(0,a.isUndefined)($)&&p:(0,a.isUndefined)($)||p)),J=!!(j&&e&&D&&H),Y=(0,a.isUndefined)(M.isValidating)?J:M.isValidating,X=(0,a.isUndefined)(M.isLoading)?J:M.isLoading,K=(0,r.useCallback)((async t=>{const e=R.current;if(!j||!e||S.current||U().isPaused())return!1;let r,o,i=!0;const s=t||{},c=!g[j]||!s.dedupe,l=()=>a.IS_REACT_LEGACY?!S.current&&j===w.current&&O.current:j===w.current,f={isValidating:!1,isLoading:!1},d=()=>{I(f)},p=()=>{const t=g[j];t&&t[1]===o&&delete g[j]},v={isValidating:!0};(0,a.isUndefined)(x().data)&&(v.isLoading=!0);try{if(c&&(I(v),n.loadingTimeout&&(0,a.isUndefined)(x().data)&&setTimeout((()=>{i&&l()&&U().onLoadingSlow(j,n)}),n.loadingTimeout),g[j]=[e(E),(0,a.getTimestamp)()]),[r,o]=g[j],r=await r,c&&setTimeout(p,n.dedupingInterval),!g[j]||g[j][1]!==o)return c&&l()&&U().onDiscarded(j),!1;f.error=a.UNDEFINED;const t=_[j];if(!(0,a.isUndefined)(t)&&(o<=t[0]||o<=t[1]||0===t[1]))return d(),c&&l()&&U().onDiscarded(j),!1;const s=x().data;f.data=u(s,r)?s:r,c&&l()&&U().onSuccess(r,j,n)}catch(t){p();const e=U(),{shouldRetryOnError:n}=e;e.isPaused()||(f.error=t,c&&l()&&(e.onError(t,j,e),(!0===n||(0,a.isFunction)(n)&&n(t))&&(U().revalidateOnFocus&&U().revalidateOnReconnect&&!C()||e.onErrorRetry(t,j,e,(t=>{const e=b[j];e&&e[0]&&e[0](a.revalidateEvents.ERROR_REVALIDATE_EVENT,t)}),{retryCount:(s.retryCount||0)+1,dedupe:!0}))))}return i=!1,d(),!0}),[j,c]),Q=(0,r.useCallback)(((...t)=>(0,a.internalMutate)(c,w.current,...t)),[]);if((0,a.useIsomorphicLayoutEffect)((()=>{R.current=e,T.current=n,(0,a.isUndefined)(W)||(q.current=W)})),(0,a.useIsomorphicLayoutEffect)((()=>{if(!j)return;const t=K.bind(a.UNDEFINED,s);let e=0;const n=(0,a.subscribeCallback)(j,b,((n,r={})=>{if(n==a.revalidateEvents.FOCUS_EVENT){const n=Date.now();U().revalidateOnFocus&&n>e&&C()&&(e=n+U().focusThrottleInterval,t())}else if(n==a.revalidateEvents.RECONNECT_EVENT)U().revalidateOnReconnect&&C()&&t();else{if(n==a.revalidateEvents.MUTATE_EVENT)return K();if(n==a.revalidateEvents.ERROR_REVALIDATE_EVENT)return K(r)}}));return S.current=!1,w.current=j,O.current=!0,I({_k:E}),H&&((0,a.isUndefined)($)||a.IS_SERVER?t():(0,a.rAF)(t)),()=>{S.current=!0,n()}}),[j]),(0,a.useIsomorphicLayoutEffect)((()=>{let t;function e(){const e=(0,a.isFunction)(v)?v(x().data):v;e&&-1!==t&&(t=setTimeout(n,e))}function n(){x().error||!h&&!U().isVisible()||!y&&!U().isOnline()?e():K(s).then(e)}return e(),()=>{t&&(clearTimeout(t),t=-1)}}),[v,h,y,j]),(0,r.useDebugValue)(G),l&&(0,a.isUndefined)($)&&j){if(!a.IS_REACT_LEGACY&&a.IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");R.current=e,T.current=n,S.current=!1;const t=m[j];if(!(0,a.isUndefined)(t)){const e=Q(t);i(e)}if(!(0,a.isUndefined)(B))throw B;{const t=K(s);(0,a.isUndefined)(G)||(t.status="fulfilled",t.value=!0),i(t)}}return{mutate:Q,get data(){return k.data=!0,G},get error(){return k.error=!0,B},get isValidating(){return k.isValidating=!0,Y},get isLoading(){return k.isLoading=!0,X}}})))}}]);
2
+ "use strict";(globalThis.webpackChunk_openmrs_esm_form_engine_app=globalThis.webpackChunk_openmrs_esm_form_engine_app||[]).push([[1496],{5924:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},977:t=>{function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}t.exports=function(t){var n,r,o=(r=4,function(t){if(Array.isArray(t))return t}(n=t)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(a.push(r.value),!e||a.length!==e);i=!0);}catch(t){s=!0,o=t}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(n,r)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(n,r)||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.")}()),a=o[1],i=o[3];if(!i)return a;if("function"==typeof btoa){var s=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),u="/*# ".concat(c," */"),l=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[a].concat(l).concat([u]).join("\n")}return[a].join("\n")}},506:t=>{var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var a={},i=[],s=0;s<t.length;s++){var c=t[s],u=r.base?c[0]+r.base:c[0],l=a[u]||0,f="".concat(u," ").concat(l);a[u]=l+1;var d=n(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var v=o(p,r);r.byIndex=s,e.splice(s,0,{identifier:f,updater:v,references:1})}i.push(f)}return i}function o(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,o){var a=r(t=t||[],o=o||{});return function(t){t=t||[];for(var i=0;i<a.length;i++){var s=n(a[i]);e[s].references--}for(var c=r(t,o),u=0;u<a.length;u++){var l=n(a[u]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}a=c}}},105:t=>{var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},5326:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},7154:(t,e,n)=>{t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},9867:t=>{t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},7763:t=>{t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},3296:(t,e,n)=>{var r=n(1343),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},a=r.useState,i=r.useEffect,s=r.useLayoutEffect,c=r.useDebugValue;function u(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!o(t,n)}catch(t){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=a({inst:{value:n,getSnapshot:e}}),o=r[0].inst,l=r[1];return s((function(){o.value=n,o.getSnapshot=e,u(o)&&l({inst:o})}),[t,n,e]),i((function(){return u(o)&&l({inst:o}),t((function(){u(o)&&l({inst:o})}))}),[t]),c(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},8139:(t,e,n)=>{t.exports=n(3296)},2086:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(6979);const o=function(t,e){for(var n=t.length;n--;)if((0,r.A)(t[n][0],e))return n;return-1};var a=Array.prototype.splice;function i(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}i.prototype.clear=function(){this.__data__=[],this.size=0},i.prototype.delete=function(t){var e=this.__data__,n=o(e,t);return!(n<0||(n==e.length-1?e.pop():a.call(e,n,1),--this.size,0))},i.prototype.get=function(t){var e=this.__data__,n=o(e,t);return n<0?void 0:e[n][1]},i.prototype.has=function(t){return o(this.__data__,t)>-1},i.prototype.set=function(t,e){var n=this.__data__,r=o(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};const s=i},5436:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(1465),o=n(7219);const a=(0,r.A)(o.A,"Map")},9240:(t,e,n)=>{n.d(e,{A:()=>d});const r=(0,n(1465).A)(Object,"create");var o=Object.prototype.hasOwnProperty;var a=Object.prototype.hasOwnProperty;function i(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}i.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},i.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},i.prototype.get=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(e,t)?e[t]:void 0},i.prototype.has=function(t){var e=this.__data__;return r?void 0!==e[t]:a.call(e,t)},i.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this};const s=i;var c=n(2086),u=n(5436);const l=function(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map};function f(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}f.prototype.clear=function(){this.size=0,this.__data__={hash:new s,map:new(u.A||c.A),string:new s}},f.prototype.delete=function(t){var e=l(this,t).delete(t);return this.size-=e?1:0,e},f.prototype.get=function(t){return l(this,t).get(t)},f.prototype.has=function(t){return l(this,t).has(t)},f.prototype.set=function(t,e){var n=l(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};const d=f},8574:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(1465),o=n(7219);const a=(0,r.A)(o.A,"Set")},9791:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(2086);var o=n(5436),a=n(9240);function i(t){var e=this.__data__=new r.A(t);this.size=e.size}i.prototype.clear=function(){this.__data__=new r.A,this.size=0},i.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},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 n=this.__data__;if(n instanceof r.A){var i=n.__data__;if(!o.A||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new a.A(i)}return n.set(t,e),this.size=n.size,this};const s=i},3516:(t,e,n)=>{n.d(e,{A:()=>r});const r=n(7219).A.Symbol},7913:(t,e,n)=>{n.d(e,{A:()=>r});const r=n(7219).A.Uint8Array},9158:(t,e,n)=>{n.d(e,{A:()=>u});var r=n(1697),o=n(6956),a=n(5821),i=n(5378),s=n(7283),c=Object.prototype.hasOwnProperty;const u=function(t,e){var n=(0,o.A)(t),u=!n&&(0,r.A)(t),l=!n&&!u&&(0,a.A)(t),f=!n&&!u&&!l&&(0,s.A)(t),d=n||u||l||f,p=d?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],v=p.length;for(var h in t)!e&&!c.call(t,h)||d&&("length"==h||l&&("offset"==h||"parent"==h)||f&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||(0,i.A)(h,v))||p.push(h);return p}},3271:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},4494:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(3271),o=n(6956);const a=function(t,e,n){var a=e(t);return(0,o.A)(t)?a:(0,r.A)(a,n(t))}},2135:(t,e,n)=>{n.d(e,{A:()=>l});var r=n(3516),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r.A?r.A.toStringTag:void 0;var c=Object.prototype.toString;var u=r.A?r.A.toStringTag:void 0;const l=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?function(t){var e=a.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var o=i.call(t);return r&&(e?t[s]=n:delete t[s]),o}(t):function(t){return c.call(t)}(t)}},5632:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(1140);const o=(0,n(7244).A)(Object.keys,Object);var a=Object.prototype.hasOwnProperty;const i=function(t){if(!(0,r.A)(t))return o(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}},8126:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){return function(e){return t(e)}}},6713:(t,e,n)=>{n.d(e,{A:()=>r});const r="object"==typeof global&&global&&global.Object===Object&&global},2475:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(4494),o=n(3721),a=n(7817);const i=function(t){return(0,r.A)(t,a.A,o.A)}},1465:(t,e,n)=>{n.d(e,{A:()=>y});var r=n(405);const o=n(7219).A["__core-js_shared__"];var a,i=(a=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";var s=n(7942),c=n(1548),u=/^\[object .+?Constructor\]$/,l=Function.prototype,f=Object.prototype,d=l.toString,p=f.hasOwnProperty,v=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const h=function(t){return!(!(0,s.A)(t)||(e=t,i&&i in e))&&((0,r.A)(t)?v:u).test((0,c.A)(t));var e},y=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return h(n)?n:void 0}},3721:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(1276),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;const i=a?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,a=[];++n<r;){var i=t[n];e(i,n,t)&&(a[o++]=i)}return a}(a(t),(function(e){return o.call(t,e)})))}:r.A},7576:(t,e,n)=>{n.d(e,{A:()=>E});var r=n(1465),o=n(7219);const a=(0,r.A)(o.A,"DataView");var i=n(5436);const s=(0,r.A)(o.A,"Promise");var c=n(8574);const u=(0,r.A)(o.A,"WeakMap");var l=n(2135),f=n(1548),d="[object Map]",p="[object Promise]",v="[object Set]",h="[object WeakMap]",y="[object DataView]",A=(0,f.A)(a),b=(0,f.A)(i.A),_=(0,f.A)(s),g=(0,f.A)(c.A),m=(0,f.A)(u),j=l.A;(a&&j(new a(new ArrayBuffer(1)))!=y||i.A&&j(new i.A)!=d||s&&j(s.resolve())!=p||c.A&&j(new c.A)!=v||u&&j(new u)!=h)&&(j=function(t){var e=(0,l.A)(t),n="[object Object]"==e?t.constructor:void 0,r=n?(0,f.A)(n):"";if(r)switch(r){case A:return y;case b:return d;case _:return p;case g:return v;case m:return h}return e});const E=j},5378:(t,e,n)=>{n.d(e,{A:()=>o});var r=/^(?:0|[1-9]\d*)$/;const o=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},1140:(t,e,n)=>{n.d(e,{A:()=>o});var r=Object.prototype;const o=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},248:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(6713),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof module&&module&&!module.nodeType&&module,i=a&&a.exports===o&&r.A.process;const s=function(){try{return a&&a.require&&a.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}()},7244:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e){return function(n){return t(e(n))}}},7219:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(6713),o="object"==typeof self&&self&&self.Object===Object&&self;const a=r.A||o||Function("return this")()},1548:(t,e,n)=>{n.d(e,{A:()=>o});var r=Function.prototype.toString;const o=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},6979:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e){return t===e||t!=t&&e!=e}},1697:(t,e,n)=>{n.d(e,{A:()=>u});var r=n(2135),o=n(7313);const a=function(t){return(0,o.A)(t)&&"[object Arguments]"==(0,r.A)(t)};var i=Object.prototype,s=i.hasOwnProperty,c=i.propertyIsEnumerable;const u=a(function(){return arguments}())?a:function(t){return(0,o.A)(t)&&s.call(t,"callee")&&!c.call(t,"callee")}},6956:(t,e,n)=>{n.d(e,{A:()=>r});const r=Array.isArray},1475:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(405),o=n(7893);const a=function(t){return null!=t&&(0,o.A)(t.length)&&!(0,r.A)(t)}},5821:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(7219);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof module&&module&&!module.nodeType&&module,i=a&&a.exports===o?r.A.Buffer:void 0;const s=(i?i.isBuffer:void 0)||function(){return!1}},405:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(2135),o=n(7942);const a=function(t){if(!(0,o.A)(t))return!1;var e=(0,r.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},7893:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7942:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7313:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){return null!=t&&"object"==typeof t}},4089:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(2135),o=n(7313);const a=function(t){return"symbol"==typeof t||(0,o.A)(t)&&"[object Symbol]"==(0,r.A)(t)}},7283:(t,e,n)=>{n.d(e,{A:()=>l});var r=n(2135),o=n(7893),a=n(7313),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 s=n(8126),c=n(248),u=c.A&&c.A.isTypedArray;const l=u?(0,s.A)(u):function(t){return(0,a.A)(t)&&(0,o.A)(t.length)&&!!i[(0,r.A)(t)]}},7817:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(9158),o=n(5632),a=n(1475);const i=function(t){return(0,a.A)(t)?(0,r.A)(t):(0,o.A)(t)}},1276:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(){return[]}},1123:(t,e,n)=>{n.d(e,{Ay:()=>c,iX:()=>a.useSWRConfig});var r=n(1343),o=n(8139),a=n(5434);const i=r.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)}),s={dedupe:!0},c=(a.OBJECT.defineProperty(a.SWRConfig,"defaultValue",{value:a.defaultConfig}),(0,a.withArgs)(((t,e,n)=>{const{cache:c,compare:u,suspense:l,fallbackData:f,revalidateOnMount:d,revalidateIfStale:p,refreshInterval:v,refreshWhenHidden:h,refreshWhenOffline:y,keepPreviousData:A}=n,[b,_,g,m]=a.SWRGlobalState.get(c),[j,E]=(0,a.serialize)(t),O=(0,r.useRef)(!1),S=(0,r.useRef)(!1),w=(0,r.useRef)(j),R=(0,r.useRef)(e),T=(0,r.useRef)(n),U=()=>T.current,C=()=>U().isVisible()&&U().isOnline(),[x,I,V,L]=(0,a.createCacheHelper)(c,j),k=(0,r.useRef)({}).current,z=(0,a.isUndefined)(f)?n.fallback[j]:f,F=(t,e)=>{for(const n in k){const r=n;if("data"===r){if(!u(t[r],e[r])){if(!(0,a.isUndefined)(t[r]))return!1;if(!u(G,e[r]))return!1}}else if(e[r]!==t[r])return!1}return!0},P=(0,r.useMemo)((()=>{const t=!!j&&!!e&&((0,a.isUndefined)(d)?!U().isPaused()&&!l&&(!!(0,a.isUndefined)(p)||p):d),n=e=>{const n=(0,a.mergeObjects)(e);return delete n._k,t?{isValidating:!0,isLoading:!0,...n}:n},r=x(),o=L(),i=n(r),s=r===o?i:n(o);let c=i;return[()=>{const t=n(x());return F(t,c)?(c.data=t.data,c.isLoading=t.isLoading,c.isValidating=t.isValidating,c.error=t.error,c):(c=t,t)},()=>s]}),[c,j]),M=(0,o.useSyncExternalStore)((0,r.useCallback)((t=>V(j,((e,n)=>{F(n,e)||t()}))),[c,j]),P[0],P[1]),D=!O.current,N=b[j]&&b[j].length>0,W=M.data,$=(0,a.isUndefined)(W)?z:W,B=M.error,q=(0,r.useRef)($),G=A?(0,a.isUndefined)(W)?q.current:W:$,H=!(N&&!(0,a.isUndefined)(B))&&(D&&!(0,a.isUndefined)(d)?d:!U().isPaused()&&(l?!(0,a.isUndefined)($)&&p:(0,a.isUndefined)($)||p)),J=!!(j&&e&&D&&H),Y=(0,a.isUndefined)(M.isValidating)?J:M.isValidating,X=(0,a.isUndefined)(M.isLoading)?J:M.isLoading,K=(0,r.useCallback)((async t=>{const e=R.current;if(!j||!e||S.current||U().isPaused())return!1;let r,o,i=!0;const s=t||{},c=!g[j]||!s.dedupe,l=()=>a.IS_REACT_LEGACY?!S.current&&j===w.current&&O.current:j===w.current,f={isValidating:!1,isLoading:!1},d=()=>{I(f)},p=()=>{const t=g[j];t&&t[1]===o&&delete g[j]},v={isValidating:!0};(0,a.isUndefined)(x().data)&&(v.isLoading=!0);try{if(c&&(I(v),n.loadingTimeout&&(0,a.isUndefined)(x().data)&&setTimeout((()=>{i&&l()&&U().onLoadingSlow(j,n)}),n.loadingTimeout),g[j]=[e(E),(0,a.getTimestamp)()]),[r,o]=g[j],r=await r,c&&setTimeout(p,n.dedupingInterval),!g[j]||g[j][1]!==o)return c&&l()&&U().onDiscarded(j),!1;f.error=a.UNDEFINED;const t=_[j];if(!(0,a.isUndefined)(t)&&(o<=t[0]||o<=t[1]||0===t[1]))return d(),c&&l()&&U().onDiscarded(j),!1;const s=x().data;f.data=u(s,r)?s:r,c&&l()&&U().onSuccess(r,j,n)}catch(t){p();const e=U(),{shouldRetryOnError:n}=e;e.isPaused()||(f.error=t,c&&l()&&(e.onError(t,j,e),(!0===n||(0,a.isFunction)(n)&&n(t))&&(U().revalidateOnFocus&&U().revalidateOnReconnect&&!C()||e.onErrorRetry(t,j,e,(t=>{const e=b[j];e&&e[0]&&e[0](a.revalidateEvents.ERROR_REVALIDATE_EVENT,t)}),{retryCount:(s.retryCount||0)+1,dedupe:!0}))))}return i=!1,d(),!0}),[j,c]),Q=(0,r.useCallback)(((...t)=>(0,a.internalMutate)(c,w.current,...t)),[]);if((0,a.useIsomorphicLayoutEffect)((()=>{R.current=e,T.current=n,(0,a.isUndefined)(W)||(q.current=W)})),(0,a.useIsomorphicLayoutEffect)((()=>{if(!j)return;const t=K.bind(a.UNDEFINED,s);let e=0;const n=(0,a.subscribeCallback)(j,b,((n,r={})=>{if(n==a.revalidateEvents.FOCUS_EVENT){const n=Date.now();U().revalidateOnFocus&&n>e&&C()&&(e=n+U().focusThrottleInterval,t())}else if(n==a.revalidateEvents.RECONNECT_EVENT)U().revalidateOnReconnect&&C()&&t();else{if(n==a.revalidateEvents.MUTATE_EVENT)return K();if(n==a.revalidateEvents.ERROR_REVALIDATE_EVENT)return K(r)}}));return S.current=!1,w.current=j,O.current=!0,I({_k:E}),H&&((0,a.isUndefined)($)||a.IS_SERVER?t():(0,a.rAF)(t)),()=>{S.current=!0,n()}}),[j]),(0,a.useIsomorphicLayoutEffect)((()=>{let t;function e(){const e=(0,a.isFunction)(v)?v(x().data):v;e&&-1!==t&&(t=setTimeout(n,e))}function n(){x().error||!h&&!U().isVisible()||!y&&!U().isOnline()?e():K(s).then(e)}return e(),()=>{t&&(clearTimeout(t),t=-1)}}),[v,h,y,j]),(0,r.useDebugValue)(G),l&&(0,a.isUndefined)($)&&j){if(!a.IS_REACT_LEGACY&&a.IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");R.current=e,T.current=n,S.current=!1;const t=m[j];if(!(0,a.isUndefined)(t)){const e=Q(t);i(e)}if(!(0,a.isUndefined)(B))throw B;{const t=K(s);(0,a.isUndefined)(G)||(t.status="fulfilled",t.value=!0),i(t)}}return{mutate:Q,get data(){return k.data=!0,G},get error(){return k.error=!0,B},get isValidating(){return k.isValidating=!0,Y},get isLoading(){return k.isLoading=!0,X}}})))}}]);