@openmrs/esm-patient-registration-app 4.0.2-pre.919 → 4.0.2-pre.930

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,18 +1,18 @@
1
- assets by chunk 910 KiB (id hint: vendors)
1
+ assets by chunk 909 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
5
  asset 154.js 91.5 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 32.5 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
8
+ asset 470.js 31.8 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
11
  + 13 assets
12
12
  orphan modules 3.9 MiB [orphan] 631 modules
13
13
  runtime modules 38 KiB 28 modules
14
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 405 modules
15
+ modules by path ../../node_modules/ 3.14 MiB 408 modules
16
16
  modules by path ./ 445 KiB 28 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]
@@ -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 59854 ms
33
+ webpack 5.74.0 compiled with 1 warning in 128207 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],{4649:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(8804);const o=function(t,e){for(var r=t.length;r--;)if((0,n.Z)(t[r][0],e))return r;return-1};var u=Array.prototype.splice;function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(t){var e=this.__data__,r=o(e,t);return!(r<0||(r==e.length-1?e.pop():u.call(e,r,1),--this.size,0))},a.prototype.get=function(t){var e=this.__data__,r=o(e,t);return r<0?void 0:e[r][1]},a.prototype.has=function(t){return o(this.__data__,t)>-1},a.prototype.set=function(t,e){var r=this.__data__,n=o(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};const i=a},8896:(t,e,r)=>{r.d(e,{Z:()=>u});var n=r(5546),o=r(3221);const u=(0,n.Z)(o.Z,"Map")},3703:(t,e,r)=>{r.d(e,{Z:()=>d});const n=(0,r(5546).Z)(Object,"create");var o=Object.prototype.hasOwnProperty;var u=Object.prototype.hasOwnProperty;function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=function(){this.__data__=n?n(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(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0},a.prototype.has=function(t){var e=this.__data__;return n?void 0!==e[t]:u.call(e,t)},a.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this};const i=a;var c=r(4649),f=r(8896);const s=function(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map};function l(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=function(){this.size=0,this.__data__={hash:new i,map:new(f.Z||c.Z),string:new i}},l.prototype.delete=function(t){var e=s(this,t).delete(t);return this.size-=e?1:0,e},l.prototype.get=function(t){return s(this,t).get(t)},l.prototype.has=function(t){return s(this,t).has(t)},l.prototype.set=function(t,e){var r=s(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};const d=l},6218:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(4649);var o=r(8896),u=r(3703);function a(t){var e=this.__data__=new n.Z(t);this.size=e.size}a.prototype.clear=function(){this.__data__=new n.Z,this.size=0},a.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},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 r=this.__data__;if(r instanceof n.Z){var a=r.__data__;if(!o.Z||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new u.Z(a)}return r.set(t,e),this.size=r.size,this};const i=a},187:(t,e,r)=>{r.d(e,{Z:()=>n});const n=r(3221).Z.Symbol},8282:(t,e,r)=>{r.d(e,{Z:()=>n});const n=r(3221).Z.Uint8Array},848:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(4248),o=r(7885),u=r(4975),a=r(6401),i=r(8127),c=Object.prototype.hasOwnProperty;const f=function(t,e){var r=(0,o.Z)(t),f=!r&&(0,n.Z)(t),s=!r&&!f&&(0,u.Z)(t),l=!r&&!f&&!s&&(0,i.Z)(t),d=r||f||s||l,v=d?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],p=v.length;for(var h in t)!e&&!c.call(t,h)||d&&("length"==h||s&&("offset"==h||"parent"==h)||l&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||(0,a.Z)(h,p))||v.push(h);return v}},5598:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},5810:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},2938:(t,e,r)=>{r.d(e,{Z:()=>u});var n=r(5810),o=r(7885);const u=function(t,e,r){var u=e(t);return(0,o.Z)(t)?u:(0,n.Z)(u,r(t))}},9001:(t,e,r)=>{r.d(e,{Z:()=>s});var n=r(187),o=Object.prototype,u=o.hasOwnProperty,a=o.toString,i=n.Z?n.Z.toStringTag:void 0;var c=Object.prototype.toString;var f=n.Z?n.Z.toStringTag:void 0;const s=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":f&&f in Object(t)?function(t){var e=u.call(t,i),r=t[i];try{t[i]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[i]=r:delete t[i]),o}(t):function(t){return c.call(t)}(t)}},2342:(t,e,r)=>{r.d(e,{Z:()=>M});var n=r(6218),o=r(3703);function u(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new o.Z;++e<r;)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 r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1},c=function(t,e,r,n,o,u){var c=1&r,f=t.length,s=e.length;if(f!=s&&!(c&&s>f))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&r?new a:void 0;for(u.set(t,e),u.set(e,t);++v<f;){var Z=t[v],b=e[v];if(n)var y=c?n(b,Z,v,e,t,u):n(Z,b,v,t,e,u);if(void 0!==y){if(y)continue;p=!1;break}if(h){if(!i(e,(function(t,e){if(a=e,!h.has(a)&&(Z===t||o(Z,t,r,n,u)))return h.push(e);var a}))){p=!1;break}}else if(Z!==b&&!o(Z,b,r,n,u)){p=!1;break}}return u.delete(t),u.delete(e),p};var f=r(187),s=r(8282),l=r(8804),d=r(5500),v=r(3249),p=f.Z?f.Z.prototype:void 0,h=p?p.valueOf:void 0;var Z=r(7245),b=Object.prototype.hasOwnProperty;var y=r(8649),g=r(7885),_=r(4975),j=r(8127),w="[object Arguments]",m="[object Array]",O="[object Object]",x=Object.prototype.hasOwnProperty;const A=function(t,e,r,o,u,a){var i=(0,g.Z)(t),f=(0,g.Z)(e),p=i?m:(0,y.Z)(t),A=f?m:(0,y.Z)(e),E=(p=p==w?O:p)==O,S=(A=A==w?O:A)==O,R=p==A;if(R&&(0,_.Z)(t)){if(!(0,_.Z)(e))return!1;i=!0,E=!1}if(R&&!E)return a||(a=new n.Z),i||(0,j.Z)(t)?c(t,e,r,o,u,a):function(t,e,r,n,o,u,a){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!u(new s.Z(t),new s.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 f=1&n;if(i||(i=v.Z),t.size!=e.size&&!f)return!1;var p=a.get(t);if(p)return p==e;n|=2,a.set(t,e);var Z=c(i(t),i(e),n,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,r,o,u,a);if(!(1&r)){var z=E&&x.call(t,"__wrapped__"),k=S&&x.call(e,"__wrapped__");if(z||k){var T=z?t.value():t,I=k?e.value():e;return a||(a=new n.Z),u(T,I,r,o,a)}}return!!R&&(a||(a=new n.Z),function(t,e,r,n,o,u){var a=1&r,i=(0,Z.Z)(t),c=i.length;if(c!=(0,Z.Z)(e).length&&!a)return!1;for(var f=c;f--;){var s=i[f];if(!(a?s in e:b.call(e,s)))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;++f<c;){var h=t[s=i[f]],y=e[s];if(n)var g=a?n(y,h,s,e,t,u):n(h,y,s,t,e,u);if(!(void 0===g?h===y||o(h,y,r,n,u):g)){v=!1;break}p||(p="constructor"==s)}if(v&&!p){var _=t.constructor,j=e.constructor;_==j||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof j&&j instanceof j||(v=!1)}return u.delete(t),u.delete(e),v}(t,e,r,o,u,a))};var E=r(3391);const S=function t(e,r,n,o,u){return e===r||(null==e||null==r||!(0,E.Z)(e)&&!(0,E.Z)(r)?e!=e&&r!=r:A(e,r,n,o,t,u))};var R=r(3122);const z=function(t){return t==t&&!(0,R.Z)(t)};var k=r(649);const T=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}},I=function(t){var e=function(t){for(var e=(0,k.Z)(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,z(o)]}return e}(t);return 1==e.length&&e[0][2]?T(e[0][0],e[0][1]):function(r){return r===t||function(t,e,r,o){var u=r.length,a=u,i=!o;if(null==t)return!a;for(t=Object(t);u--;){var c=r[u];if(i&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++u<a;){var f=(c=r[u])[0],s=t[f],l=c[1];if(i&&c[2]){if(void 0===s&&!(f in t))return!1}else{var d=new n.Z;if(o)var v=o(s,l,f,t,e,d);if(!(void 0===v?S(l,s,3,o,d):v))return!1}}return!0}(r,t,e)}};var C=r(2082),P=r(7969);const L=function(t,e){for(var r=0,n=(e=(0,C.Z)(e,t)).length;null!=t&&r<n;)t=t[(0,P.Z)(e[r++])];return r&&r==n?t:void 0},D=function(t,e){return null!=t&&e in Object(t)};var V=r(8693);var $=r(3502);const U=function(t,e){return(0,$.Z)(t)&&z(e)?T((0,P.Z)(t),e):function(r){var n=function(t,e,r){var n=null==t?void 0:L(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?function(t,e){return null!=t&&(0,V.Z)(t,e,D)}(r,t):S(e,n,3)}},F=function(t){return t},N=function(t){return(0,$.Z)(t)?(e=(0,P.Z)(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return L(e,t)}}(t);var e},M=function(t){return"function"==typeof t?t:null==t?F:"object"==typeof t?(0,g.Z)(t)?U(t[0],t[1]):I(t):N(t)}},3917:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(5441);const o=(0,r(6048).Z)(Object.keys,Object);var u=Object.prototype.hasOwnProperty;const a=function(t){if(!(0,n.Z)(t))return o(t);var e=[];for(var r in Object(t))u.call(t,r)&&"constructor"!=r&&e.push(r);return e}},3225:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t){return function(e){return t(e)}}},2082:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(7885),o=r(3502),u=r(2540),a=r(3523);const i=function(t,e){return(0,n.Z)(t)?t:(0,o.Z)(t,e)?[t]:(0,u.Z)((0,a.Z)(t))}},4724:(t,e,r)=>{r.d(e,{Z:()=>k});const n=(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=r(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 f=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var s="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="["+s+"]",Z="[^\\ud800-\\udfff"+d+p+"\\u2700-\\u27bf"+s+l+"]",b="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",g="["+l+"]",_="(?:"+h+"|"+Z+")",j="(?:"+g+"|"+Z+")",w="(?:['’](?:d|ll|m|re|s|t|ve))?",m="(?:['’](?:D|LL|M|RE|S|T|VE))?",O="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",x="[\\ufe0e\\ufe0f]?",A=x+O+"(?:\\u200d(?:"+["[^\\ud800-\\udfff]",b,y].join("|")+")"+x+O+")*",E="(?:"+["[\\u2700-\\u27bf]",b,y].join("|")+")"+A,S=RegExp([g+"?"+h+"+"+w+"(?="+[v,g,"$"].join("|")+")",j+"+"+m+"(?="+[v,g+_,"$"].join("|")+")",g+"?"+_+"+"+w,g+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",p,E].join("|"),"g");const R=function(t,e,r){return t=(0,u.Z)(t),void 0===(e=r?void 0:e)?function(t){return f.test(t)}(t)?function(t){return t.match(S)||[]}(t):function(t){return t.match(c)||[]}(t):t.match(e)||[]};var z=RegExp("['’]","g");const k=function(t){return function(e){return function(t,e,r,n){var o=-1,u=null==t?0:t.length;for(n&&u&&(r=t[++o]);++o<u;)r=e(r,t[o],o,t);return r}(R(function(t){return(t=(0,u.Z)(t))&&t.replace(a,n).replace(i,"")}(e).replace(z,"")),t,"")}}},2168:(t,e,r)=>{r.d(e,{Z:()=>n});const n="object"==typeof global&&global&&global.Object===Object&&global},7245:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(2938),o=r(6808),u=r(649);const a=function(t){return(0,n.Z)(t,u.Z,o.Z)}},5546:(t,e,r)=>{r.d(e,{Z:()=>Z});var n=r(8936);const o=r(3221).Z["__core-js_shared__"];var u,a=(u=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+u:"";var i=r(3122),c=r(6682),f=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,d=s.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,n.Z)(t)?p:f).test((0,c.Z)(t));var e},Z=function(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return h(r)?r:void 0}},6808:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(813),o=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols;const a=u?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,u=[];++r<n;){var a=t[r];e(a,r,t)&&(u[o++]=a)}return u}(u(t),(function(e){return o.call(t,e)})))}:n.Z},8649:(t,e,r)=>{r.d(e,{Z:()=>m});var n=r(5546),o=r(3221);const u=(0,n.Z)(o.Z,"DataView");var a=r(8896);const i=(0,n.Z)(o.Z,"Promise"),c=(0,n.Z)(o.Z,"Set"),f=(0,n.Z)(o.Z,"WeakMap");var s=r(9001),l=r(6682),d="[object Map]",v="[object Promise]",p="[object Set]",h="[object WeakMap]",Z="[object DataView]",b=(0,l.Z)(u),y=(0,l.Z)(a.Z),g=(0,l.Z)(i),_=(0,l.Z)(c),j=(0,l.Z)(f),w=s.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||f&&w(new f)!=h)&&(w=function(t){var e=(0,s.Z)(t),r="[object Object]"==e?t.constructor:void 0,n=r?(0,l.Z)(r):"";if(n)switch(n){case b:return Z;case y:return d;case g:return v;case _:return p;case j:return h}return e});const m=w},8693:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(2082),o=r(4248),u=r(7885),a=r(6401),i=r(1164),c=r(7969);const f=function(t,e,r){for(var f=-1,s=(e=(0,n.Z)(e,t)).length,l=!1;++f<s;){var d=(0,c.Z)(e[f]);if(!(l=null!=t&&r(t,d)))break;t=t[d]}return l||++f!=s?l:!!(s=null==t?0:t.length)&&(0,i.Z)(s)&&(0,a.Z)(d,s)&&((0,u.Z)(t)||(0,o.Z)(t))}},2690:(t,e,r)=>{r.d(e,{Z:()=>o});var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const o=function(t){return n.test(t)}},6401:(t,e,r)=>{r.d(e,{Z:()=>o});var n=/^(?:0|[1-9]\d*)$/;const o=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},3502:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(7885),o=r(2758),u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;const i=function(t,e){if((0,n.Z)(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!(0,o.Z)(t))||a.test(t)||!u.test(t)||null!=e&&t in Object(e)}},5441:(t,e,r)=>{r.d(e,{Z:()=>o});var n=Object.prototype;const o=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},5500:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},7755:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(2168),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,u=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=u&&u.exports===o&&n.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,r)=>{r.d(e,{Z:()=>n});const n=function(t,e){return function(r){return t(e(r))}}},3221:(t,e,r)=>{r.d(e,{Z:()=>u});var n=r(2168),o="object"==typeof self&&self&&self.Object===Object&&self;const u=n.Z||o||Function("return this")()},3249:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},222:(t,e,r)=>{r.d(e,{Z:()=>p});var n=r(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]",f="(?:"+o+"|"+u+")?",s="[\\ufe0e\\ufe0f]?",l=s+f+"(?:\\u200d(?:"+[a,i,c].join("|")+")"+s+f+")*",d="(?:"+[a+o+"?",o,i,c,"[\\ud800-\\udfff]"].join("|")+")",v=RegExp(u+"(?="+u+")|"+d+l,"g");const p=function(t){return(0,n.Z)(t)?function(t){return t.match(v)||[]}(t):function(t){return t.split("")}(t)}},2540:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(3703);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],u=r.cache;if(u.has(o))return u.get(o);var a=t.apply(this,n);return r.cache=u.set(o,a)||u,a};return r.cache=new(o.Cache||n.Z),r}o.Cache=n.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,r,n,o){e.push(n?o.replace(a,"$1"):r||t)})),e}),(function(t){return 500===f.size&&f.clear(),t})),f=c.cache,c);var c,f},7969:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(2758);const o=function(t){if("string"==typeof t||(0,n.Z)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},6682:(t,e,r)=>{r.d(e,{Z:()=>o});var n=Function.prototype.toString;const o=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},2777:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(1525);const o=(0,r(4724).Z)((function(t,e,r){return e=e.toLowerCase(),t+(r?(0,n.Z)(e):e)}))},1525:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(3523);const o=function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var u=Array(o);++n<o;)u[n]=t[n+e];return u}(t,e,r)};var u=r(2690),a=r(222);const i=function(t){t=(0,n.Z)(t);var e=(0,u.Z)(t)?(0,a.Z)(t):void 0,r=e?e[0]:t.charAt(0),i=e?o(e,1).join(""):t.slice(1);return r.toUpperCase()+i},c=function(t){return i((0,n.Z)(t).toLowerCase())}},8804:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t,e){return t===e||t!=t&&e!=e}},8407:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(3523),o=/[\\^$.*+?()[\]{}|]/g,u=RegExp(o.source);const a=function(t){return(t=(0,n.Z)(t))&&u.test(t)?t.replace(o,"\\$&"):t}},3662:(t,e,r)=>{r.d(e,{Z:()=>b});var n=r(2342),o=r(3282),u=r(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 f=r(3122),s=r(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,s.Z)(t))return NaN;if((0,f.Z)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,f.Z)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=c(t);var r=d.test(t);return r||v.test(t)?p(t.slice(2),r?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 b=(y=function(t,e,r){var o=null==t?0:t.length;if(!o)return-1;var u,a,i=null==r?0:(u=h(r),a=u%1,u==u?a?u-a:u:0);return i<0&&(i=Z(o+i,0)),function(t,e,r,n){for(var o=t.length,u=r+(n?1:-1);n?u--:++u<o;)if(e(t[u],u,t))return u;return-1}(t,(0,n.Z)(e,3),i)},function(t,e,r){var a=Object(t);if(!(0,o.Z)(t)){var i=(0,n.Z)(e,3);t=(0,u.Z)(t),e=function(t){return i(a[t],t,a)}}var c=y(t,e,r);return c>-1?a[i?t[c]:c]:void 0});var y},4248:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(9001),o=r(3391);const u=function(t){return(0,o.Z)(t)&&"[object Arguments]"==(0,n.Z)(t)};var a=Object.prototype,i=a.hasOwnProperty,c=a.propertyIsEnumerable;const f=u(function(){return arguments}())?u:function(t){return(0,o.Z)(t)&&i.call(t,"callee")&&!c.call(t,"callee")}},7885:(t,e,r)=>{r.d(e,{Z:()=>n});const n=Array.isArray},3282:(t,e,r)=>{r.d(e,{Z:()=>u});var n=r(8936),o=r(1164);const u=function(t){return null!=t&&(0,o.Z)(t.length)&&!(0,n.Z)(t)}},4975:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(3221);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,u=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=u&&u.exports===o?n.Z.Buffer:void 0;const i=(a?a.isBuffer:void 0)||function(){return!1}},8936:(t,e,r)=>{r.d(e,{Z:()=>u});var n=r(9001),o=r(3122);const u=function(t){if(!(0,o.Z)(t))return!1;var e=(0,n.Z)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1164:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3122:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3391:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t){return null!=t&&"object"==typeof t}},2758:(t,e,r)=>{r.d(e,{Z:()=>u});var n=r(9001),o=r(3391);const u=function(t){return"symbol"==typeof t||(0,o.Z)(t)&&"[object Symbol]"==(0,n.Z)(t)}},8127:(t,e,r)=>{r.d(e,{Z:()=>s});var n=r(9001),o=r(1164),u=r(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=r(3225),c=r(7755),f=c.Z&&c.Z.isTypedArray;const s=f?(0,i.Z)(f):function(t){return(0,u.Z)(t)&&(0,o.Z)(t.length)&&!!a[(0,n.Z)(t)]}},649:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(848),o=r(3917),u=r(3282);const a=function(t){return(0,u.Z)(t)?(0,n.Z)(t):(0,o.Z)(t)}},813:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(){return[]}},3523:(t,e,r)=>{r.d(e,{Z:()=>s});var n=r(187),o=r(5598),u=r(7885),a=r(2758),i=n.Z?n.Z.prototype:void 0,c=i?i.toString:void 0;const f=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 r=e+"";return"0"==r&&1/e==-1/0?"-0":r},s=function(t){return null==t?"":f(t)}},9857:(t,e,r)=>{r.d(e,{ZP:()=>J});var n=r(268);function o(t,e,r,n){return new(r||(r=Promise))((function(o,u){function a(t){try{c(n.next(t))}catch(t){u(t)}}function i(t){try{c(n.throw(t))}catch(t){u(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,i)}c((n=n.apply(t,e||[])).next())}))}function u(t,e){var r,n,o,u,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function i(u){return function(i){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(t,a)}catch(t){u=[6,t],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}}var a,i=function(){},c=i(),f=Object,s=function(t){return t===c},l=function(t){return"function"==typeof t},d=function(t,e){return f.assign({},t,e)},v="undefined",p=function(){return typeof window!=v},h=new WeakMap,Z=0,b=function(t){var e,r,n=typeof t,o=t&&t.constructor,u=o==Date;if(f(t)!==t||u||o==RegExp)e=u?t.toJSON():"symbol"==n?t.toString():"string"==n?JSON.stringify(t):""+t;else{if(e=h.get(t))return e;if(e=++Z+"~",h.set(t,e),o==Array){for(e="@",r=0;r<t.length;r++)e+=b(t[r])+",";h.set(t,e)}if(o==f){e="#";for(var a=f.keys(t).sort();!s(r=a.pop());)s(t[r])||(e+=r+":"+b(t[r])+",");h.set(t,e)}}return e},y=!0,g=p(),_=typeof document!=v,j=g&&window.addEventListener?window.addEventListener.bind(window):i,w=_?document.addEventListener.bind(document):i,m=g&&window.removeEventListener?window.removeEventListener.bind(window):i,O=_?document.removeEventListener.bind(document):i,x={isOnline:function(){return y},isVisible:function(){var t=_&&document.visibilityState;return s(t)||"hidden"!==t}},A={initFocus:function(t){return w("visibilitychange",t),j("focus",t),function(){O("visibilitychange",t),m("focus",t)}},initReconnect:function(t){var e=function(){y=!0,t()},r=function(){y=!1};return j("online",e),j("offline",r),function(){m("online",e),m("offline",r)}}},E=!p()||"Deno"in window,S=E?n.useEffect:n.useLayoutEffect,R="undefined"!=typeof navigator&&navigator.connection,z=!E&&R&&(["slow-2g","2g"].includes(R.effectiveType)||R.saveData),k=function(t){if(l(t))try{t=t()}catch(e){t=""}var e=[].concat(t);return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?b(t):"",e,t?"$swr$"+t:""]},T=new WeakMap,I=function(t,e,r,n,o,u,a){void 0===a&&(a=!0);var i=T.get(t),c=i[0],f=i[1],s=i[3],l=c[e],d=f[e];if(a&&d)for(var v=0;v<d.length;++v)d[v](r,n,o);return u&&(delete s[e],l&&l[0])?l[0](2).then((function(){return t.get(e)})):t.get(e)},C=0,P=function(){return++C},L=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(void 0,void 0,void 0,(function(){var e,r,n,o,a,i,f,v,p,h,Z,b,y,g,_,j,w,m,O,x,A;return u(this,(function(u){switch(u.label){case 0:if(e=t[0],r=t[1],n=t[2],o=t[3],i=!!s((a="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||a.populateCache,f=!1!==a.revalidate,v=!1!==a.rollbackOnError,p=a.optimisticData,h=k(r),Z=h[0],b=h[2],!Z)return[2];if(y=T.get(e),g=y[2],t.length<3)return[2,I(e,Z,e.get(Z),c,c,f,!0)];if(_=n,w=P(),g[Z]=[w,0],m=!s(p),O=e.get(Z),m&&(x=l(p)?p(O):p,e.set(Z,x),I(e,Z,x)),l(_))try{_=_(e.get(Z))}catch(t){j=t}return _&&l(_.then)?[4,_.catch((function(t){j=t}))]:[3,2];case 1:if(_=u.sent(),w!==g[Z][0]){if(j)throw j;return[2,_]}j&&m&&v&&(i=!0,_=O,e.set(Z,O)),u.label=2;case 2:return i&&(j||(l(i)&&(_=i(_,O)),e.set(Z,_)),e.set(b,d(e.get(b),{error:j}))),g[Z][1]=P(),[4,I(e,Z,_,j,c,f,!!i)];case 3:if(A=u.sent(),j)throw j;return[2,i?A:_]}}))}))},D=function(t,e){for(var r in t)t[r][0]&&t[r][0](e)},V=function(t,e){if(!T.has(t)){var r=d(A,e),n={},o=L.bind(c,t),u=i;if(T.set(t,[n,{},{},{},o]),!E){var a=r.initFocus(setTimeout.bind(c,D.bind(c,n,0))),f=r.initReconnect(setTimeout.bind(c,D.bind(c,n,1)));u=function(){a&&a(),f&&f(),T.delete(t)}}return[t,o,u]}return[t,T.get(t)[4]]},$=V(new Map),U=$[0],F=$[1],N=d({onLoadingSlow:i,onSuccess:i,onError:i,onErrorRetry:function(t,e,r,n,o){var u=r.errorRetryCount,a=o.retryCount,i=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;!s(u)&&a>u||setTimeout(n,i,o)},onDiscarded:i,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:z?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:z?5e3:3e3,compare:function(t,e){return b(t)==b(e)},isPaused:function(){return!1},cache:U,mutate:F,fallback:{}},x),M=function(t,e){var r=d(t,e);if(e){var n=t.use,o=t.fallback,u=e.use,a=e.fallback;n&&u&&(r.use=n.concat(u)),o&&a&&(r.fallback=d(o,a))}return r},W=(0,n.createContext)({}),B=function(t){return l(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}]},G=function(){return d(N,(0,n.useContext)(W))},q=function(t,e,r){var n=e[t]||(e[t]=[]);return n.push(r),function(){var t=n.indexOf(r);t>=0&&(n[t]=n[n.length-1],n.pop())}},H={dedupe:!0},J=(f.defineProperty((function(t){var e=t.value,r=M((0,n.useContext)(W),e),o=e&&e.provider,u=(0,n.useState)((function(){return o?V(o(r.cache||U),e):c}))[0];return u&&(r.cache=u[0],r.mutate=u[1]),S((function(){return u?u[2]:c}),[]),(0,n.createElement)(W.Provider,d(t,{value:r}))}),"default",{value:N}),a=function(t,e,r){var a=r.cache,i=r.compare,f=r.fallbackData,h=r.suspense,Z=r.revalidateOnMount,b=r.refreshInterval,y=r.refreshWhenHidden,g=r.refreshWhenOffline,_=T.get(a),j=_[0],w=_[1],m=_[2],O=_[3],x=k(t),A=x[0],R=x[1],z=x[2],C=(0,n.useRef)(!1),D=(0,n.useRef)(!1),V=(0,n.useRef)(A),$=(0,n.useRef)(e),U=(0,n.useRef)(r),F=function(){return U.current},N=function(){return F().isVisible()&&F().isOnline()},M=function(t){return a.set(z,d(a.get(z),t))},W=a.get(A),B=s(f)?r.fallback[A]:f,G=s(W)?B:W,J=a.get(z)||{},Y=J.error,K=!C.current,Q=function(){return K&&!s(Z)?Z:!F().isPaused()&&(h?!s(G)&&r.revalidateIfStale:s(G)||r.revalidateIfStale)},X=!(!A||!e)&&(!!J.isValidating||K&&Q()),tt=function(t,e){var r=(0,n.useState)({})[1],o=(0,n.useRef)(t),u=(0,n.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,n.useCallback)((function(t){var n=!1,a=o.current;for(var i in t){var c=i;a[c]!==t[c]&&(a[c]=t[c],u.current[c]&&(n=!0))}n&&!e.current&&r({})}),[]);return S((function(){o.current=t})),[o,u.current,a]}({data:G,error:Y,isValidating:X},D),et=tt[0],rt=tt[1],nt=tt[2],ot=(0,n.useCallback)((function(t){return o(void 0,void 0,void 0,(function(){var e,n,o,f,d,v,p,h,Z,b,y,g,_;return u(this,(function(u){switch(u.label){case 0:if(e=$.current,!A||!e||D.current||F().isPaused())return[2,!1];f=!0,d=t||{},v=!O[A]||!d.dedupe,p=function(){return!D.current&&A===V.current&&C.current},h=function(){var t=O[A];t&&t[1]===o&&delete O[A]},Z={isValidating:!1},b=function(){M({isValidating:!1}),p()&&nt(Z)},M({isValidating:!0}),nt({isValidating:!0}),u.label=1;case 1:return u.trys.push([1,3,,4]),v&&(I(a,A,et.current.data,et.current.error,!0),r.loadingTimeout&&!a.get(A)&&setTimeout((function(){f&&p()&&F().onLoadingSlow(A,r)}),r.loadingTimeout),O[A]=[e.apply(void 0,R),P()]),_=O[A],n=_[0],o=_[1],[4,n];case 2:return n=u.sent(),v&&setTimeout(h,r.dedupingInterval),O[A]&&O[A][1]===o?(M({error:c}),Z.error=c,y=m[A],!s(y)&&(o<=y[0]||o<=y[1]||0===y[1])?(b(),v&&p()&&F().onDiscarded(A),[2,!1]):(i(et.current.data,n)?Z.data=et.current.data:Z.data=n,i(a.get(A),n)||a.set(A,n),v&&p()&&F().onSuccess(n,A,r),[3,4])):(v&&p()&&F().onDiscarded(A),[2,!1]);case 3:return g=u.sent(),h(),F().isPaused()||(M({error:g}),Z.error=g,v&&p()&&(F().onError(g,A,r),("boolean"==typeof r.shouldRetryOnError&&r.shouldRetryOnError||l(r.shouldRetryOnError)&&r.shouldRetryOnError(g))&&N()&&F().onErrorRetry(g,A,r,ot,{retryCount:(d.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return f=!1,b(),p()&&v&&I(a,A,Z.data,Z.error,!1),[2,!0]}}))}))}),[A]),ut=(0,n.useCallback)(L.bind(c,a,(function(){return V.current})),[]);if(S((function(){$.current=e,U.current=r})),S((function(){if(A){var t=A!==V.current,e=ot.bind(c,H),r=0,n=q(A,w,(function(t,e,r){nt(d({error:e,isValidating:r},i(et.current.data,t)?c:{data:t}))})),o=q(A,j,(function(t){if(0==t){var n=Date.now();F().revalidateOnFocus&&n>r&&N()&&(r=n+F().focusThrottleInterval,e())}else if(1==t)F().revalidateOnReconnect&&N()&&e();else if(2==t)return ot()}));return D.current=!1,V.current=A,C.current=!0,t&&nt({data:G,error:Y,isValidating:X}),Q()&&(s(G)||E?e():(u=e,p()&&typeof window.requestAnimationFrame!=v?window.requestAnimationFrame(u):setTimeout(u,1))),function(){D.current=!0,n(),o()}}var u}),[A,ot]),S((function(){var t;function e(){var e=l(b)?b(G):b;e&&-1!==t&&(t=setTimeout(r,e))}function r(){et.current.error||!y&&!F().isVisible()||!g&&!F().isOnline()?e():ot(H).then(e)}return e(),function(){t&&(clearTimeout(t),t=-1)}}),[b,y,g,ot]),(0,n.useDebugValue)(G),h&&s(G)&&A)throw $.current=e,U.current=r,D.current=!1,s(Y)?ot(H):Y;return{mutate:ut,get data(){return rt.data=!0,G},get error(){return rt.error=!0,Y},get isValidating(){return rt.isValidating=!0,X}}},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=G(),n=B(t),o=n[0],u=n[1],i=n[2],c=M(r,i),f=a,s=c.use;if(s)for(var l=s.length;l-- >0;)f=s[l](f);return f(o,u||c.fetcher,c)})},2303:(t,e,r)=>{r.d(e,{Z:()=>c});var n,o,u=r(9857),a=function(){return a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},a.apply(this,arguments)},i=function(t){return"function"==typeof t[1]?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}]},c=(n=u.ZP,o=function(t){return function(e,r,n){return n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,t(e,r,n)}},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=i(t),u=r[0],c=r[1],f=r[2],s=(f.use||[]).concat(o);return n(u,c,a(a({},f),{use:s}))})}}]);
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))))}}]);
@@ -1,14 +1,9 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */
1
+ /**
2
+ * @license React
3
+ * use-sync-external-store-shim.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */