@openmrs/esm-patient-registration-app 4.1.0 → 4.1.1-pre.1005

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,19 +1,19 @@
1
- assets by chunk 909 KiB (id hint: vendors)
1
+ assets by chunk 908 KiB (id hint: vendors)
2
2
  assets by status 641 KiB [big]
3
3
  asset 858.js 397 KiB [emitted] [minimized] [big] (id hint: vendors) 1 related asset
4
4
  asset 430.js 244 KiB [emitted] [minimized] [big] (id hint: vendors) 1 related asset
5
- asset 154.js 91.5 KiB [emitted] [minimized] (id hint: vendors)
5
+ asset 868.js 91 KiB [emitted] [minimized] (id hint: vendors)
6
6
  asset 854.js 70.1 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
7
7
  asset 34.js 50.7 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
8
- asset 470.js 31.8 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
8
+ asset 470.js 31.7 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
9
9
  asset 100.js 19.7 KiB [emitted] [minimized] (id hint: vendors)
10
10
  asset 375.js 3.93 KiB [emitted] [minimized] (id hint: vendors)
11
- + 13 assets
12
- orphan modules 3.9 MiB [orphan] 631 modules
11
+ + 14 assets
12
+ orphan modules 3.9 MiB [orphan] 632 modules
13
13
  runtime modules 38 KiB 28 modules
14
- built modules 3.57 MiB (javascript) 168 bytes (share-init) 168 bytes (consume-shared) [built]
15
- modules by path ../../node_modules/ 3.14 MiB 408 modules
16
- modules by path ./ 445 KiB 28 modules
14
+ built modules 3.58 MiB (javascript) 168 bytes (share-init) 168 bytes (consume-shared) [built]
15
+ modules by path ../../node_modules/ 3.14 MiB 406 modules
16
+ modules by path ./ 449 KiB 29 modules
17
17
  provide-module modules 168 bytes
18
18
  provide shared module (default) @openmrs/esm-framework@4.0.3-pre.392 = ../../node_modules/@openmrs/esm-framework/src/internal.ts 42 bytes [built] [code generated]
19
19
  provide shared module (default) react-i18next@11.18.6 = ../../node_modules/react-i18next/dist/es/index.js 42 bytes [built] [code generated]
@@ -30,4 +30,4 @@ Assets:
30
30
  858.js (397 KiB)
31
31
  430.js (244 KiB)
32
32
 
33
- webpack 5.74.0 compiled with 1 warning in 148114 ms
33
+ webpack 5.74.0 compiled with 1 warning in 162944 ms
package/dist/470.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 470.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_openmrs_esm_patient_registration_app=self.webpackChunk_openmrs_esm_patient_registration_app||[]).push([[470],{452:(t,e,n)=>{var r=n(268),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},u=r.useState,a=r.useEffect,i=r.useLayoutEffect,c=r.useDebugValue;function s(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!o(t,n)}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 n=e(),r=u({inst:{value:n,getSnapshot:e}}),o=r[0].inst,f=r[1];return i((function(){o.value=n,o.getSnapshot=e,s(o)&&f({inst:o})}),[t,n,e]),a((function(){return s(o)&&f({inst:o}),t((function(){s(o)&&f({inst:o})}))}),[t]),c(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:f},3100:(t,e,n)=>{t.exports=n(452)},4649:(t,e,n)=>{n.d(e,{Z:()=>i});var r=n(8804);const o=function(t,e){for(var n=t.length;n--;)if((0,r.Z)(t[n][0],e))return n;return-1};var u=Array.prototype.splice;function a(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])}}a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(t){var e=this.__data__,n=o(e,t);return!(n<0||(n==e.length-1?e.pop():u.call(e,n,1),--this.size,0))},a.prototype.get=function(t){var e=this.__data__,n=o(e,t);return n<0?void 0:e[n][1]},a.prototype.has=function(t){return o(this.__data__,t)>-1},a.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 i=a},8896:(t,e,n)=>{n.d(e,{Z:()=>u});var r=n(5546),o=n(3221);const u=(0,r.Z)(o.Z,"Map")},3703:(t,e,n)=>{n.d(e,{Z:()=>d});const r=(0,n(5546).Z)(Object,"create");var o=Object.prototype.hasOwnProperty;var u=Object.prototype.hasOwnProperty;function a(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])}}a.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},a.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},a.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},a.prototype.has=function(t){var e=this.__data__;return r?void 0!==e[t]:u.call(e,t)},a.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 i=a;var c=n(4649),s=n(8896);const f=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 l(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])}}l.prototype.clear=function(){this.size=0,this.__data__={hash:new i,map:new(s.Z||c.Z),string:new i}},l.prototype.delete=function(t){var e=f(this,t).delete(t);return this.size-=e?1:0,e},l.prototype.get=function(t){return f(this,t).get(t)},l.prototype.has=function(t){return f(this,t).has(t)},l.prototype.set=function(t,e){var n=f(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};const d=l},6218:(t,e,n)=>{n.d(e,{Z:()=>i});var r=n(4649);var o=n(8896),u=n(3703);function a(t){var e=this.__data__=new r.Z(t);this.size=e.size}a.prototype.clear=function(){this.__data__=new r.Z,this.size=0},a.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},a.prototype.get=function(t){return this.__data__.get(t)},a.prototype.has=function(t){return this.__data__.has(t)},a.prototype.set=function(t,e){var n=this.__data__;if(n instanceof r.Z){var a=n.__data__;if(!o.Z||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new u.Z(a)}return n.set(t,e),this.size=n.size,this};const i=a},187:(t,e,n)=>{n.d(e,{Z:()=>r});const r=n(3221).Z.Symbol},8282:(t,e,n)=>{n.d(e,{Z:()=>r});const r=n(3221).Z.Uint8Array},848:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(4248),o=n(7885),u=n(4975),a=n(6401),i=n(8127),c=Object.prototype.hasOwnProperty;const s=function(t,e){var n=(0,o.Z)(t),s=!n&&(0,r.Z)(t),f=!n&&!s&&(0,u.Z)(t),l=!n&&!s&&!f&&(0,i.Z)(t),d=n||s||f||l,v=d?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],p=v.length;for(var h in t)!e&&!c.call(t,h)||d&&("length"==h||f&&("offset"==h||"parent"==h)||l&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||(0,a.Z)(h,p))||v.push(h);return v}},5598:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},5810:(t,e,n)=>{n.d(e,{Z:()=>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}},2938:(t,e,n)=>{n.d(e,{Z:()=>u});var r=n(5810),o=n(7885);const u=function(t,e,n){var u=e(t);return(0,o.Z)(t)?u:(0,r.Z)(u,n(t))}},9001:(t,e,n)=>{n.d(e,{Z:()=>f});var r=n(187),o=Object.prototype,u=o.hasOwnProperty,a=o.toString,i=r.Z?r.Z.toStringTag:void 0;var c=Object.prototype.toString;var s=r.Z?r.Z.toStringTag:void 0;const f=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?function(t){var e=u.call(t,i),n=t[i];try{t[i]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[i]=n:delete t[i]),o}(t):function(t){return c.call(t)}(t)}},2342:(t,e,n)=>{n.d(e,{Z:()=>F});var r=n(6218),o=n(3703);function u(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new o.Z;++e<n;)this.add(t[e])}u.prototype.add=u.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},u.prototype.has=function(t){return this.__data__.has(t)};const a=u,i=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1},c=function(t,e,n,r,o,u){var c=1&n,s=t.length,f=e.length;if(s!=f&&!(c&&f>s))return!1;var l=u.get(t),d=u.get(e);if(l&&d)return l==e&&d==t;var v=-1,p=!0,h=2&n?new a:void 0;for(u.set(t,e),u.set(e,t);++v<s;){var Z=t[v],y=e[v];if(r)var b=c?r(y,Z,v,e,t,u):r(Z,y,v,t,e,u);if(void 0!==b){if(b)continue;p=!1;break}if(h){if(!i(e,(function(t,e){if(a=e,!h.has(a)&&(Z===t||o(Z,t,n,r,u)))return h.push(e);var a}))){p=!1;break}}else if(Z!==y&&!o(Z,y,n,r,u)){p=!1;break}}return u.delete(t),u.delete(e),p};var s=n(187),f=n(8282),l=n(8804),d=n(5500),v=n(3249),p=s.Z?s.Z.prototype:void 0,h=p?p.valueOf:void 0;var Z=n(7245),y=Object.prototype.hasOwnProperty;var b=n(8649),_=n(7885),g=n(4975),j=n(8127),w="[object Arguments]",O="[object Array]",m="[object Object]",E=Object.prototype.hasOwnProperty;const x=function(t,e,n,o,u,a){var i=(0,_.Z)(t),s=(0,_.Z)(e),p=i?O:(0,b.Z)(t),x=s?O:(0,b.Z)(e),S=(p=p==w?m:p)==m,A=(x=x==w?m:x)==m,T=p==x;if(T&&(0,g.Z)(t)){if(!(0,g.Z)(e))return!1;i=!0,S=!1}if(T&&!S)return a||(a=new r.Z),i||(0,j.Z)(t)?c(t,e,n,o,u,a):function(t,e,n,r,o,u,a){switch(n){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||!u(new f.Z(t),new f.Z(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,l.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 i=d.Z;case"[object Set]":var s=1&r;if(i||(i=v.Z),t.size!=e.size&&!s)return!1;var p=a.get(t);if(p)return p==e;r|=2,a.set(t,e);var Z=c(i(t),i(e),r,o,u,a);return a.delete(t),Z;case"[object Symbol]":if(h)return h.call(t)==h.call(e)}return!1}(t,e,p,n,o,u,a);if(!(1&n)){var R=S&&E.call(t,"__wrapped__"),k=A&&E.call(e,"__wrapped__");if(R||k){var L=R?t.value():t,C=k?e.value():e;return a||(a=new r.Z),u(L,C,n,o,a)}}return!!T&&(a||(a=new r.Z),function(t,e,n,r,o,u){var a=1&n,i=(0,Z.Z)(t),c=i.length;if(c!=(0,Z.Z)(e).length&&!a)return!1;for(var s=c;s--;){var f=i[s];if(!(a?f in e:y.call(e,f)))return!1}var l=u.get(t),d=u.get(e);if(l&&d)return l==e&&d==t;var v=!0;u.set(t,e),u.set(e,t);for(var p=a;++s<c;){var h=t[f=i[s]],b=e[f];if(r)var _=a?r(b,h,f,e,t,u):r(h,b,f,t,e,u);if(!(void 0===_?h===b||o(h,b,n,r,u):_)){v=!1;break}p||(p="constructor"==f)}if(v&&!p){var g=t.constructor,j=e.constructor;g==j||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof j&&j instanceof j||(v=!1)}return u.delete(t),u.delete(e),v}(t,e,n,o,u,a))};var S=n(3391);const A=function t(e,n,r,o,u){return e===n||(null==e||null==n||!(0,S.Z)(e)&&!(0,S.Z)(n)?e!=e&&n!=n:x(e,n,r,o,t,u))};var T=n(3122);const R=function(t){return t==t&&!(0,T.Z)(t)};var k=n(649);const L=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}},C=function(t){var e=function(t){for(var e=(0,k.Z)(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,R(o)]}return e}(t);return 1==e.length&&e[0][2]?L(e[0][0],e[0][1]):function(n){return n===t||function(t,e,n,o){var u=n.length,a=u,i=!o;if(null==t)return!a;for(t=Object(t);u--;){var c=n[u];if(i&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++u<a;){var s=(c=n[u])[0],f=t[s],l=c[1];if(i&&c[2]){if(void 0===f&&!(s in t))return!1}else{var d=new r.Z;if(o)var v=o(f,l,s,t,e,d);if(!(void 0===v?A(l,f,3,o,d):v))return!1}}return!0}(n,t,e)}};var z=n(2082),I=n(7969);const D=function(t,e){for(var n=0,r=(e=(0,z.Z)(e,t)).length;null!=t&&n<r;)t=t[(0,I.Z)(e[n++])];return n&&n==r?t:void 0},N=function(t,e){return null!=t&&e in Object(t)};var P=n(8693);var V=n(3502);const U=function(t,e){return(0,V.Z)(t)&&R(e)?L((0,I.Z)(t),e):function(n){var r=function(t,e,n){var r=null==t?void 0:D(t,e);return void 0===r?n:r}(n,t);return void 0===r&&r===e?function(t,e){return null!=t&&(0,P.Z)(t,e,N)}(n,t):A(e,r,3)}},$=function(t){return t},M=function(t){return(0,V.Z)(t)?(e=(0,I.Z)(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return D(e,t)}}(t);var e},F=function(t){return"function"==typeof t?t:null==t?$:"object"==typeof t?(0,_.Z)(t)?U(t[0],t[1]):C(t):M(t)}},3917:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(5441);const o=(0,n(6048).Z)(Object.keys,Object);var u=Object.prototype.hasOwnProperty;const a=function(t){if(!(0,r.Z)(t))return o(t);var e=[];for(var n in Object(t))u.call(t,n)&&"constructor"!=n&&e.push(n);return e}},3225:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t){return function(e){return t(e)}}},2082:(t,e,n)=>{n.d(e,{Z:()=>i});var r=n(7885),o=n(3502),u=n(2540),a=n(3523);const i=function(t,e){return(0,r.Z)(t)?t:(0,o.Z)(t,e)?[t]:(0,u.Z)((0,a.Z)(t))}},4724:(t,e,n)=>{n.d(e,{Z:()=>k});const r=(o={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},function(t){return null==o?void 0:o[t]});var o,u=n(3523),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var c=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var s=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var f="a-z\\xdf-\\xf6\\xf8-\\xff",l="A-Z\\xc0-\\xd6\\xd8-\\xde",d="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",v="["+d+"]",p="\\d+",h="["+f+"]",Z="[^\\ud800-\\udfff"+d+p+"\\u2700-\\u27bf"+f+l+"]",y="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",_="["+l+"]",g="(?:"+h+"|"+Z+")",j="(?:"+_+"|"+Z+")",w="(?:['’](?:d|ll|m|re|s|t|ve))?",O="(?:['’](?:D|LL|M|RE|S|T|VE))?",m="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",E="[\\ufe0e\\ufe0f]?",x=E+m+"(?:\\u200d(?:"+["[^\\ud800-\\udfff]",y,b].join("|")+")"+E+m+")*",S="(?:"+["[\\u2700-\\u27bf]",y,b].join("|")+")"+x,A=RegExp([_+"?"+h+"+"+w+"(?="+[v,_,"$"].join("|")+")",j+"+"+O+"(?="+[v,_+g,"$"].join("|")+")",_+"?"+g+"+"+w,_+"+"+O,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",p,S].join("|"),"g");const T=function(t,e,n){return t=(0,u.Z)(t),void 0===(e=n?void 0:e)?function(t){return s.test(t)}(t)?function(t){return t.match(A)||[]}(t):function(t){return t.match(c)||[]}(t):t.match(e)||[]};var R=RegExp("['’]","g");const k=function(t){return function(e){return function(t,e,n,r){var o=-1,u=null==t?0:t.length;for(r&&u&&(n=t[++o]);++o<u;)n=e(n,t[o],o,t);return n}(T(function(t){return(t=(0,u.Z)(t))&&t.replace(a,r).replace(i,"")}(e).replace(R,"")),t,"")}}},2168:(t,e,n)=>{n.d(e,{Z:()=>r});const r="object"==typeof global&&global&&global.Object===Object&&global},7245:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(2938),o=n(6808),u=n(649);const a=function(t){return(0,r.Z)(t,u.Z,o.Z)}},5546:(t,e,n)=>{n.d(e,{Z:()=>Z});var r=n(8936);const o=n(3221).Z["__core-js_shared__"];var u,a=(u=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+u:"";var i=n(3122),c=n(6682),s=/^\[object .+?Constructor\]$/,f=Function.prototype,l=Object.prototype,d=f.toString,v=l.hasOwnProperty,p=RegExp("^"+d.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const h=function(t){return!(!(0,i.Z)(t)||(e=t,a&&a in e))&&((0,r.Z)(t)?p:s).test((0,c.Z)(t));var e},Z=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return h(n)?n:void 0}},6808:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(813),o=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols;const a=u?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,u=[];++n<r;){var a=t[n];e(a,n,t)&&(u[o++]=a)}return u}(u(t),(function(e){return o.call(t,e)})))}:r.Z},8649:(t,e,n)=>{n.d(e,{Z:()=>O});var r=n(5546),o=n(3221);const u=(0,r.Z)(o.Z,"DataView");var a=n(8896);const i=(0,r.Z)(o.Z,"Promise"),c=(0,r.Z)(o.Z,"Set"),s=(0,r.Z)(o.Z,"WeakMap");var f=n(9001),l=n(6682),d="[object Map]",v="[object Promise]",p="[object Set]",h="[object WeakMap]",Z="[object DataView]",y=(0,l.Z)(u),b=(0,l.Z)(a.Z),_=(0,l.Z)(i),g=(0,l.Z)(c),j=(0,l.Z)(s),w=f.Z;(u&&w(new u(new ArrayBuffer(1)))!=Z||a.Z&&w(new a.Z)!=d||i&&w(i.resolve())!=v||c&&w(new c)!=p||s&&w(new s)!=h)&&(w=function(t){var e=(0,f.Z)(t),n="[object Object]"==e?t.constructor:void 0,r=n?(0,l.Z)(n):"";if(r)switch(r){case y:return Z;case b:return d;case _:return v;case g:return p;case j:return h}return e});const O=w},8693:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(2082),o=n(4248),u=n(7885),a=n(6401),i=n(1164),c=n(7969);const s=function(t,e,n){for(var s=-1,f=(e=(0,r.Z)(e,t)).length,l=!1;++s<f;){var d=(0,c.Z)(e[s]);if(!(l=null!=t&&n(t,d)))break;t=t[d]}return l||++s!=f?l:!!(f=null==t?0:t.length)&&(0,i.Z)(f)&&(0,a.Z)(d,f)&&((0,u.Z)(t)||(0,o.Z)(t))}},2690:(t,e,n)=>{n.d(e,{Z:()=>o});var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const o=function(t){return r.test(t)}},6401:(t,e,n)=>{n.d(e,{Z:()=>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}},3502:(t,e,n)=>{n.d(e,{Z:()=>i});var r=n(7885),o=n(2758),u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;const i=function(t,e){if((0,r.Z)(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!(0,o.Z)(t))||a.test(t)||!u.test(t)||null!=e&&t in Object(e)}},5441:(t,e,n)=>{n.d(e,{Z:()=>o});var r=Object.prototype;const o=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},5500:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},7755:(t,e,n)=>{n.d(e,{Z:()=>i});var r=n(2168),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,u=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=u&&u.exports===o&&r.Z.process;const i=function(){try{return u&&u.require&&u.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}()},6048:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t,e){return function(n){return t(e(n))}}},3221:(t,e,n)=>{n.d(e,{Z:()=>u});var r=n(2168),o="object"==typeof self&&self&&self.Object===Object&&self;const u=r.Z||o||Function("return this")()},3249:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},222:(t,e,n)=>{n.d(e,{Z:()=>p});var r=n(2690),o="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",u="\\ud83c[\\udffb-\\udfff]",a="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+o+"|"+u+")?",f="[\\ufe0e\\ufe0f]?",l=f+s+"(?:\\u200d(?:"+[a,i,c].join("|")+")"+f+s+")*",d="(?:"+[a+o+"?",o,i,c,"[\\ud800-\\udfff]"].join("|")+")",v=RegExp(u+"(?="+u+")|"+d+l,"g");const p=function(t){return(0,r.Z)(t)?function(t){return t.match(v)||[]}(t):function(t){return t.split("")}(t)}},2540:(t,e,n)=>{n.d(e,{Z:()=>i});var r=n(3703);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],u=n.cache;if(u.has(o))return u.get(o);var a=t.apply(this,r);return n.cache=u.set(o,a)||u,a};return n.cache=new(o.Cache||r.Z),n}o.Cache=r.Z;var u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g;const i=(c=o((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(u,(function(t,n,r,o){e.push(r?o.replace(a,"$1"):n||t)})),e}),(function(t){return 500===s.size&&s.clear(),t})),s=c.cache,c);var c,s},7969:(t,e,n)=>{n.d(e,{Z:()=>o});var r=n(2758);const o=function(t){if("string"==typeof t||(0,r.Z)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},6682:(t,e,n)=>{n.d(e,{Z:()=>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""}},2777:(t,e,n)=>{n.d(e,{Z:()=>o});var r=n(1525);const o=(0,n(4724).Z)((function(t,e,n){return e=e.toLowerCase(),t+(n?(0,r.Z)(e):e)}))},1525:(t,e,n)=>{n.d(e,{Z:()=>c});var r=n(3523);const o=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var u=Array(o);++r<o;)u[r]=t[r+e];return u}(t,e,n)};var u=n(2690),a=n(222);const i=function(t){t=(0,r.Z)(t);var e=(0,u.Z)(t)?(0,a.Z)(t):void 0,n=e?e[0]:t.charAt(0),i=e?o(e,1).join(""):t.slice(1);return n.toUpperCase()+i},c=function(t){return i((0,r.Z)(t).toLowerCase())}},8804:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t,e){return t===e||t!=t&&e!=e}},8407:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(3523),o=/[\\^$.*+?()[\]{}|]/g,u=RegExp(o.source);const a=function(t){return(t=(0,r.Z)(t))&&u.test(t)?t.replace(o,"\\$&"):t}},3662:(t,e,n)=>{n.d(e,{Z:()=>y});var r=n(2342),o=n(3282),u=n(649);var a=/\s/;var i=/^\s+/;const c=function(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&a.test(t.charAt(e)););return e}(t)+1).replace(i,""):t};var s=n(3122),f=n(2758),l=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,v=/^0o[0-7]+$/i,p=parseInt;const h=function(t){return t?Infinity===(t=function(t){if("number"==typeof t)return t;if((0,f.Z)(t))return NaN;if((0,s.Z)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,s.Z)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=c(t);var n=d.test(t);return n||v.test(t)?p(t.slice(2),n?2:8):l.test(t)?NaN:+t}(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};var Z=Math.max;const y=(b=function(t,e,n){var o=null==t?0:t.length;if(!o)return-1;var u,a,i=null==n?0:(u=h(n),a=u%1,u==u?a?u-a:u:0);return i<0&&(i=Z(o+i,0)),function(t,e,n,r){for(var o=t.length,u=n+(r?1:-1);r?u--:++u<o;)if(e(t[u],u,t))return u;return-1}(t,(0,r.Z)(e,3),i)},function(t,e,n){var a=Object(t);if(!(0,o.Z)(t)){var i=(0,r.Z)(e,3);t=(0,u.Z)(t),e=function(t){return i(a[t],t,a)}}var c=b(t,e,n);return c>-1?a[i?t[c]:c]:void 0});var b},4248:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(9001),o=n(3391);const u=function(t){return(0,o.Z)(t)&&"[object Arguments]"==(0,r.Z)(t)};var a=Object.prototype,i=a.hasOwnProperty,c=a.propertyIsEnumerable;const s=u(function(){return arguments}())?u:function(t){return(0,o.Z)(t)&&i.call(t,"callee")&&!c.call(t,"callee")}},7885:(t,e,n)=>{n.d(e,{Z:()=>r});const r=Array.isArray},3282:(t,e,n)=>{n.d(e,{Z:()=>u});var r=n(8936),o=n(1164);const u=function(t){return null!=t&&(0,o.Z)(t.length)&&!(0,r.Z)(t)}},4975:(t,e,n)=>{n.d(e,{Z:()=>i});var r=n(3221);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,u=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=u&&u.exports===o?r.Z.Buffer:void 0;const i=(a?a.isBuffer:void 0)||function(){return!1}},8936:(t,e,n)=>{n.d(e,{Z:()=>u});var r=n(9001),o=n(3122);const u=function(t){if(!(0,o.Z)(t))return!1;var e=(0,r.Z)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1164:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3122:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3391:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t){return null!=t&&"object"==typeof t}},2758:(t,e,n)=>{n.d(e,{Z:()=>u});var r=n(9001),o=n(3391);const u=function(t){return"symbol"==typeof t||(0,o.Z)(t)&&"[object Symbol]"==(0,r.Z)(t)}},8127:(t,e,n)=>{n.d(e,{Z:()=>f});var r=n(9001),o=n(1164),u=n(3391),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var i=n(3225),c=n(7755),s=c.Z&&c.Z.isTypedArray;const f=s?(0,i.Z)(s):function(t){return(0,u.Z)(t)&&(0,o.Z)(t.length)&&!!a[(0,r.Z)(t)]}},649:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(848),o=n(3917),u=n(3282);const a=function(t){return(0,u.Z)(t)?(0,r.Z)(t):(0,o.Z)(t)}},813:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(){return[]}},3523:(t,e,n)=>{n.d(e,{Z:()=>f});var r=n(187),o=n(5598),u=n(7885),a=n(2758),i=r.Z?r.Z.prototype:void 0,c=i?i.toString:void 0;const s=function t(e){if("string"==typeof e)return e;if((0,u.Z)(e))return(0,o.Z)(e,t)+"";if((0,a.Z)(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n},f=function(t){return null==t?"":s(t)}},4729:(t,e,n)=>{n.d(e,{$l:()=>c,BN:()=>z,DY:()=>o,J$:()=>M,JN:()=>h,LI:()=>S,PM:()=>l,W6:()=>E,i_:()=>i,ko:()=>G,kw:()=>x,mf:()=>f,o8:()=>s,qC:()=>R,s6:()=>q,sj:()=>C,u3:()=>L,u_:()=>V,w6:()=>m,xD:()=>Y});var r=n(268);const o=new WeakMap,u={},a=()=>{},i=a(),c=Object,s=t=>t===i,f=t=>"function"==typeof t,l=(t,e)=>({...t,...e}),d="undefined",v=typeof window!=d,p=typeof document!=d,h=(t,e)=>{const n=o.get(t);return[()=>t.get(e)||u,r=>{const o=t.get(e);n[5](e,l(o,r),o||u)},n[6]]},Z=new WeakMap;let y=0;const b=t=>{const e=typeof t,n=t&&t.constructor,r=n==Date;let o,u;if(c(t)!==t||r||n==RegExp)o=r?t.toJSON():"symbol"==e?t.toString():"string"==e?JSON.stringify(t):""+t;else{if(o=Z.get(t),o)return o;if(o=++y+"~",Z.set(t,o),n==Array){for(o="@",u=0;u<t.length;u++)o+=b(t[u])+",";Z.set(t,o)}if(n==c){o="#";const e=c.keys(t).sort();for(;!s(u=e.pop());)s(t[u])||(o+=u+":"+b(t[u])+",");Z.set(t,o)}}return o};let _=!0;const[g,j]=v&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[a,a],w={isOnline:()=>_,isVisible:()=>{const t=p&&document.visibilityState;return s(t)||"hidden"!==t}},O={initFocus:t=>(p&&document.addEventListener("visibilitychange",t),g("focus",t),()=>{p&&document.removeEventListener("visibilitychange",t),j("focus",t)}),initReconnect:t=>{const e=()=>{_=!0,t()},n=()=>{_=!1};return g("online",e),g("offline",n),()=>{j("online",e),j("offline",n)}}},m=!r.useId,E=!v||"Deno"in window,x=t=>v&&typeof window.requestAnimationFrame!=d?window.requestAnimationFrame(t):setTimeout(t,1),S=E?r.useEffect:r.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,T=!E&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),R=t=>{if(f(t))try{t=t()}catch(e){t=""}const e=t;return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?b(t):"",e]};let k=0;const L=()=>++k;var C={__proto__:null,FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2};async function z(...t){const[e,n,r,u]=t,a=l({populateCache:!0,throwOnError:!0},"boolean"==typeof u?{revalidate:u}:u||{});let c=a.populateCache;const d=a.rollbackOnError;let v=a.optimisticData;const p=!1!==a.revalidate,Z=a.throwOnError;if(f(n)){const t=n,r=[],o=e.keys();for(let n=o.next();!n.done;n=o.next()){const o=n.value;!o.startsWith("$inf$")&&t(e.get(o)._k)&&r.push(o)}return Promise.all(r.map(y))}return y(n);async function y(n){const[u]=R(n);if(!u)return;const[a,l]=h(e,u),[y,b,_]=o.get(e),g=y[u],j=()=>p&&(delete _[u],g&&g[0])?g[0](2).then((()=>a().data)):a().data;if(t.length<3)return j();let w,O=r;const m=L();b[u]=[m,0];const E=!s(v),x=a(),S=x.data,A=x._c,T=s(A)?S:A;if(E&&(v=f(v)?v(T):v,l({data:v,_c:T})),f(O))try{O=O(T)}catch(t){w=t}if(O&&f(O.then)){if(O=await O.catch((t=>{w=t})),m!==b[u][0]){if(w)throw w;return O}w&&E&&(t=>"function"==typeof d?d(t):!1!==d)(w)&&(c=!0,O=T,l({data:O,_c:i}))}c&&(w||(f(c)&&(O=c(O,T)),l({data:O,_c:i}))),b[u][1]=L();const k=await j();if(l({_c:i}),!w)return c?k:O;if(Z)throw w}}const I=(t,e)=>{for(const n in t)t[n][0]&&t[n][0](e)},D=(t,e)=>{if(!o.has(t)){const n=l(O,e),r={},u=z.bind(i,t);let c=a;const s={},f=(t,e)=>{const n=s[t]||[];return s[t]=n,n.push(e),()=>n.splice(n.indexOf(e),1)},d=(e,n,r)=>{t.set(e,n);const o=s[e];if(o)for(let t=o.length;t--;)o[t](r,n)},v=()=>{if(!o.has(t)&&(o.set(t,[r,{},{},{},u,d,f]),!E)){const e=n.initFocus(setTimeout.bind(i,I.bind(i,r,0))),u=n.initReconnect(setTimeout.bind(i,I.bind(i,r,1)));c=()=>{e&&e(),u&&u(),o.delete(t)}}};return v(),[t,u,v,c]}return[t,o.get(t)[4]]},[N,P]=D(new Map),V=l({onLoadingSlow:a,onSuccess:a,onError:a,onErrorRetry:(t,e,n,r,o)=>{const u=n.errorRetryCount,a=o.retryCount,i=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!s(u)&&a>u||setTimeout(r,i,o)},onDiscarded:a,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:(t,e)=>b(t)==b(e),isPaused:()=>!1,cache:N,mutate:P,fallback:{}},w),U=(t,e)=>{const n=l(t,e);if(e){const{use:r,fallback:o}=t,{use:u,fallback:a}=e;r&&u&&(n.use=r.concat(u)),o&&a&&(n.fallback=l(o,a))}return n},$=(0,r.createContext)({}),M=t=>{const{value:e}=t,n=(0,r.useContext)($),o=f(e),u=(0,r.useMemo)((()=>o?e(n):e),[o,n,e]),a=(0,r.useMemo)((()=>o?u:U(n,u)),[o,n,u]),c=u&&u.provider,[s]=(0,r.useState)((()=>c?D(c(a.cache||N),u):i));return s&&(a.cache=s[0],a.mutate=s[1]),S((()=>{if(s)return s[2]&&s[2](),s[3]}),[]),(0,r.createElement)($.Provider,l(t,{value:a}))},F=v&&window.__SWR_DEVTOOLS_USE__,W=F?window.__SWR_DEVTOOLS_USE__:[],B=t=>f(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}],J=W.concat((t=>(e,n,r)=>t(e,n&&((...t)=>{const r=R(e)[0],[,,,u]=o.get(N),a=u[r];return a?(delete u[r],a):n(...t)}),r))),q=t=>function(...e){const n=l(V,(0,r.useContext)($)),[o,u,a]=B(e),i=U(n,a);let c=t;const{use:s}=i,f=(s||[]).concat(J);for(let t=f.length;t--;)c=f[t](c);return c(o,u||i.fetcher||null,i)},G=(t,e,n)=>{const r=e[t]||(e[t]=[]);return r.push(n),()=>{const t=r.indexOf(n);t>=0&&(r[t]=r[r.length-1],r.pop())}},Y=(t,e)=>(...n)=>{const[r,o,u]=B(n),a=(u.use||[]).concat(e);return t(r,o,{...u,use:a})};F&&(window.__SWR_DEVTOOLS_REACT__=r)},3255:(t,e,n)=>{n.d(e,{ZP:()=>i});var r=n(268),o=n(3100),u=n(4729);const a={dedupe:!0};u.$l.defineProperty(u.J$,"defaultValue",{value:u.u_});var i=(0,u.s6)(((t,e,n)=>{const{cache:i,compare:c,suspense:s,fallbackData:f,revalidateOnMount:l,refreshInterval:d,refreshWhenHidden:v,refreshWhenOffline:p,keepPreviousData:h}=n,[Z,y,b]=u.DY.get(i),[_,g]=(0,u.qC)(t),j=(0,r.useRef)(!1),w=(0,r.useRef)(!1),O=(0,r.useRef)(_),m=(0,r.useRef)(e),E=(0,r.useRef)(n),x=()=>E.current,S=()=>x().isVisible()&&x().isOnline(),[A,T,R]=(0,u.JN)(i,_),k=(0,r.useRef)({}).current,L=(0,u.o8)(f)?n.fallback[_]:f,C=(t,e)=>{let n=!0;for(const r in k){const o=r;c(e[o],t[o])||"data"===o&&(0,u.o8)(t[o])&&c(e[o],$)||(n=!1)}return n},z=(0,r.useMemo)((()=>{const t=!!_&&!!e&&((0,u.o8)(l)?!x().isPaused()&&!s:l),n=()=>{const e=A(),n=(0,u.PM)(e);return delete n._k,t?{isValidating:!0,isLoading:!0,...n}:n};let r=n();return()=>{const t=n();return C(t,r)?r:r=t}}),[i,_]),I=(0,o.useSyncExternalStore)((0,r.useCallback)((t=>R(_,((e,n)=>{C(e,n)||t()}))),[i,_]),z,z),D=!j.current,N=I.data,P=(0,u.o8)(N)?L:N,V=I.error,U=(0,r.useRef)(P),$=h?(0,u.o8)(N)?U.current:N:P,M=D&&!(0,u.o8)(l)?l:!x().isPaused()&&(s?!(0,u.o8)(P)&&n.revalidateIfStale:(0,u.o8)(P)||n.revalidateIfStale),F=!!(_&&e&&D&&M),W=(0,u.o8)(I.isValidating)?F:I.isValidating,B=(0,u.o8)(I.isLoading)?F:I.isLoading,J=(0,r.useCallback)((async t=>{const e=m.current;if(!_||!e||w.current||x().isPaused())return!1;let r,o,a=!0;const i=t||{},s=!b[_]||!i.dedupe,f=()=>u.w6?!w.current&&_===O.current&&j.current:_===O.current,l={isValidating:!1,isLoading:!1},d=()=>{T(l)},v=()=>{const t=b[_];t&&t[1]===o&&delete b[_]},p={isValidating:!0};(0,u.o8)(A().data)&&(p.isLoading=!0);try{if(s&&(T(p),n.loadingTimeout&&(0,u.o8)(A().data)&&setTimeout((()=>{a&&f()&&x().onLoadingSlow(_,n)}),n.loadingTimeout),b[_]=[e(g),(0,u.u3)()]),[r,o]=b[_],r=await r,s&&setTimeout(v,n.dedupingInterval),!b[_]||b[_][1]!==o)return s&&f()&&x().onDiscarded(_),!1;l.error=u.i_;const t=y[_];if(!(0,u.o8)(t)&&(o<=t[0]||o<=t[1]||0===t[1]))return d(),s&&f()&&x().onDiscarded(_),!1;const i=A().data;l.data=c(i,r)?i:r,s&&f()&&x().onSuccess(r,_,n)}catch(t){v();const e=x(),{shouldRetryOnError:n}=e;e.isPaused()||(l.error=t,s&&f()&&(e.onError(t,_,e),(!0===n||(0,u.mf)(n)&&n(t))&&S()&&e.onErrorRetry(t,_,e,J,{retryCount:(i.retryCount||0)+1,dedupe:!0})))}return a=!1,d(),!0}),[_,i]),q=(0,r.useCallback)(((...t)=>(0,u.BN)(i,O.current,...t)),[]);if((0,u.LI)((()=>{m.current=e,E.current=n,(0,u.o8)(N)||(U.current=N)})),(0,u.LI)((()=>{if(!_)return;const t=J.bind(u.i_,a);let e=0;const n=(0,u.ko)(_,Z,(n=>{if(n==u.sj.FOCUS_EVENT){const n=Date.now();x().revalidateOnFocus&&n>e&&S()&&(e=n+x().focusThrottleInterval,t())}else if(n==u.sj.RECONNECT_EVENT)x().revalidateOnReconnect&&S()&&t();else if(n==u.sj.MUTATE_EVENT)return J()}));return w.current=!1,O.current=_,j.current=!0,T({_k:g}),M&&((0,u.o8)(P)||u.W6?t():(0,u.kw)(t)),()=>{w.current=!0,n()}}),[_]),(0,u.LI)((()=>{let t;function e(){const e=(0,u.mf)(d)?d(P):d;e&&-1!==t&&(t=setTimeout(n,e))}function n(){A().error||!v&&!x().isVisible()||!p&&!x().isOnline()?e():J(a).then(e)}return e(),()=>{t&&(clearTimeout(t),t=-1)}}),[d,v,p,_]),(0,r.useDebugValue)($),s&&(0,u.o8)(P)&&_){if(!u.w6&&u.W6)throw new Error("Fallback data is required when using suspense in SSR.");throw m.current=e,E.current=n,w.current=!1,(0,u.o8)(V)?J(a):V}return{mutate:q,get data(){return k.data=!0,$},get error(){return k.error=!0,V},get isValidating(){return k.isValidating=!0,W},get isLoading(){return k.isLoading=!0,B}}}))},2303:(t,e,n)=>{n.d(e,{Z:()=>o});var r=n(3255),o=(0,n(4729).xD)(r.ZP,(t=>(e,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,t(e,n,r))))}}]);
2
+ "use strict";(self.webpackChunk_openmrs_esm_patient_registration_app=self.webpackChunk_openmrs_esm_patient_registration_app||[]).push([[470],{452:(t,e,n)=>{var r=n(268),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},u=r.useState,a=r.useEffect,i=r.useLayoutEffect,c=r.useDebugValue;function s(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!o(t,n)}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 n=e(),r=u({inst:{value:n,getSnapshot:e}}),o=r[0].inst,f=r[1];return i((function(){o.value=n,o.getSnapshot=e,s(o)&&f({inst:o})}),[t,n,e]),a((function(){return s(o)&&f({inst:o}),t((function(){s(o)&&f({inst:o})}))}),[t]),c(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:f},3100:(t,e,n)=>{t.exports=n(452)},4649:(t,e,n)=>{n.d(e,{Z:()=>i});var r=n(8804);const o=function(t,e){for(var n=t.length;n--;)if((0,r.Z)(t[n][0],e))return n;return-1};var u=Array.prototype.splice;function a(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])}}a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(t){var e=this.__data__,n=o(e,t);return!(n<0||(n==e.length-1?e.pop():u.call(e,n,1),--this.size,0))},a.prototype.get=function(t){var e=this.__data__,n=o(e,t);return n<0?void 0:e[n][1]},a.prototype.has=function(t){return o(this.__data__,t)>-1},a.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 i=a},8896:(t,e,n)=>{n.d(e,{Z:()=>u});var r=n(5546),o=n(3221);const u=(0,r.Z)(o.Z,"Map")},3703:(t,e,n)=>{n.d(e,{Z:()=>d});const r=(0,n(5546).Z)(Object,"create");var o=Object.prototype.hasOwnProperty;var u=Object.prototype.hasOwnProperty;function a(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])}}a.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},a.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},a.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},a.prototype.has=function(t){var e=this.__data__;return r?void 0!==e[t]:u.call(e,t)},a.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 i=a;var c=n(4649),s=n(8896);const f=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 l(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])}}l.prototype.clear=function(){this.size=0,this.__data__={hash:new i,map:new(s.Z||c.Z),string:new i}},l.prototype.delete=function(t){var e=f(this,t).delete(t);return this.size-=e?1:0,e},l.prototype.get=function(t){return f(this,t).get(t)},l.prototype.has=function(t){return f(this,t).has(t)},l.prototype.set=function(t,e){var n=f(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};const d=l},6218:(t,e,n)=>{n.d(e,{Z:()=>i});var r=n(4649);var o=n(8896),u=n(3703);function a(t){var e=this.__data__=new r.Z(t);this.size=e.size}a.prototype.clear=function(){this.__data__=new r.Z,this.size=0},a.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},a.prototype.get=function(t){return this.__data__.get(t)},a.prototype.has=function(t){return this.__data__.has(t)},a.prototype.set=function(t,e){var n=this.__data__;if(n instanceof r.Z){var a=n.__data__;if(!o.Z||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new u.Z(a)}return n.set(t,e),this.size=n.size,this};const i=a},187:(t,e,n)=>{n.d(e,{Z:()=>r});const r=n(3221).Z.Symbol},8282:(t,e,n)=>{n.d(e,{Z:()=>r});const r=n(3221).Z.Uint8Array},848:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(4248),o=n(7885),u=n(4975),a=n(6401),i=n(8127),c=Object.prototype.hasOwnProperty;const s=function(t,e){var n=(0,o.Z)(t),s=!n&&(0,r.Z)(t),f=!n&&!s&&(0,u.Z)(t),l=!n&&!s&&!f&&(0,i.Z)(t),d=n||s||f||l,v=d?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],p=v.length;for(var h in t)!e&&!c.call(t,h)||d&&("length"==h||f&&("offset"==h||"parent"==h)||l&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||(0,a.Z)(h,p))||v.push(h);return v}},5598:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},5810:(t,e,n)=>{n.d(e,{Z:()=>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}},2938:(t,e,n)=>{n.d(e,{Z:()=>u});var r=n(5810),o=n(7885);const u=function(t,e,n){var u=e(t);return(0,o.Z)(t)?u:(0,r.Z)(u,n(t))}},9001:(t,e,n)=>{n.d(e,{Z:()=>f});var r=n(187),o=Object.prototype,u=o.hasOwnProperty,a=o.toString,i=r.Z?r.Z.toStringTag:void 0;var c=Object.prototype.toString;var s=r.Z?r.Z.toStringTag:void 0;const f=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?function(t){var e=u.call(t,i),n=t[i];try{t[i]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[i]=n:delete t[i]),o}(t):function(t){return c.call(t)}(t)}},2342:(t,e,n)=>{n.d(e,{Z:()=>F});var r=n(6218),o=n(3703);function u(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new o.Z;++e<n;)this.add(t[e])}u.prototype.add=u.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},u.prototype.has=function(t){return this.__data__.has(t)};const a=u,i=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1},c=function(t,e,n,r,o,u){var c=1&n,s=t.length,f=e.length;if(s!=f&&!(c&&f>s))return!1;var l=u.get(t),d=u.get(e);if(l&&d)return l==e&&d==t;var v=-1,p=!0,h=2&n?new a:void 0;for(u.set(t,e),u.set(e,t);++v<s;){var Z=t[v],y=e[v];if(r)var b=c?r(y,Z,v,e,t,u):r(Z,y,v,t,e,u);if(void 0!==b){if(b)continue;p=!1;break}if(h){if(!i(e,(function(t,e){if(a=e,!h.has(a)&&(Z===t||o(Z,t,n,r,u)))return h.push(e);var a}))){p=!1;break}}else if(Z!==y&&!o(Z,y,n,r,u)){p=!1;break}}return u.delete(t),u.delete(e),p};var s=n(187),f=n(8282),l=n(8804),d=n(5500),v=n(3249),p=s.Z?s.Z.prototype:void 0,h=p?p.valueOf:void 0;var Z=n(7245),y=Object.prototype.hasOwnProperty;var b=n(8649),_=n(7885),g=n(4975),j=n(8127),w="[object Arguments]",O="[object Array]",m="[object Object]",E=Object.prototype.hasOwnProperty;const x=function(t,e,n,o,u,a){var i=(0,_.Z)(t),s=(0,_.Z)(e),p=i?O:(0,b.Z)(t),x=s?O:(0,b.Z)(e),S=(p=p==w?m:p)==m,A=(x=x==w?m:x)==m,T=p==x;if(T&&(0,g.Z)(t)){if(!(0,g.Z)(e))return!1;i=!0,S=!1}if(T&&!S)return a||(a=new r.Z),i||(0,j.Z)(t)?c(t,e,n,o,u,a):function(t,e,n,r,o,u,a){switch(n){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||!u(new f.Z(t),new f.Z(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,l.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 i=d.Z;case"[object Set]":var s=1&r;if(i||(i=v.Z),t.size!=e.size&&!s)return!1;var p=a.get(t);if(p)return p==e;r|=2,a.set(t,e);var Z=c(i(t),i(e),r,o,u,a);return a.delete(t),Z;case"[object Symbol]":if(h)return h.call(t)==h.call(e)}return!1}(t,e,p,n,o,u,a);if(!(1&n)){var R=S&&E.call(t,"__wrapped__"),k=A&&E.call(e,"__wrapped__");if(R||k){var L=R?t.value():t,C=k?e.value():e;return a||(a=new r.Z),u(L,C,n,o,a)}}return!!T&&(a||(a=new r.Z),function(t,e,n,r,o,u){var a=1&n,i=(0,Z.Z)(t),c=i.length;if(c!=(0,Z.Z)(e).length&&!a)return!1;for(var s=c;s--;){var f=i[s];if(!(a?f in e:y.call(e,f)))return!1}var l=u.get(t),d=u.get(e);if(l&&d)return l==e&&d==t;var v=!0;u.set(t,e),u.set(e,t);for(var p=a;++s<c;){var h=t[f=i[s]],b=e[f];if(r)var _=a?r(b,h,f,e,t,u):r(h,b,f,t,e,u);if(!(void 0===_?h===b||o(h,b,n,r,u):_)){v=!1;break}p||(p="constructor"==f)}if(v&&!p){var g=t.constructor,j=e.constructor;g==j||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof j&&j instanceof j||(v=!1)}return u.delete(t),u.delete(e),v}(t,e,n,o,u,a))};var S=n(3391);const A=function t(e,n,r,o,u){return e===n||(null==e||null==n||!(0,S.Z)(e)&&!(0,S.Z)(n)?e!=e&&n!=n:x(e,n,r,o,t,u))};var T=n(3122);const R=function(t){return t==t&&!(0,T.Z)(t)};var k=n(298);const L=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}},C=function(t){var e=function(t){for(var e=(0,k.Z)(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,R(o)]}return e}(t);return 1==e.length&&e[0][2]?L(e[0][0],e[0][1]):function(n){return n===t||function(t,e,n,o){var u=n.length,a=u,i=!o;if(null==t)return!a;for(t=Object(t);u--;){var c=n[u];if(i&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++u<a;){var s=(c=n[u])[0],f=t[s],l=c[1];if(i&&c[2]){if(void 0===f&&!(s in t))return!1}else{var d=new r.Z;if(o)var v=o(f,l,s,t,e,d);if(!(void 0===v?A(l,f,3,o,d):v))return!1}}return!0}(n,t,e)}};var z=n(2082),I=n(7969);const D=function(t,e){for(var n=0,r=(e=(0,z.Z)(e,t)).length;null!=t&&n<r;)t=t[(0,I.Z)(e[n++])];return n&&n==r?t:void 0},N=function(t,e){return null!=t&&e in Object(t)};var P=n(8693);var V=n(3502);const U=function(t,e){return(0,V.Z)(t)&&R(e)?L((0,I.Z)(t),e):function(n){var r=function(t,e,n){var r=null==t?void 0:D(t,e);return void 0===r?n:r}(n,t);return void 0===r&&r===e?function(t,e){return null!=t&&(0,P.Z)(t,e,N)}(n,t):A(e,r,3)}},$=function(t){return t},M=function(t){return(0,V.Z)(t)?(e=(0,I.Z)(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return D(e,t)}}(t);var e},F=function(t){return"function"==typeof t?t:null==t?$:"object"==typeof t?(0,_.Z)(t)?U(t[0],t[1]):C(t):M(t)}},3225:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t){return function(e){return t(e)}}},2082:(t,e,n)=>{n.d(e,{Z:()=>i});var r=n(7885),o=n(3502),u=n(2540),a=n(3523);const i=function(t,e){return(0,r.Z)(t)?t:(0,o.Z)(t,e)?[t]:(0,u.Z)((0,a.Z)(t))}},4724:(t,e,n)=>{n.d(e,{Z:()=>k});const r=(o={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},function(t){return null==o?void 0:o[t]});var o,u=n(3523),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var c=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var s=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var f="a-z\\xdf-\\xf6\\xf8-\\xff",l="A-Z\\xc0-\\xd6\\xd8-\\xde",d="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",v="["+d+"]",p="\\d+",h="["+f+"]",Z="[^\\ud800-\\udfff"+d+p+"\\u2700-\\u27bf"+f+l+"]",y="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",_="["+l+"]",g="(?:"+h+"|"+Z+")",j="(?:"+_+"|"+Z+")",w="(?:['’](?:d|ll|m|re|s|t|ve))?",O="(?:['’](?:D|LL|M|RE|S|T|VE))?",m="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",E="[\\ufe0e\\ufe0f]?",x=E+m+"(?:\\u200d(?:"+["[^\\ud800-\\udfff]",y,b].join("|")+")"+E+m+")*",S="(?:"+["[\\u2700-\\u27bf]",y,b].join("|")+")"+x,A=RegExp([_+"?"+h+"+"+w+"(?="+[v,_,"$"].join("|")+")",j+"+"+O+"(?="+[v,_+g,"$"].join("|")+")",_+"?"+g+"+"+w,_+"+"+O,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",p,S].join("|"),"g");const T=function(t,e,n){return t=(0,u.Z)(t),void 0===(e=n?void 0:e)?function(t){return s.test(t)}(t)?function(t){return t.match(A)||[]}(t):function(t){return t.match(c)||[]}(t):t.match(e)||[]};var R=RegExp("['’]","g");const k=function(t){return function(e){return function(t,e,n,r){var o=-1,u=null==t?0:t.length;for(r&&u&&(n=t[++o]);++o<u;)n=e(n,t[o],o,t);return n}(T(function(t){return(t=(0,u.Z)(t))&&t.replace(a,r).replace(i,"")}(e).replace(R,"")),t,"")}}},2168:(t,e,n)=>{n.d(e,{Z:()=>r});const r="object"==typeof global&&global&&global.Object===Object&&global},7245:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(2938),o=n(6808),u=n(298);const a=function(t){return(0,r.Z)(t,u.Z,o.Z)}},5546:(t,e,n)=>{n.d(e,{Z:()=>Z});var r=n(8936);const o=n(3221).Z["__core-js_shared__"];var u,a=(u=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+u:"";var i=n(3122),c=n(6682),s=/^\[object .+?Constructor\]$/,f=Function.prototype,l=Object.prototype,d=f.toString,v=l.hasOwnProperty,p=RegExp("^"+d.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const h=function(t){return!(!(0,i.Z)(t)||(e=t,a&&a in e))&&((0,r.Z)(t)?p:s).test((0,c.Z)(t));var e},Z=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return h(n)?n:void 0}},6808:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(813),o=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols;const a=u?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,u=[];++n<r;){var a=t[n];e(a,n,t)&&(u[o++]=a)}return u}(u(t),(function(e){return o.call(t,e)})))}:r.Z},8649:(t,e,n)=>{n.d(e,{Z:()=>O});var r=n(5546),o=n(3221);const u=(0,r.Z)(o.Z,"DataView");var a=n(8896);const i=(0,r.Z)(o.Z,"Promise"),c=(0,r.Z)(o.Z,"Set"),s=(0,r.Z)(o.Z,"WeakMap");var f=n(9001),l=n(6682),d="[object Map]",v="[object Promise]",p="[object Set]",h="[object WeakMap]",Z="[object DataView]",y=(0,l.Z)(u),b=(0,l.Z)(a.Z),_=(0,l.Z)(i),g=(0,l.Z)(c),j=(0,l.Z)(s),w=f.Z;(u&&w(new u(new ArrayBuffer(1)))!=Z||a.Z&&w(new a.Z)!=d||i&&w(i.resolve())!=v||c&&w(new c)!=p||s&&w(new s)!=h)&&(w=function(t){var e=(0,f.Z)(t),n="[object Object]"==e?t.constructor:void 0,r=n?(0,l.Z)(n):"";if(r)switch(r){case y:return Z;case b:return d;case _:return v;case g:return p;case j:return h}return e});const O=w},8693:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(2082),o=n(4248),u=n(7885),a=n(6401),i=n(1164),c=n(7969);const s=function(t,e,n){for(var s=-1,f=(e=(0,r.Z)(e,t)).length,l=!1;++s<f;){var d=(0,c.Z)(e[s]);if(!(l=null!=t&&n(t,d)))break;t=t[d]}return l||++s!=f?l:!!(f=null==t?0:t.length)&&(0,i.Z)(f)&&(0,a.Z)(d,f)&&((0,u.Z)(t)||(0,o.Z)(t))}},2690:(t,e,n)=>{n.d(e,{Z:()=>o});var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const o=function(t){return r.test(t)}},6401:(t,e,n)=>{n.d(e,{Z:()=>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}},3502:(t,e,n)=>{n.d(e,{Z:()=>i});var r=n(7885),o=n(2758),u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;const i=function(t,e){if((0,r.Z)(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!(0,o.Z)(t))||a.test(t)||!u.test(t)||null!=e&&t in Object(e)}},5441:(t,e,n)=>{n.d(e,{Z:()=>o});var r=Object.prototype;const o=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},5500:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},7755:(t,e,n)=>{n.d(e,{Z:()=>i});var r=n(2168),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,u=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=u&&u.exports===o&&r.Z.process;const i=function(){try{return u&&u.require&&u.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}()},6048:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t,e){return function(n){return t(e(n))}}},3221:(t,e,n)=>{n.d(e,{Z:()=>u});var r=n(2168),o="object"==typeof self&&self&&self.Object===Object&&self;const u=r.Z||o||Function("return this")()},3249:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},222:(t,e,n)=>{n.d(e,{Z:()=>p});var r=n(2690),o="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",u="\\ud83c[\\udffb-\\udfff]",a="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+o+"|"+u+")?",f="[\\ufe0e\\ufe0f]?",l=f+s+"(?:\\u200d(?:"+[a,i,c].join("|")+")"+f+s+")*",d="(?:"+[a+o+"?",o,i,c,"[\\ud800-\\udfff]"].join("|")+")",v=RegExp(u+"(?="+u+")|"+d+l,"g");const p=function(t){return(0,r.Z)(t)?function(t){return t.match(v)||[]}(t):function(t){return t.split("")}(t)}},2540:(t,e,n)=>{n.d(e,{Z:()=>i});var r=n(3703);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],u=n.cache;if(u.has(o))return u.get(o);var a=t.apply(this,r);return n.cache=u.set(o,a)||u,a};return n.cache=new(o.Cache||r.Z),n}o.Cache=r.Z;var u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g;const i=(c=o((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(u,(function(t,n,r,o){e.push(r?o.replace(a,"$1"):n||t)})),e}),(function(t){return 500===s.size&&s.clear(),t})),s=c.cache,c);var c,s},7969:(t,e,n)=>{n.d(e,{Z:()=>o});var r=n(2758);const o=function(t){if("string"==typeof t||(0,r.Z)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},6682:(t,e,n)=>{n.d(e,{Z:()=>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""}},2777:(t,e,n)=>{n.d(e,{Z:()=>o});var r=n(1525);const o=(0,n(4724).Z)((function(t,e,n){return e=e.toLowerCase(),t+(n?(0,r.Z)(e):e)}))},1525:(t,e,n)=>{n.d(e,{Z:()=>c});var r=n(3523);const o=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var u=Array(o);++r<o;)u[r]=t[r+e];return u}(t,e,n)};var u=n(2690),a=n(222);const i=function(t){t=(0,r.Z)(t);var e=(0,u.Z)(t)?(0,a.Z)(t):void 0,n=e?e[0]:t.charAt(0),i=e?o(e,1).join(""):t.slice(1);return n.toUpperCase()+i},c=function(t){return i((0,r.Z)(t).toLowerCase())}},8804:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t,e){return t===e||t!=t&&e!=e}},8407:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(3523),o=/[\\^$.*+?()[\]{}|]/g,u=RegExp(o.source);const a=function(t){return(t=(0,r.Z)(t))&&u.test(t)?t.replace(o,"\\$&"):t}},3662:(t,e,n)=>{n.d(e,{Z:()=>y});var r=n(2342),o=n(3282),u=n(298);var a=/\s/;var i=/^\s+/;const c=function(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&a.test(t.charAt(e)););return e}(t)+1).replace(i,""):t};var s=n(3122),f=n(2758),l=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,v=/^0o[0-7]+$/i,p=parseInt;const h=function(t){return t?Infinity===(t=function(t){if("number"==typeof t)return t;if((0,f.Z)(t))return NaN;if((0,s.Z)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,s.Z)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=c(t);var n=d.test(t);return n||v.test(t)?p(t.slice(2),n?2:8):l.test(t)?NaN:+t}(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};var Z=Math.max;const y=(b=function(t,e,n){var o=null==t?0:t.length;if(!o)return-1;var u,a,i=null==n?0:(u=h(n),a=u%1,u==u?a?u-a:u:0);return i<0&&(i=Z(o+i,0)),function(t,e,n,r){for(var o=t.length,u=n+(r?1:-1);r?u--:++u<o;)if(e(t[u],u,t))return u;return-1}(t,(0,r.Z)(e,3),i)},function(t,e,n){var a=Object(t);if(!(0,o.Z)(t)){var i=(0,r.Z)(e,3);t=(0,u.Z)(t),e=function(t){return i(a[t],t,a)}}var c=b(t,e,n);return c>-1?a[i?t[c]:c]:void 0});var b},4248:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(9001),o=n(3391);const u=function(t){return(0,o.Z)(t)&&"[object Arguments]"==(0,r.Z)(t)};var a=Object.prototype,i=a.hasOwnProperty,c=a.propertyIsEnumerable;const s=u(function(){return arguments}())?u:function(t){return(0,o.Z)(t)&&i.call(t,"callee")&&!c.call(t,"callee")}},7885:(t,e,n)=>{n.d(e,{Z:()=>r});const r=Array.isArray},3282:(t,e,n)=>{n.d(e,{Z:()=>u});var r=n(8936),o=n(1164);const u=function(t){return null!=t&&(0,o.Z)(t.length)&&!(0,r.Z)(t)}},4975:(t,e,n)=>{n.d(e,{Z:()=>i});var r=n(3221);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,u=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=u&&u.exports===o?r.Z.Buffer:void 0;const i=(a?a.isBuffer:void 0)||function(){return!1}},8936:(t,e,n)=>{n.d(e,{Z:()=>u});var r=n(9001),o=n(3122);const u=function(t){if(!(0,o.Z)(t))return!1;var e=(0,r.Z)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1164:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3122:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3391:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t){return null!=t&&"object"==typeof t}},2758:(t,e,n)=>{n.d(e,{Z:()=>u});var r=n(9001),o=n(3391);const u=function(t){return"symbol"==typeof t||(0,o.Z)(t)&&"[object Symbol]"==(0,r.Z)(t)}},8127:(t,e,n)=>{n.d(e,{Z:()=>f});var r=n(9001),o=n(1164),u=n(3391),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var i=n(3225),c=n(7755),s=c.Z&&c.Z.isTypedArray;const f=s?(0,i.Z)(s):function(t){return(0,u.Z)(t)&&(0,o.Z)(t.length)&&!!a[(0,r.Z)(t)]}},298:(t,e,n)=>{n.d(e,{Z:()=>c});var r=n(848),o=n(5441);const u=(0,n(6048).Z)(Object.keys,Object);var a=Object.prototype.hasOwnProperty;var i=n(3282);const c=function(t){return(0,i.Z)(t)?(0,r.Z)(t):function(t){if(!(0,o.Z)(t))return u(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}},813:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(){return[]}},3523:(t,e,n)=>{n.d(e,{Z:()=>f});var r=n(187),o=n(5598),u=n(7885),a=n(2758),i=r.Z?r.Z.prototype:void 0,c=i?i.toString:void 0;const s=function t(e){if("string"==typeof e)return e;if((0,u.Z)(e))return(0,o.Z)(e,t)+"";if((0,a.Z)(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n},f=function(t){return null==t?"":s(t)}},4729:(t,e,n)=>{n.d(e,{$l:()=>c,BN:()=>z,DY:()=>o,J$:()=>M,JN:()=>h,LI:()=>S,PM:()=>l,W6:()=>E,i_:()=>i,ko:()=>G,kw:()=>x,mf:()=>f,o8:()=>s,qC:()=>R,s6:()=>q,sj:()=>C,u3:()=>L,u_:()=>V,w6:()=>m,xD:()=>Y});var r=n(268);const o=new WeakMap,u={},a=()=>{},i=a(),c=Object,s=t=>t===i,f=t=>"function"==typeof t,l=(t,e)=>({...t,...e}),d="undefined",v=typeof window!=d,p=typeof document!=d,h=(t,e)=>{const n=o.get(t);return[()=>t.get(e)||u,r=>{const o=t.get(e);n[5](e,l(o,r),o||u)},n[6]]},Z=new WeakMap;let y=0;const b=t=>{const e=typeof t,n=t&&t.constructor,r=n==Date;let o,u;if(c(t)!==t||r||n==RegExp)o=r?t.toJSON():"symbol"==e?t.toString():"string"==e?JSON.stringify(t):""+t;else{if(o=Z.get(t),o)return o;if(o=++y+"~",Z.set(t,o),n==Array){for(o="@",u=0;u<t.length;u++)o+=b(t[u])+",";Z.set(t,o)}if(n==c){o="#";const e=c.keys(t).sort();for(;!s(u=e.pop());)s(t[u])||(o+=u+":"+b(t[u])+",");Z.set(t,o)}}return o};let _=!0;const[g,j]=v&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[a,a],w={isOnline:()=>_,isVisible:()=>{const t=p&&document.visibilityState;return s(t)||"hidden"!==t}},O={initFocus:t=>(p&&document.addEventListener("visibilitychange",t),g("focus",t),()=>{p&&document.removeEventListener("visibilitychange",t),j("focus",t)}),initReconnect:t=>{const e=()=>{_=!0,t()},n=()=>{_=!1};return g("online",e),g("offline",n),()=>{j("online",e),j("offline",n)}}},m=!r.useId,E=!v||"Deno"in window,x=t=>v&&typeof window.requestAnimationFrame!=d?window.requestAnimationFrame(t):setTimeout(t,1),S=E?r.useEffect:r.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,T=!E&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),R=t=>{if(f(t))try{t=t()}catch(e){t=""}const e=t;return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?b(t):"",e]};let k=0;const L=()=>++k;var C={__proto__:null,FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2};async function z(...t){const[e,n,r,u]=t,a=l({populateCache:!0,throwOnError:!0},"boolean"==typeof u?{revalidate:u}:u||{});let c=a.populateCache;const d=a.rollbackOnError;let v=a.optimisticData;const p=!1!==a.revalidate,Z=a.throwOnError;if(f(n)){const t=n,r=[],o=e.keys();for(let n=o.next();!n.done;n=o.next()){const o=n.value;!o.startsWith("$inf$")&&t(e.get(o)._k)&&r.push(o)}return Promise.all(r.map(y))}return y(n);async function y(n){const[u]=R(n);if(!u)return;const[a,l]=h(e,u),[y,b,_]=o.get(e),g=y[u],j=()=>p&&(delete _[u],g&&g[0])?g[0](2).then((()=>a().data)):a().data;if(t.length<3)return j();let w,O=r;const m=L();b[u]=[m,0];const E=!s(v),x=a(),S=x.data,A=x._c,T=s(A)?S:A;if(E&&(v=f(v)?v(T):v,l({data:v,_c:T})),f(O))try{O=O(T)}catch(t){w=t}if(O&&f(O.then)){if(O=await O.catch((t=>{w=t})),m!==b[u][0]){if(w)throw w;return O}w&&E&&(t=>"function"==typeof d?d(t):!1!==d)(w)&&(c=!0,O=T,l({data:O,_c:i}))}c&&(w||(f(c)&&(O=c(O,T)),l({data:O,_c:i}))),b[u][1]=L();const k=await j();if(l({_c:i}),!w)return c?k:O;if(Z)throw w}}const I=(t,e)=>{for(const n in t)t[n][0]&&t[n][0](e)},D=(t,e)=>{if(!o.has(t)){const n=l(O,e),r={},u=z.bind(i,t);let c=a;const s={},f=(t,e)=>{const n=s[t]||[];return s[t]=n,n.push(e),()=>n.splice(n.indexOf(e),1)},d=(e,n,r)=>{t.set(e,n);const o=s[e];if(o)for(let t=o.length;t--;)o[t](r,n)},v=()=>{if(!o.has(t)&&(o.set(t,[r,{},{},{},u,d,f]),!E)){const e=n.initFocus(setTimeout.bind(i,I.bind(i,r,0))),u=n.initReconnect(setTimeout.bind(i,I.bind(i,r,1)));c=()=>{e&&e(),u&&u(),o.delete(t)}}};return v(),[t,u,v,c]}return[t,o.get(t)[4]]},[N,P]=D(new Map),V=l({onLoadingSlow:a,onSuccess:a,onError:a,onErrorRetry:(t,e,n,r,o)=>{const u=n.errorRetryCount,a=o.retryCount,i=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!s(u)&&a>u||setTimeout(r,i,o)},onDiscarded:a,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:(t,e)=>b(t)==b(e),isPaused:()=>!1,cache:N,mutate:P,fallback:{}},w),U=(t,e)=>{const n=l(t,e);if(e){const{use:r,fallback:o}=t,{use:u,fallback:a}=e;r&&u&&(n.use=r.concat(u)),o&&a&&(n.fallback=l(o,a))}return n},$=(0,r.createContext)({}),M=t=>{const{value:e}=t,n=(0,r.useContext)($),o=f(e),u=(0,r.useMemo)((()=>o?e(n):e),[o,n,e]),a=(0,r.useMemo)((()=>o?u:U(n,u)),[o,n,u]),c=u&&u.provider,[s]=(0,r.useState)((()=>c?D(c(a.cache||N),u):i));return s&&(a.cache=s[0],a.mutate=s[1]),S((()=>{if(s)return s[2]&&s[2](),s[3]}),[]),(0,r.createElement)($.Provider,l(t,{value:a}))},F=v&&window.__SWR_DEVTOOLS_USE__,W=F?window.__SWR_DEVTOOLS_USE__:[],B=t=>f(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}],J=W.concat((t=>(e,n,r)=>t(e,n&&((...t)=>{const r=R(e)[0],[,,,u]=o.get(N),a=u[r];return a?(delete u[r],a):n(...t)}),r))),q=t=>function(...e){const n=l(V,(0,r.useContext)($)),[o,u,a]=B(e),i=U(n,a);let c=t;const{use:s}=i,f=(s||[]).concat(J);for(let t=f.length;t--;)c=f[t](c);return c(o,u||i.fetcher||null,i)},G=(t,e,n)=>{const r=e[t]||(e[t]=[]);return r.push(n),()=>{const t=r.indexOf(n);t>=0&&(r[t]=r[r.length-1],r.pop())}},Y=(t,e)=>(...n)=>{const[r,o,u]=B(n),a=(u.use||[]).concat(e);return t(r,o,{...u,use:a})};F&&(window.__SWR_DEVTOOLS_REACT__=r)},3255:(t,e,n)=>{n.d(e,{ZP:()=>i});var r=n(268),o=n(3100),u=n(4729);const a={dedupe:!0};u.$l.defineProperty(u.J$,"defaultValue",{value:u.u_});var i=(0,u.s6)(((t,e,n)=>{const{cache:i,compare:c,suspense:s,fallbackData:f,revalidateOnMount:l,refreshInterval:d,refreshWhenHidden:v,refreshWhenOffline:p,keepPreviousData:h}=n,[Z,y,b]=u.DY.get(i),[_,g]=(0,u.qC)(t),j=(0,r.useRef)(!1),w=(0,r.useRef)(!1),O=(0,r.useRef)(_),m=(0,r.useRef)(e),E=(0,r.useRef)(n),x=()=>E.current,S=()=>x().isVisible()&&x().isOnline(),[A,T,R]=(0,u.JN)(i,_),k=(0,r.useRef)({}).current,L=(0,u.o8)(f)?n.fallback[_]:f,C=(t,e)=>{let n=!0;for(const r in k){const o=r;c(e[o],t[o])||"data"===o&&(0,u.o8)(t[o])&&c(e[o],$)||(n=!1)}return n},z=(0,r.useMemo)((()=>{const t=!!_&&!!e&&((0,u.o8)(l)?!x().isPaused()&&!s:l),n=()=>{const e=A(),n=(0,u.PM)(e);return delete n._k,t?{isValidating:!0,isLoading:!0,...n}:n};let r=n();return()=>{const t=n();return C(t,r)?r:r=t}}),[i,_]),I=(0,o.useSyncExternalStore)((0,r.useCallback)((t=>R(_,((e,n)=>{C(e,n)||t()}))),[i,_]),z,z),D=!j.current,N=I.data,P=(0,u.o8)(N)?L:N,V=I.error,U=(0,r.useRef)(P),$=h?(0,u.o8)(N)?U.current:N:P,M=D&&!(0,u.o8)(l)?l:!x().isPaused()&&(s?!(0,u.o8)(P)&&n.revalidateIfStale:(0,u.o8)(P)||n.revalidateIfStale),F=!!(_&&e&&D&&M),W=(0,u.o8)(I.isValidating)?F:I.isValidating,B=(0,u.o8)(I.isLoading)?F:I.isLoading,J=(0,r.useCallback)((async t=>{const e=m.current;if(!_||!e||w.current||x().isPaused())return!1;let r,o,a=!0;const i=t||{},s=!b[_]||!i.dedupe,f=()=>u.w6?!w.current&&_===O.current&&j.current:_===O.current,l={isValidating:!1,isLoading:!1},d=()=>{T(l)},v=()=>{const t=b[_];t&&t[1]===o&&delete b[_]},p={isValidating:!0};(0,u.o8)(A().data)&&(p.isLoading=!0);try{if(s&&(T(p),n.loadingTimeout&&(0,u.o8)(A().data)&&setTimeout((()=>{a&&f()&&x().onLoadingSlow(_,n)}),n.loadingTimeout),b[_]=[e(g),(0,u.u3)()]),[r,o]=b[_],r=await r,s&&setTimeout(v,n.dedupingInterval),!b[_]||b[_][1]!==o)return s&&f()&&x().onDiscarded(_),!1;l.error=u.i_;const t=y[_];if(!(0,u.o8)(t)&&(o<=t[0]||o<=t[1]||0===t[1]))return d(),s&&f()&&x().onDiscarded(_),!1;const i=A().data;l.data=c(i,r)?i:r,s&&f()&&x().onSuccess(r,_,n)}catch(t){v();const e=x(),{shouldRetryOnError:n}=e;e.isPaused()||(l.error=t,s&&f()&&(e.onError(t,_,e),(!0===n||(0,u.mf)(n)&&n(t))&&S()&&e.onErrorRetry(t,_,e,J,{retryCount:(i.retryCount||0)+1,dedupe:!0})))}return a=!1,d(),!0}),[_,i]),q=(0,r.useCallback)(((...t)=>(0,u.BN)(i,O.current,...t)),[]);if((0,u.LI)((()=>{m.current=e,E.current=n,(0,u.o8)(N)||(U.current=N)})),(0,u.LI)((()=>{if(!_)return;const t=J.bind(u.i_,a);let e=0;const n=(0,u.ko)(_,Z,(n=>{if(n==u.sj.FOCUS_EVENT){const n=Date.now();x().revalidateOnFocus&&n>e&&S()&&(e=n+x().focusThrottleInterval,t())}else if(n==u.sj.RECONNECT_EVENT)x().revalidateOnReconnect&&S()&&t();else if(n==u.sj.MUTATE_EVENT)return J()}));return w.current=!1,O.current=_,j.current=!0,T({_k:g}),M&&((0,u.o8)(P)||u.W6?t():(0,u.kw)(t)),()=>{w.current=!0,n()}}),[_]),(0,u.LI)((()=>{let t;function e(){const e=(0,u.mf)(d)?d(P):d;e&&-1!==t&&(t=setTimeout(n,e))}function n(){A().error||!v&&!x().isVisible()||!p&&!x().isOnline()?e():J(a).then(e)}return e(),()=>{t&&(clearTimeout(t),t=-1)}}),[d,v,p,_]),(0,r.useDebugValue)($),s&&(0,u.o8)(P)&&_){if(!u.w6&&u.W6)throw new Error("Fallback data is required when using suspense in SSR.");throw m.current=e,E.current=n,w.current=!1,(0,u.o8)(V)?J(a):V}return{mutate:q,get data(){return k.data=!0,$},get error(){return k.error=!0,V},get isValidating(){return k.isValidating=!0,W},get isLoading(){return k.isLoading=!0,B}}}))},2303:(t,e,n)=>{n.d(e,{Z:()=>o});var r=n(3255),o=(0,n(4729).xD)(r.ZP,(t=>(e,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,t(e,n,r))))}}]);